FAQ  •  Register  •  Login

AVI audio stutter on Sony Bravia KDL 46EX711

<<

impee

Serviio newbie

Posts: 6

Joined: Wed Feb 09, 2011 12:14 pm

Post Wed Feb 09, 2011 12:23 pm

AVI audio stutter on Sony Bravia KDL 46EX711

Hi,

First of all, i would like to express my appreciation for Serviio which is really a state-of-the-art software!

I've been using Serviio for some weeks now, and had only one problem: audio gets delayed, stuttered or even disappears with a particular avi (the video is allways ok). It happens always at the same places in the movie.

I'm using Serviio 0.5 out-of-the-box
TV: Sony KDL 46EX711
Transcoding: on (2 cores)
Profile: Sony Bravia

No problems with playing the particular avi with VLC on my laptop.
No problems with other avi's until now.
Tried to use the most recent ffmpeg: problem got even worse
Used wired connections to router/tv: problem remains


Any ideas to solve this problem?
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Wed Feb 09, 2011 1:27 pm

Re: AVI audio stutter on Sony Bravia KDL 46EX711

Could you provide "ffmpeg -i" result of the file? see my signature.

Stuttering could be due to high bitrate variation, but I've seen this problem only on video.

Could you try this:
  Code:
<Profile id="9" name="Sony Bravia TV" extendsProfileId="1">
      <Detection>
         <UPnPSearch>
            <FriendlyName>BRAVIA.*</FriendlyName>
         </UPnPSearch>
      </Detection>
      <MediaFormatProfiles>
         <!-- rename native mpeg2ts with h264/ac3 ac3 formats to those supported by the tv -->
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="AVC_TS_HD_50_AC3">AVC_TS_MP_HD_AC3</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="AVC_TS_HD_50_AC3">AVC_TS_MP_SD_AC3</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="AVC_TS_HD_50_AC3_T">AVC_TS_MP_HD_AC3_T</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="AVC_TS_HD_50_AC3_T">AVC_TS_MP_SD_AC3_T</MediaFormatProfile>
         <!-- rename transcoded mpeg2ts with h264 to one of the TV's supported profiles -->
         <MediaFormatProfile mime-type="video/mpeg" name="AVC_TS_HD_50_AC3_ISO">AVC_TS_MP_HD_AC3_ISO</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/mpeg" name="AVC_TS_HD_50_AC3_ISO">AVC_TS_MP_SD_AC3_ISO</MediaFormatProfile>
      </MediaFormatProfiles>
      <Transcoding>
         <!-- 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>
         <!--
            First remux all h264 video on MPEG-TS stream with ac3 audio transcoding, expected profile AVC_TS_MP_HD_AC3_ISO or
            AVC_TS_MP_SD_AC3_ISO
         -->
         <Video targetContainer="mpegts" targetACodec="ac3" aBitrate="192">
            <Matches container="avi" vCodec="h264" />
            <Matches container="mp4" vCodec="h264" />
            <Matches container="matroska" vCodec="h264" />
            <!-- if audio different to ac3, must be transcoded -->
            <Matches container="mpegts" aCodec="aac" />
            <Matches container="mpegts" aCodec="mp3" />
            <Matches container="mpegts" aCodec="dca" />
         </Video>
         <!-- All Others video/audio codec will be transcoded into mpeg2ts, mpeg2video and ac3 audio (MPEG_TS_SD_EU). -->
         <Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="192">
            <Matches container="asf" />
            <Matches container="avi" />
            <Matches container="mp4" />
            <Matches container="matroska" />
            <Matches container="flv" />
         </Video>
      </Transcoding>
      <AutomaticImageRotation>true</AutomaticImageRotation>
   </Profile>
Illico
Sony 2010 KDL-46EX501 | BDP-S373 | SMP-N100 | Windows 8-i7 | Network DD HD-CE1.5TLU2 | Livebox2-UHD86 | ServiiDroid | ServiiGo | BubbleUPnP
Serviio beta tester - Moderator
<<

