[FFmpeg-user] High memory usage when merging videos
Muhammad Faiz
mfcc64 at gmail.com
Tue Dec 20 18:10:15 EET 2016
On 12/20/16, Muhammad Faiz <mfcc64 at gmail.com> wrote:
> On 12/20/16, Jonathan Girven <jonathan.girven at trickbook.com> wrote:
>>> How if you move your multiple inputs into movie sources inside
>>> filter_complex?
>>
>> Sorry, I looked at the documentation here:
>>
>> https://ffmpeg.org/ffmpeg-filters.html#Video-Sources
>>
>> but couldn't see how to grab a file with this. Do you have an example?
>
> At this section: https://ffmpeg.org/ffmpeg-filters.html#Multimedia-Sources
>
> for example, from your filter_complex:
> "movie=movie0.mp4:s=dv+da [movie0_v][movie0_a];
> [movie0_v] setpts=PTS-STARTPTS[v0_trim0];
> [movie0_a] asetpts=PTS-STARTPTS[a0_trim0]; ..."
>
> Thank's
>
For safer approach, you may want separate video/audio in different movie sources
e.g:
"movie=movie0.mp4, setpts=PTS-STARTPTS [v0_trim0];
amovie=movie0.mp4, asetpts=PTS-STARTPTS [v1_trim0]; ... "
Thx
More information about the ffmpeg-user
mailing list