Page 1 of 1

WTV: no audio

Posted: Mon Aug 05, 2013 12:48 am
by St_W
When I try to play a recorded (DVB-T signal; Windows 7 x64; Media Center) WTV file I get no sound using UMS 2.6.5 on a Panasonic TX-L47ETW50 TV. The TV displays that the video signals contains no audio. Only the version in the #TRANSCODE# folder works (with no sound), the normal WTV file can't be read by the TV at all. There is only a single file in the #TRANSCODE# folder.

It works when I use WMP 12 streaming, but the quality is quite bad.

Re: WTV: no audio

Posted: Mon Aug 05, 2013 5:56 am
by SpeedyQ
I have looked in the Panasonic manual and the Panasonic.conf file and it seems that your tv has no native support for the .wtv container file format.
So that means that if the file can be played, you can only do so via the #TRANSCODE folder.
Also in the debug.log file I can see no traces in detecting a audio stream in the .wtv file, hence the no sound when playing.
Are you sure that the .wtv container does have sound (is there a setting in your recorder that should be swithed on to record the sound as well)?
Maybe you can use MediaInfo to check the audio tracks, or do additional tests with other recordings.

Re: WTV: no audio

Posted: Mon Aug 05, 2013 6:32 am
by St_W
Yes, I am sure that the WTV file contains an audio stream, because when streaming the file using WMP 12 to the TV everything (video + audio) works (video in bad quality though). Also when playing the WTV file on the PC (e.g. using Windows Media Center or Windows Media Player (WMP)) video and audio work.

The sample Video included in Windows 7 also suffers from this problem (no sound when streamed using UMS):
C:\Users\Public\Recorded TV\Sample Media\win7_scenic-demoshort_raw.wtv
(Please note that this file uses localized filenames (desktop.ini Setting) - thus Windows Explorer displays a different name)

Code: Select all

C:\>MediaInfo.exe "C:\Users\Public\Recorded TV\Sample Media\win7_scenic-demoshort_raw.wtv"
General
Complete name                            : C:\Users\Public\Recorded TV\Sample Media\win7_scenic-demoshort_raw.wtv
Format                                   : MPEG Video
Format version                           : Version 2
File size                                : 9.25 MiB
Duration                                 : 8s 809ms
Overall bit rate                         : 8 809 Kbps

Video
Format                                   : MPEG Video
Format version                           : Version 2
Format profile                           : Main@Main
Format settings, BVOP                    : Yes
Format settings, Matrix                  : Default
Format settings, GOP                     : M=3, N=15
Duration                                 : 8s 809ms
Bit rate                                 : 8 809 Kbps
Maximum bit rate                         : 7 500 Kbps
Width                                    : 1 280 pixels
Height                                   : 720 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 29.970 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 0.319
Time code of first frame                 : 00:00:26:13
Stream size                              : 9.25 MiB (100%)
MediaInfo is unable to detect the audio stream. VLC is able to detect (and play) the audio stream, but has some problems playing the video stream.

FFmpeg detects the audio stream:

Code: Select all

C:\Program Files (x86)\Universal Media Server\win32>ffmpeg.exe -i "C:\Users\Publ
ic\Recorded TV\Sample Media\win7_scenic-demoshort_raw.wtv"
ffmpeg version N-52233-gee94362 Copyright (c) 2000-2013 the FFmpeg developers
  built on Apr 18 2013 02:50:33 with gcc 4.8.0 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil      52. 26.100 / 52. 26.100
  libavcodec     55.  2.100 / 55.  2.100
  libavformat    55.  2.100 / 55.  2.100
  libavdevice    55.  0.100 / 55.  0.100
  libavfilter     3. 56.103 /  3. 56.103
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
[wtv @ 0226ea80] truncated file
    Last message repeated 1 times
[mp2 @ 023c9800] Header missing
[mpeg2video @ 023cb380] Invalid frame dimensions 0x0.
    Last message repeated 8 times