impee

Serviio newbie

Posts: 6

Joined: Wed Feb 09, 2011 12:14 pm

Post Wed Feb 09, 2011 10:43 pm

Re: AVI audio stutter on Sony Bravia KDL 46EX711

Hi Illico,

The problem is solved after changing the profile with your alternative version. Do you advise me to always use the changed profile, or only when there are problems with the audio?

This was the output of ffmpeg.exe -i:

C:\Program Files\Serviio\lib>ffmpeg.exe -i "M:\Films\24\TV\24 S08 E01_arc.avi"
FFmpeg version UNKNOWN, Copyright (c) 2000-2011 the FFmpeg developers
built on Jan 10 2011 21:46:22 with gcc 4.4.2
configuration: --enable-static --disable-shared --disable-shared --disable-ffplay --disable-ffserver --enable-memalign-hack --enable-libmp3lame --arch=x86 --enable-runtime-cpudetect --enable-w32thre
ads --target-os=mingw32 --cross-prefix=i686-mingw32-
libavutil 50.36. 0 / 50.36. 0
libavcore 0.16. 0 / 0.16. 0
libavcodec 52.108. 0 / 52.108. 0
libavformat 52.92. 0 / 52.92. 0
libavdevice 52. 2. 3 / 52. 2. 3
libavfilter 1.72. 0 / 1.72. 0
libswscale 0.12. 0 / 0.12. 0
[mpeg4 @ 029c2190] Invalid and inefficient vfw-avi packed B frames detected
Seems stream 0 codec frame rate differs from container frame rate: 23.98 (65535/2733) -> 23.98 (24000/1001)
Input #0, avi, from 'M:\Films\24\TV\24 S08 E01_arc.avi':
Metadata:
encoder : VirtualDubMod 1.5.10.2 (build 2542/release)
Duration: 00:41:52.51, start: 0.000000, bitrate: 1168 kb/s
Stream #0.0: Video: mpeg4, yuv420p, 624x352 [PAR 1:1 DAR 39:22], 23.98 tbr, 23.98 tbn, 23.98 tbc
Stream #0.1: Audio: mp3, 48000 Hz, 2 channels, s16, 128 kb/s
At least one output file must be specified

And last but not least: thank you very much for your input. I appreciate it a lot!

Regards.
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Thu Feb 10, 2011 8:18 am

Re: AVI audio stutter on Sony Bravia KDL 46EX711

impee wrote:...
This was the output of ffmpeg.exe -i:
Input #0, avi, from 'M:\Films\24\TV\24 S08 E01_arc.avi':
Stream #0.0: Video: mpeg4, yuv420p, 624x352 [PAR 1:1 DAR 39:22], 23.98 tbr, 23.98 tbn, 23.98 tbc
Stream #0.1: Audio: mp3, 48000 Hz, 2 channels, s16, 128 kb/s

So your AVI file with MPEG4 Video and MP3 audio matches with the latest <Video> section, so you could only change audio bitrate to 192 in this section
<Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="192">

Check with that profile:
  Code:
