Re: [FFmpeg-user] overlay with video offset not starting audio with same offset
I ended up taking this route. Worked like a charm. Create [s1]: aevalsrc=0:d=N[s1], where N is the number of seconds (to match video offset (itsoffset)) Concat [s1] and overlayvideo¹s audio (where [s1] is placed before [1:a]): [s1][1:a]concat=n=2:v=0:a=1[ovrla]. Amix audio from basevideo ([0:a]) with [ovrla] Ffmpeg -y -i basevideo.mp4 -itsoffset 4 -i overlayvideo.mov -filter_complex "aevalsrc=0:d=4[s1];[s1][1:a]concat=n=2:v=0:a=1[ovrla];[1:v]scale=1280:720[ ovrl];[0:v][ovrl]overlay=eof_action=pass[outv];[0:a][ovrla]amix[outa]" -map [outv] -map [outa] -c:v mpeg4 -strict experimental -qscale:v 10 finalvideo.mp4 On 8/30/15, 12:48 PM, "ffmpeg-user on behalf of Chad Horton" wrote: >Hi, > >I need it to offset the audio of the overlay to match where I offset the >video of the overlay. The audio of the underlay video >(output_2015-08-29_12-53-21.mp4) should not be moved. > > > >-Original Message- >From: ffmpeg-user [mailto:ffmpeg-user-boun...@ffmpeg.org] On Behalf Of >Paul B Mahol >Sent: Sunday, August 30, 2015 12:46 AM >To: FFmpeg user questions >Subject: Re: [FFmpeg-user] overlay with video offset not starting audio >with same offset > >On 8/30/15, Chad Horton wrote: >> Thanks. >> >> Playing around with atrim and while the video processes, not only does >> the overlay video freeze in places (it^1s choppy), the audio is also >>off still. >> But I don^1t know if it^1s just an artifact of the video not >> processing correctly. >> >> I did notice that if I execute with offset 00:00:00.000 and without >> using the atrim filter, the video processes, the overlay plays cleanly. >> >> The difference in output when I execute with the itsoffset and atrim >> is in the version with itsoffset > 0 and matching atrim, there^1s what >> appears to be warnings - for example, "[Parsed_overlay_1 @ >> 0x7fef18c21000] [framesync @ 0x7fef1900b028] Buffer queue overflow, >>dropping." > >Shouldn't you atrim [0:a] and not [1:a] ? >> >> Ffmpeg command and full output provided below. >> >> >> ffmpeg -y -i output_2015-08-29_12-53-21.mp4 -itsoffset 2 -i >> animations/chimp-01.mov -filter_complex >> "[1:v]scale=1280:720[ovrl];[0v][ovrl]overlay=eof_action=pass[outv];[1: >> a]atr im=2[1a];[0:a][1a]amix[outa]" -map [outv] -map [outa] -c:v mpeg4 >> -strict experimental -qscale:v 10 final_video_temp.mp4 >> >> >> ffmpeg version 2.6.2-tessus Copyright (c) 2000-2015 the FFmpeg >>developers >> built with Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM >>3.5svn) >> configuration: --cc=/usr/bin/clang >> --prefix=/Users/helmutt/data/ext/ffmpeg/sw --as=yasm >> --extra-version=tessus --disable-shared --enable-static >> --disable-ffplay --enable-gpl --enable-pthreads --enable-postproc >> --enable-libmp3lame --enable-libtheora --enable-libvorbis >> --enable-libx264 --enable-libx265 --enable-libxvid --enable-libspeex >> --enable-bzlib --enable-zlib --enable-libopencore-amrnb >> --enable-libopencore-amrwb --enable-libxavs --enable-libsoxr >> --enable-libwavpack --enable-version3 --enable-libvo-aacenc >> --enable-libvo-amrwbenc --enable-libvpx --enable-libgsm >> --enable-libopus --enable-libmodplug --enable-fontconfig >> --enable-libfreetype --enable-libass --enable-libbluray >> --enable-filters --disable-indev=qtkit --disable-indev=x11grab_xcb >>--enable-runtime-cpudetect >> libavutil 54. 20.100 / 54. 20.100 >> libavcodec 56. 26.100 / 56. 26.100 >> libavformat56. 25.101 / 56. 25.101 >> libavdevice56. 4.100 / 56. 4.100 >> libavfilter 5. 11.102 / 5. 11.102 >> libswscale 3. 1.101 / 3. 1.101 >> libswresample 1. 1.100 / 1. 1.100 >> libpostproc53. 3.100 / 53. 3.100 >> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from >>'output_2015-08-29_12-53-21.mp4': >> Metadata: >> major_brand : mp42 >> minor_version : 0 >> compatible_brands: isommp42 >> creation_time : 2015-08-29 19:53:36 >> Duration: 00:00:13.19, start: 0.00, bitrate: 10149 kb/s >> Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, >> 1280x720, 10004 kb/s, SAR 1:1 DAR 16:9, 29.98 fps, 30.02 tbr, 90k tbn, >> 180k tbc (default) >> Metadata: >> creation_time : 2015-08-29 19:53:36 >> handler_name: VideoHandle >> encoder : MOTO >> Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, >> stereo, fltp, 128 kb/s (default) >> Metadata: >> creation_time : 2015-08-29 19:53:36 >>
Re: [FFmpeg-user] overlay with video offset not starting audio with same offset
Hi, I need it to offset the audio of the overlay to match where I offset the video of the overlay. The audio of the underlay video (output_2015-08-29_12-53-21.mp4) should not be moved. -Original Message- From: ffmpeg-user [mailto:ffmpeg-user-boun...@ffmpeg.org] On Behalf Of Paul B Mahol Sent: Sunday, August 30, 2015 12:46 AM To: FFmpeg user questions Subject: Re: [FFmpeg-user] overlay with video offset not starting audio with same offset On 8/30/15, Chad Horton wrote: > Thanks. > > Playing around with atrim and while the video processes, not only does > the overlay video freeze in places (it^1s choppy), the audio is also off > still. > But I don^1t know if it^1s just an artifact of the video not > processing correctly. > > I did notice that if I execute with offset 00:00:00.000 and without > using the atrim filter, the video processes, the overlay plays cleanly. > > The difference in output when I execute with the itsoffset and atrim > is in the version with itsoffset > 0 and matching atrim, there^1s what > appears to be warnings - for example, "[Parsed_overlay_1 @ > 0x7fef18c21000] [framesync @ 0x7fef1900b028] Buffer queue overflow, dropping." Shouldn't you atrim [0:a] and not [1:a] ? > > Ffmpeg command and full output provided below. > > > ffmpeg -y -i output_2015-08-29_12-53-21.mp4 -itsoffset 2 -i > animations/chimp-01.mov -filter_complex > "[1:v]scale=1280:720[ovrl];[0v][ovrl]overlay=eof_action=pass[outv];[1: > a]atr im=2[1a];[0:a][1a]amix[outa]" -map [outv] -map [outa] -c:v mpeg4 > -strict experimental -qscale:v 10 final_video_temp.mp4 > > > ffmpeg version 2.6.2-tessus Copyright (c) 2000-2015 the FFmpeg developers > built with Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn) > configuration: --cc=/usr/bin/clang > --prefix=/Users/helmutt/data/ext/ffmpeg/sw --as=yasm > --extra-version=tessus --disable-shared --enable-static > --disable-ffplay --enable-gpl --enable-pthreads --enable-postproc > --enable-libmp3lame --enable-libtheora --enable-libvorbis > --enable-libx264 --enable-libx265 --enable-libxvid --enable-libspeex > --enable-bzlib --enable-zlib --enable-libopencore-amrnb > --enable-libopencore-amrwb --enable-libxavs --enable-libsoxr > --enable-libwavpack --enable-version3 --enable-libvo-aacenc > --enable-libvo-amrwbenc --enable-libvpx --enable-libgsm > --enable-libopus --enable-libmodplug --enable-fontconfig > --enable-libfreetype --enable-libass --enable-libbluray > --enable-filters --disable-indev=qtkit --disable-indev=x11grab_xcb > --enable-runtime-cpudetect > libavutil 54. 20.100 / 54. 20.100 > libavcodec 56. 26.100 / 56. 26.100 > libavformat56. 25.101 / 56. 25.101 > libavdevice56. 4.100 / 56. 4.100 > libavfilter 5. 11.102 / 5. 11.102 > libswscale 3. 1.101 / 3. 1.101 > libswresample 1. 1.100 / 1. 1.100 > libpostproc53. 3.100 / 53. 3.100 > Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'output_2015-08-29_12-53-21.mp4': > Metadata: > major_brand : mp42 > minor_version : 0 > compatible_brands: isommp42 > creation_time : 2015-08-29 19:53:36 > Duration: 00:00:13.19, start: 0.00, bitrate: 10149 kb/s > Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, > 1280x720, 10004 kb/s, SAR 1:1 DAR 16:9, 29.98 fps, 30.02 tbr, 90k tbn, > 180k tbc (default) > Metadata: > creation_time : 2015-08-29 19:53:36 > handler_name: VideoHandle > encoder : MOTO > Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, > stereo, fltp, 128 kb/s (default) > Metadata: > creation_time : 2015-08-29 19:53:36 > handler_name: SoundHandle > Guessed Channel Layout for Input Stream #1.1 : mono Input #1, > mov,mp4,m4a,3gp,3g2,mj2, from 'animations/chimp-01.mov': > Metadata: > major_brand : qt > minor_version : 537199360 > compatible_brands: qt > creation_time : 2013-02-16 01:09:15 > Duration: 00:00:07.67, start: 0.00, bitrate: 18997 kb/s > Stream #1:0(eng): Video: png (png / 0x20676E70), rgba, 640x360 > [SAR > 2834:2834 DAR 16:9], 18270 kb/s, 30 fps, 30 tbr, 30 tbn, 30 tbc (default) > Metadata: > creation_time : 2013-02-16 01:09:15 > handler_name: Apple Alias Data Handler > encoder : PNG > timecode: 00:00:00:00 > Stream #1:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 44100 Hz, > 1 channels, s16, 705 kb/s (default) > Metadata: > creation_time : 2013-02-16 01:09:15 > handler_name: Apple Alias Data Handler > timecode: 00:00:00:00 > Stream
Re: [FFmpeg-user] overlay with video offset not starting audio with same offset
or help [Parsed_overlay_1 @ 0x7fef18c21000] [framesync @ 0x7fef1900b028] Buffer queue overflow, dropping. Last message repeated 14 times [Parsed_overlay_1 @ 0x7fef18c21000] [framesync @ 0x7fef1900b028] Buffer queue overflow, dropping. Last message repeated 2 times [Parsed_overlay_1 @ 0x7fef18c21000] [framesync @ 0x7fef1900b028] Buffer queue overflow, dropping. Last message repeated 14 times [Parsed_overlay_1 @ 0x7fef18c21000] [framesync @ 0x7fef1900b028] Buffer queue overflow, dropping. Last message repeated 2 times frame= 396 fps=130 q=10.0 Lsize=4326kB time=00:00:13.19 bitrate=2686.7kbits/s video:4108kB audio:206kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.290611% On 8/29/15, 7:58 AM, "ffmpeg-user on behalf of Paul B Mahol" wrote: >On 8/29/15, Chad Horton wrote: >> I didn't provide my attempts because I was randomly throwing adelay and >>then >> atrim into my command and nothing worked. My hope is that someone >>could >> show me how to do it properly with my current command and adding in the >> atrim and/or adelay filter. > >This works for me: > >ffmpeg -i ~/matrixbench_mpeg2.mpg -itsoffset 00:00:20.000 -i >~/GoneNutty.avi -lavfi >"scale=640:512,vstack;[0:a]atrim=20[a],[1:a][a]amix" output.avi >___ >ffmpeg-user mailing list >ffmpeg-user@ffmpeg.org >http://ffmpeg.org/mailman/listinfo/ffmpeg-user ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] overlay with video offset not starting audio with same offset
I didn't provide my attempts because I was randomly throwing adelay and then atrim into my command and nothing worked. My hope is that someone could show me how to do it properly with my current command and adding in the atrim and/or adelay filter. > On Aug 29, 2015, at 4:55 AM, Moritz Barsnick wrote: > >> On Fri, Aug 28, 2015 at 23:03:10 +, Chad Horton wrote: >> I¹ve tried adding it in various places, each throwing errors. > > You're neither telling us what you tried nor what the errors were? > Good luck getting help. ;-) > > SCNR, > Moritz > > P.S.: I hadn't understood the original problem fully, so I haven't > delved into helping. > ___ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] overlay with video offset not starting audio with same offset
Hi. Thank you. I¹m having a difficult time determining where exactly I¹m supposed to add the adelay=2. I¹ve tried adding it in various places, each throwing errors. On 8/28/15, 2:58 PM, "ffmpeg-user on behalf of Paul B Mahol" wrote: >Dana 28. 8. 2015. 23:15 osoba "Chad Horton" > >napisala je: >> >> I have a video with audio (overlayvideo.mov) that I'm overlaying over >another video (basefilem.mp4) and I'm starting the overlay at 20 seconds. >The output (finalvideo.mp4) looks great, but the audio from the overlay is >still starting at 00:00:00.000 instead of when I need it to start, which >is >00:00:20.000 (which I set with itoffset). >> >> I understand that itoffset only deals with video. So, how do I go about >specifying in my command below to start the audio in the overlay at the >same time as itoffset? > >Try adelay filter. > >> >> ffmpeg -y -i basefilem.mp4 -itoffset 00:00:20.000 -i overlayvide.mov - >ilter_complex >"[1:v]scale=1280x720[ovrl];[0:v][ovrl]overlay=eof_action=pass[outv];[0:a][ >1:a]amix[outa]" >-map [outv] -map [outa] -c:v mpeg4 -strict experimental -ascale:v 10 >finalvideo.mp4 >> >> >> ___ >> ffmpeg-user mailing list >> ffmpeg-user@ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >___ >ffmpeg-user mailing list >ffmpeg-user@ffmpeg.org >http://ffmpeg.org/mailman/listinfo/ffmpeg-user ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
[FFmpeg-user] overlay with video offset not starting audio with same offset
I have a video with audio (overlayvideo.mov) that I'm overlaying over another video (basefilem.mp4) and I'm starting the overlay at 20 seconds. The output (finalvideo.mp4) looks great, but the audio from the overlay is still starting at 00:00:00.000 instead of when I need it to start, which is 00:00:20.000 (which I set with itoffset). I understand that itoffset only deals with video. So, how do I go about specifying in my command below to start the audio in the overlay at the same time as itoffset? ffmpeg -y -i basefilem.mp4 -itoffset 00:00:20.000 -i overlayvide.mov - ilter_complex "[1:v]scale=1280x720[ovrl];[0:v][ovrl]overlay=eof_action=pass[outv];[0:a][1:a]amix[outa]" -map [outv] -map [outa] -c:v mpeg4 -strict experimental -ascale:v 10 finalvideo.mp4 ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] overlay AND concatenate with ffmpeg - merging to one command?
Correction on my inputs for both executions: ffmpeg -y -i baselinevideo.mp4 -itsoffset 00:00:0. -i overlayvideo.mp4 -filter_complex "[1:v]scale=1280:720[ovrl];[0:v][ovrl]overlay=eof_action=pass[outv];[0:a][1 :a]amix[outa]” -map [outv] -map [outa] -vcodec mpeg4 -strict experimental finalvideo-temp.mp4 ffmpeg -y -i finalvideo-temp.mp4 -i concatvideo.mp4 -filter_complex "[0:0] [0:1] [1:0] [1:1] concat=n=2:v=1:a=1 [v] [a]" -map [v] -map [a] -vcodec mpeg4 -strict experimental finalvideo.mp4 On 8/25/15, 9:32 AM, "ffmpeg-user on behalf of Chad Horton" wrote: >I have an android app where users record a video. I then add an overlay >on the video and then concatenate a 4 second video to the end of the >video. > >I¹m currently using two executions, as provided below. The second >(concatenate) execution TAKES FOREVER. Well over 2 minutes. > >1.) is there a much faster way to do this? >2.) is there a way to execute this in a single ffmpeg command instead of >two? > >ffmpeg -y > -i baselinevideo.mp4 > -itsoffset 00:00:0. > -i overlayvideo.mp4 > -filter_complex >"[1:v]scale=1280:1024[ovrl];[0:v][ovrl]overlay=eof_action=pass[outv];[0:a] >[ >1:a]amix[outa]" > -map [outv] > -map [outa] > -vcodec mpeg4 > -strict experimental > -crf > finalvideo-temp.mp4 > >ffmpeg -y > -i finalvideo-temp.mp4 > -i concatvideo.mp4 > -filter_complex "[0:0] [0:1] [1:0] [1:1] concat=n=2:v=1:a=1 [v] [a]" > -map [v] > -map [a] > -strict experimental > -crf > finalvideo.mp4 > >___ >ffmpeg-user mailing list >ffmpeg-user@ffmpeg.org >http://ffmpeg.org/mailman/listinfo/ffmpeg-user ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
[FFmpeg-user] overlay AND concatenate with ffmpeg - merging to one command?
I have an android app where users record a video. I then add an overlay on the video and then concatenate a 4 second video to the end of the video. I¹m currently using two executions, as provided below. The second (concatenate) execution TAKES FOREVER. Well over 2 minutes. 1.) is there a much faster way to do this? 2.) is there a way to execute this in a single ffmpeg command instead of two? ffmpeg -y -i baselinevideo.mp4 -itsoffset 00:00:0. -i overlayvideo.mp4 -filter_complex "[1:v]scale=1280:1024[ovrl];[0:v][ovrl]overlay=eof_action=pass[outv];[0:a][ 1:a]amix[outa]" -map [outv] -map [outa] -vcodec mpeg4 -strict experimental -crf finalvideo-temp.mp4 ffmpeg -y -i finalvideo-temp.mp4 -i concatvideo.mp4 -filter_complex "[0:0] [0:1] [1:0] [1:1] concat=n=2:v=1:a=1 [v] [a]" -map [v] -map [a] -strict experimental -crf finalvideo.mp4 ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] ffmpeg overlay last frame remaining in video
Thank you. I'm learning. What I set up for all the various parameters was what I pieced together while trying to figure out how to create the overlays, both through trial and error, reading the documentation on ffmpeg.org, and asking experts for guidance. This particular ffmpeg is being used in an Android app I've developed. It's very painful to compile ffmpeg via android ndk constantly and then have to rebuild the apk and push out to the google play store. >> ... for your main issue, your overlay needs the eof_action option: >>overlay=eof_action=pass Worked like a charm. Thank you! >>What is this -itsoffset for? Users can set when they want to start the overlay video >>Why use -c:v libx264 *and* -vcodec mpeg4? These are mutually exclusive, >>and mpeg4 is chosen as the encoder since it was declared later. I have corrected this. >>Your main input is 3/1001. Why are you setting the output frame rate >>with -r 30? I have removed this. >>Why do you use single pass with -b:v instead of -crf? See: >>https://trac.ffmpeg.org/wiki/Encode/H.264 Interesting. I¹m definitely going to test with -crf -Original Message- From: ffmpeg-user [mailto:ffmpeg-user-boun...@ffmpeg.org] On Behalf Of Lou Sent: Sunday, August 23, 2015 7:12 PM To: ffmpeg-user@ffmpeg.org Subject: Re: [FFmpeg-user] ffmpeg overlay last frame remaining in video On Sun, Aug 23, 2015, at 04:50 PM, Chad Horton wrote: > ffmpeg -y -i basevideo.mov -r 30 -itsoffset 00:00:00.000 -i > overlayvideo.mov -filter_complex > >"[1:v]scale=1280:720[ovrl];[0:v][ovrl]overlay=0:0[outv];[0:a][1:a]amix[out >a]" > -map [outv] -map [outa] -c:v libx264 -vcodec mpeg4 -r 30 -strict > experimental -b:v 150 finalvideo.mp4 Why do you place -r as an input option for overlayvideo.mov? What is this -itsoffset for? Why use -c:v libx264 *and* -vcodec mpeg4? These are mutually exclusive, and mpeg4 is chosen as the encoder since it was declared later. Your main input is 3/1001. Why are you setting the output frame rate with -r 30? Why do you use single pass with -b:v instead of -crf? See: https://trac.ffmpeg.org/wiki/Encode/H.264 Anyway, for your main issue, your overlay needs the eof_action option: overlay=eof_action=pass See overlay filter docs for more info: https://ffmpeg.org/ffmpeg-filters.html#overlay > ffmpeg version N-70223-g7296716 Copyright (c) 2000-2015 the FFmpeg > developers This version is about 6 months old which is considered geriatric. FFmpeg development is very active. Top-posting should be avoided on this mailing list. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] ffmpeg overlay last frame remaining in video
ast frame remaining in video On Sun, Aug 23, 2015, at 01:36 PM, Chad Horton wrote: [...] > ffmpeg -y -i myvideo.mp4 -r 30 -itsoffset 00:00:00.000 -i > myoverlay.mov -filter_complex [1:v]scale=640:360[ovrl], > [0:v][ovrl]overlay=0:0[outv];[0:a][1:a]amix[outa] -map [outv] -map > [outa] -c:v libx264 -vcodec mpeg4 -r 30 -strict experimental -b:v > 150 > outputvideo.mp4 You have several options here that don't make sense. Also, the complete console output from your ffmpeg command is required. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] ffmpeg overlay last frame remaining in video
Correcting my ffmpeg command a bit. I'm also getting a "Option framerate not found." error ffmpeg -y -i basevideo.mov -r 30 -itsoffset 00:00:00.000 -i overlayvideo.mov -filter_complex "[1:v]scale=1280:720[ovrl];[0:v][ovrl]overlay=0:0[outv];[0:a][1:a]amix[outa]" -map [outv] -map [outa] -c:v libx264 -vcodec mpeg4 -r 30 -strict experimental -b:v 150 finalvideo.mp4 I remove -r 30 after basevideo.mov: ffmpeg -y -i basevideo.mov -itsoffset 00:00:00.000 -i overlayvideo.mov -filter_complex "[1:v]scale=1280:720[ovrl];[0:v][ovrl]overlay=0:0[outv];[0:a][1:a]amix[outa]" -map [outv] -map [outa] -c:v libx264 -vcodec mpeg4 -r 30 -strict experimental -b:v 150 finalvideo.mp4 and I'm not getting the error: Unrecognized option 'filter_complex' Failed to set value '[1:v]scale=1280:720[ovrl];[0:v][ovrl]overlay=0:0[outv];[0:a][1:a]amix[outa]' for option 'filter_complex' -Original Message- From: ffmpeg-user [mailto:ffmpeg-user-boun...@ffmpeg.org] On Behalf Of Chad Horton Sent: Sunday, August 23, 2015 2:36 PM To: ffmpeg-user@ffmpeg.org Subject: [FFmpeg-user] ffmpeg overlay last frame remaining in video Have an issue where an overlay video has it's last frame remaining in the output video until the full video is complete. The full video is 10 seconds and the overlay video is 5 seconds. the overlay starts at the beginning of the video. Example: myoverlay.mov is 5 seconds myvideo.mp4 is 10 seconds final video (outputvideo.mp4) shows the last frame of myoverlay.mov "stuck" in the video for the remaining 5 seconds desired: when the overlay is finished, should just go away and the remainder of the 5 seconds of the video continue without seeing anything from the overlay. command used: ffmpeg -y -i myvideo.mp4 -r 30 -itsoffset 00:00:00.000 -i myoverlay.mov -filter_complex [1:v]scale=640:360[ovrl], [0:v][ovrl]overlay=0:0[outv];[0:a][1:a]amix[outa] -map [outv] -map [outa] -c:v libx264 -vcodec mpeg4 -r 30 -strict experimental -b:v 150 outputvideo.mp4 Thank you! Chad ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
[FFmpeg-user] ffmpeg overlay last frame remaining in video
Have an issue where an overlay video has it's last frame remaining in the output video until the full video is complete. The full video is 10 seconds and the overlay video is 5 seconds. the overlay starts at the beginning of the video. Example: myoverlay.mov is 5 seconds myvideo.mp4 is 10 seconds final video (outputvideo.mp4) shows the last frame of myoverlay.mov "stuck" in the video for the remaining 5 seconds desired: when the overlay is finished, should just go away and the remainder of the 5 seconds of the video continue without seeing anything from the overlay. command used: ffmpeg -y -i myvideo.mp4 -r 30 -itsoffset 00:00:00.000 -i myoverlay.mov -filter_complex [1:v]scale=640:360[ovrl], [0:v][ovrl]overlay=0:0[outv];[0:a][1:a]amix[outa] -map [outv] -map [outa] -c:v libx264 -vcodec mpeg4 -r 30 -strict experimental -b:v 150 outputvideo.mp4 Thank you! Chad ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] Error generating video with overlay
Ah! That fixed it. Thank you. Chad On 7/23/15, 1:10 PM, "ffmpeg-user on behalf of Moritz Barsnick" wrote: >On Thu, Jul 23, 2015 at 19:56:29 +, Chad Horton wrote: >> [...] -filter_complex "[1:v]scale=1280:720[ovrl] >>[0:v][ovrl]overlay=0:0[outv];[0:a][1:a]amix[outa]" > >There's a semicolon missing there: "[ovrl];[0:v][ovrl]", or in its >completeness: >> [...] -filter_complex >>"[1:v]scale=1280:720[ovrl];[0:v][ovrl]overlay=0:0[outv];[0:a][1:a]amix[ou >>ta]" > >Moritz >___ >ffmpeg-user mailing list >ffmpeg-user@ffmpeg.org >http://ffmpeg.org/mailman/listinfo/ffmpeg-user ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
[FFmpeg-user] Error generating video with overlay
I am getting an error when I execute the following ffmpeg command that overlays one video (tornado-03.mov) over another (output_2015-07-23_07-34-10.mp4) to produce a final output file (output_2015-07-23_07-34-57.mp4). I cannot figure out how to change my parameters to stop the error from happening. ./ffmpeg -y -i output_2015-07-23_07-34-10.mp4 -r 30 -itsoffset 00:00:00.000 -i tornado-03.mov -filter_complex "[1:v]scale=1280:720[ovrl] [0:v][ovrl]overlay=0:0[outv];[0:a][1:a]amix[outa]" -map [outv] -map [outa] -c:v libx264 -vcodec mpeg4 -r 30 -strict experimental -b:v 150 output_2015-07-23_07-34-57.mp4 The error: [AVFilterGraph @ 0x7ff4a2e05740] No output pad can be associated to link label '0:v'. Error configuring filters. any help would be appreciated. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user