Page 1 of 1

Panasonic UT50 issue using huyz profile since upgrade to 1.1

PostPosted: Fri Jan 25, 2013 4:43 am
by pvut50guy
Hello.

I've been running Serviio 1.0.1 for several months on a Win7 x64 machine and playing all kinds of videos pretty well on my Panasonic TC-P50UT50. However, since I was having a problem with some videos skipping or stopping before the end of the video, I decided to upgrade to Serviio 1.1, hoping that issue was fixed.

Unfortunately, since upgrading, all of my videos now exhibit a syncing problem between the video and audio when watched on my Panasonic. The audio seems to always be a little faster than the video and videos are basically unwatchable there. When I watch the videos on the Win7 PC they are synced fine though. I then downgraded (on Windows) by uninstalling 1.1 completely and after rebooting re-installed 1.0.1, but still the syncing problem was there, so I was quite confused. Incidentally, I have been using the huyz profile for transcoding and it was originally working fine under 1.0.1. The profile is attached.

I decided to build a separate Ubuntu VM and install Serviio there to see if maybe there was a problem with my Win7 box. I installed Ubuntu 12.04.1 and followed the very well written wiki here, http://wiki.serviio.org/doku.php?id=build_ffmpeg_linux, to compile and install ffmpeg and all of it's dependencies. I then installed and ran serviio.sh and the serviio-console.sh and selected the huyz profile (which I had manually inserted into profile.xml). Surprisingly, the same exact sync issue still occurred. So now, I am convinced I have either somehow screwed up the profile that was working, or Serviio 1.1 introduced a problem (bug?) which makes the transcoding not sync video and audio for my setup.

Can I download the previous Linux 1.0.1 version please so I can try that?

If anyone has any insights into what my audio/video syncing problem is caused by, please let me know. I'm going a little nuts not being able to watch my videos on my TV anymore. Does the profile look okay?

Thanks!

Re: Panasonic UT50 issue using huyz profile since upgrade to

PostPosted: Fri Jan 25, 2013 4:47 am
by pvut50guy
Also, here is the output of "ffmpeg -i <file>" for an example video:

pvut@ubu12:/win/vid/TV/Seinfeld/S3$ ffmpeg -i "018 - The Note - [DVD].avi"
ffmpeg version N-42368-gbf53863 Copyright (c) 2000-2012 the FFmpeg developers
built on Jan 24 2013 22:40:31 with gcc 4.6.3
configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab --enable-libvpx --enable-librtmp --enable-libxvid
libavutil 51. 64.100 / 51. 64.100
libavcodec 54. 33.100 / 54. 33.100
libavformat 54. 15.102 / 54. 15.102
libavdevice 54. 1.100 / 54. 1.100
libavfilter 3. 1.100 / 3. 1.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
[mp3 @ 0x96f7120] Header missing
[mpeg4 @ 0x96f66e0] Invalid and inefficient vfw-avi packed B frames detected
Input #0, avi, from '018 - The Note - [DVD].avi':
Metadata:
encoder : Nandub v1.0rc2
Duration: 00:21:34.36, start: 0.000000, bitrate: 1134 kb/s
Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv420p, 576x432 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn, 25 tbc
Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16, 96 kb/s
At least one output file must be specified

Re: Panasonic UT50 issue using huyz profile since upgrade to

PostPosted: Sat Jan 26, 2013 5:41 pm
by zip
didn't you say that after downgrading to 1.0.1 on Windows the out-of-sync still occurred? If yes, that would mean there is no difference in Serviio core. Did you upgrade the TV's firmware? Could the quality of your network become worse?

Re: Panasonic UT50 issue using huyz profile since upgrade to

PostPosted: Sat Jan 26, 2013 6:32 pm
by pvut50guy
Hi Zip,

Thanks so much for the reply!
You are correct. After a bunch more testing I'm also convinced the problem is not with Serviio core itself, but rather the transcoding (for certain files). After testing a few different file types I noticed a lot of my newer files do play fine, but some of my older AVI files (for example) are having the syncing issue. I've read some of the transcoding tips in various forum threads and have made some small modifications to the profile, but so far I haven't been able to solve the sync issue. It is specifically affecting all the files I have for two different shows. Here is the ffprobe output for two example files where the video and audio is off by a second or two:

  Code:
