FAQ  •  Register  •  Login

Serviio won't list MPEG-2 TS files

<<

shashchatter

Serviio newbie

Posts: 12

Joined: Sat Jan 14, 2012 8:04 pm

Post Sun Jan 13, 2013 10:26 pm

Serviio won't list MPEG-2 TS files

Hi,

Here's the environment I have:

Serviio 1.1 installed on Fedora Core 17 with all the latest updates (with the default device profiles that came with Serviio)
Client 1: Samsung BD-C6500 Blu-ray player (uses the Samsung C/D profile)
Client 2: XBMC 12.0 (Frodo) RC3 installed on 64-bit Windows-7 (uses the Generic profile)

On above systems, I can play .mkv and .m4 all day long, works great. I have some MPEG-2 TS files, but on my clients I don't see these listed under either "Titles" or if I navigate to the folders offered up by Serviio. I have tried renaming to .ts and .mp4 without any change in behavior. Of course, if I navigate on XBMC using the Windows SMB mount instead of uPnP/DLNA, XBMC can play the files just fine. I have verified using the Serviio log that Serviio adds/removes the files as I change extensions on the file system, i.e. the files are in Serviio's library.

Any help on how I can play these files on my Samsung will be much appreciated. Thanks in advance.

Shash

PS: Here's the MediaInfo info:

General
ID : 1 (0x1)
Complete name : M:\video\Movies\myvideo.m2ts
Format : BDAV
Format/Info : Blu-ray Video
File size : 43.1 GiB
Duration : 2h 57mn
Overall bit rate mode : Variable
Overall bit rate : 34.8 Mbps
Maximum Overall bit rate : 35.5 Mbps

Video
ID : 4113 (0x1011)
Menu ID : 1 (0x1)
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings, CABAC : Yes
Format settings, ReFrames : 4 frames
Codec ID : 27
Duration : 2h 57mn
Bit rate mode : Variable
Bit rate : 32.1 Mbps
Maximum bit rate : 38.3 Mbps
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.646
Stream size : 39.7 GiB (92%)
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709

Audio #1
ID : 4352 (0x1100)
Menu ID : 1 (0x1)
Format : TrueHD / AC-3
Mode extension : CM (complete main)
Format settings, Endianness : Big
Muxing mode : Stream extension
Codec ID : 131
Duration : 2h 57mn
Bit rate mode : Variable / Constant
Bit rate : 640 Kbps
Maximum bit rate : 5 445 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Stream size : 811 MiB (2%)
Language : English

Audio #2
ID : 4353 (0x1101)
Menu ID : 1 (0x1)
Format : AC-3
Format/Info : Audio Coding 3
Mode extension : CM (complete main)
Format settings, Endianness : Big
Codec ID : 129
Duration : 2h 57mn
Bit rate mode : Constant
Bit rate : 640 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Compression mode : Lossy
Stream size : 811 MiB (2%)
Language : English

Text #1
ID : 4608 (0x1200)
Menu ID : 1 (0x1)
Format : PGS
Codec ID : 144
Language : English

Text #2
ID : 4609 (0x1201)
Menu ID : 1 (0x1)
Format : PGS
Codec ID : 144
Language : English

Text #3
ID : 4610 (0x1202)
Menu ID : 1 (0x1)
Format : PGS
Codec ID : 144
Language : Japanese

Text #4
ID : 4611 (0x1203)
Menu ID : 1 (0x1)
Format : PGS
Codec ID : 144
Language : Japanese

Text #5
ID : 4612 (0x1204)
Menu ID : 1 (0x1)
Format : PGS
Codec ID : 144
Language : Japanese

Text #6
ID : 4613 (0x1205)
Menu ID : 1 (0x1)
Format : PGS
Codec ID : 144
Language : Japanese
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Jan 14, 2013 4:43 pm

Re: Serviio won't list MPEG-2 TS files

can you post ffmpeg -i of the file?
<<

shashchatter

Serviio newbie

Posts: 12

Joined: Sat Jan 14, 2012 8:04 pm

Post Tue Jan 15, 2013 5:27 am

Re: Serviio won't list MPEG-2 TS files

Hi Petr,

Thanks a bunch for looking at this, much appreciated. The ffmpeg output is below. By the way, I originally had the ffmpeg and lame etc. libs from the Serviio-1.1 distribution installed. Yesterday I had installed the latest ffmpeg for fc17 via yum. In either case, the behavior was the same.

