Questions tagged [concatenation]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
9 views

Is it doable to use a text file with a list of files as input when concatenating and reencoding with ffmpeg and -filter_complex?

When trying to concatenate mp4 files with the following script #!/usr/bin/bash echo "The number of files to be concatenated?" read no ffmpeg -loglevel warning -hide_banner -i ...
0 votes
1 answer
40 views

Why does ffmpeg flip upside-down the video when concatenating with -f concat?

My text file list_of_fragments contains the list of video files to be concatenated. I assumed they have the same streams (shot from the same smartphone, with the same settings) file barbell-home.mp4 ...
0 votes
1 answer
854 views

"Non-monotonous DTS in output stream 0:0 This may result in incorrect timestamps in the output file." error

Adding all mp4 file in the directory with FFMPEG . my usual command: ffmpeg -f concat -safe 0 -i <(for f in ./*.mp4; do echo "file '$PWD/$f'"; done) -c copy output.mp4 This shows below ...
  • 1
0 votes
0 answers
48 views

Concatenate no-audio video with with-audio video?

I'm using the concatenation technique of creating files.txt and adding one line per file beginning with "file ". ffmpeg -f concat -safe 0 -i files.txt -c copy result.mp4 However I find ...
  • 1
0 votes
0 answers
127 views

Ffmpeg How to avoid audio sync when merging videos

I want to merge some videos from a list. Some of them have frozen frames, with silence filling. When I merge them the silence disappears, but the frozen frames are kept. Is there any way to add async=...
0 votes
0 answers
147 views

Concat Demuxer playlist

So according to the docs located here https://trac.ffmpeg.org/wiki/Concatenate section: Changing playlist files on the fly it says you can do this: Now you can change the looping clip by a simple ...
1 vote
0 answers
247 views

FFMPEG concat two video together but one plays back in a slower speed

I am trying to concatenate two videos using FFMPEG concat. The second video plays a slower speed and loses it's audio, but not only that, the time elapsed counter in the windows video player also ...
0 votes
0 answers
40 views

Merging multiple files but specify the time each file is inserted (alternatively, stretch them to a specified duration)

Situation: 3 hours of video, consisting of 18 H264 mp4 files that should have exactly 10-minutes each but they last just a little bit less (some milliseconds missing). When merging them, I end up ...
2 votes
1 answer
45 views

Concatenate H.264 raw but basic streams without reencoding or quality loss

How does one go about concatenating several H.264 raw streams into one without reencoding or quality loss? The streams lacked any advanced features and represented contuous recording. There is no ...
  • 200
0 votes
1 answer
40 views

How to put a trailer clip in the middle of the main video with FFMPEG?

I have two videos of the same format encoded with the same codecs. I want trailer.mkv to be played after n minutes in the middle of main.mkv. After playing trailer.mkv, the rest of the main.mkv will ...
  • 78
1 vote
1 answer
146 views

ffmpeg: concat without temp files?

Is it possible to concat without temp files using ffmpeg? eg; # nice ffmpeg -v error -f concat \ -ss "52.519" -copyts -to "53.153" -i in.mkv \ -ss "53.186" -copyts -...
0 votes
1 answer
232 views

Does ffmpeg concat demuxer update the position of the moov atom if present in each video file?

Years ago I asked this question on: stackoverflow about correct syntax using the ffmpeg Concat demuxer to join mp4 files together. One question I hadn't thought to ask at the time was, when joining ...
0 votes
0 answers
283 views

ffmpeg - concatenate files, BUT strip the last few frames from the end of each one

I am trying to find the best way to automatically concatenate a large number of files that have been recorded with an overlap within them. In the process of 'glueing' the video files together, to get ...
1 vote
1 answer
4k views

How to concatenate MPEG-4 and AVC/h.264?

I would like to use ffmpeg, mencoder or still something free. I cannot concatenate two videos because of different video codecs: $ mkvmerge -o merged.mkv 1.mkv \+ 2.mp4 mkvmerge v19.0.0 ('Brave ...
  • 129