Page 1 of 1

[SOLVED] Sony Bravia online h264 aac stream no sound

PostPosted: Thu Feb 21, 2013 5:04 pm
by Grokix
Please, help with transcodding settings...

ffmpeg.exe -i:
  Code:
c:\Program Files\Serviio\lib>ffmpeg.exe -i "http://1.aaa.aaa.net/~aaa
o/1/"
ffmpeg version 1.1.1 Copyright (c) 2000-2013 the FFmpeg developers
  built on Feb  5 2013 21:59:54 with gcc 4.7.2 (GCC)
  configuration: --enable-static --disable-shared --disable-ffplay --disable-ffs
erver --enable-memalign-hack --enable-libmp3lame --enable-libass --enable-librtm
p --enable-fontconfig --enable-libfreetype --enable-zlib --extra-libs='-lrtmp -l
polarssl -lws2_32 -lwinmm -lexpat -lfreetype -lfribidi -lz' --arch=x86 --enable-
runtime-cpudetect --enable-pthreads --target-os=mingw32 --cross-prefix=i686-w64-
mingw32- --pkg-config=pkg-config
  libavutil      52. 13.100 / 52. 13.100
  libavcodec     54. 86.100 / 54. 86.100
  libavformat    54. 59.106 / 54. 59.106
  libavdevice    54.  3.102 / 54.  3.102
  libavfilter     3. 32.100 /  3. 32.100
  libswscale      2.  1.103 /  2.  1.103
  libswresample   0. 17.102 /  0. 17.102