<Profile id="9" name="Sony Bravia TV" extendsProfileId="1">
      <Detection>
         <UPnPSearch>
            <FriendlyName>BRAVIA.*</FriendlyName>
         </UPnPSearch>
      </Detection>
      <MediaFormatProfiles>
         <!-- rename native mpeg2ts with h264/ac3 ac3 formats to those supported by the tv -->
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="AVC_TS_HD_50_AC3">AVC_TS_MP_HD_AC3</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="AVC_TS_HD_50_AC3">AVC_TS_MP_SD_AC3</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="AVC_TS_HD_50_AC3_T">AVC_TS_MP_HD_AC3_T</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="AVC_TS_HD_50_AC3_T">AVC_TS_MP_SD_AC3_T</MediaFormatProfile>
         <!-- rename transcoded mpeg2ts with h264 to one of the TV's supported profiles -->
         <MediaFormatProfile mime-type="video/mpeg" name="AVC_TS_HD_50_AC3_ISO">AVC_TS_MP_HD_AC3_ISO</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/mpeg" name="AVC_TS_HD_50_AC3_ISO">AVC_TS_MP_SD_AC3_ISO</MediaFormatProfile>
      </MediaFormatProfiles>
      <Transcoding>
         <!-- 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>
         <!--
            First remux all h264 video on MPEG-TS stream with ac3 audio transcoding, expected profile AVC_TS_MP_HD_AC3_ISO or
            AVC_TS_MP_SD_AC3_ISO
         -->
         <Video targetContainer="mpegts" targetACodec="ac3" aBitrate="384">
            <Matches container="avi" vCodec="h264" />
            <Matches container="mp4" vCodec="h264" />
            <Matches container="matroska" vCodec="h264" />
            <!-- if audio different to ac3, must be transcoded -->
            <Matches container="mpegts" aCodec="aac" />
            <Matches container="mpegts" aCodec="mp3" />
            <Matches container="mpegts" aCodec="dca" />
         </Video>
         <!-- All Others video/audio codec will be transcoded into mpeg2ts, mpeg2video and ac3 audio (MPEG_TS_SD_EU). -->
         <Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="192">
            <Matches container="asf" />
            <Matches container="avi" />
            <Matches container="mp4" />
            <Matches container="matroska" />
            <Matches container="flv" />
         </Video>
      </Transcoding>
      <AutomaticImageRotation>true</AutomaticImageRotation>
   </Profile>
Illico
Sony 2010 KDL-46EX501 | BDP-S373 | SMP-N100 | Windows 8-i7 | Network DD HD-CE1.5TLU2 | Livebox2-UHD86 | ServiiDroid | ServiiGo | BubbleUPnP
Serviio beta tester - Moderator
<<

dougri

Streaming enthusiast

Posts: 26

Joined: Thu Feb 10, 2011 5:54 pm

Post Fri Feb 11, 2011 7:26 am

Re: AVI audio stutter on Sony Bravia KDL 46EX711

Having similar problems on a Sony BDP-BX37 (U.S. S370). Would a similar change to the U.S. Sony BDP profile be recommended?
<<

impee

Serviio newbie

Posts: 6

Joined: Wed Feb 09, 2011 12:14 pm

Post Fri Feb 11, 2011 8:54 am

Re: AVI audio stutter on Sony Bravia KDL 46EX711

Hi Illico,

Changing only the last <video> works too! Thanks.
I guess i should keep it like that?

Just to be curious: what is the rootcause of this problem? A bug in the TV, Serviio or just an optimalisation of the configuration? And why didn't i had the problem with other movies?

Regards.
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Fri Feb 11, 2011 9:24 am

Re: AVI audio stutter on Sony Bravia KDL 46EX711

impee wrote:...Changing only the last <video> works too! Thanks.
I guess i should keep it like that?

Yes
impee wrote:Just to be curious: what is the rootcause of this problem? A bug in the TV, Serviio or just an optimalisation of the configuration? And why didn't i had the problem with other movies?

Honestly I don't know
Illico
Sony 2010 KDL-46EX501 | BDP-S373 | SMP-N100 | Windows 8-i7 | Network DD HD-CE1.5TLU2 | Livebox2-UHD86 | ServiiDroid | ServiiGo | BubbleUPnP
Serviio beta tester - Moderator
<<

impee

Serviio newbie

Posts: 6

Joined: Wed Feb 09, 2011 12:14 pm

Post Fri Feb 11, 2011 12:19 pm

Re: AVI audio stutter on Sony Bravia KDL 46EX711

Hi Illico,

Thank you for the feedback and solution.
As far as i'm concerned, this topic can be closed.

Regards.

Return to Sony

Who is online

Users browsing this forum: No registered users and 9 guests

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