pvut@ubu12:~/src/serviio-1.1/config$ ffprobe /win/vid/TV/24/S3/v/24.S03E13.WS.DVDRIP.XVID-SFM.AVI
ffprobe version N-42368-gbf53863 Copyright (c) 2007-2012 the FFmpeg developers
  built on Jan 24 2013 22:40:31 with gcc 4.6.3
  configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab --enable-libvpx --enable-librtmp --enable-libxvid
  libavutil      51. 64.100 / 51. 64.100
  libavcodec     54. 33.100 / 54. 33.100
  libavformat    54. 15.102 / 54. 15.102
  libavdevice    54.  1.100 / 54.  1.100
  libavfilter     3.  1.100 /  3.  1.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
Input #0, avi, from '/win/vid/TV/24/S3/v/24.S03E13.WS.DVDRIP.XVID-SFM.AVI':
  Metadata:
    encoder         : VirtualDubMod 1.5.10.1 (build 2366/release)
  Duration: 00:42:22.56, start: 0.000000, bitrate: 1159 kb/s
    Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv420p, 576x320 [SAR 1:1 DAR 9:5], 25 tbr, 25 tbn, 25 tbc
    Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16, 32 kb/s

pvut@ubu12:~/src/serviio-1.1/config$ ffprobe /win/vid/TV/Seinfeld/S3/026\ -\ The\ Nose\ Job\ -\ \[DVD\].avi
ffprobe version N-42368-gbf53863 Copyright (c) 2007-2012 the FFmpeg developers
  built on Jan 24 2013 22:40:31 with gcc 4.6.3
  configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab --enable-libvpx --enable-librtmp --enable-libxvid
  libavutil      51. 64.100 / 51. 64.100
  libavcodec     54. 33.100 / 54. 33.100
  libavformat    54. 15.102 / 54. 15.102
  libavdevice    54.  1.100 / 54.  1.100
  libavfilter     3.  1.100 /  3.  1.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
[mp3 @ 0xa7c7220] Header missing
[mpeg4 @ 0xa7c67e0] Invalid and inefficient vfw-avi packed B frames detected
Input #0, avi, from '/win/vid/TV/Seinfeld/S3/026 - The Nose Job - [DVD].avi':
  Metadata:
    encoder         : Nandub v1.0rc2
  Duration: 00:21:35.36, start: 0.000000, bitrate: 1132 kb/s
    Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv420p, 576x432 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn, 25 tbc
    Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16, 96 kb/s


The current version of the profile I am using is here:

  Code:
