11/10/2022 0 Comments Ffmpeg filter complex setsarThe extra step is to handle files with different aspect ratios, etc. As you can see, the two files were already pretty similar. I also tried two forms of the concat operation: ffmpeg -f concat -i files-18516 -movflags +faststart -strict -2 -c:v libx264 -c:a aac/copy abc.mp4Īnd the "complex" version (that word REALLY fits! :-) ): ffmpeg -i 360a_001.mp4 -i 360b_001.mp4 -i 360a_002.mp4 -i 360b_002.mp4 -i 360a_003.mp4 -i 360b_003.mp4 -i 360a_004.mp4 -i 360b_004.mp4 -filter_complex concat=n=8:v=1:a=1 -map -map -strict -2 -c:v libx264 -c:a aac/copy abc.mp4Īnd here are the input and common output formats as reported by FFMPEG. Note that using the copy codec for audio didn't make a difference. ( -strict -2: as you can see, I'm using the stock release built on a Mac, which seems to scream about AAC a lot. Note that I am purposely setting it to one GOP per slice, on the theory that a GOP size smaller than a segment size might be causing the problem. It always seems that the audio is cutting before the video, and always for the same amount, regardless of the GOP size (being careful of course to make the GOP size a whole fraction of the overall slice size).Īs per Mulvya's request, here are the steps I am performing: UPDATE: I am starting to wonder if it has something to do with some kind of presentation time stamp not being updated correctly, either on the cut or the reassemble side. Using MP4Box to create a set of small N-secondĬoncat codec from each asset (v1,slice 1 v2,slice 1 v1,slice2.)īecause I am very careful to precondition all the sources to be "in sync", I would expect that concatenating these files should not cause any audio presentation issues, and should look just like a DASH asset (the actual purpose of this test).Transcoding all sources into the same bitrate, frame rate, GOP size,.This seems curious that loss of sync should happen, as I am doing the following: Is it expected that one can concatenate independent MP4-boxed streams? I am doing some tests with the FFMPEG concat filter (DASH experiments), and am seeing that I start losing lipsync after a few concatenations.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |