FAQ  •  Register  •  Login

Samsung C/D series profile question

<<

YTMY

User avatar

Serviio lover

Posts: 73

Joined: Wed May 04, 2011 7:02 pm

Location: Vilnius, Lithuania

Post Sat Dec 03, 2011 3:10 pm

Samsung C/D series profile question

Hi,

I noticed a line in C/D series profile which instructs serviio to transcode mpegts file with mp2 audio to ac3 audio:

  Code:
<!-- transcode H264 MP4 files with LPCM audio -->
         <Video targetContainer="mpegts" targetACodec="ac3">
            <Matches container="mpegts" aCodec="mp2" />


However I have this rather big file:

  Code:
Input #0, mpegts, from '\\KLIUNKIS\Media II\Concerts\Coldplay\Coldplay - Glastonbury - 2011 - 1080i.ts':
  Duration: 01:30:51.94, start: 0.245222, bitrate: 47501 kb/s
  Program 1
    Stream #0.0[0x134]: Video: mpeg2video (Main), yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 46131 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0.1[0x100](eng): Audio: mp2, 48000 Hz, stereo, s16, 256 kb/s


and problem was that when transcoding this 32GB file my system couldn't keep up and concert was impossible to watch (a lot of bufferings, huge disk I/O operations).
However when I commented-out transcoding of mp2 audio the file played (and plays) with no transcoding/buffering and with perfect audio on my Samsung C6500 series TV.

Maybe this transcoding is only for D series TVs? As I encountered C series can play mp2 audio stream with no transcoding.

br
Last edited by YTMY on Sat Dec 03, 2011 9:18 pm, edited 1 time in total.
| Samsung UE32C6500 LED | Windows 7 x64 | 5Ghz wi-fi N 300Mbps setup |
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Sat Dec 03, 2011 6:31 pm

Re: Samsung C/D series profile question

Interesting because according to my D series manual, only mpeg-ps will play mpeg and lpcm audio. mpeg-ts shows as only playing mp3.

Also seems strange that you can play a 50000kbps file over the network with no buffering. I've never achieved such bitrates.

You can of course use the maxVBitrate parameter to limit the transcoded bit rate. I limit mine to 30000.
<<

Cerberus

User avatar

DLNA master

Posts: 4114

Joined: Sun Jan 02, 2011 5:20 pm

Location: Reading, UK

Post Sat Dec 03, 2011 10:02 pm

Re: Samsung C/D series profile question

another reason why we need to split the C and D series profiles.
Phil Bennett
Beta Tester Group
Wiki | FAQ

Samsung LE40C750 LCD | Samsung BD-C5900 | Sony PS3 | Windows 7 |
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Sun Dec 04, 2011 4:40 am

Re: Samsung C/D series profile question

I don't see that. I suspect this is a manual error for the D series. Doesn't make much sense that ts will not play mp2 when ps will. What other differences have you documented that require a split?
<<

YTMY

User avatar

Serviio lover

Posts: 73

Joined: Wed May 04, 2011 7:02 pm

Location: Vilnius, Lithuania

Post Sun Dec 04, 2011 12:48 pm

Re: Samsung C/D series profile question

Well I wonder why this line was added in the first place. Actually it should say:

  Code:
<Matches container="mpegts" aCodec="lpcm" />


because m2ts files with pcm_bluray audio do not play audio on my TV without transcoding. When I added this line to transcoding profile everything is fine with audio as it is transcoded to ac3. C series manual also does not include mp2 or lpcm audio support for ts streams. It would be interesting to test another file with mp2 audio and ts container. Nevertheless this file also plays nicely directly from USB drive.

I stream through wireless connection using 5ghz band and 300mbps routers. I manage to squeeze a constant 8 MB/s which is in most cases enough for 1080i streams. However I'm still having trouble streaming 1080p content with high bitrate. I suppose I should upgrade to 450mbps to achieve that. :)

I should also say that I'm using beta 2 of 0.6.1. I did not check the profile of 0.6.0.1 version.
| Samsung UE32C6500 LED | Windows 7 x64 | 5Ghz wi-fi N 300Mbps setup |
<<

bugalugs

Serviio newbie

Posts: 17

Joined: Sun Nov 27, 2011 2:30 am

Post Sun Dec 04, 2011 12:52 pm

Re: Samsung C/D series profile question

Cant see this supported in my D series LCD. I know there are "D" Tv's in samsungs LED, LCD and plasma models... I assume the hardware platforms would vary between these?
Attachments
D-Series.png
D-Series.png (221.01 KiB) Viewed 18845 times
Samsung LA40D550
<<

YTMY

User avatar

Serviio lover

Posts: 73

Joined: Wed May 04, 2011 7:02 pm

Location: Vilnius, Lithuania

Post Sun Dec 04, 2011 1:45 pm

Re: Samsung C/D series profile question

Table is identical to my C series TV. I don't know too much about video and audio compression standards but after some googling I think Samsung's mp3 audio decoder can also decode mp2 audio stream although it is not included in spec table. Actually it might be that TV can decode all three audio layers of mpeg-1 standard (mp1, mp2 and mp3) for ts stream with mpeg-2 video (at least). MP2 audio is ussualy used for broadcasting (and my concert is a hdtv rip) in DVB channels.

As I mentioned I'm not good at this but it can be that Samsung uses the same decoder for video files as it uses for DVB (T or C) television.
Excuse me for my technical ignorance if I'm wrong. :)

To wrap up I think default profile for Samsung C/D series should be altered and line after:
  Code:
<Video targetContainer="mpegts" targetACodec="ac3">

should be changed from
  Code:
<Matches container="mpegts" aCodec="mp2" />

to
  Code:
<Matches container="mpegts" aCodec="lpcm" />
Last edited by YTMY on Wed Dec 07, 2011 9:14 am, edited 2 times in total.
<<

YTMY

User avatar

Serviio lover

Posts: 73

Joined: Wed May 04, 2011 7:02 pm

Location: Vilnius, Lithuania

Post Wed Dec 07, 2011 9:13 am

Re: Samsung C/D series profile question

One more thing I noticed is that one mpegts file with lpcm audio was throwing an error and not playing while trying to transcode to ac3.

Problem is that lpcm stream of this file is 96000 Hz. Although aSamplerate default should be 48000 Hz (which I did not alter) ffmpeg.exe received a command to transcode to 96000 Hz ac3 which is out of ac3 "coverage" and therefore transcoding failed with an error and file was not able to play on my TV.

So I forced aSamplerate for ac3 to be 48000Hz in profile. Now my (I hope final) working profile for Samsung C/D series is changed from:
  Code:
<Video targetContainer="mpegts" targetACodec="ac3">
            <Matches container="mpegts" aCodec="mp2" />
                                .......

to:
  Code:
<Video targetContainer="mpegts" targetACodec="ac3" aSamplerate="48000">
            <Matches container="mpegts" aCodec="lpcm" />
                                 ......

So far this setup works.
I hope anyone else will find this useful.
| Samsung UE32C6500 LED | Windows 7 x64 | 5Ghz wi-fi N 300Mbps setup |
<<

Liljestrom

Serviio newbie

Posts: 5

Joined: Mon Dec 26, 2011 8:51 am

Post Mon Dec 26, 2011 8:59 am

Re: Samsung C/D series profile question

I have a problem with BIG mkv/flac where it stops and loading every 10:th second. I have changed the profiles file due to that at first I did not get any sound in mkv/flac but it worked fine in mkv/dts. Now it working however loading for 3-4 seconds every 10:th second. I tried to lower audio bit to 128 without any change. It is all showing video withouit transcoding.

/F
<<

Liljestrom

Serviio newbie

Posts: 5

Joined: Mon Dec 26, 2011 8:51 am

Post Mon Dec 26, 2011 9:02 am

Re: Samsung C/D series profile question

Here is my Profiles.xml:

