[FFmpeg-user] combining concatenating movies

R C cjvijf at gmail.com
Sat Jul 6 02:38:12 EEST 2019


Hello,


what I came up with is something like this:

ffmpeg -f concat safe 0 -i movlist.txt -codec copy output.mp4

here movlist has entries like:

file '../07-04-2019/2019_0704_133725_071.MOV'



I had a dozen or so entries.



(after that I turned it into a timelapsed movie using something like:

ffmpeg -i sf2la.mp4 -filter:v "setpts=0.5*PTS" -an output.mp4



thanks,


Ron


On 7/5/19 12:34 AM, Stéphane Chauveau wrote:
> I was wondering the same things a few days ago and a simple solution 
> seems to be the concat filter.
>
> https://ffmpeg.org/ffmpeg-filters.html#concat
>
> A simple example that works fine for me for inputs of the same size 
> and no audio is:
>
> ffmpeg \
>    -ss 00:00 -t 4 -i input1.mp4 \
>    -ss 00:06 -t 5 -i input2.mp4 \
>    -ss 01:00 -t 3 -i input3.mp4 \
>    -filter_complex 'concat=n=3:v=1:a=0' \
>    -an output.mp4
>
> Each of the -ss and -t specifies the start and the duration of the 
> next input. You can remove them if you want the full videos but short 
> durations are very convenient while experimenting.
>
> The value n=3 passed to the concat filter should match the number of 
> inputs.Be careful, ffmpeg will complain if n is too large but it will 
> silently ignore some videos if n is too small.
>
> That method requires that the videos are re-encoded so you may want to 
> add a few options to control the encoding quality.
>
>
> On 7/5/19 2:28 AM, R C wrote:
>> Hello,
>>
>>
>> I would like to combine a bunch of movies (a dozen or so short ones) 
>> to one long movie.
>>
>> The short movies are from a dashcam, here is some info;
>>
>> container: Quicktime
>>
>> dimensions: 1920x1080
>>
>> Codec: H.264
>>
>> Framerate: 30 frames per second
>>
>> Bitrate: varies per file ...
>>
>> Audio doesn't matter much, there should be no audio
>>
>>
>> I tried a few  ffmpeg  options, tried to find examples online.
>>
>>
>> Any suggestions?
>>
>>
>> thanks,
>>
>>
>> Ron
>>
>> _______________________________________________
>> ffmpeg-user mailing list
>> ffmpeg-user at ffmpeg.org
>> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>
>> To unsubscribe, visit link above, or email
>> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
>
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-user mailing list