Page 1 of 1

Support for *.m2t files

PostPosted: Wed Sep 28, 2011 6:45 pm
by Parka Boy
Hi,
it is possible to add support for *.m2t files, generated by Kaffeine (KDE MediaPlayer) when recording TV shows. In this case it is german HDTV programm streams.
The files are not displayed in the list. The TV is an Panasonic and i use the pana Viera profil. I can play those files by miniDLNA.
This is an header of an typical filel:

  Code:
ffmpeg version N-32226-ga9c6936, Copyright (c) 2000-2011 the FFmpeg developers
  built on Aug 31 2011 22:24:08 with gcc 4.5.2
  configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-pthreads --enable-libfaac --enable-runtime-cpudetect --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-avfilter --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-x11grab --enable-libdc1394 --enable-libdirac --enable-libschroedinger --enable-libopenjpeg --enable-libspeex --enable-avfilter --enable-shared
  libavutil    51. 14. 0 / 51. 14. 0
  libavcodec   53. 12. 0 / 53. 12. 0
  libavformat  53. 10. 0 / 53. 10. 0
  libavdevice  53.  3. 0 / 53.  3. 0
  libavfilter   2. 37. 0 /  2. 37. 0
  libswscale    2.  0. 0 /  2.  0. 0
  libpostproc  51.  2. 0 / 51.  2. 0
Input #0, mpegts, from 'The Killing 7_8.m2t':
  Duration: 02:10:00.26, start: 72468.037444, bitrate: 7330 kb/s
  Program 11120
    Stream #0.0[0x184d](deu): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16, 256 kb/s
    Stream #0.1[0x184e](fra): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16, 256 kb/s
    Stream #0.2[0x184c](deu): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, stereo, s16, 256 kb/s
    Stream #0.3[0x1856](ger): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006) (clean effects)
    Stream #0.4[0x1857](fra): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006) (hearing impaired)
    Stream #0.5[0x1842]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 51 fps, 50 tbr, 90k tbn, 100 tbc

Thank You!

Re: Support for *.m2t files

PostPosted: Wed Sep 28, 2011 9:14 pm
by zip
rename the file to .ts or .mpg

Re: Support for *.m2t files

PostPosted: Thu Sep 29, 2011 1:35 pm
by Sebanisu
You might need to remux those. My blu ray player has issues if the Audio streams are before the Video streams. Good luck :D

Re: Support for *.m2t files

PostPosted: Thu Sep 29, 2011 3:59 pm
by Cerberus
Sebanisu wrote:You might need to remux those. My blu ray player has issues if the Audio streams are before the Video streams. Good luck :D


+1 to that

Re: Support for *.m2t files

PostPosted: Thu Sep 29, 2011 4:30 pm
by Parka Boy
Hi zip,
by rename the file into *.ts it works! Thank you!
@ Sebanisu
That is not really a problem, i use ffmpge to cut unneeded parts at the beginning and end and also remove some audio streams by this command (Linux):
  Code:
ffmpeg -ss 00:00:00 -t 00:00:00 -i ".m2t" -vcodec copy -map 0:0 -acodec copy -map 0:1 ".m2t"


  Code:
ffmpeg -ss 00:00:30 -t 00:59:00 -i "The Killing 7_8.m2t" -vcodec copy -map 0:5 -acodec copy -map 0:2 "The Killing 7.ts"
ffmpeg version N-32226-ga9c6936, Copyright (c) 2000-2011 the FFmpeg developers
  built on Aug 31 2011 22:24:08 with gcc 4.5.2
  configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-pthreads --enable-libfaac --enable-runtime-cpudetect --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-avfilter --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-x11grab --enable-libdc1394 --enable-libdirac --enable-libschroedinger --enable-libopenjpeg --enable-libspeex --enable-avfilter --enable-shared
  libavutil    51. 14. 0 / 51. 14. 0
  libavcodec   53. 12. 0 / 53. 12. 0
  libavformat  53. 10. 0 / 53. 10. 0
  libavdevice  53.  3. 0 / 53.  3. 0
  libavfilter   2. 37. 0 /  2. 37. 0
  libswscale    2.  0. 0 /  2.  0. 0
  libpostproc  51.  2. 0 / 51.  2. 0                                                                                                                                                                                         
Input #0, mpegts, from 'The Killing 7_8.m2t':
  Duration: 02:10:00.26, start: 72468.037444, bitrate: 7330 kb/s
  Program 11120
    Stream #0.0[0x184d](deu): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16, 256 kb/s
    Stream #0.1[0x184e](fra): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16, 256 kb/s
    Stream #0.2[0x184c](deu): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, stereo, s16, 256 kb/s
    Stream #0.3[0x1856](ger): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006) (clean effects)
    Stream #0.4[0x1857](fra): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006) (hearing impaired)
    Stream #0.5[0x1842]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 51 fps, 50 tbr, 90k tbn, 100 tbc
[mpegts @ 0x1592d40] muxrate VBR, pcr every 5 pkts, sdt every 200, pat/pmt every 40 pkts
Output #0, mpegts, to 'The Killing 7.ts':
  Metadata:
    encoder         : Lavf53.10.0
    Stream #0.0: Video: h264 ([27][0][0][0] / 0x001B), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 90k tbn, 50 tbc
    Stream #0.1(deu): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, stereo, 256 kb/s
Stream mapping:
  Stream #0.5 -> #0.0 (copy)
  Stream #0.2 -> #0.1 (copy)
Press [q] to stop, [?] for help

:mrgreen: