FAQ  •  Register  •  Login

Sony Bravia 2011 - Problem with 2 audio streams

<<

soundcheck

Post Fri Apr 13, 2012 8:01 am

Sony Bravia 2011 - Problem with 2 audio streams

Hi folks.

Below file is not handled properly with my Bravia 2011 profile.

  Code:
Input #0, mpegts, from '00129.m2ts':
  Duration: 02:02:46.44, start: 11.608967, bitrate: 28573 kb/s
  Program 1
    Stream #0:0[0x1011]: Video: h264 (High) (HDMV / 0x564D4448), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc
    Stream #0:1[0x1100]: 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



I was wondering what Serviio does, if it finds two different audio streams inside a file??

I assume streams 0 and 2 would be covered by the Bravia 2011 profile. I'm not sure about stream 1. So, it could be 1 making it fail.


What would be the rule "aCodec=??" to get "truehd" converted to ac3 normal according to the 2011 profile? (in case Serviio would use the first -- truehd -- stream)

Let me know - if that one needs a detailed log!?!?

Cheers
<<

soundcheck

Post Fri Apr 13, 2012 9:36 am

Re: Sony Bravia 2011 - Problem with 2 audio streams

Hi.

Just found that ffmpeg lets you select a particular audio stream for decoding/transcoding.

ffmpeg -i xxxx.xxx -map 0:x

Where would I select stream 0:1 or 0:2 in above case?

I'd assume that the DLNA server would offer two ( respectively all avialable ) audio streams in a renderer readable format. The renderer would offer me two or more audio streams to choose from.

That would be the same for two different language streams to choose from I suppose.


If Serviio detects two different resolution/quality streams (not different language).
Which one would get transcoded to the ac3 or whatever target format?

How is this handled??

Is Serviio offering multiple streams (e.g. language and format) to the renderer?? Or is it just looking at stream 0:1?

Is a Bravia capable to handle multiple (ac3) audio streams to choose from??

Lots of Q's. I know.

Cheers
Last edited by soundcheck on Fri Apr 13, 2012 2:47 pm, edited 4 times in total.
<<

soundcheck

Post Fri Apr 13, 2012 10:11 am

Re: Sony Bravia 2011 - Problem with 2 audio streams

Hi there.


I can confirm my above assumption that stream 0:1 is taken by Serviio 0.6.2 .

And this is why my Bravia won't accept the data.

That's pretty weak. Especially if there is a 2nd audio stream in ac3 available.

My little patch:

  Code:
--- profiles.xml.orig   2012-04-12 16:14:32.573902676 +0200
+++ profiles.xml   2012-04-13 11:50:24.583919532 +0200
@@ -558,6 +558,8 @@
             <Matches container="mp4" vCodec="h264" profile="high" levelGreaterThan="4.1" />
             <Matches container="mp4" vCodec="h264" profile="main" levelGreaterThan="4.1" />
             <Matches container="mpegts" vCodec="h264" profile="high" levelGreaterThan="4.1" />
+            <Matches container="mpegts" vCodec="h264" profile="high" levelGreaterThan="4.1" aCodec="truehd"/>
+            <Matches container="mpegts" vCodec="vc1"  />
                <Matches container="mpegts" vCodec="h264" profile="main" levelGreaterThan="4.1" />
          </Video>
          <!-- Remux h264 video with AC3 audio to MPEG-TS stream without transcoding -->
@@ -579,6 +581,7 @@
             <Matches container="mpegts" aCodec="mp3" />
             <Matches container="mpegts" aCodec="dca" />
             <Matches container="mpegts" aCodec="lpcm" />
+            <Matches container="mpegts" aCodec="truehd" />
             <Matches container="mpeg" aCodec="dca" />
             <Matches container="ogg" vCodec="mpeg4" />
          </Video>


made it work.

It's a workaround for now. Maybe it helps others.

However.

Would be nice to get the multiple audio stream handling under control. I havn't tested different language tracks yet.

