Well i am confused once again....
I use cron to call this bash script,,
Code:
#!/bin/bash
/usr/local/bin/ffmpeg -framerate 25 -f video4linux2 -video_size 656x492 -i /dev/video2 -t 02:00:00 -vf drawtext="fontfile=/usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-R.ttf:text='Sky_cam_west_':timecode='05\:00\:00\:00': r=23.976: x=(w-tw)/2: y=h-(1*lh): fontcolor=white: fontsize=16: box=1: boxcolor=0x00000999" -vcodec libx264 -preset slow -crf 28 -movflags faststart -acodec libfaac -aq 100 /home/tim/bin/sunset_cronkilltoo.mp4
I re-installed ffmpeg,,x264 and all else from here https://ffmpeg.org/trac/ffmpeg/wiki/...mpilationGuide
and enabled libfreetype,and am able to make this work well....
It starts the timecode overlay from 5 o'clock because i physically
type it in('05\:00\:00\:00')....
Problem =I want it to pull my local time and overlay on the video automatically....
I have tried numerous codes from numerous pages from my search including
http://ffmpeg.org/trac/ffmpeg/wiki/FilteringGuide
https://gist.github.com/reidransom/2630650
http://ffmpeg.org/ffmpeg-filters.html#drawtext-1
https://ffmpeg.org/trac/ffmpeg/wiki/EncodeforYouTube
and so on....
The code below
Code:
#!/bin/bash
/usr/local/bin/ffmpeg -framerate 25 -f video4linux2 -video_size 656x492 -i /dev/video2 -t 02:00:00 -vf drawtext="fontfile=/usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-R.ttf:text='Sky_cam_west_':timecode='\%H\:\%M\:\%S | \%a \%d/\%b/\%Y': r=23.976: x=(w-tw)/2: y=h-(1*lh): fontcolor=white: fontsize=16: box=1: boxcolor=0x00000999" -vcodec libx264 -preset slow -crf 28 -movflags faststart -acodec libfaac -aq 100 /home/tim/bin/sunset_cronkilltoo.mp4
Gives me this error
Code:
tim@tim-quad-core:~$ ffmpeg -framerate 25 -f video4linux2 -video_size 656x492 -i /dev/video2 -t 02:00:00 -vf drawtext="fontfile=/usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-R.ttf:text='Sky_cam_west_':timecode='\%H\:\%M\:\%S | \%a \%d/\%b/\%Y': r=23.976: x=(w-tw)/2: y=h-(1*lh): fontcolor=white: fontsize=16: box=1: boxcolor=0x00000999" -vcodec libx264 -preset slow -crf 28 -movflags faststart -acodec libfaac -aq 100 /home/tim/bin/sunset_cronkilltoo.mp4
ffmpeg version N-43174-gf4e29c4 Copyright (c) 2000-2013 the FFmpeg developers
built on Mar 3 2013 08:05:54 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
configuration: --enable-gpl --enable-libass --enable-libfaac --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libspeex --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab --enable-libx264 --enable-libfreetype --enable-nonfree --enable-version3
libavutil 52. 17.102 / 52. 17.102
libavcodec 54. 92.100 / 54. 92.100
libavformat 54. 63.100 / 54. 63.100
libavdevice 54. 3.103 / 54. 3.103
libavfilter 3. 38.103 / 3. 38.103
libswscale 2. 2.100 / 2. 2.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
[video4linux2,v4l2 @ 0x2831540] The V4L2 driver changed the video from 656x492 to 656x480
[video4linux2,v4l2 @ 0x2831540] The driver does not allow to change time per frame
[video4linux2,v4l2 @ 0x2831540] Estimating duration from bitrate, this may be inaccurate
Input #0, video4linux2,v4l2, from '/dev/video2':
Duration: N/A, start: 1362355236.726727, bitrate: 113243 kb/s
Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 656x480, 113243 kb/s, 29.97 fps, 29.97 tbr, 1000k tbn, 1000k tbc
[Parsed_drawtext_0 @ 0x2835c60] Unable to parse timecode, syntax: hh:mm:ss[:;.]ff
[AVFilterGraph @ 0x2838900] Error initializing filter 'drawtext' with args 'fontfile=/usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-R.ttf:text=Sky_cam_west_:timecode=\%H\:\%M\:\%S | \%a \%d/\%b/\%Y: r=23.976: x=(w-tw)/2: y=h-(1*lh): fontcolor=white: fontsize=16: box=1: boxcolor=0x00000999'
Error opening filters!
tim@tim-quad-core:~$
Thanks for any link or advice you may have....I will continue on with it in the meantime....
Bookmarks