<Profile id="7" name="Samsung TV / player (C/D-series)" extendsProfileId="2">
<Detection>
<UPnPSearch>
<FriendlyName>(^TV-\d{2}C\d{3}.*)|(^\[TV\][A-Z]{2}\d{2}D\d{3}.*)</FriendlyName>
<ModelNumber>(1\.0)|(AllShare1\.0)</ModelNumber>
</UPnPSearch>
<HttpHeaders>
<!-- for BD players -->
<User-Agent>(.*SEC_HHP_BD-[CD].*)|(.*SEC_HHP_\[HT\][CD].*)</User-Agent>
</HttpHeaders>
</Detection>
<DeviceDescription>
<ExtraElements>
&lt;sec:ProductCap&gt;smi,DCM10,getMediaInfo.sec,getCaptionInfo.sec&lt;/sec:ProductCap&gt;
&lt;sec:X_ProductCap&gt;smi,DCM10,getMediaInfo.sec,getCaptionInfo.sec&lt;/sec:X_ProductCap&gt;
</ExtraElements>
</DeviceDescription>
<ContentDirectoryDefinitionFilter>org.serviio.upnp.service.contentdirectory.definition.SamsungContentDirectoryDefinitionFilter</ContentDirectoryDefinitionFilter>
<Transcoding>
<!-- Transcode all h264 video with HIGH/MAIN > Level 4.1 on MPEG-TS stream with MPEG2VIDEO and ac3 audio transcoding -->
<Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="128">
<Matches container="avi" vCodec="h264" profile="high" levelGreaterThan="4.2" />
<Matches container="avi" vCodec="h264" profile="main" levelGreaterThan="4.2" />
<Matches container="matroska" vCodec="h264" profile="high" levelGreaterThan="4.2" />
<Matches container="matroska" vCodec="h264" profile="main" levelGreaterThan="4.2" />
<Matches container="mp4" vCodec="h264" profile="high" levelGreaterThan="4.2" />
<Matches container="mp4" vCodec="h264" profile="main" levelGreaterThan="4.2" />
<Matches container="mp4" vCodec="mpeg4" aCodec="lpcm" />
</Video>
<!-- transcode H264 MP4 files with LPCM audio -->
<Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="128">
<Matches container="mpegts" aCodec="mp2" />
<Matches container="mp4" aCodec="lpcm" />
<Matches container="flv" vCodec="h264" />
<Matches container="matroska" vCodec="h264" aCodec="flac" />
<Matches container="matroska" vCodec="h264" aCodec="vorbis" />
<Matches container="matroska" vCodec="vc1" />
<Matches container="ogg" vCodec="mpeg4" />
<Matches container="3gp" aCodec="amrnb" />
</Video>
<!-- transcode MKV with MPEG2 video, remux into mpeg2ts -->
<!-- transcode AVI with AVC video -->
<Video targetContainer="mpegts" targetACodec="ac3" targetVCodec="mpeg2video">
<Matches container="matroska" vCodec="mpeg2video" />
<Matches container="avi" vCodec="h264" />
<Matches container="avi" vCodec="mjpeg" />
<Matches container="avi" vCodec="dvvideo" />
<Matches container="flv" />
<Matches container="ogg" />
</Video>
<!-- For dvr-ms files force mpeg2video transcoding to fix monotone timestamps problems-->
<Video targetContainer="mpegts" targetACodec="ac3" forceVTranscoding="true">
<Matches container="asf" vCodec="mpeg2video" />
</Video>
<Video targetContainer="mpegts">
<Matches container="wtv" />
</Video>
<!-- transcode audio only for wmv with wmapro -->
<Video targetContainer="asf" targetACodec="ac3" aBitrate="256">
<Matches container="asf" aCodec="wmapro" />
</Video>
<Audio targetContainer="lpcm">
<Matches container="mp4" />
<Matches container="flac" />
<Matches container="ogg" />
</Audio>
</Transcoding>
</Profile>
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Dec 26, 2011 7:58 pm

Re: Samsung C/D series profile question

you're transcoding h264 to mpeg2video, which might be quite slow for HD videos, depending on the CPU. Any reason why you're not just remuxing h264 to mpegts?
<<

Liljestrom

Serviio newbie

Posts: 5

Joined: Mon Dec 26, 2011 8:51 am

Post Wed Dec 28, 2011 3:14 pm

Re: Samsung C/D series profile question

If I don't have targetVCodec="mpeg2video" then I get Adio Codec not supported when I try to play the movie in my Samsung D7000... Any Idea?
<<

YTMY

User avatar

Serviio lover

Posts: 73

Joined: Wed May 04, 2011 7:02 pm

Location: Vilnius, Lithuania

Post Fri Dec 30, 2011 10:38 am

Re: Samsung C/D series profile question

Hi, my experience with Samsung C series TV showed that TV is rather slow while decoding ac3 streams in mpegts container (dunno why). Interestingely I even get better results (no bufferings) leaving ac3 audio but remuxing video into mpeg (not mpegts). To avoid bufferings and make these files compatible with TV I have the following config for matroska with flac (and others in that section):

  Code:
<!-- transcode H264 MP4 files with LPCM audio -->
<Video targetContainer="mpegts" targetACodec="mp3" aBitrate="320" aSamplerate="48000">


mp3 is not the best format and sometimes may cause an audible degradation in audio quality (not to mention the loss of surround) but it works ok for my not-so-high-end stereo audio system. :) Another option would be to transcode to aac as it supports surround. It worked for most of my files but not for all so I was forced to choose mp3.