[wtv @ 0226ea80] max_analyze_duration 5000000 reached at 5015501 microseconds
Input #0, wtv, from 'C:\Users\Public\Recorded TV\Sample Media\win7_scenic-demoshort_raw.wtv':
  Metadata:
    WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74
    WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000
    Title           : Landscapes
    WM/SubTitleDescription: A sample TV program that shows scenery, mountain-bike riding, and rafting. Produced by Small World Productions, Tourism New Zealand.

    genre           : General;Movies
    service_provider: WMC
    service_name    : Windows Media Center
    WM/MediaOriginalChannel: 7
    WM/MediaOriginalChannelSubNumber: 7
    WM/MediaOriginalRunTime: 100000000
    WM/MediaIsStereo: false
    WM/MediaIsRepeat: false
    WM/MediaIsLive  : false
    WM/MediaIsTape  : false
    WM/MediaIsDelay : false
    WM/MediaIsSubtitled: false
    WM/MediaIsMovie : false
    WM/MediaIsPremiere: false
    WM/MediaIsFinale: false
    WM/MediaIsSAP   : false
    WM/MediaIsSport : false
    WM/VideoClosedCaptioning: false
    WM/WMRVRequestID: 0
    WM/WMRVScheduleItemID: 0
    WM/WMRVQuality  : 0
    WM/WMRVOriginalSoftPrePadding: 0
    WM/WMRVOriginalSoftPostPadding: 0
    WM/WMRVHardPrePadding: 0
    WM/WMRVHardPostPadding: 0
    WM/WMRVATSCContent: false
    WM/WMRVDTVContent: true
    WM/WMRVHDContent: false
    WM/TitleResource: @%SystemRoot%\eHome\ehepgres.dll,-308
    WM/SubTitleDescriptionResource: @%SystemRoot%\eHome\ehepgres.dll,-309
    WM/GenreResource: @%SystemRoot%\eHome\ehepgres.dll,-310
    WM/MediaThumbWidth: 352
    WM/MediaThumbHeight: 198
    WM/MediaThumbStride: 1056
    WM/MediaThumbRet: 0
    WM/MediaThumbRatingSystem: 255
    WM/MediaThumbRatingLevel: 255
    WM/MediaThumbRatingAttributes: 0
    WM/MediaThumbAspectRatioX: 1280
    WM/MediaThumbAspectRatioY: 720
    WM/MediaThumbTimeStamp: -4616189618054758400
    Duration        : 633741426452993880
    WM/WMRVEndTime  : 2009-04-01 00:30:45
    WM/WMRVBitrate  : 0.000000
    WM/WMRVKeepUntil: -1
    WM/WMRVActualSoftPrePadding: 3658
    WM/WMRVActualSoftPostPadding: -1754
    WM/WMRVContentProtected: false
    WM/WMRVContentProtectedPercent: 0
    WM/WMRVExpirationSpan: 9223372036854775807
    WM/WMRVInBandRatingSystem: 255
    WM/WMRVInBandRatingLevel: 255
    WM/WMRVInBandRatingAttributes: 0
    WM/WMRVWatched  : true
  Duration: 00:00:09.10, start: 24.423378, bitrate: 8529 kb/s
    Stream #0:0[0x1e9]: Audio: mp2 (P[0][0][0] / 0x0050), 44100 Hz, stereo, s16p, 256 kb/s
    Stream #0:1[0x1eb]: Video: mpeg2video (Main), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 10000k tbn, 59.94 tbc
    Stream #0:2[0x0]: Video: mjpeg, yuvj420p, 200x113 [SAR 96:96 DAR 200:113], 90k tbr, 90k tbn, 90k tbc
    Metadata:
      title           : TV Thumbnail
If you do not have the Windows 7 sample file, just search the Web for it or use this upload (not by me) I found and tested: http://web2rw.wikispaces.com/file/detai ... rt_raw.wtv

Re: WTV: no audio

Posted: Mon Aug 05, 2013 8:34 am
by SpeedyQ
I have downloaded the test file and tested in my own setup, which is kinda similar to yours (Windows 7 64-bit, UMS 2.6.5) only renderer differs, I stream to Philips TV.
Audio and video seems to be fine, from normal and #TRANSCODE folder.
Only difference right now that I can think of is a CODEC pack. I have (a rather old) K-Lite codec pack installed.
Do you have something similar installed? If not, please do so...

Re: WTV: no audio

Posted: Mon Aug 05, 2013 10:39 am
by St_W
If the WTV file from the normal folder works in your setup, this probably means that your TV supports the WTV format. Is it possible that another (or even no) transcoding is applied, if the stream target supports the source format? If that would be the case, it may the reason, why it works in your configuration. Maybe you could force the Panasonic renderer and try if it still works?

I do not have any codec pack installed on this system except Xiph.org Codecs for Vorbis, Theora, .. codecs in Ogg and WebM containers. If it is possible I would like to keep the system clean from any additional codec packs, but I'll try on a test system.

