FAQ  •  Register  •  Login

MKV to M2TS, DTS to LPCM

<<

Kewl

Streaming enthusiast

Posts: 41

Joined: Mon Dec 13, 2010 1:15 pm

Location: Montreal, Canada

Post Wed Apr 06, 2011 11:29 am

MKV to M2TS, DTS to LPCM

I have a MacBook Pro with OS 10.6.7 and Serviio 0.5.2 combined with a Canadian Sony BDP-S370. To avoid video stutter from MKV files when the bitrate goes too high, I have to activate the transcoding for rewrapping into MPEG2TS. When the audio is DTS, it has to be transcoded to AC3.

To my taste, I thought that the 192 kbps default for the AC3 was too low, so I added aBirate="640" in the player profile. Success.

I then tried to transcode the DTS to linear PCM. Following the examples here http://www.serviio.org/index.php?option ... icle&id=24, I tried targetACodec="pcm_s16le" and targetACodec="pcm_s24le, either of them made Serviio quit at startup.

I read the transcoding page again and saw that one of the possible value for the targetACodec attribute was the generic "lpcm" rather then the more precise form like "pcm_s16le". With targetACodec="lpcm", Serviio starts up fine, but then it's the Sony BDP-S370 that say the file is corrupt when trying to play it.

What is the correct value for the targetACodec attribute? "lpcm" or "pcm_s16le" and similar?

Can a MPEG2TS stream contain uncompressed multichannel audio?

If yes, is the Sony BDP-S370 able to play such a stream?

TIA,

Kewl
MacBook Pro • macOS 10.13 -> Oppo UDP-203 -> Sony XBR-65X750D
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 16935

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Wed Apr 06, 2011 12:16 pm

Re: MKV to M2TS, DTS to LPCM

I an only answer one of your questions: use lpcm, the other value is not used any more (not a valid profiles.xml value) - but they both result in the same FFmpeg command
<<

Kewl

Streaming enthusiast

Posts: 41

Joined: Mon Dec 13, 2010 1:15 pm

Location: Montreal, Canada

Post Wed Apr 06, 2011 1:15 pm

Re: MKV to M2TS, DTS to LPCM

OK, thanks.

The example
  Code:
<Transcoding>   
 <Video targetContainer="mpegts" targetACodec="pcm_s16le">
  <Matches container="matroska" aCodec="dca"/>
 </Video>
</Transcoding>
in the transcoding configutation page should then be edited.
MacBook Pro • macOS 10.13 -> Oppo UDP-203 -> Sony XBR-65X750D
<<

Cerberus

User avatar

DLNA master

Posts: 4116

Joined: Sun Jan 02, 2011 5:20 pm

Location: Reading, UK

Post Wed Apr 06, 2011 2:13 pm

Re: MKV to M2TS, DTS to LPCM

Kewl wrote:OK, thanks.

The example
<Transcoding>
<Video targetContainer="mpegts" targetACodec="LPCM">
<Matches container="matroska" aCodec="dca"/>
</Video>
</Transcoding>

in the transcoding configutation page should then be edited.
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
<<

Kewl

Streaming enthusiast

Posts: 41

Joined: Mon Dec 13, 2010 1:15 pm

Location: Montreal, Canada

Post Wed Apr 06, 2011 3:51 pm

Re: MKV to M2TS, DTS to LPCM

Yes, that's what I'm saying. This:
Rewrapping media files

If the device supports audio or video stream but not the container file it's much better to set up only remuxing the streams into a different container. That will result in low CPU usage and no quality loss of the streams. Example might be remuxing MKV file with H264 video and aac audio into mpeg2ts file. The audio and/or video streams stay the same, only the container changes.

Example of a light-weight transcoding (only audio track) configuration is below. This configuration is not CPU intensive, because audio transcoding doesn't require much resources and the video stream is reused as is (no targetVCodec is defined).

<Transcoding>
<Video targetContainer="mpegts" targetACodec="pcm_s16le">
<Matches container="matroska" aCodec="dca"/>
</Video>
</Transcoding>

It means: transcode matroska files with DTS audio track into MPEG2 TS with LPCM track, but keep the video stream whatever it is (probably H264). All other matroska files will be played in their native format.
should be corrected.
MacBook Pro • macOS 10.13 -> Oppo UDP-203 -> Sony XBR-65X750D
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 16935

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Wed Apr 06, 2011 3:59 pm

Re: MKV to M2TS, DTS to LPCM

thanks for the spot, will fix asap

Return to Transcoding

Who is online

Users browsing this forum: No registered users and 4 guests

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