Hello
I am concatenating several mpeg2 ts files with "copy /s a.ts+b.ts" command and trying to play the assembled video on my Sony Bravia TV via dlna (serviio).
Depending on the set of input files, playing the assembled video would:
- sometimes play flawlessly until the end
- other times play correctly up to the end of first input file ("a.ts") and from then on, continue to correctly play audio of subsequent files ("b.ts") but start to play stuttering video, looping over the last few frames of the first video ("a.ts").
I am unable to predict in which cases the assembled video would play correctly on my tv and in which cases it would not. The input files are all encoded in H.264 and aac with sensibly similar bitrates. The assembled video always plays correctly on my pc with vlc. All input mpeg2 ts files come from the same source (catch-up tv channel). If I re-encode the assembled video with ffmpeg, it will always play correctly (but I hope to avoid re-encoding).
What could be the problem here? I am not an expert but I believer the TV should not be able to detect that we switch from one file to another since everything is in mpeg2 ts. Is there anything obvious to do to ensure maximum compatibility of assembled ts files?
Thanks
sergiogiogio
I am concatenating several mpeg2 ts files with "copy /s a.ts+b.ts" command and trying to play the assembled video on my Sony Bravia TV via dlna (serviio).
Depending on the set of input files, playing the assembled video would:
- sometimes play flawlessly until the end
- other times play correctly up to the end of first input file ("a.ts") and from then on, continue to correctly play audio of subsequent files ("b.ts") but start to play stuttering video, looping over the last few frames of the first video ("a.ts").
I am unable to predict in which cases the assembled video would play correctly on my tv and in which cases it would not. The input files are all encoded in H.264 and aac with sensibly similar bitrates. The assembled video always plays correctly on my pc with vlc. All input mpeg2 ts files come from the same source (catch-up tv channel). If I re-encode the assembled video with ffmpeg, it will always play correctly (but I hope to avoid re-encoding).
What could be the problem here? I am not an expert but I believer the TV should not be able to detect that we switch from one file to another since everything is in mpeg2 ts. Is there anything obvious to do to ensure maximum compatibility of assembled ts files?
Thanks
sergiogiogio