[FFmpeg-user] New version - date in name

Sw@g sweetthdevil at gmail.com
Thu Nov 24 11:43:31 CET 2011



On 24/11/11 10:20, Sw at g wrote:
>
>
> On Wed 23 Nov 2011 20:19:28 GMT, Rhodri James wrote:
>> On Wed, 23 Nov 2011 19:51:33 -0000, Sw at g <sweetthdevil at gmail.com> wrote:
>>
>>> I am using ffmepg on arch - the update from today return an error 
>>> because of me using date in the name of the file recorded (see below 
>>> for the command)
>>
>>> the error return no file or directory of cam_`date +%#F_%T`.mkv 
>>> (being the current date/time)
>>
>> If that is the error that you got, rather than an approximation of it,
>> then whatever you used to run the ffmpeg command didn't interpret the
>> backticks as meaning "execute this command". I suspect you have shell
>> escaping issues. Showing us the exact, uncut error message would help.
>>
>
> Hi Many thanks for your quick reply, see below the complete terminal 
> output.
>
> Looking forward for your reply,
>
> [sweetth at myhost ~]$ ffmpeg -f alsa -i pulse -acodec ac3 -f 
> video4linux2 -s 640x480 -r 15 -i /dev/video0 -vcodec libx264 -preset 
> medium -crf 26 -threads 0 cam_`date +%#F_%T`.mkv
> ffmpeg version N-35110-g0b9a69f, Copyright (c) 2000-2011 the FFmpeg 
> developers
>  built on Nov 23 2011 12:51:56 with gcc 4.6.2
>  configuration: --prefix=/usr --enable-libmp3lame --enable-libvorbis 
> --enable-libxvid --enable-libx264 --enable-libvpx --enable-libtheora 
> --enable-libgsm --enable-libspeex --enable-postproc --enable-shared 
> --enable-x11grab --enable-libopencore_amrnb --enable-libopencore_amrwb 
> --enable-libschroedinger --enable-libopenjpeg --enable-librtmp 
> --enable-gpl --enable-version3 --enable-runtime-cpudetect 
> --disable-debug --disable-static
>  libavutil    51. 26. 0 / 51. 26. 0
>  libavcodec   53. 37. 0 / 53. 37. 0
>  libavformat  53. 21. 0 / 53. 21. 0
>  libavdevice  53.  4. 0 / 53.  4. 0
>  libavfilter   2. 49. 0 /  2. 49. 0
>  libswscale    2.  1. 0 /  2.  1. 0
>  libpostproc  51.  2. 0 / 51.  2. 0
> [alsa @ 0x9d7faa0] Estimating duration from bitrate, this may be 
> inaccurate
> Input #0, alsa, from 'pulse':
>  Duration: N/A, start: 1322129967.230191, bitrate: N/A
>    Stream #0:0: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
> [video4linux2,v4l2 @ 0x9d84cc0] Estimating duration from bitrate, this 
> may be inaccurate
> Input #1, video4linux2,v4l2, from '/dev/video0':
>  Duration: N/A, start: 92.040540, bitrate: 73728 kb/s
>    Stream #1:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 640x480, 
> 73728 kb/s, 15 tbr, 1000k tbn, 15 tbc
> cam_2011-11-24_10:19:27.mkv: No such file or directory

Right,

As requested

=> cam_2011-11-24_10:19:27.mkv
ffmpeg -f alsa -i pulse -acodec ac3 -f video4linux2 -s 640x480 -r 15 -i 
/dev/video0 -vcodec libx264 -preset medium -crf 26 -threads 0 
cam_2011-11-24_10:19:27.mkv
ffmpeg version N-35110-g0b9a69f, Copyright (c) 2000-2011 the FFmpeg 
developers
   built on Nov 23 2011 12:51:56 with gcc 4.6.2
   configuration: --prefix=/usr --enable-libmp3lame --enable-libvorbis 
--enable-libxvid --enable-libx264 --enable-libvpx --enable-libtheora 
--enable-libgsm --enable-libspeex --enable-postproc --enable-shared 
--enable-x11grab --enable-libopencore_amrnb --enable-libopencore_amrwb 
--enable-libschroedinger --enable-libopenjpeg --enable-librtmp 
--enable-gpl --enable-version3 --enable-runtime-cpudetect 
--disable-debug --disable-static
   libavutil    51. 26. 0 / 51. 26. 0
   libavcodec   53. 37. 0 / 53. 37. 0
   libavformat  53. 21. 0 / 53. 21. 0
   libavdevice  53.  4. 0 / 53.  4. 0
   libavfilter   2. 49. 0 /  2. 49. 0
   libswscale    2.  1. 0 /  2.  1. 0
   libpostproc  51.  2. 0 / 51.  2. 0
[alsa @ 0x9a6caa0] Estimating duration from bitrate, this may be inaccurate
Input #0, alsa, from 'pulse':
   Duration: N/A, start: 1322130866.877732, bitrate: N/A
     Stream #0:0: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
[video4linux2,v4l2 @ 0x9a71cc0] Estimating duration from bitrate, this 
may be inaccurate
Input #1, video4linux2,v4l2, from '/dev/video0':
   Duration: N/A, start: 991.762297, bitrate: 73728 kb/s
     Stream #1:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 640x480, 
73728 kb/s, 15 tbr, 1000k tbn, 15 tbc
cam_2011-11-24_10:19:27.mkv: No such file or directory

=> cam_20111124_101927.mkv
This work

To answer Carl the last version on arch was => ffmpeg-20111108-1-i686

Right so if it doesn't like the colons anymore, how can I amend my 
command to give a similar date/time?

Regards


More information about the ffmpeg-user mailing list