Hi, In the documentation it mentions that libavfilter is the replacement for vhook. http://ffmpeg.mplayerhq.hu/hooks.html Are there any examples or documentation how to use this? Specifically, I would like to overlay some PNG images over some videos I have. Thanks, Josh
Hi, Josh Joy said:
Hi,
In the documentation it mentions that libavfilter is the replacement for vhook. http://ffmpeg.mplayerhq.hu/hooks.html
Are there any examples or documentation how to use this? Specifically, I would like to overlay some PNG images over some videos I have.
Examples are few, and mostly embedded in the source code. Start with downloading the source, and reading the README: svn checkout svn://svn.mplayerhq.hu/soc/libavfilter vsrc_movie.c has an example of the command to overlay a movie on top of another. Regards, V?ctor
On Thu, Oct 30, 2008 at 4:46 PM, V?ctor Paesa <wzrlpy at arsystel.com> wrote:
Hi,
Josh Joy said:
Hi,
In the documentation it mentions that libavfilter is the replacement for vhook. http://ffmpeg.mplayerhq.hu/hooks.html
Are there any examples or documentation how to use this? Specifically, I would like to overlay some PNG images over some videos I have.
Examples are few, and mostly embedded in the source code. Start with downloading the source, and reading the README: svn checkout svn://svn.mplayerhq.hu/soc/libavfilter
vsrc_movie.c has an example of the command to overlay a movie on top of another.
Regards, V?ctor
Is there a specific way I need to compile ffmpeg? Also, in the command to do overlay video, how exactly do I specify the second video to overlay? ffmpeg -i input.mp4 -vfilters "(in)setpts=PTS-STARTPTS,(T1)overlay=16:16(out);movie=3200000:mp4:input.mp4,scale=180:144,setpts=PTS-STARTPTS(T1)" -y out.mp4 FFmpeg version SVN-r14529, Copyright (c) 2000-2008 Fabrice Bellard, et al. configuration: --enable-gpl --enable-nonfree --enable-libamr-nb --enable-libamr-wb --enable-postproc --enable-libmp3lame --enable-swscale --enable-avfilter-lavf --enable-pthreads --enable-libfaac --enable-libfaad --enable-memalign-hack --enable-libx264 --extra-ldflags=-static libavutil version: 49.7.0 libavcodec version: 51.62.0 libavformat version: 52.18.0 libavdevice version: 52.0.0 built on Oct 30 2008 14:27:59, gcc: 4.2.4 (Ubuntu 4.2.4-1ubuntu3) [mov,mp4,m4a,3gp,3g2,mj2 @ 0x899b920]edit list not starting at 0, a/v desync might occur, patch welcome Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input.mp4': Duration: 00:02:32.81, start: 0.000000, bitrate: 10788 kb/s Stream #0.0(eng): Audio: libfaad, 44100 Hz, stereo, s16 Stream #0.1(eng): Video: h264, yuv420p, 768x576, 25.00 tb(r) Stream #0.2(eng): Data: rtp / 0x20707472 Stream #0.3(eng): Data: rtp / 0x20707472 ffmpeg: unrecognized option '-vfilters' Thanks, Josh
Is there a specific way I need to compile ffmpeg? Duh, I need to do --enable-avfilter
Also, in the command to do overlay video, how exactly do I specify the second video to overlay? ffmpeg -i input.mp4 -vfilters "(in)setpts=PTS-STARTPTS,(T1)
overlay=16:16(out);movie=3200000:mp4:input.mp4,scale=180:144,setpts=PTS-STARTPTS(T1)" -y out.mp4
I'm still uncertain how to specify in the command above? Thanks, Josh On Thu, Oct 30, 2008 at 5:32 PM, Josh Joy <joshjdevl at gmail.com> wrote:
On Thu, Oct 30, 2008 at 4:46 PM, V?ctor Paesa <wzrlpy at arsystel.com> wrote:
Hi,
Josh Joy said:
Hi,
In the documentation it mentions that libavfilter is the replacement for vhook. http://ffmpeg.mplayerhq.hu/hooks.html
Are there any examples or documentation how to use this? Specifically, I would like to overlay some PNG images over some videos I have.
Examples are few, and mostly embedded in the source code. Start with downloading the source, and reading the README: svn checkout svn://svn.mplayerhq.hu/soc/libavfilter
vsrc_movie.c has an example of the command to overlay a movie on top of another.
Regards, V?ctor
Is there a specific way I need to compile ffmpeg? Also, in the command to do overlay video, how exactly do I specify the second video to overlay?
ffmpeg -i input.mp4 -vfilters "(in)setpts=PTS-STARTPTS,(T1)overlay=16:16(out);movie=3200000:mp4:input.mp4,scale=180:144,setpts=PTS-STARTPTS(T1)" -y out.mp4 FFmpeg version SVN-r14529, Copyright (c) 2000-2008 Fabrice Bellard, et al. configuration: --enable-gpl --enable-nonfree --enable-libamr-nb --enable-libamr-wb --enable-postproc --enable-libmp3lame --enable-swscale --enable-avfilter-lavf --enable-pthreads --enable-libfaac --enable-libfaad --enable-memalign-hack --enable-libx264 --extra-ldflags=-static libavutil version: 49.7.0 libavcodec version: 51.62.0 libavformat version: 52.18.0 libavdevice version: 52.0.0 built on Oct 30 2008 14:27:59, gcc: 4.2.4 (Ubuntu 4.2.4-1ubuntu3) [mov,mp4,m4a,3gp,3g2,mj2 @ 0x899b920]edit list not starting at 0, a/v desync might occur, patch welcome Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input.mp4': Duration: 00:02:32.81, start: 0.000000, bitrate: 10788 kb/s Stream #0.0(eng): Audio: libfaad, 44100 Hz, stereo, s16 Stream #0.1(eng): Video: h264, yuv420p, 768x576, 25.00 tb(r) Stream #0.2(eng): Data: rtp / 0x20707472 Stream #0.3(eng): Data: rtp / 0x20707472 ffmpeg: unrecognized option '-vfilters'
Thanks, Josh
On Thu, Oct 30, 2008 at 5:35 PM, Josh Joy <joshjdevl at gmail.com> wrote:
Is there a specific way I need to compile ffmpeg? Duh, I need to do --enable-avfilter
Also, in the command to do overlay video, how exactly do I specify the second video to overlay? ffmpeg -i input.mp4 -vfilters "(in)setpts=PTS-STARTPTS,(T1)
overlay=16:16(out);movie=3200000:mp4:input.mp4,scale=180:144,setpts=PTS-STARTPTS(T1)" -y out.mp4
I'm still uncertain how to specify in the command above?
Thanks, Josh
On Thu, Oct 30, 2008 at 5:32 PM, Josh Joy <joshjdevl at gmail.com> wrote:
On Thu, Oct 30, 2008 at 4:46 PM, V?ctor Paesa <wzrlpy at arsystel.com>wrote:
Hi,
Josh Joy said:
Hi,
In the documentation it mentions that libavfilter is the replacement for vhook. http://ffmpeg.mplayerhq.hu/hooks.html
Are there any examples or documentation how to use this? Specifically, I would like to overlay some PNG images over some videos I have.
Examples are few, and mostly embedded in the source code. Start with downloading the source, and reading the README: svn checkout svn://svn.mplayerhq.hu/soc/libavfilter
vsrc_movie.c has an example of the command to overlay a movie on top of another.
Regards, V?ctor
Is there a specific way I need to compile ffmpeg? Also, in the command to do overlay video, how exactly do I specify the second video to overlay?
ffmpeg -i input.mp4 -vfilters "(in)setpts=PTS-STARTPTS,(T1)overlay=16:16(out);movie=3200000:mp4:input.mp4,scale=180:144,setpts=PTS-STARTPTS(T1)" -y out.mp4 FFmpeg version SVN-r14529, Copyright (c) 2000-2008 Fabrice Bellard, et al. configuration: --enable-gpl --enable-nonfree --enable-libamr-nb --enable-libamr-wb --enable-postproc --enable-libmp3lame --enable-swscale --enable-avfilter-lavf --enable-pthreads --enable-libfaac --enable-libfaad --enable-memalign-hack --enable-libx264 --extra-ldflags=-static libavutil version: 49.7.0 libavcodec version: 51.62.0 libavformat version: 52.18.0 libavdevice version: 52.0.0 built on Oct 30 2008 14:27:59, gcc: 4.2.4 (Ubuntu 4.2.4-1ubuntu3) [mov,mp4,m4a,3gp,3g2,mj2 @ 0x899b920]edit list not starting at 0, a/v desync might occur, patch welcome Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input.mp4': Duration: 00:02:32.81, start: 0.000000, bitrate: 10788 kb/s Stream #0.0(eng): Audio: libfaad, 44100 Hz, stereo, s16 Stream #0.1(eng): Video: h264, yuv420p, 768x576, 25.00 tb(r) Stream #0.2(eng): Data: rtp / 0x20707472 Stream #0.3(eng): Data: rtp / 0x20707472 ffmpeg: unrecognized option '-vfilters'
Thanks, Josh
Looks like enabling avfilter didn't do the trick. Still am receiving the error, ffmpeg: unrecognized option '-vfilters' ffmpeg -i input.mp4 -vfilters "(in)setpts=PTS-STARTPTS,(T1)overlay=16:16(out);movie=3200000:mp4:input.mp4,scale=180:144,setpts=PTS-STARTPTS(T1)" -y out.mp4 FFmpeg version SVN-r14529, Copyright (c) 2000-2008 Fabrice Bellard, et al. configuration: --enable-gpl --enable-nonfree --enable-libamr-nb --enable-libamr-wb --enable-postproc --enable-libmp3lame --enable-swscale --enable-avfilter-lavf --enable-pthreads --enable-libfaac --enable-libfaad --enable-memalign-hack --enable-avfilter --enable-libx264 --extra-ldflags=-static libavutil version: 49.7.0 libavcodec version: 51.62.0 libavformat version: 52.18.0 libavdevice version: 52.0.0 libavfilter version: 0.0.0 built on Oct 30 2008 17:39:45, gcc: 4.2.4 (Ubuntu 4.2.4-1ubuntu3) [mov,mp4,m4a,3gp,3g2,mj2 @ 0x899b920]edit list not starting at 0, a/v desync might occur, patch welcome Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input.mp4': Duration: 00:02:32.81, start: 0.000000, bitrate: 10788 kb/s Stream #0.0(eng): Audio: libfaad, 44100 Hz, stereo, s16 Stream #0.1(eng): Video: h264, yuv420p, 768x576, 25.00 tb(r) Stream #0.2(eng): Data: rtp / 0x20707472 Stream #0.3(eng): Data: rtp / 0x20707472 ffmpeg: unrecognized option '-vfilters'
On date Thursday 2008-10-30 17:48:25 -0500, Josh Joy encoded: [...]
Looks like enabling avfilter didn't do the trick. Still am receiving the error, ffmpeg: unrecognized option '-vfilters'
ffmpeg -i input.mp4 -vfilters "(in)setpts=PTS-STARTPTS,(T1)overlay=16:16(out);movie=3200000:mp4:input.mp4,scale=180:144,setpts=PTS-STARTPTS(T1)" -y out.mp4 FFmpeg version SVN-r14529, Copyright (c) 2000-2008 Fabrice Bellard, et al. ^^^^^^^^^^
This is not the ffmpeg included in libavfilter-soc, specify the complete path when invoking it. [...] Regards. -- ffmpeg-user random tip #0 Please try to use a reasonably recent version of ffmpeg before asking questions to ffmpeg-user: older versions aren't supported here!
On Thu, Oct 30, 2008 at 6:41 PM, Stefano Sabatini < stefano.sabatini-lala at poste.it> wrote:
On date Thursday 2008-10-30 17:48:25 -0500, Josh Joy encoded: [...]
Looks like enabling avfilter didn't do the trick. Still am receiving the error, ffmpeg: unrecognized option '-vfilters'
ffmpeg -i input.mp4 -vfilters
"(in)setpts=PTS-STARTPTS,(T1)overlay=16:16(out);movie=3200000:mp4:input.mp4,scale=180:144,setpts=PTS-STARTPTS(T1)"
-y out.mp4 FFmpeg version SVN-r14529, Copyright (c) 2000-2008 Fabrice Bellard, et al. ^^^^^^^^^^
This is not the ffmpeg included in libavfilter-soc, specify the complete path when invoking it.
[...]
Regards. -- ffmpeg-user random tip #0 Please try to use a reasonably recent version of ffmpeg before asking questions to ffmpeg-user: older versions aren't supported here! _______________________________________________
Ok kewl, I got past that issue by compiling SOC. Now back to my original question :) What's the command to run this? I tried tweaking what was in the readme in the file "vsrc_movie.c" here is my command and output ffmpeg -i input.mp4 -vfilters "(in)setpts=PTS-STARTPTS,(T1)overlay=16:16(out);movie=3200000:mp4:input.mp4,scale=180:144,setpts=PTS-STARTPTS(T1)" -y out.mp4 FFmpeg version SVN-r15585, Copyright (c) 2000-2008 Fabrice Bellard, et al. configuration: --enable-gpl --enable-nonfree --enable-libamr-nb --enable-libamr-wb --enable-postproc --enable-libmp3lame --enable-swscale --enable-avfilter-lavf --enable-pthreads --enable-libfaac --enable-libfaad --enable-memalign-hack --enable-avfilter --enable-libx264 --extra-ldflags=-static libavutil 49.11. 0 / 49.11. 0 libavcodec 52. 0. 0 / 52. 0. 0 libavformat 52.22. 1 / 52.22. 1 libavdevice 52. 1. 0 / 52. 1. 0 libavfilter 0. 1. 0 / 0. 1. 0 libswscale 0. 6. 1 / 0. 6. 1 libpostproc 51. 2. 0 / 51. 2. 0 built on Oct 30 2008 19:21:44, gcc: 4.2.4 (Ubuntu 4.2.4-1ubuntu3) [mov,mp4,m4a,3gp,3g2,mj2 @ 0x8a730d0]edit list not starting at 0, a/v desync might occur, patch welcome Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input.mp4': Duration: 00:02:32.81, start: 0.000000, bitrate: 10788 kb/s Stream #0.0(eng): Audio: aac, 44100 Hz, stereo, s16 Stream #0.1(eng): Video: h264, yuv420p, 768x576, 25.00 tb(r) Stream #0.2(eng): Data: rtp / 0x20707472 Stream #0.3(eng): Data: rtp / 0x20707472 no such filter: '(in)setpts' Error opening filters!
Hi, Josh Joy said:
Ok kewl, I got past that issue by compiling SOC. Now back to my original question :)
What's the command to run this? I tried tweaking what was in the readme in the file "vsrc_movie.c"
here is my command and output
ffmpeg -i input.mp4 -vfilters "(in)setpts=PTS-STARTPTS,(T1)overlay=16:16(out);movie=3200000:mp4:input.mp4,scale=180:144,setpts=PTS-STARTPTS(T1)" -y out.mp4 FFmpeg version SVN-r15585, Copyright (c) 2000-2008 Fabrice Bellard, et al. configuration: --enable-gpl --enable-nonfree --enable-libamr-nb --enable-libamr-wb --enable-postproc --enable-libmp3lame --enable-swscale --enable-avfilter-lavf --enable-pthreads --enable-libfaac --enable-libfaad --enable-memalign-hack --enable-avfilter --enable-libx264 --extra-ldflags=-static libavutil 49.11. 0 / 49.11. 0 libavcodec 52. 0. 0 / 52. 0. 0 libavformat 52.22. 1 / 52.22. 1 libavdevice 52. 1. 0 / 52. 1. 0 libavfilter 0. 1. 0 / 0. 1. 0 libswscale 0. 6. 1 / 0. 6. 1 libpostproc 51. 2. 0 / 51. 2. 0 built on Oct 30 2008 19:21:44, gcc: 4.2.4 (Ubuntu 4.2.4-1ubuntu3) [mov,mp4,m4a,3gp,3g2,mj2 @ 0x8a730d0]edit list not starting at 0, a/v desync might occur, patch welcome Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input.mp4': Duration: 00:02:32.81, start: 0.000000, bitrate: 10788 kb/s Stream #0.0(eng): Audio: aac, 44100 Hz, stereo, s16 Stream #0.1(eng): Video: h264, yuv420p, 768x576, 25.00 tb(r) Stream #0.2(eng): Data: rtp / 0x20707472 Stream #0.3(eng): Data: rtp / 0x20707472 no such filter: '(in)setpts' Error opening filters!
I reproduced your issue. And the example in README fails too: $ ./ffmpeg -i input.avi -s 240x320 -vfilters "(in)split (T1), fifo, (T2)overlay='0:240'(out); (T1)fifo, crop='0:0:-1:240', vflip(T2)" out.avi FFmpeg version SVN-r15759, Copyright (c) 2000-2008 Fabrice Bellard, et al. configuration: --enable-static --disable-shared --enable-gpl --enable-swscale --enable-avfilter --enable-avfilter-lavf --enable-pthreads --enable-avisynth --enable-libfaac --enable-libfaad --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libtheora --enable-libvorbis --cpu=prescott --build-suffix=-cygstatic --extra-cflags=-DX_DISPLAY_MISSING -I/usr/local/include --extra-ldflags=-L/usr/local/lib --extra-libs=-l llrint libavutil 49.12. 0 / 49.12. 0 libavcodec 52. 1. 0 / 52. 1. 0 libavformat 52.23. 1 / 52.23. 1 libavdevice 52. 1. 0 / 52. 1. 0 libavfilter 0. 1. 0 / 0. 1. 0 libswscale 0. 6. 1 / 0. 6. 1 built on Oct 31 2008 18:42:37, gcc: 4.2.3 Input #0, avi, from 'input.avi': Duration: 00:00:20.28, start: 0.000000, bitrate: 30349 kb/s Stream #0.0: Video: dvvideo, yuv420p, 720x576, 25.00 tb(r) Stream #0.1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s no such filter: '(in)split' Error opening filters! I'd say it is a bug, but not sure if in the documentation of command syntax or in the code. Please open a case in our bug tracker: http://ffmpeg.mplayerhq.hu/bugreports.html Regards, V?ctor
Hi,
Josh Joy said:
Ok kewl, I got past that issue by compiling SOC. Now back to my original question :)
What's the command to run this? I tried tweaking what was in the readme in the file "vsrc_movie.c"
here is my command and output
ffmpeg -i input.mp4 -vfilters "(in)setpts=PTS-STARTPTS,(T1)overlay=16:16(out);movie=3200000:mp4:input.mp4,scale=180:144,setpts=PTS-STARTPTS(T1)" -y out.mp4 FFmpeg version SVN-r15585, Copyright (c) 2000-2008 Fabrice Bellard, et al. configuration: --enable-gpl --enable-nonfree --enable-libamr-nb --enable-libamr-wb --enable-postproc --enable-libmp3lame --enable-swscale --enable-avfilter-lavf --enable-pthreads --enable-libfaac --enable-libfaad --enable-memalign-hack --enable-avfilter --enable-libx264 --extra-ldflags=-static libavutil 49.11. 0 / 49.11. 0 libavcodec 52. 0. 0 / 52. 0. 0 libavformat 52.22. 1 / 52.22. 1 libavdevice 52. 1. 0 / 52. 1. 0 libavfilter 0. 1. 0 / 0. 1. 0 libswscale 0. 6. 1 / 0. 6. 1 libpostproc 51. 2. 0 / 51. 2. 0 built on Oct 30 2008 19:21:44, gcc: 4.2.4 (Ubuntu 4.2.4-1ubuntu3) [mov,mp4,m4a,3gp,3g2,mj2 @ 0x8a730d0]edit list not starting at 0, a/v desync might occur, patch welcome Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input.mp4': Duration: 00:02:32.81, start: 0.000000, bitrate: 10788 kb/s Stream #0.0(eng): Audio: aac, 44100 Hz, stereo, s16 Stream #0.1(eng): Video: h264, yuv420p, 768x576, 25.00 tb(r) Stream #0.2(eng): Data: rtp / 0x20707472 Stream #0.3(eng): Data: rtp / 0x20707472 no such filter: '(in)setpts' Error opening filters!
I reproduced your issue. And the example in README fails too:
$ ./ffmpeg -i input.avi -s 240x320 -vfilters "(in)split (T1), fifo, (T2)overlay='0:240'(out); (T1)fifo, crop='0:0:-1:240', vflip(T2)" out.avi FFmpeg version SVN-r15759, Copyright (c) 2000-2008 Fabrice Bellard, et al. configuration: --enable-static --disable-shared --enable-gpl --enable-swscale --enable-avfilter --enable-avfilter-lavf --enable-pthreads --enable-avisynth --enable-libfaac --enable-libfaad --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libtheora --enable-libvorbis --cpu=prescott --build-suffix=-cygstatic --extra-cflags=-DX_DISPLAY_MISSING -I/usr/local/include --extra-ldflags=-L/usr/local/lib --extra-libs=-l llrint libavutil 49.12. 0 / 49.12. 0 libavcodec 52. 1. 0 / 52. 1. 0 libavformat 52.23. 1 / 52.23. 1 libavdevice 52. 1. 0 / 52. 1. 0 libavfilter 0. 1. 0 / 0. 1. 0 libswscale 0. 6. 1 / 0. 6. 1 built on Oct 31 2008 18:42:37, gcc: 4.2.3 Input #0, avi, from 'input.avi': Duration: 00:00:20.28, start: 0.000000, bitrate: 30349 kb/s Stream #0.0: Video: dvvideo, yuv420p, 720x576, 25.00 tb(r) Stream #0.1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s no such filter: '(in)split' Error opening filters!
I'd say it is a bug, but not sure if in the documentation of command syntax or in the code.
Please open a case in our bug tracker: http://ffmpeg.mplayerhq.hu/bugreports.html
I believe the issue is bad command syntax docs: please try to use square brackets where you used parentheses. Regards, V?ctor
I believe the issue is bad command syntax docs: please try to use square brackets where you used parentheses.
Regards, V?ctor
Ok, cool. Something like the below command executes ffmpeg -i input.mp4 -vfilters "[in]setpts=PTS-STARTPTS,[T1]overlay=16:16[out];movie=3200000:mp4:input2.mp4,scale=180:144,setpts=PTS-STARTPTS[T1]" -y out.mp4 What exactly does it mean though? That input2.mp4 will overlay input.mp4? What is happening, is that out.mp4 is basically input2.mp4 in the top left corner of the video and the remaining background is a green screen. I'm basically trying to overlay input2.mp4 over input.mp4 FFmpeg version SVN-r15585, Copyright (c) 2000-2008 Fabrice Bellard, et al. configuration: --enable-gpl --enable-nonfree --enable-libamr-nb --enable-libamr-wb --enable-postproc --enable-libmp3lame --enable-swscale --enable-avfilter-lavf --enable-pthreads --enable-libfaac --enable-libfaad --enable-memalign-hack --enable-avfilter --enable-libx264 --extra-ldflags=-static libavutil 49.11. 0 / 49.11. 0 libavcodec 52. 0. 0 / 52. 0. 0 libavformat 52.22. 1 / 52.22. 1 libavdevice 52. 1. 0 / 52. 1. 0 libavfilter 0. 1. 0 / 0. 1. 0 libswscale 0. 6. 1 / 0. 6. 1 libpostproc 51. 2. 0 / 51. 2. 0 built on Oct 30 2008 19:21:44, gcc: 4.2.4 (Ubuntu 4.2.4-1ubuntu3) [mov,mp4,m4a,3gp,3g2,mj2 @ 0x8a730d0]edit list not starting at 0, a/v desync might occur, patch welcome Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input.mp4': Duration: 00:02:32.81, start: 0.000000, bitrate: 10788 kb/s Stream #0.0(eng): Audio: aac, 44100 Hz, stereo, s16 Stream #0.1(eng): Video: h264, yuv420p, 768x576, 25.00 tb(r) Stream #0.2(eng): Data: rtp / 0x20707472 Stream #0.3(eng): Data: rtp / 0x20707472 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x8ae2a50]edit list not starting at 0, a/v desync might occur, patch welcome Output #0, mp4, to 'out.mp4': Stream #0.0(eng): Video: mpeg4, yuv420p, 768x576, q=2-31, 200 kb/s, 25.00 tb(c) Stream #0.1(eng): Audio: libfaac, 44100 Hz, stereo, s16, 64 kb/s Stream mapping: Stream #0.1 -> #0.0 Stream #0.0 -> #0.1 Press [q] to stop encoding [buffer @ 0x8ad9ea0]request_frame() called with no available frame! Thanks, Josh
Hi, Josh Joy said:
I believe the issue is bad command syntax docs: please try to use square brackets where you used parentheses.
Ok, cool. Something like the below command executes ffmpeg -i input.mp4 -vfilters "[in]setpts=PTS-STARTPTS,[T1]overlay=16:16[out];movie=3200000:mp4:input2.mp4,scale=180:144,setpts=PTS-STARTPTS[T1]" -y out.mp4
What exactly does it mean though? That input2.mp4 will overlay input.mp4?
That's the expected meaning.
What is happening, is that out.mp4 is basically input2.mp4 in the top left corner of the video and the remaining background is a green screen.
Very true. And this behavior qualifies as a bug (in code). Please open a case in our beloved bug tracker (it is up again). Not sure if this may help you, but resizing (to other than 768x576) avoids the green background.
I'm basically trying to overlay input2.mp4 over input.mp4
FFmpeg version SVN-r15585, Copyright (c) 2000-2008 Fabrice Bellard, et al. configuration: --enable-gpl --enable-nonfree --enable-libamr-nb --enable-libamr-wb --enable-postproc --enable-libmp3lame --enable-swscale --enable-avfilter-lavf --enable-pthreads --enable-libfaac --enable-libfaad --enable-memalign-hack --enable-avfilter --enable-libx264 --extra-ldflags=-static libavutil 49.11. 0 / 49.11. 0 libavcodec 52. 0. 0 / 52. 0. 0 libavformat 52.22. 1 / 52.22. 1 libavdevice 52. 1. 0 / 52. 1. 0 libavfilter 0. 1. 0 / 0. 1. 0 libswscale 0. 6. 1 / 0. 6. 1 libpostproc 51. 2. 0 / 51. 2. 0 built on Oct 30 2008 19:21:44, gcc: 4.2.4 (Ubuntu 4.2.4-1ubuntu3) [mov,mp4,m4a,3gp,3g2,mj2 @ 0x8a730d0]edit list not starting at 0, a/v desync might occur, patch welcome Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input.mp4': Duration: 00:02:32.81, start: 0.000000, bitrate: 10788 kb/s Stream #0.0(eng): Audio: aac, 44100 Hz, stereo, s16 Stream #0.1(eng): Video: h264, yuv420p, 768x576, 25.00 tb(r) Stream #0.2(eng): Data: rtp / 0x20707472 Stream #0.3(eng): Data: rtp / 0x20707472 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x8ae2a50]edit list not starting at 0, a/v desync might occur, patch welcome Output #0, mp4, to 'out.mp4': Stream #0.0(eng): Video: mpeg4, yuv420p, 768x576, q=2-31, 200 kb/s, 25.00 tb(c) Stream #0.1(eng): Audio: libfaac, 44100 Hz, stereo, s16, 64 kb/s Stream mapping: Stream #0.1 -> #0.0 Stream #0.0 -> #0.1 Press [q] to stop encoding [buffer @ 0x8ad9ea0]request_frame() called with no available frame!
Regards, V?ctor
participants (3)
-
joshjdevl@gmail.com -
stefano.sabatini-lala@poste.it -
wzrlpy@arsystel.com