And there is no need to transcode video. Check if that works for you.
| Samsung UE32C6500 LED | Windows 7 x64 | 5Ghz wi-fi N 300Mbps setup |
<<

Liljestrom

Serviio newbie

Posts: 5

Joined: Mon Dec 26, 2011 8:51 am

Post Tue Jan 03, 2012 2:27 pm

Re: Samsung C/D series profile question

When it comes to the Video stream that works great now with that line, however I get a messege on the TV (D7005) saying; Audio Codec not supported... :-(

Video works but no sound...

/F
<<

YTMY

User avatar

Serviio lover

Posts: 73

Joined: Wed May 04, 2011 7:02 pm

Location: Vilnius, Lithuania

Post Wed Jan 04, 2012 6:06 am

Re: Samsung C/D series profile question

HI, maybe this would work:

  Code:
<Video targetContainer="mpeg" targetACodec="ac3" aBitrate="192" aSamplerate="48000">
 <Matches container="mpegts" aCodec="mp2" />
 <Matches container="mp4" aCodec="lpcm" />
 <Matches container="flv" vCodec="h264" />
 <Matches container="matroska" vCodec="h264" aCodec="flac" />
 <Matches container="matroska" vCodec="h264" aCodec="vorbis" />
 <Matches container="matroska" vCodec="vc1" />
 <Matches container="ogg" vCodec="mpeg4" />
 <Matches container="3gp" aCodec="amrnb" />
 </Video>


I have one mkv/flac file and it works with mp3 transcoding for me fine on ue32c6500. There maybe something with FLAC stream. Can You post ffmpeg.exe -i of the file?
| Samsung UE32C6500 LED | Windows 7 x64 | 5Ghz wi-fi N 300Mbps setup |
<<

mjb

User avatar

Streaming enthusiast

Posts: 45

Joined: Fri Jan 06, 2012 10:42 pm

Post Fri Jan 06, 2012 11:34 pm

Re: Samsung C/D series profile question

Noob here. I have a Samsung BD-C6500 Blu-Ray player. I've deduced it can't play (without the audio & video stuttering and breaking up) video files whose overall bitrates ever go over about 8 Mbps. I like to stream DVD .VOB files which sometimes exceed this limit, so I'm looking into my options. With the C/D series profile, Serviio is working OK with this player, but unless I've misconfigured something, it doesn't seem to correct this issue. I'm under the impression I need to edit the transcoding section in profiles.xml, but I don't see a way to toggle transcoding based on bitrate. I also don't want to lose any surround channels. What should I do?

Here's an example of one that breaks up badly. Although overall bitrate is low, according to VLC stats the bitrate goes above the stated 8 Mbps every so often, and the player never recovers. In this case it seems the audio is kind of a hog, but it's fairly representative.
  Code:
Format                                   : MPEG-PS
File size                                : 197 MiB
Duration                                 : 4mn 17s
Overall bit rate mode                    : Variable
Overall bit rate                         : 6 409 Kbps
Writing library                          :

Video
ID                                       : 224 (0xE0)
Format                                   : MPEG Video
Format version                           : Version 2
Format profile                           : Main@Main
Format settings, BVOP                    : Yes
Format settings, Matrix                  : Custom
Format settings, GOP                     : M=3, N=16
Duration                                 : 4mn 17s
Bit rate mode                            : Variable
Bit rate                                 : 4 746 Kbps
Maximum bit rate                         : 8 000 Kbps
Width                                    : 720 pixels
Height                                   : 480 pixels
Display aspect ratio                     : 4:3
Frame rate                               : 29.970 fps
Standard                                 : NTSC
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Interlaced
Scan order                               : Top Field First
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 0.458
Stream size                              : 146 MiB (74%)
Writing library                          :
Color primaries                          : SMPTE 170M
Transfer characteristics                 : SMPTE 170M
Matrix coefficients                      : SMPTE 170M

Audio
ID                                       : 189 (0xBD)-160 (0xA0)
Format                                   : PCM
Format settings, Endianness              : Big
Format settings, Sign                    : Signed
Muxing mode                              : DVD-Video
Duration                                 : 4mn 17s
Bit rate mode                            : Constant
Bit rate                                 : 1 536 Kbps
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Stream size                              : 47.2 MiB (24%)


Here's another with the same issue. In this one, the video is pushing the limits, too:
  Code:
General
Format                                   : MPEG-PS
File size                                : 208 MiB
Duration                                 : 3mn 0s
Overall bit rate mode                    : Variable
Overall bit rate                         : 9 702 Kbps
Writing library                          :

Video
ID                                       : 224 (0xE0)
Format                                   : MPEG Video
Format version                           : Version 2
Format profile                           : Main@Main
Format settings, BVOP                    : Yes
Format settings, Matrix                  : Custom
Format settings, GOP                     : M=3, N=15
Duration                                 : 3mn 0s
Bit rate mode                            : Variable
Bit rate                                 : 7 973 Kbps
Maximum bit rate                         : 8 000 Kbps
Width                                    : 720 pixels
Height                                   : 576 pixels
Display aspect ratio                     : 4:3
Frame rate                               : 25.000 fps
Standard                                 : PAL
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Interlaced
Scan order                               : Bottom Field First
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 0.769
Stream size                              : 171 MiB (82%)
Writing library                          :

Audio
ID                                       : 189 (0xBD)-160 (0xA0)
Format                                   : PCM
Format settings, Endianness              : Big
Format settings, Sign                    : Signed
Muxing mode                              : DVD-Video
Duration                                 : 3mn 0s
Bit rate mode                            : Constant
Bit rate                                 : 1 536 Kbps
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Delay relative to video                  : -80ms
Stream size                              : 33.0 MiB (16%)


Let me know if you need more info. Thanks, and sorry if this is a FAQ; I tried searching but didn't come up with much other than this thread.
<<

Cerberus

User avatar

DLNA master

Posts: 4114

Joined: Sun Jan 02, 2011 5:20 pm

Location: Reading, UK

Post Fri Jan 06, 2012 11:35 pm

Re: Samsung C/D series profile question

max bitrate is 20mbps, depending your network speed and setup.
Phil Bennett
Beta Tester Group
Wiki | FAQ

Samsung LE40C750 LCD | Samsung BD-C5900 | Sony PS3 | Windows 7 |
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

YTMY

User avatar

Serviio lover

Posts: 73

Joined: Wed May 04, 2011 7:02 pm

Location: Vilnius, Lithuania

Post Sat Jan 07, 2012 2:09 pm

Re: Samsung C/D series profile question

It can be related to Your network setup. With mine I am able to watch mpeg-ts of ~48 mbps bitrate with no buffering or stuttering. Mine is TV UE32C6500 and according to manual it should only play up to 30mbps. Also, I get better results transcoding only audio stream for files with lpcm, dts streams (e.g. to ac3 as this will preserve surround if there is any) cause TV is somehow slow on decoding lpcm and dts streams and is buffering rather frequently.

If You cannot play files with over 8mbps bitrate, IMO You should first upgrade (fix) Your network hardware..
| Samsung UE32C6500 LED | Windows 7 x64 | 5Ghz wi-fi N 300Mbps setup |
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sat Jan 07, 2012 6:03 pm

Re: Samsung C/D series profile question

YTMY wrote:It can be related to Your network setup. With mine I am able to watch mpeg-ts of ~48 mbps bitrate with no buffering or stuttering. Mine is TV UE32C6500 and according to manual it should only play up to 30mbps. Also, I get better results transcoding only audio stream for files with lpcm, dts streams (e.g. to ac3 as this will preserve surround if there is any) cause TV is somehow slow on decoding lpcm and dts streams and is buffering rather frequently.

Interesting. Maybe we could have a section on the wiki related to certain devices/models with tips like these for ppl who want to tweak their profiles.
<<

Cerberus

User avatar

DLNA master

Posts: 4114

Joined: Sun Jan 02, 2011 5:20 pm

Location: Reading, UK

Post Sat Jan 07, 2012 7:36 pm

Re: Samsung C/D series profile question

zip wrote:
YTMY wrote:It can be related to Your network setup. With mine I am able to watch mpeg-ts of ~48 mbps bitrate with no buffering or stuttering. Mine is TV UE32C6500 and according to manual it should only play up to 30mbps. Also, I get better results transcoding only audio stream for files with lpcm, dts streams (e.g. to ac3 as this will preserve surround if there is any) cause TV is somehow slow on decoding lpcm and dts streams and is buffering rather frequently.

Interesting. Maybe we could have a section on the wiki related to certain devices/models with tips like these for ppl who want to tweak their profiles.


hes quoting the comment in teh profile.xml file i think but yer all profiles and information will be added to wiki once i can be bothered to :roll:
Phil Bennett
Beta Tester Group
Wiki | FAQ

Samsung LE40C750 LCD | Samsung BD-C5900 | Sony PS3 | Windows 7 |
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
Next

Return to Transcoding

Who is online

Users browsing this forum: No registered users and 36 guests

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