[FFmpeg-user] ffmpeg overlay last frame remaining in video
Chad Horton
chorton at hotsalsainteractive.com
Tue Aug 25 17:57:53 CEST 2015
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 30000/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-bounces at ffmpeg.org] On Behalf Of Lou
Sent: Sunday, August 23, 2015 7:12 PM
To: ffmpeg-user at 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 1500000 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 30000/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 at ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
More information about the ffmpeg-user
mailing list