Page 1 of 1

No or jerky sound for some videos on Bravia XBR9

PostPosted: Sun Feb 06, 2011 10:25 pm
by kot
Hello!

I had this problem with 0.4.2, I'm still seeing it after upgrading to 0.5. Some of the video-files have either jerky-sound (skipping every second or so), and at least one has no sound at all. Here are the ffmpeg identifications for two of them (file-names and paths obscured, but filename-extensions preserved):
  • Jerky sound:
      Code:
    FFmpeg version 0.6.1, Copyright (c) 2000-2010 the FFmpeg developers
      built on Dec 13 2010 02:00:11 with gcc 4.2.1 20070719  [FreeBSD]
      configuration: --prefix=/opt --mandir=/opt/man --enable-shared --enable-gpl --enable-postproc --enable-avfilter --enable-avfilter-lavf --enable-pthreads --enable-x11grab --enable-memalign-hack --cc=cc --extra-cflags=-msse -I/opt/include/vorbis -I/opt/include --extra-ldflags=-L/opt/lib --extra-libs=-pthread --disable-debug --enable-libopencore-amrnb --enable-version3 --enable-libopencore-amrwb --enable-version3 --enable-libdirac --enable-libfaac --enable-nonfree --enable-libfaad --enable-libfaadbin --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid
      libavutil     50.15. 1 / 50.15. 1
      libavcodec    52.72. 2 / 52.72. 2
      libavformat   52.64. 2 / 52.64. 2
      libavdevice   52. 2. 0 / 52. 2. 0
      libavfilter    1.19. 0 /  1.19. 0
      libswscale     0.11. 0 /  0.11. 0
      libpostproc   51. 2. 0 / 51. 2. 0
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/green/YYYYY.mp4':
      Metadata:
        major_brand     : ndss
        minor_version   : 0
        compatible_brands: mp42isomndss
      Duration: 00:03:29.24, start: 0.000000, bitrate: 1878 kb/s
        Chapter #0.0: start 0.000000, end 209.240000
        Metadata:
          title           : XXXXXXX
        Stream #0.0(eng): Video: mpeg4, yuv420p, 704x544 [PAR 1:1 DAR 22:17], 1798 kb/s, 25 fps, 25 tbr, 25k tbn, 25 tbc
        Stream #0.1(eng): Audio: aac, 44100 Hz, stereo, s16, 73 kb/s
    At least one output file must be specified
  • No sound:
      Code:
    FFmpeg version 0.6.1, Copyright (c) 2000-2010 the FFmpeg developers
      built on Dec 13 2010 02:00:11 with gcc 4.2.1 20070719  [FreeBSD]
      configuration: --prefix=/opt --mandir=/opt/man --enable-shared --enable-gpl --enable-postproc --enable-avfilter --enable-avfilter-lavf --enable-pthreads --enable-x11grab --enable-memalign-hack --cc=cc --extra-cflags=-msse -I/opt/include/vorbis -I/opt/include --extra-ldflags=-L/opt/lib --extra-libs=-pthread --disable-debug --enable-libopencore-amrnb --enable-version3 --enable-libopencore-amrwb --enable-version3 --enable-libdirac --enable-libfaac --enable-nonfree --enable-libfaad --enable-libfaadbin --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid
      libavutil     50.15. 1 / 50.15. 1
      libavcodec    52.72. 2 / 52.72. 2
      libavformat   52.64. 2 / 52.64. 2
      libavdevice   52. 2. 0 / 52. 2. 0
      libavfilter    1.19. 0 /  1.19. 0
      libswscale     0.11. 0 /  0.11. 0
      libpostproc   51. 2. 0 / 51. 2. 0
    [mpeg @ 0x805652010]max_analyze_duration reached
    Input #0, mpeg, from '/green/ZZZZZ.mpg':
      Duration: 00:02:56.28, start: 0.384444, bitrate: 1900 kb/s
        Stream #0.0[0x1e0]: Video: mpeg1video, yuv420p, 352x288 [PAR 1:1 DAR 11:9], 1638 kb/s, 25 fps, 25 tbr, 90k tbn, 25 tbc
        Stream #0.1[0x1c0]: Audio: mp2, 44100 Hz, 2 channels, s16, 224 kb/s
    At least one output file must be specified