[h264 @ 014DFE60] non-existing PPS referenced
[h264 @ 014DFE60] non-existing PPS 0 referenced
[h264 @ 014DFE60] decode_slice_header error
[h264 @ 014DFE60] no frame!
[h264 @ 014DFE60] non-existing PPS referenced
[h264 @ 014DFE60] non-existing PPS 0 referenced
[h264 @ 014DFE60] decode_slice_header error
[h264 @ 014DFE60] no frame!
[h264 @ 014DFE60] non-existing PPS referenced
[h264 @ 014DFE60] non-existing PPS 0 referenced
[h264 @ 014DFE60] decode_slice_header error
[h264 @ 014DFE60] no frame!
[h264 @ 014DFE60] non-existing PPS referenced
[h264 @ 014DFE60] non-existing PPS 0 referenced
[h264 @ 014DFE60] decode_slice_header error
[h264 @ 014DFE60] no frame!
[h264 @ 014DFE60] non-existing PPS referenced
[h264 @ 014DFE60] non-existing PPS 0 referenced
[h264 @ 014DFE60] decode_slice_header error
[h264 @ 014DFE60] no frame!
[h264 @ 014DFE60] non-existing PPS referenced
[h264 @ 014DFE60] non-existing PPS 0 referenced
[h264 @ 014DFE60] decode_slice_header error
[h264 @ 014DFE60] no frame!
[h264 @ 014DFE60] non-existing PPS referenced
[h264 @ 014DFE60] non-existing PPS 0 referenced
[h264 @ 014DFE60] decode_slice_header error
[h264 @ 014DFE60] no frame!
[h264 @ 014DFE60] non-existing PPS referenced
[h264 @ 014DFE60] non-existing PPS 0 referenced
[h264 @ 014DFE60] decode_slice_header error
[h264 @ 014DFE60] no frame!
[h264 @ 014DFE60] non-existing PPS referenced
[h264 @ 014DFE60] non-existing PPS 0 referenced
[h264 @ 014DFE60] decode_slice_header error
[h264 @ 014DFE60] no frame!
[h264 @ 014DFE60] non-existing PPS referenced
[h264 @ 014DFE60] non-existing PPS 0 referenced
[h264 @ 014DFE60] decode_slice_header error
[h264 @ 014DFE60] no frame!
[h264 @ 014DFE60] non-existing PPS referenced
[h264 @ 014DFE60] non-existing PPS 0 referenced
[h264 @ 014DFE60] decode_slice_header error
[h264 @ 014DFE60] no frame!
[h264 @ 014DFE60] non-existing PPS referenced
[h264 @ 014DFE60] non-existing PPS 0 referenced
[h264 @ 014DFE60] decode_slice_header error
[h264 @ 014DFE60] no frame!
[h264 @ 014DFE60] non-existing PPS referenced
[h264 @ 014DFE60] non-existing PPS 0 referenced
[h264 @ 014DFE60] decode_slice_header error
[h264 @ 014DFE60] no frame!
[h264 @ 014DFE60] non-existing PPS referenced
[h264 @ 014DFE60] non-existing PPS 0 referenced
[h264 @ 014DFE60] decode_slice_header error
[h264 @ 014DFE60] no frame!
[h264 @ 014DFE60] non-existing PPS referenced
[h264 @ 014DFE60] non-existing PPS 0 referenced
[h264 @ 014DFE60] decode_slice_header error
[h264 @ 014DFE60] no frame!
[h264 @ 014DFE60] non-existing PPS referenced
[h264 @ 014DFE60] non-existing PPS 0 referenced
[h264 @ 014DFE60] decode_slice_header error
[h264 @ 014DFE60] no frame!
[h264 @ 014DFE60] non-existing PPS referenced
[h264 @ 014DFE60] non-existing PPS 0 referenced
[h264 @ 014DFE60] decode_slice_header error
[h264 @ 014DFE60] no frame!
[h264 @ 014DFE60] non-existing PPS referenced
[h264 @ 014DFE60] non-existing PPS 0 referenced
[h264 @ 014DFE60] decode_slice_header error
[h264 @ 014DFE60] no frame!
[h264 @ 014DFE60] non-existing PPS referenced
[h264 @ 014DFE60] non-existing PPS 0 referenced
[h264 @ 014DFE60] decode_slice_header error
[h264 @ 014DFE60] no frame!
[h264 @ 014DFE60] non-existing PPS referenced
[h264 @ 014DFE60] non-existing PPS 0 referenced
[h264 @ 014DFE60] decode_slice_header error
[h264 @ 014DFE60] no frame!
[h264 @ 014DFE60] non-existing PPS referenced
[h264 @ 014DFE60] non-existing PPS 0 referenced
[h264 @ 014DFE60] decode_slice_header error
[h264 @ 014DFE60] no frame!
[h264 @ 014DFE60] non-existing PPS referenced
[h264 @ 014DFE60] non-existing PPS 0 referenced
[h264 @ 014DFE60] decode_slice_header error
[h264 @ 014DFE60] no frame!
[h264 @ 014DFE60] non-existing PPS referenced
[h264 @ 014DFE60] non-existing PPS 0 referenced
[h264 @ 014DFE60] decode_slice_header error
[h264 @ 014DFE60] no frame!
[mpegts @ 014B5AE0] max_analyze_duration 5000000 reached at 5000000
[mpegts @ 014B5AE0] Estimating duration from bitrate, this may be inaccurate
Input #0, mpegts, from 'http://1.aaa.aaa.net/~aaa/1/':
  Duration: N/A, start: 48787.508167, bitrate: 150 kb/s
  Program 1
    Metadata:
      service_name    : ?┐╒р╥ы┘
      service_provider: aaa.TV
    Stream #0:0[0x100]: Video: h264 (Constrained Baseline) ([27][0][0][0] / 0x00
1B), yuv420p, 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x101](rus): Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, ster
eo, fltp, 150 kb/s
At least one output file must be specified

device:
Sony KDL-22EX320

profile:
Any sony's profile works without sound

Debug log: too big, but i can post it if needed

Thanks.

Re: Sony Bravia online h264 aac stream no sound

PostPosted: Thu Feb 21, 2013 6:51 pm
by Illico
Is it local or online stream ?

Re: Sony Bravia online h264 aac stream no sound

PostPosted: Sun Feb 24, 2013 1:35 pm
by Grokix
Sony Bravia online h264 aac stream no sound

Re: Sony Bravia online h264 aac stream no sound

PostPosted: Tue Feb 26, 2013 1:53 pm
by Illico
Grokix wrote:Sony Bravia online h264 aac stream no sound

Ok sorry...

The aac audio track should be delivered in native format. Could you enable detailed logging file, and check the ffmeg command line used when you start to play this file ?

Re: Sony Bravia online h264 aac stream no sound

PostPosted: Tue Feb 26, 2013 5:19 pm
by Grokix
  Code:
