MPEG TS program info

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

MPEG TS program info

saravanan Kannan
Hi,

I am using the following command line

ffmpeg  -i input.ts  -map 0  -codec:a copy -vf transpose  -color_primaries
bt470bg -color_trc gamma28 -colorspace bt470bg -f  mpegts  output.ts

There are 3 programs in the input.ts file

  Duration: 00:09:02.05, start: 1.400000, bitrate: 10438 kb/s
  Program 1
    Metadata:
      service_name    : ProgOne
      service_provider: FFmpeg
    Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B),
yuv420p(tv, bt470bg), 720x576 [SAR 12:11 DAR 15:11], 25 fps, 50 tbr, 90k
tbn, 50 tbc
    Stream #0:1[0x101](TEL): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz,
mono, s16p, 192 kb/s
    Stream #0:2[0x102](TEL): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz,
stereo, s16p, 64 kb/s
  Program 2
    Metadata:
      service_name    : ProgTwo
      service_provider: FFmpeg
    Stream #0:3[0x103]: Video: h264 (High) ([27][0][0][0] / 0x001B),
yuv420p(tv, bt470bg), 720x576 [SAR 12:11 DAR 15:11], 25 fps, 50 tbr, 90k
tbn, 50 tbc
    Stream #0:4[0x104](TEL): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz,
mono, s16p, 192 kb/s
  Program 3
    Metadata:
      service_name    : ProgTree
      service_provider: FFmpeg
    Stream #0:5[0x105]: Video: h264 (High) ([27][0][0][0] / 0x001B),
yuv420p(tv, bt470bg), 720x576 [SAR 12:11 DAR 15:11], 25 fps, 50 tbr, 90k
tbn, 50 tbc
    Stream #0:6[0x106](KAN): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz,
stereo, s16p, 192 kb/s

But in the output, the program info is missing

Input #0, mpegts, from 'test.ts':
  Duration: 00:00:12.88, start: 1.400000, bitrate: 2479 kb/s
  Program 1
    Metadata:
      service_name    : Service01
      service_provider: FFmpeg
    Stream #0:0[0x100]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002),
yuv420p(tv, bt470bg), 576x720 [SAR 1:1 DAR 4:5], max. 104857 kb/s, 25 fps,
25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x101](TEL): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz,
mono, s16p, 192 kb/s
    Stream #0:2[0x102](TEL): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz,
stereo, s16p, 64 kb/s
    Stream #0:3[0x103]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002),
yuv420p(tv, bt470bg), 576x720 [SAR 1:1 DAR 4:5], max. 104857 kb/s, 25 fps,
25 tbr, 90k tbn, 50 tbc
    Stream #0:4[0x104](TEL): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz,
mono, s16p, 192 kb/s
    Stream #0:5[0x105]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002),
yuv420p(tv, bt470bg), 576x720 [SAR 1:1 DAR 4:5], max. 104857 kb/s, 25 fps,
25 tbr, 90k tbn, 50 tbc
    Stream #0:6[0x106](KAN): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz,
stereo, s16p, 192 kb/s

Can you let me know how to copy the program info from input to output?

Regards,
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".