I'm going to try to (reluctantly) switch on the "Downmix to stereo" option -- and will report, whether that helped. But, obviously, I'd rather listen to the full sound, if the video contains it...

Re: No or jerky sound for some videos on Bravia XBR9

PostPosted: Mon Feb 07, 2011 3:23 pm
by kot
Selecting the "Downmix to stereo" radio-button in console (and pushign "Save") did not help... Do I need to restart the server, perhaps?

Re: No or jerky sound for some videos on Bravia XBR9

PostPosted: Mon Feb 07, 2011 6:14 pm
by zip
you could try setting up transcoding into ac3

Re: No or jerky sound for some videos on Bravia XBR9

PostPosted: Mon Feb 07, 2011 7:30 pm
by Illico
Which profile did you used?
Could you check on detailed logging file the ffmpeg command line when your start streaming these movies?

Re: No or jerky sound for some videos on Bravia XBR9

PostPosted: Tue Feb 08, 2011 5:57 am
by kot
Illico wrote:Which profile did you used?

It is the "Sony Bravia TV" profile (explicitly set, automatic recognition no longer works for me in 0.5 for some reason).

Re: No or jerky sound for some videos on Bravia XBR9

PostPosted: Tue Feb 08, 2011 3:29 pm
by zip
kot wrote:
Illico wrote:Which profile did you used?

It is the "Sony Bravia TV" profile (explicitly set, automatic recognition no longer works for me in 0.5 for some reason).

Can you remove the TV from the list of renderers, enable detailed logging and restart Serviio? It should give me some info about the TV so that the detection can be amended. Post the beginning of the new log file (you should see line like Adding new Renderer ....)

Re: No or jerky sound for some videos on Bravia XBR9

PostPosted: Mon Feb 14, 2011 2:52 pm
by Fig
I just installed 0.5 and I have the same problem (with the XBR9). The profile works great except for some audio issues. I did some experimenting and found out that the Bravia XBR9 is somewhat fussy about audio bit rate and sample rate. If the sample rate is not 48K. you can have issues. One test stream with 22500 sample rate would not produce audio at all. In addition, it does not like audio bit rates lower than 128K. I see that we can now set the bit rate in Serviio. So how can we force Serviio to transcode with a 48K sample rate?

Re: No or jerky sound for some videos on Bravia XBR9

PostPosted: Mon Feb 14, 2011 3:09 pm
by zip
You cannot, but it should be fixed in 0.5.1 (set it to 48000 if original less than 41000)

Re: No or jerky sound for some videos on Bravia XBR9

PostPosted: Mon Feb 14, 2011 6:24 pm
by Fig
That great Petr! I don't know why the XBR9 (2009 model) is so picky. Mp3 audio files at 44100 seem to play fine. I look forward to 0.5.1!

Re: No or jerky sound for some videos on Bravia XBR9

PostPosted: Mon Mar 28, 2011 3:47 am
by kot
Unfortunately, this problem remain in 0.5.2. In particular, I have a collection of music videos with only two of the clips playable. All others skip about half a second of sound for half a second played... The playable ones are in AVI, the "bad" ones are MP4... These aren't too large, so I can upload them some place for anybody's testing...

Re: No or jerky sound for some videos on Bravia XBR9

PostPosted: Mon Mar 28, 2011 4:26 am
by kot
Interestingly, when I turn off the receiver, that the TV feeds via an optical cable, I get normal sound from the TV's own speakers...

Obviously, I'd rather be using my 5.1 "home theater" than TV's puny stereo, but, perhaps, this can help narrow the problem down...

Re: No or jerky sound for some videos on Bravia XBR9

PostPosted: Fri Nov 11, 2011 4:42 pm
by kot
This is still a problem with Serviio 0.6.0.1 (and even the newest ffmpeg 0.7.7).