2013-02-26 20:54:24,900 DEBUG [WebServer] Incoming connection from /192.168.1.35:44495
2013-02-26 20:54:24,901 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.35
2013-02-26 20:54:24,903 DEBUG [ResourceTransportRequestHandler] GET /resource/1000000010001161/MEDIA_ITEM/AVC_TS_MP_SD_AAC_MULT5_ISO-0/ORIGINAL HTTP/1.1, headers = [getcontentFeatures.dlna.org: 1,Pragma: getIfoFileURI.dlna.org,transferMode.dlna.org: Streaming,X-AV-Physical-Unit-Info: pa="BRAVIA KDL-22EX320";,X-AV-Client-Info: av=5.0; cn="Sony Corporation"; mn="BRAVIA KDL-22EX320"; mv="1.7";,Host: 192.168.1.36:8895]]
2013-02-26 20:54:24,903 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.35
2013-02-26 20:54:24,904 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'IPAddress=/192.168.1.35, Profile=Sony Bravia TV (2011)'
2013-02-26 20:54:24,905 DEBUG [ResourceDeliveryProcessor] Request for resource 1000000010001161 and type 'MEDIA_ITEM' received
2013-02-26 20:54:24,906 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 1000000010001161 (online)
2013-02-26 20:54:24,906 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 1)
2013-02-26 20:54:24,908 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 1000000010001161, format AVC_TS_MP_SD_AAC_MULT5_ISO and profile Sony Bravia TV (2011)
2013-02-26 20:54:24,909 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 1000000010001161 (online)
2013-02-26 20:54:24,910 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 1)
2013-02-26 20:54:24,911 DEBUG [VideoDeliveryEngine] Delivering item '1000000010001161' for client 'IPAddress=/192.168.1.35, Profile=Sony Bravia TV (2011)'
2013-02-26 20:54:24,913 DEBUG [VideoDeliveryEngine] Delivering file 'http://1.aaa.aaa.net/~aaa/1/' in native format
2013-02-26 20:54:24,913 DEBUG [ResourceDeliveryProcessor] Stream entity has length: 50000000000
2013-02-26 20:54:24,914 DEBUG [ResourceDeliveryProcessor] Sending file back
2013-02-26 20:54:24,914 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 200 OK, headers = [[Content-Type: video/mpeg,Content-Length: 50000000000,Date: Tue, 26 Feb 2013 16:54:24 GMT,Server: Windows 7, UPnP/1.0 DLNADOC/1.50, Serviio/1.1,Cache-control: no-cache,contentFeatures.dlna.org: DLNA.ORG_PN=AVC_TS_HD_24_AC3_ISO;DLNA.ORG_OP=00;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=8D500000000000000000000000000000,transferMode.dlna.org: Streaming,realTimeInfo.dlna.org: DLNA.ORG_TLAG=*]]
2013-02-26 20:54:24,914 DEBUG [OnlineInputStream] Reading 1512000 bytes starting at 0
2013-02-26 20:54:25,050 DEBUG [OnlineInputStream] Byte range not supported for http://1.aaa.aaa.net/~aaa/1/, returning the whole stream
2013-02-26 20:55:08,083 DEBUG [WebServer] I/O error: Software caused connection abort: socket write error
2013-02-26 20:55:08,083 DEBUG [OnlineInputStream] Closing stream


Illico wrote:The aac audio track should be delivered in native format.

It seems you are right...

Re: Sony Bravia online h264 aac stream no sound

PostPosted: Tue Feb 26, 2013 7:28 pm
by Illico
Could you provide ffmpeg -i of this stream (you only post stream 0.0 and 0.1, but I also need to know the container Input 0) ?

Re: Sony Bravia online h264 aac stream no sound

PostPosted: Tue Feb 26, 2013 7:29 pm
by Illico
On Sony Bravia 2011 profile section (profiles.xml) you can edit :

  Code:
      <OnlineTranscoding>
         <!-- Online AAC video streams miss sound, must transcode to ac3 -->
         <Video targetContainer="mpegts" targetACodec="ac3" aBitrate="384" forceInheritance="true">
            <Matches container="mp4" aCodec="aac" />
            <Matches container="flv" vCodec="h264" aCodec="aac" />
            <Matches container="applehttp" vCodec="h264" aCodec="aac" />            
            <Matches container="mpegts" vCodec="h264" aCodec="aac" />            
         </Video>
      </OnlineTranscoding>

Re: Sony Bravia online h264 aac stream no sound

PostPosted: Sat Mar 02, 2013 5:40 pm
by newborn
Or perhaps make the modification seen in the first post of this thread. http://forum.serviio.org/viewtopic.php?f=11&t=8581