<Profile id="viera2012z" name="Panasonic Viera HUYZ AVI,MOV,MP4,3GP" extendsProfileId="1">
      <ContentDirectoryMessageBuilder>org.serviio.upnp.service.contentdirectory.PacketVideoDLNAMessageBuilder</ContentDirectoryMessageBuilder>
      <SubtitlesMimeType>text/srt</SubtitlesMimeType>
      <Transcoding>
         <!-- remux DTS/FLAC/LPCM in MKV/MP4 to AC3 -->
         <Video targetContainer="mpegts" targetACodec="ac3">
            <Matches container="matroska" vCodec="h264" aCodec="dca" />
            <Matches container="matroska" vCodec="h264" aCodec="flac" />
            <Matches container="matroska" vCodec="h264" aCodec="vorbis" />
            <Matches container="matroska" vCodec="h264" aCodec="truehd" />
            <Matches container="mp4" vCodec="h264" aCodec="lpcm"/>
            <!-- huyz: ST30 manual says AAC should work (and it does for MKV) but transcoding is needed for our .mp4 (and the equivalent .mov) files -->
            <Matches container="mp4" vCodec="h264" aCodec="aac"/>
            <Matches container="3gp" vCodec="h264" />
         </Video>
         <!-- Remux all h264 video to MPEG-TS stream -->
         <Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3">
            <Matches container="avi" vCodec="h264" />
            <Matches container="mp4" vCodec="h264" />
            <Matches container="matroska" vCodec="h264" />
            <Matches container="matroska" vCodec="mpeg2video"/>
          </Video>
         <!-- unsupported codecs will be transcoded into mpeg-ts, mpeg2 video and ac3 audio -->
         <Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3">
            <!-- huyz: do all AVIs, including mpeg4 (Xvid) and msmpeg4 video codecs
            <Matches container="avi" vCodec="mjpeg" />
            <Matches container="avi" vCodec="dvvideo" />
            <Matches container="avi" vCodec="mpeg4" aCodec="mp3" />
            <Matches container="avi" vCodec="mpeg4" vFourCC="xvid" />
            -->
            <Matches container="avi"/>
            <Matches container="mp4" vCodec="mjpeg" />
            <Matches container="mp4" vCodec="mpeg4" /> <!-- huyz: this Panasonic doesn't support mpeg4 -->
            <Matches container="asf" />
            <Matches container="flv" />
            <Matches container="ogg" />
            <Matches container="3gp" />
         </Video>
         <Video targetContainer="asf" targetVCodec="wmv2" targetACodec="wmav2" maxVBitrate="15360">
          <Matches container="matroska" />
          <Matches container="mpeg" />
          <Matches container="mpegvideo" />
         </Video>
         <Video targetContainer="mpeg" targetVCodec="mpeg2video" targetACodec="ac3">
          <Matches container="mpegts" aCodec="aac"/>
         </Video>
         <Audio targetContainer="mp3">
            <Matches container="mp4" />
            <Matches container="flac" />
            <Matches container="ogg" />
            <Matches container="asf" />
            <Matches container="adts" />
         </Audio>
      </Transcoding>
   </Profile>


I added this line <Matches container="avi" vCodec="mpeg4" vFourCC="xvid" /> to try and force XVID videos, such as the two video examples above, to transcode to mpeg2-ts, and my TV does in fact show MPEG2-TS next to those files when viewing them. I think there may be something wrong with the audio transcoding somehow, but I don't know enough about transcoding yet to really understand the issue. The audio actually sounds fine, it's just not synchronized with the video.

Do you agree this is a transcoding issue, and if so, do you have any suggestions on how I could fix my profile?

Thanks very much!

Re: Panasonic UT50 issue using huyz profile since upgrade to

PostPosted: Sat Jan 26, 2013 6:38 pm
by pvut50guy
Also, to answer your questions, nothing has changed on my home network. As far as I can tell, everything is working fine with regard to network reliability and bandwidth. I also have not upgraded the firmware on the TV and have the auto-check-for-updates feature disabled on my TV. For now, I'm sticking with running Serviio on my Ubuntu 12.04.1 machine.

In case it is helpful, I will also post the MediaInfo output for those two example files I referenced above:

  Code:
pvut@ubu12:~/src/serviio-1.1/config$ mediainfo /win/vid/TV/24/S3/v/24.S03E13.WS.DVDRIP.XVID-SFM.AVI
General
Complete name                            : /win/vid/TV/24/S3/v/24.S03E13.WS.DVDRIP.XVID-SFM.AVI
Format                                   : AVI
Format/Info                              : Audio Video Interleave
File size                                : 351 MiB
Duration                                 : 42mn 22s
Overall bit rate mode                    : Variable
Overall bit rate                         : 1 159 Kbps
Writing application                      : VirtualDubMod 1.5.10.1 (build 2366/release)
Writing library                          : VirtualDubMod build 2366/release

Video
ID                                       : 0
Format                                   : MPEG-4 Visual
Format profile                           : Advanced Simple@L5
Format settings, BVOP                    : No
Format settings, QPel                    : No
Format settings, GMC                     : No warppoints
Format settings, Matrix                  : Default (H.263)
Codec ID                                 : XVID
Codec ID/Hint                            : XviD
Duration                                 : 42mn 22s
Bit rate                                 : 1 019 Kbps
Width                                    : 576 pixels
Height                                   : 320 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 25.000 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 0.221
Stream size                              : 309 MiB (88%)
Writing library                          : XviD 1.0.1 (UTC 2004-06-05)