Edit: I've tried on a fresh Windows 8 Pro x64 system having only Office 2013 x86, Java 7 u25 x86 and C++ 2008 Runtime Libs x86+x64 installed:
First I installed UMS 2.6.5 and tried to stream the Windows Sample file from the download link above. --> Same result as before: Video in #Transcode# works, but no audio.
Btw, Windows Media Player can only play the audio from this WTV file at this time, because no matching video codec is installed.
The I installed the K-Lite Codec Pack 9.9.5 (Basic x86). WMP was now able to play the video (and audio).
But it didn't change anything in UMS --> Video in #Transcode# works, but no audio.

I've attached the debug log from the last test with K-Lite Codec Pack installed.

Re: WTV: no audio

Posted: Mon Aug 05, 2013 11:49 am
by St_W
I've further tried different video-transcoding engines and found a working, but slow configuration. I always enabled only a single engine and here are the test results:
  • FFmpeg: Video + Audio works (normal and #Transcode#), but slow (software transcoding?)
  • MEncoder: Only Video works (only in #Transcode#)
  • AviSynth/MEncoder: Only Audio works, Video shows strange green Lines (only in #Transcode#)
  • tsMuxeR: Doesn't work at all (normal and #Transcode#)
  • AviSynth/FFmpeg: Only Audio works, Video shows strange green Lines (normal and #Transcode#)
Although the sample video works, the recorded video doesn't work right with FFmpeg engine. The problem is the wrong aspect ratio.

The sample video has a frame resolution of 1280 x 720. Aspect ratio: 16:9 (1.78:1 displayed)
My recorded video has a frame resolution of 720 x 576. Aspect ratio: 16:9 (1.78:1 displayed)

You see, the frame resolution of the recorded video does not have a 16:9 aspect ratio, when one assumes quadratic pixels. But this is obviously not the case and FFmpeg seems to be unable to handle that. (Aspect ration setting on TV doesn't help and doesn't change anything). In comparison, the MEncoder video engine seems to be able to handle this correctly.

Btw: This aspect ratio issue was also a common problem when I tried the new UMS 3.0.0-a3. But UMS 3.0.0-a3 was completely unable to render the WTV video on my Panasonic TV.

Re: WTV: no audio

Posted: Mon Aug 05, 2013 2:32 pm
by SpeedyQ
I did a bit of testing with the panasonic.conf file, faking my philips tv being a panasonic.
I still have no explananation, but with one line changed in the Panasonic.conf file it worked (both video and audio) :) .
Look for:
Supported = f:mpegps|mpegts v:mpeg1|mpeg2|mp4|h264 a:ac3|lpcm|aac|mpa m:video/mpeg
And replace by:
Supported = f:mpegps v:mpeg1|mpeg2|mp4|h264 a:ac3|lpcm|aac|mpa m:video/mpeg

I have also tried splitting the line into two separate ones (because I think that should be possible),
Supported = f:mpegps v:mpeg1|mpeg2|mp4|h264 a:ac3|lpcm|aac|mpa m:video/mpeg
Supported = f:mpegts v:mpeg1|mpeg2|mp4|h264 a:ac3|lpcm|aac|mpa m:video/mpeg
but no luck.

See if it works for you.
If so, you should address this issue to the real code experts/moderators :ugeek: of the forum; they can dig in deeper to find the cause than I do :| .

Re: WTV: no audio

Posted: Tue Aug 06, 2013 5:37 am
by St_W
Your suggested modification to the Panasonic.conf file worked!

There is now audio and video. But seeking and related stuff (showing total length / current position; forward / rewind; ...) does NOT work.
I also tested this with the old configuration and it didn't work neither with the old configuration (only having video, no audio).

I wonder why no developers seem to be present in this forum. Is UMS development dead?

Re: WTV: no audio

Posted: Tue Aug 06, 2013 7:40 am
by SpeedyQ
Glad it worked in your setup too :) .
Still I think it should be figured out what the root cause is.
It makes no sense if you remove something from the configuration, that something else starts working...

And yes it's a bit quiet from the moderators/developers side, but these guys are really there.
Normally I see a lot more activity on the forum as well, so they're probably busy or enjoying a well deserved vacation.

The seeking part is a different story and for sure not one of the strongest points of UMS.
I even don't use it at all; instead a have configured the Chapter feature (only via #TRANSCODE) on 5 minute intervals.
That way I can at least start the movie somewhere in the middle if needed.
Also I have seen other forum topics on this issue so maybe you want to look at these and provide your input in there or start a new topic.