[FFmpeg-user] Joining ts files as "Programs" (not concatenate)
Jennifer Naomi Nagatani Nagamine
jnaomi at cpqd.com.br
Tue Mar 26 19:06:52 CET 2013
Hello,
I'm having trouble trying to join 2 or more .ts files.
I'm trying to desmux the videos and audios for mux them latter, but the
examples I found are all like this:
ffmpeg -i video.mts -acodec copy -vn audio.ac3
ffmpeg -i video.mts -vcodec copy -an -f h264 ffNT.h264
ffmpeg -i video.h264 -i audio.ac3 -vcodec copy -acodec copy videoaudio.ts
This way, I ended up losing the other video and audio from my original .ts
file and I didn't find how to extract the rest of the data in the .ts.
My files have videos with some audios separated in programs. I would like
to join the other as a "Program" keeping his audio together with his video
(when i use VLC i would like to not be able to select the audio from other
"Program" if possible).
If someone could help me on this or indicate me a good site I would really
appreciate.
My Randon.ts has:
Program 59488
Metadata:
service_name : vid HD
service_provider:
Stream #0:0 [0x111]: Video: h264 (High) ([27][0][0][0]/0x001B),
yuv420p, 1920x1080, 27.83 fps, 59.94 tbr, 90k tbn, 59.94 tbc
Stream #0:1 [0x112]: Audio: aac_latm ([17][0][0][0]/0x0011),
48000 Hz, stereo, fltp
Stream #0:2 [0x113]: Audio: aac_latm ([17][0][0][0]/0x0011),
48000 Hz, stereo, fltp
Stream #0:3 [0x116]: Unknown: none ([6][0][0][0]/0x0006)
Stream #0:4 [0x384]: Unknown: none ([11][0][0][0]/0x000B)
Stream #0:5 [0x1f4]: Unknown: none ([5][0][0][0]/0x0005)
Program 59512
Metadata:
service_name : vid 1seg
service_provider:
Stream #0:7 [0x211]: Video: h264 (Constrained Baseline)
([27][0][0][0]/0x001B), yuv420p, 320x180 [SAR 1:1 DAR 16:9], 14.99 fps,
29.97 tbr, 90k tbn, 29.97 tbc
Stream #0:6 [0x212]: Audio: aac_latm ([17][0][0][0]/0x0011),
48000 Hz, stereo, fltp
Stream #0:8 [0x216]: Unknown: none ([6][0][0][0]/0x0006)
Stream #0:9 [0x38c]: Unknown: none ([11][0][0][0]/0x000B)
Stream #0:10 [0x1fc]: Unknown: none ([5][0][0][0]/0x0005)
My second file Teste.ts has:
Program 60960
Metadata:
service_name : cls HD
service_provider: cls
Stream #1:0 [0x65]: Video: h264 (High) ([27][0][0][0]/0x001B),
yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94
tbc
Stream #1:1 [0x66]: Audio: aac_latm ([17][0][0][0]/0x0011),
48000 Hz, stereo, fltp
Stream #1:2 [0x67]: Audio: aac_latm ([17][0][0][0]/0x0011),
48000 Hz, stereo, fltp
Stream #1:3 [0x69]: Unknown: none ([6][0][0][0]/0x0006)
Program 60984
Metadata:
service_name : cls 1seg
service_provider: cls
Stream #1:4 [0x3e9]: Video: h264 (Constrained Baseline)
([27][0][0][0]/0x001B), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 11.99 fps,
23.98 tbr, 90k tbn, 23.98 tbc
Stream #1:5 [0x3ea]: Audio: aac_latm ([17][0][0][0]/0x0011),
48000 Hz, stereo, fltp
Stream #1:6 [0x3eb]: Unknown: none ([17][0][0][0]/0x0011)
Stream #1:7 [0x3ed]: Unknown: none ([6][0][0][0]/0x0006)
And my other files are similar to these 2.
Thank you very much in advance.
Naomi N.
More information about the ffmpeg-user
mailing list