Audio
ID                                       : 1
Format                                   : MPEG Audio
Format version                           : Version 1
Format profile                           : Layer 3
Mode                                     : Joint stereo
Mode extension                           : MS Stereo
Codec ID                                 : 55
Codec ID/Hint                            : MP3
Duration                                 : 42mn 22s
Bit rate mode                            : Variable
Bit rate                                 : 128 Kbps
Channel(s)                               : 2 channels
Sampling rate                            : 48.0 KHz
Compression mode                         : Lossy
Stream size                              : 38.7 MiB (11%)
Alignment                                : Aligned on interleaves
Interleave, duration                     : 24 ms (0.60 video frame)
Interleave, preload duration             : 144 ms
Writing library                          : LAME3.93a
Encoding settings                        : -m j -V 4 -q 2 -lowpass 17.5 --abr 128


  Code:
davo@ubu12:~/src/serviio-1.1/config$ mediainfo /win/vid/TV/Seinfeld/S3/026\ -\ The\ Nose\ Job\ -\ \[DVD\].avi
General
Complete name                            : /win/vid/TV/Seinfeld/S3/026 - The Nose Job - [DVD].avi
Format                                   : AVI
Format/Info                              : Audio Video Interleave
File size                                : 175 MiB
Duration                                 : 21mn 35s
Overall bit rate mode                    : Variable
Overall bit rate                         : 1 133 Kbps
Writing application                      : Nandub v1.0rc2
Writing library                          : Nandub build 1853/release

Video
ID                                       : 0
Format                                   : MPEG-4 Visual
Format profile                           : Advanced Simple@L5
Format settings, BVOP                    : 2
Format settings, QPel                    : No
Format settings, GMC                     : No warppoints
Format settings, Matrix                  : Default (H.263)
Muxing mode                              : Packed bitstream
Codec ID                                 : XVID
Codec ID/Hint                            : XviD
Duration                                 : 21mn 35s
Bit rate                                 : 984 Kbps
Width                                    : 576 pixels
Height                                   : 432 pixels
Display aspect ratio                     : 4:3
Frame rate                               : 25.000 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 0.158
Stream size                              : 152 MiB (87%)
Writing library                          : XviD 1.0.2 (UTC 2004-08-29)

Audio
ID                                       : 1
Format                                   : MPEG Audio
Format version                           : Version 1
Format profile                           : Layer 3
Mode                                     : Joint stereo
Mode extension                           : MS Stereo
Codec ID                                 : 55
Codec ID/Hint                            : MP3
Duration                                 : 21mn 35s
Bit rate mode                            : Variable
Bit rate                                 : 135 Kbps
Channel(s)                               : 2 channels
Sampling rate                            : 48.0 KHz
Compression mode                         : Lossy
Delay relative to video                  : 8ms
Stream size                              : 20.9 MiB (12%)
Alignment                                : Aligned on interleaves
Interleave, duration                     : 24 ms (0.60 video frame)
Interleave, preload duration             : 363 ms
Writing library                          : LAME3.95


I also have enabled DEBUG logging so could provide log samples if that is helpful too.

Thanks again for your assistance!

Re: Panasonic UT50 issue using huyz profile since upgrade to

PostPosted: Wed Jan 30, 2013 5:01 pm
by pvut50guy
I solved the audio/video sync problem. The issue was that after I upgraded to Serviio version 1.1, I failed to replicate the perl hack described here viewtopic.php?f=7&t=5091&hilit=huyz to convert 25 fps to 29.97 fps. Once I implemented that change, my videos now play with the audio sync'd.

I am wondering how to implement the same hack on Serviio running on Linux though, as I'd prefer to run Serviio on that OS.

Re: Panasonic UT50 issue using huyz profile since upgrade to

PostPosted: Sat Feb 23, 2013 7:43 pm
by joostnl
I have the same problem with some .mp4 files on my UT50...
I'm not really experienced with scripting etc but i tried to apply the hack but it doesn't solve my problem.

Any way to check if the hack worked? How too see if it changed to 29 fps?
Or is it possible to correct the audio manually? (would be nice by remote)