Thanks,
Shash


ffmpeg -i myvideo.m2ts
ffmpeg version 0.10.6 Copyright (c) 2000-2012 the FFmpeg developers
built on Oct 31 2012 22:24:06 with gcc 4.7.2 20120921 (Red Hat 4.7.2-2)
configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' --enable-bzlib --disable-crystalhd --enable-gnutls --enable-libass --enable-libcdio --enable-libcelt --enable-libdc1394 --disable-indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal --enable-libopenjpeg --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab --enable-avfilter --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-runtime-cpudetect
libavutil 51. 35.100 / 51. 35.100
libavcodec 53. 61.100 / 53. 61.100
libavformat 53. 32.100 / 53. 32.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 61.100 / 2. 61.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 6.100 / 0. 6.100
libpostproc 52. 0.100 / 52. 0.100
[mpegts @ 0x1322fa0] max_analyze_duration 5000000 reached at 5000000
[NULL @ 0x13309e0] start time is not set in estimate_timings_from_pts
[NULL @ 0x13314c0] start time is not set in estimate_timings_from_pts
[NULL @ 0x1336e00] start time is not set in estimate_timings_from_pts
[NULL @ 0x13377c0] start time is not set in estimate_timings_from_pts
[NULL @ 0x1338140] start time is not set in estimate_timings_from_pts
[NULL @ 0x1338bc0] start time is not set in estimate_timings_from_pts
Input #0, mpegts, from 'myvideo.m2ts':
Duration: 02:57:09.20, start: 599.958300, bitrate: 34802 kb/s
Program 1
Stream #0:0[0x1011]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc
Stream #0:1[0x1100](eng): Audio: truehd (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), s32
Stream #0:2[0x1100]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), s16, 640 kb/s
Stream #0:3[0x1101](eng): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), s16, 640 kb/s
Stream #0:4[0x1200](eng): Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
Stream #0:5[0x1201](eng): Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
Stream #0:6[0x1202](jpn): Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
Stream #0:7[0x1203](jpn): Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
Stream #0:8[0x1204](jpn): Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
Stream #0:9[0x1205](jpn): Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
At least one output file must be specified
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Jan 15, 2013 5:39 pm

Re: Serviio won't list MPEG-2 TS files

it's due to the truehd audio codec, probably.

Find this line in the C/D/E profile

  Code:
<Matches container="matroska" vCodec="h264" aCodec="truehd" />


and add this one after that

  Code:
<Matches container="mpegts" vCodec="h264" aCodec="truehd" />
<<

shashchatter

Serviio newbie

Posts: 12

Joined: Sat Jan 14, 2012 8:04 pm

Post Wed Jan 16, 2013 2:27 am

Re: Serviio won't list MPEG-2 TS files

Hi Petr,

Yes, that solved it. I can see and play the file on Samsung now. Thanks!

However, looks like my server cannot keep up with the frame rates when transcoding, both video and audio are choppy. I have an i5 with 3 (tried 4 also) cores allocated to Serviio transcoding. Is there a config which will allow playing it directly without transcoding? Or, is there some config I am missing to make transcoding work better?

Thanks,
Shash
<<

shashchatter

Serviio newbie

Posts: 12

Joined: Sat Jan 14, 2012 8:04 pm

Post Wed Jan 16, 2013 4:11 am

Re: Serviio won't list MPEG-2 TS files

Petr,

I experimented some more. I created a transcoding config to take the truehd stream and convert to lpcm, and as I understood it, the video was not converted:
<Video targetContainer="m2ts" targetACodec="lpcm">
<Matches container="mpegts" vCodec="h264" aCodec="truehd" />
</Video>

But, still the video/audio was choppy. I then tried XBMC running directly on my server and using files directly off the filesystem, and even then the video/audio was choppy. I resolved the XBMC problem by turning off the TrueHD audio stream, and then everything was fine. Seems like the TrueHD stream is just too high a bit rate for my system to keep up, the CPU or I/O or both gets too busy. The files I have also have AC-3 stream inside the container, how can I configure Serviio to pass the AC-3 stream directly to the Samsung and skip the TrueHD stream?

Thanks,
Shash
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Jan 17, 2013 1:28 pm

Re: Serviio won't list MPEG-2 TS files

Currently is uses the first track, so you'd have to remux your file so that the ac3 track is the first.

Return to Serviio Support & Help

Who is online

Users browsing this forum: No registered users and 33 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.