(Above patch also covers my VC-1 problem I've been discussing over here: viewtopic.php?f=11&t=5909)

I'd appreciate if you could add this solution to the default profile. Perhaps there's a more appropriate/generic way to get it implemented. You're the experts.


Cheers
<<

patters

User avatar

DLNA master

Posts: 1282

Joined: Sat Oct 09, 2010 3:51 pm

Location: London, UK

Post Fri Apr 13, 2012 10:38 pm

Re: Sony Bravia 2011 - Problem with 2 audio streams

I think this pretty much the only obvious area for improvement with Serviio now. An audio language preference order and, as you suggest, some kind of audio format preference order. Many of the other improvement suggestions people tend to make are quite fanciful, but I wouldn't expect these to be too drastic to implement.
LG OLED55B8PLA | PS4 Pro | Xbox One S | Synology DS214play
Serviio 2.1 package for Synology NAS - with limited hardware transcoding support!
<<

soundcheck

Post Tue Apr 17, 2012 6:44 am

Re: Sony Bravia 2011 - Problem with 2 audio streams

patters wrote:I think this pretty much the only obvious area for improvement with Serviio now. An audio language preference order and, as you suggest, some kind of audio format preference order. Many of the other improvement suggestions people tend to make are quite fanciful, but I wouldn't expect these to be too drastic to implement.


1. Subtitle support -- I don't consider fanciful.
2. Raw to jpeg conversion -- I don't consider fanciful either. (tool to do it exists)

Both I consider pretty basic features and to me major weaknesses of Serviio.


Back to the original issue.

1. I do consider a logic that checks out compatability of all available audio streams formats a doable task too. Why transcoding a stream if a streamable format exists??
2. What I don't know is how DLNA and/or the renderer would handle different language streams.
3. There are also sometimes special purpose audio streams. How are these suppsed to be covered via DLNA.

Cheers
<<

patters

User avatar

DLNA master

Posts: 1282

Joined: Sat Oct 09, 2010 3:51 pm

Location: London, UK

Post Tue Apr 17, 2012 7:16 am

Re: Sony Bravia 2011 - Problem with 2 audio streams

Off topic but... SRT subs are supported and presented by Serviio, it's just Sony renderers that don't accept them. Re-encoding whole movies just to burn them in (as some other media servers do), isn't a proper solution in my opinion especially since many people run Serviio off low CPU power NAS systems.
LG OLED55B8PLA | PS4 Pro | Xbox One S | Synology DS214play
Serviio 2.1 package for Synology NAS - with limited hardware transcoding support!
<<

soundcheck

Post Wed Apr 18, 2012 1:21 pm

Re: Sony Bravia 2011 - Problem with 2 audio streams

patters wrote:Off topic but... SRT subs are supported and presented by Serviio, it's just Sony renderers that don't accept them. Re-encoding whole movies just to burn them in (as some other media servers do), isn't a proper solution in my opinion especially since many people run Serviio off low CPU power NAS systems.


As far as I understood from earlier discussions, it's a problem of ffmpeg to not allow hardcoding subtitles. You can add a subtitle stream ( -newsubtitle) but hardcoding won't work.

Let's keep the fingers crossed that ffmpeg is working on the subject.

But even if hardcoding would work, how would you tell Serviio to do it or to leave it --- on-the-fly ???

Somehow I see a need that serviio would offer the renderer certain playback options ( sound/language/movie with or without hardcoded subtitles)

Not that easy.

Best would be if Sony would do something about it.
<<

OldManPeabody

User avatar

Serviio newbie

Posts: 3

Joined: Sun Jan 02, 2011 6:57 am

Post Sun May 27, 2012 2:28 am

Re: Sony Bravia 2011 - Problem with 2 audio streams

yes, a nice feature to have for future releases.

for what it's worth, I used this application to strip out unwanted streams. Took 2 minutes to process a 2.5 hour MKV file.
http://www.makemkv.com/download/
Mac 10.6.8 | Serviio 6.2 | Sony BDP-S370 | Yamaha RX V596 | LG 50PX950

Return to Sony

Who is online

Users browsing this forum: No registered users and 16 guests

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