Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
fade filter on ffmpeg decreases video quality
8 décembre 2012, par John DoeI have a HD video which I am trying to fade in using the following command:
ffmpeg -i 2.mp4 -filter:v fade=in:0:30 output.mp4
It achieves the desired result however the video renders the video quality lower than the original, does anyone know whether their is a command to keep the video quality the same or some other method?
-
ffmpeg watermark bottom right corner
8 décembre 2012, par John DoeI am not sure why, but I cannot seem to get a watermark rendered on the bottom right corner of my video using ffmpeg.
I am using the following command:
ffmpeg –i faded.mov -vf "movie=logo.png [watermark]; [in][watermark] overlay=(main_w-overlay_w-10)/2:(main_h-overlay_h-10)/2 [out]" outputvideo.mov
I see the following output:
ffmpeg version 0.8.4-4:0.8.4-0ubuntu0.12.04.1, Copyright (c) 2000-2012 the Libav developers built on Nov 6 2012 16:50:25 with gcc 4.6.3 *** THIS PROGRAM IS DEPRECATED *** This program is only provided for compatibility and will be removed in a future release. Please use avconv instead. Input #0, avi, from 'faded.mov': Metadata: encoder : MEncoder svn r34540 (Ubuntu), built with gcc-4.6 Duration: 00:00:20.02, start: 0.000000, bitrate: 3136 kb/s Stream #0.0: Video: mpeg4 (Simple Profile), yuv420p, 1280x720 [PAR 1:1 DAR 16:9], 50 tbr, 50 tbn, 50 tbc Stream #0.1: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s [buffer @ 0x905b7a0] w:1280 h:720 pixfmt:yuv420p [movie @ 0x90527e0] seek_point:0 format_name:(null) file_name:logo2.png stream_index:0 [overlay @ 0x9053080] auto-inserting filter 'auto-inserted scaler 0' between the filter 'Parsed filter 0 movie' and the filter 'Parsed filter 1 overlay' [scale @ 0x9054ba0] w:144 h:144 fmt:bgra -> w:144 h:144 fmt:yuva420p flags:0x4 [overlay @ 0x9053080] main w:1280 h:720 fmt:yuv420p overlay x:568 y:288 w:144 h:144 fmt:yuva420p [overlay @ 0x9053080] main_tb:1/1000000 overlay_tb:1/25 -> tb:1/1000000 exact:1 Output #0, mov, to 'outputvideo3.mov': Metadata: encoder : Lavf53.21.0 Stream #0.0: Video: mpeg4, yuv420p, 1280x720 [PAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 50 tbn, 50 tbc Stream #0.1: Audio: libvo_aacenc, 48000 Hz, 2 channels, s16, 200 kb/s Stream mapping: Stream #0.0 -> #0.0 Stream #0.1 -> #0.1 Press ctrl-c to stop encoding frame= 1001 fps=137 q=31.0 Lsize= 3668kB time=20.02 bitrate=1501.1kbits/s video:3159kB audio:492kB global headers:0kB muxing overhead 0.460112% hussan@ubuntu:~/Documents/testvideo$ ffmpeg –i faded.mov -vf "movie=logo2.png [watermark]; [in][watermark] overlay=(main_w-overlay_w-10)/2:(main_h-overlay_h-10)/2 [out]" outputvideo3.mov ffmpeg version 0.8.4-4:0.8.4-0ubuntu0.12.04.1, Copyright (c) 2000-2012 the Libav developers built on Nov 6 2012 16:50:25 with gcc 4.6.3 *** THIS PROGRAM IS DEPRECATED *** This program is only provided for compatibility and will be removed in a future release. Please use avconv instead. Unable to find a suitable output format for '–i'
If anyone has any ideas that would be greatly appreciated!
-
ffmpeg overlay size
8 décembre 2012, par PinkieI have the following ffmpeg command which puts an overlay image over the video. After ffmpeg encoding is done the overlay image appears too big, bigger then it's actual size. How do i control width and height dimensions for the overlay image.
ffmpeg -i 1.wmv -s 640x360 -f mp4 -b 800k -acodec libfaac -ab 64k -vf "movie=0:png:dollar.png [wm];[in][wm] overlay=0:0:1 [out]" out.mp4
-
FFmpeg Fade Filter, Suitable output format error
7 décembre 2012, par John DoeI am trying to use the fade-in filter with ffmpeg, using the following command.
ffmpeg -i 2.mp4 "fade=in:0:30" output.mp4
However, I get the following error:
Unable to find a suitable output format for 'fade=in:0:30'
I have checked the ffmpeg filters and the fade filter is installed correctly.
Please could someone let me know how to proceed.
-
Drupal 7 audioconverter module failed - libavcodec52 - which codec for Debian squeeze ?
7 décembre 2012, par MeggyI am using the audioconverter module with the audiorecorderfield module in Drupal 7. Though it was working previously, I just recently noticed that the audioconverter module has stopped converting wav files to mp3. Here's the error in my logs;
MESSAGE: executing: /usr/bin/ffmpeg -i /var/aegir/platforms/drupal-7.16/sites/default/files/1354856044.wav /var/aegir/platforms/drupal-7.16/sites/default/files/1354856044.wav.mp3 MESSAGE: Audio conversion failed. FFMPEG reported the following output: FFmpeg version SVN-r0.5.9-4:0.5.9-1, Copyright (c) 2000-2009 Fabrice Bellard, et al. configuration: --extra-version=4:0.5.9-1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libdirac --enable-libgsm --enable-libopenjpeg --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libfaad --enable-libdc1394 --enable-shared --disable-static libavutil 49.15. 0 / 49.15. 0 libavcodec 52.20. 1 / 52.20. 1 libavformat 52.31. 0 / 52.31. 0 libavdevice 52. 1. 0 / 52. 1. 0 libavfilter 0. 4. 0 / 0. 4. 0 libswscale 0. 7. 1 / 0. 7. 1 libpostproc 51. 2. 0 / 51. 2. 0 built on Jun 10 2012 10:30:14, gcc: 4.4.5 Input #0, wav, from '/var/aegir/platforms/drupal-7.16/sites/default/files/1354857172.wav': Duration: 00:00:27.50, bitrate: 178 kb/s Stream #0.0: Audio: adpcm_ima_wav, 44100 Hz, mono, s16, 178 kb/s Output #0, mp3, to '/var/aegir/platforms/drupal-7.16/sites/default/files/1354857172.wav.mp3': Stream #0.0: Audio: 0x0000, 44100 Hz, mono, s16, 64 kb/s Stream mapping: Stream #0.0 -> #0.0 Unsupported codec for output stream #0.0 SEVERITY: error MESSAGE: converted file is an empty file.
It seems similar to the fixed issue posted by tinny here http://drupal.org/node/1818308 but I have libavcodec52 installed and I'm still getting these errors.
I can see the wav file is created by the audiorecorder module but the audioconverter module is failing on the conversion.
Does anyone know which codec I should use in Debian 6 Squeeze?