Re: Sony Bravia online h264 aac stream no sound

PostPosted: Sat Mar 02, 2013 6:59 pm
by Illico
newborn wrote:Or perhaps make the modification seen in the first post of this thread. http://forum.serviio.org/viewtopic.php?f=11&t=8581


Yes newborn, this should be probably more accurate, Grokix, could you try this ?

Re: Sony Bravia online h264 aac stream no sound

PostPosted: Sat Mar 02, 2013 8:21 pm
by newborn
Interestingly the above mentioned fix did get sound for some streams where there was no sound before, but I got no sound when playing an itvplayer stream. I'm going to append contentType="vod" after all.

So

  Code:
<OnlineTranscoding>
         <Video targetContainer="mpegts" forceInheritance="true"> <!-- do not transcode to ac3 -->
               <Matches container="mp4" />
               <Matches container="flv" vCodec="h264" aCodec="aac" contentType="vod" />
               <Matches container="applehttp" vCodec="h264" />
         </Video>
         <Video targetContainer="mpeg" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="384" DAR="16:9" forceInheritance="true">
               <Matches container="asf" /> <!-- to support mms:// streams -->
               <Matches container="flv" />
         </Video>
</OnlineTranscoding>


Update 1: That didn't help.. Now trying:

  Code:
<OnlineTranscoding>
         <Video targetContainer="mpegts" forceInheritance="true"> <!-- do not transcode to ac3 -->
         <Matches container="mp4" />
         <Matches container="flv" vCodec="h264" contentType="vod" />
         <Matches container="applehttp" vCodec="h264" />
      </Video>
      <Video targetContainer="mpeg" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="384" DAR="16:9" forceInheritance="true">
         <Matches container="asf" /> <!-- to support mms:// streams -->
         <Matches container="flv" />
      </Video>
</OnlineTranscoding>


Update 2: That didn't help either... I guess I'll now add Illco's mime-type renaming stuff..

Re: Sony Bravia online h264 aac stream no sound

PostPosted: Sun Mar 03, 2013 10:57 am
by Grokix
Illico wrote:On Sony Bravia 2011 profile section (profiles.xml) you can edit :

  Code:
      <OnlineTranscoding>
         <!-- Online AAC video streams miss sound, must transcode to ac3 -->
         <Video targetContainer="mpegts" targetACodec="ac3" aBitrate="384" forceInheritance="true">
            <Matches container="mp4" aCodec="aac" />
            <Matches container="flv" vCodec="h264" aCodec="aac" />
            <Matches container="applehttp" vCodec="h264" aCodec="aac" />            
            <Matches container="mpegts" vCodec="h264" aCodec="aac" />            
         </Video>
      </OnlineTranscoding>


Thanks a lot!
The sound is now working, but video is slower then sound :( Sound speed is ok.
If I play this stream in VLC all is good.

I've updated ffmpeg info in my first post.

Re: Sony Bravia online h264 aac stream no sound

PostPosted: Sun Mar 03, 2013 1:03 pm
by Illico
Grokix wrote:If I play this stream in VLC all is good.

We can not compare VLC with Sony decoder. VLC is very permissive and better than Sony, which is very restrictive.

Grokix wrote:The sound is now working, but video is slower then sound :( Sound speed is ok.

hum...try this:
  Code:
      <OnlineTranscoding>
         <!-- Online AAC video streams miss sound, must transcode to ac3 -->
         <Video targetContainer="mpegts" targetACodec="ac3" aBitrate="384" forceInheritance="true">
            <Matches container="mp4" aCodec="aac" />
            <Matches container="flv" vCodec="h264" aCodec="aac" />
            <Matches container="applehttp" vCodec="h264" aCodec="aac" />            
         </Video>
         <Video targetContainer="mpegts" targetVCodec="mpeg2video" maxVBitrate="17000" targetACodec="ac3" aBitrate="384" DAR="16:9" forceInheritance="true">
            <Matches container="mpegts" vCodec="h264" aCodec="aac" />
         </Video>
      </OnlineTranscoding>

Re: Sony Bravia online h264 aac stream no sound

PostPosted: Wed Mar 06, 2013 8:26 pm
by Grokix
I've deleted "DAR="16:9" " from last config because Sony Bravia's zoom function worked bad.
Illico, now it works perfectly! Thanks a lot!

ps My home's TV fans thank you very much!