I downloaded these files (at max resolution 4K, that is important), in this order:
please notice that these files are not "a video posted online" but the original output of a RX100m5!!
each video offers: 0:0 video 0:1 audio 0:2 "unknown to ffmpeg"
therefore I changed the titles into a.mp4, b.mp4.......e.mp4 to avoid the error. Amen.
I want to simply concatenate them, i.e. no recode!
Sony's output is "MP4 = H264av1 + PCM". Curiously PCM is NOT supported by MP4 container (see official specs on wikipedia). Therefore ffmpeg is unable to do what I want. [It seems that Sony users never used ffmpeg].
ffmpeg -f concat -i lista.txt -c copy concatenated.mp4
[mp4 @ 094630c0] Could not find tag for codec pcm_s16be in stream #1, codec not currently supported in container Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
as stated above Sony puts PCM into MP4 and this is not allowed. threfore I say let's to concatenate the files without recode/transcode and just change container:
ffmpeg -f concat -safe 0 -i "lista.txt" -map 0:0 -map 0:1 -c copy concatenated.mkv
ffmpeg -f concat -safe 0 -i "lista.txt" -c copy concatenated.mkv
I got: no error message but...out of sync. that is unacceptable. [with MTS 1080p I simply concatenate them via the very very old Ts_splitter&joiner.exe and all is fine and in sync!]
Only if I notice (like in the past!) that a simple "concatenate" let the Mb/s to drop down drastically, then I could add something like
-map "[v]" -map "[a]" -b:v 95000k
(that worked fine).
thanks for a working string for the 5 videos :) ...I warmly hoping that the output will be in sync.