Page 1 of 1
Audio codec not supported

Posted:
Sun Feb 06, 2011 8:26 pm
by hennys
Hi,
I am running serviio 0.5. I am having trouble playing a wmv file on my samsung LE40C650 (c-series profile). The tv says audio codec not supported. Video plays fine.
From the ffmpeg info it seems that the audio is wma pro
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-w32threads --target-os=mingw32 --cross-prefix=i
686-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
[asf @ 0113bc10] max_analyze_duration reached
Seems stream 1 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 23.98 (24000/1001)
Input #0, asf, from 'j:\Serviio\series\Dexter\seizoen 2\Dexter.S02E01.NLSubs.720p.Spetter.WMV':
Metadata:
title :
artist :
copyright :
comment :
WMFSDKVersion : 11.0.6002.18049
WMFSDKNeeded : 0.0.0.0000
IsVBR : 0
Duration: 00:53:20.26, start: 3.000000, bitrate: 3908 kb/s
Stream #0.0: Audio: wmapro, 48000 Hz, 5.1, flt, 440 kb/s
Stream #0.1: Video: vc1, yuv420p, 1280x720, 3500 kb/s, 23.98 tbr, 1k tbn, 1k tbc
At least one output file must be specified
Is there some way to trigger transcoding of these files into another target for the audio ?
Regards,
Hen
Re: Audio codec not supported

Posted:
Sun Feb 06, 2011 8:41 pm
by zip
Re: Audio codec not supported

Posted:
Sun Feb 06, 2011 8:48 pm
by hennys
Is there a way to force transcoding for wmv files for now ?
I tried adding this to the samsumg profile (it's probably wrong)
<Video targetContainer="mpegts" targetACodec="ac3">
<Matches container="wmv" aCodec="wmapro" />
</Video>
and got this error and serviio won't start:
2011-02-06 21:36:05,935 ERROR [XmlUtils] XML Profiles.xsd didn't pass validation, reason: cvc-enumeration-valid: Value 'wmv' is not facet-valid with respect to enumeration '[mp4, asf, mpegvideo, mpeg, mpegts, matroska, avi, flv]'. It must be a value from the enumeration.
any other way to force transcoding for now so I can view the files ?
Regards,
Hen
Re: Audio codec not supported

Posted:
Sun Feb 06, 2011 9:16 pm
by zip
- Code:
<Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3">
<Matches container="asf" />
</Video>
Re: Audio codec not supported

Posted:
Mon Feb 07, 2011 6:59 am
by hennys
zip wrote:- Code:
<Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3">
<Matches container="asf" />
</Video>
Is it possible to retain the original video stream (vc1), as this works fine ?
Kind regards,
Hen
Re: Audio codec not supported

Posted:
Mon Feb 07, 2011 9:56 am
by zip
Not sure if it'll play but give it a try (although I seem to remember that there is a problem muxing VC1 into mpegTS in FFmpeg):
- Code:
<Video targetContainer="mpegts" targetACodec="ac3">
<Matches container="asf" vCodec="vc1" />
</Video>
Re: Audio codec not supported

Posted:
Mon Feb 07, 2011 8:08 pm
by hennys
I cannot get it to work with either of the two settings in the profile.
It seems the file is not being transcoded and the message on the tv is still audio codec not supported
I have attached my profiles.xml. perhaps someone can see what I did wrong.
Re: Audio codec not supported

Posted:
Mon Feb 07, 2011 8:48 pm
by Cerberus
try this

Re: Audio codec not supported

Posted:
Mon Feb 07, 2011 9:54 pm
by hennys
Cerberus wrote: try this

Hi this seems to work (at least partially).
I get sound now, but every few seconds I get drops in the sound
. The dolby digital signal on my receiver stops and resumes., The silence in between is a fraction to a quarter of a second.
Any way to solve that in a profile.
Could it be that the bitrate is too high for the tv to stream ?
I have some other files that do this, but they are mostly BD rips with DTS sound, and I guess bitrate is also the bottleneck here.
Regards,
Hen
Re: Audio codec not supported

Posted:
Tue Feb 08, 2011 11:14 pm
by hennys
I added aBitrate="384" to the profile and now I have no sound drops anymore, but the video starts to rebuffer every few minutes. Is there any way to prevent that ?
Kind regards,
Hen
Re: Audio codec not supported

Posted:
Wed Feb 09, 2011 5:59 am
by Cerberus
thats a question for ZIP as its way beyond me sry.
Re: Audio codec not supported

Posted:
Wed Feb 09, 2011 9:46 am
by zip
try changing the aBitrate to something else (like 192). Also are you on wired or wireless connection? If you transcode the file manually (see the ffmpeg command serviio uses) and add the file into library to play natively does it still have the same problem? If it does, you can play with the ffmpeg command and if you find a working version post it back.
Re: Audio codec not supported

Posted:
Wed Feb 09, 2011 10:23 pm
by hennys
zip wrote:try changing the aBitrate to something else (like 192). Also are you on wired or wireless connection? If you transcode the file manually (see the ffmpeg command serviio uses) and add the file into library to play natively does it still have the same problem? If it does, you can play with the ffmpeg command and if you find a working version post it back.
Hi,
it was at 192 before but then I had the sound drops. Not on the computer (when I open the transcoded file using mpc-hc it plays fine, but on the tv every few seconds I had no sound.
I am on a wired connection.
where can i find the exact syntax for the transcoding, or are only the parameters used that are set in the profile ?
Kind regards,
Hen
Re: Audio codec not supported

Posted:
Wed Feb 09, 2011 11:51 pm
by zip
you have to enable
detailed logging and you'll see the ffmpeg command there when you play the file.
Re: Audio codec not supported

Posted:
Thu Feb 10, 2011 7:55 am
by hennys
Thanks,
I will try that.
Kind regards,
Hen
Re: Audio codec not supported

Posted:
Thu Feb 10, 2011 5:07 pm
by hennys
zip wrote:try changing the aBitrate to something else (like 192). Also are you on wired or wireless connection? If you transcode the file manually (see the ffmpeg command serviio uses) and add the file into library to play natively does it still have the same problem? If it does, you can play with the ffmpeg command and if you find a working version post it back.
When I transcode the file manually it and add it to the library it does not need to rebuffer. Does that mean I need to add more cores for transcoding in serviio ?
Regards,
Hen
Re: Audio codec not supported

Posted:
Thu Feb 10, 2011 9:36 pm
by zip
what was the ffmpeg command?
Re: Audio codec not supported

Posted:
Fri Feb 11, 2011 6:27 am
by hennys
Hi zip,
zip wrote:what was the ffmpeg command?
the command line was:
C:\Program Files (x86)\Serviio\lib/ffmpeg.exe -threads 4 -i J:\Serviio\series\Dexter\seizoen 2\Dexter.S02E01.NLSubs.720p.Spetter.WMV -y -vcodec mpeg2video -sameq -r 23.98 -g 15 -copyts -acodec ac3 -ab 384k -ac 6 -map 0:1 -map 0:0 -sn -f mpegts d:\test\transcoding-temp-376-MPEG2TS.m2ts
I tried then transcoding setting to abitrate=256, and it started to rebuffer also.
I increased the cores to render the movie from 2 to 3 and then the video played fine. It seems the PC could not keep up transcoding with the speed being played (does this make any sense ?)
KInd regards,
Hen
Re: Audio codec not supported

Posted:
Fri Feb 11, 2011 10:17 am
by zip
You are indeed transcoding the file (not just remuxing) so it's possible it didn't keep up. If you run that command it'll tell you how many fps it's doing. If it's less than (lets say) 25 then it can't play it real-time.