2012-06-25, 07:28
Hi,
I'm not able to get audio on any streams from Global and Canada On Demand.
To debug, I downloaded a stream and saved it as a video file. Looking at this file with ffprobe:
This video plays fine via ffplay, but if I play the file via XBMC, I still don't get audio (perfect picture).
Further debugging shows if I copy the video and change sampling rate only:
then the new video works fine in XBMC.
Some research indicates this is common with HDMI audio (which I'm using). My settings are:
AO: hdmi
Speaker: 5.1
Boost: Yes
DD: Yes
DTS: Yes
AOD: custom: plughw:0,7
Passthrough: custom: plughw:0,7
and here's my asound.conf:
I tried putting this in advancedsettings.xml:
and restarted xbmc and from the log saw it picked up the config, but when I play the movie, I don't see it being resampled:
Full log is here: http://pastebin.com/SFrFZGT4
How do I force it to 48khz?
Any help would be really appreciated! Been struggling with this one for a while!
I'm not able to get audio on any streams from Global and Canada On Demand.
To debug, I downloaded a stream and saved it as a video file. Looking at this file with ffprobe:
Code:
Duration: 00:01:02.74, start: 0.000000, bitrate: 1265 kb/s
Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 852x480, 1167 kb/s, 29.97 fps, 29.97 tbr, 1k tbn, 2k tbc
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 22050 Hz, stereo, s16, 88 kb/s
Metadata:
handler_name : SoundHandler
This video plays fine via ffplay, but if I play the file via XBMC, I still don't get audio (perfect picture).
Further debugging shows if I copy the video and change sampling rate only:
Code:
ffmpeg -i broken.mp4 -vcodec copy -ar 48000 working.mp4
then the new video works fine in XBMC.
Some research indicates this is common with HDMI audio (which I'm using). My settings are:
AO: hdmi
Speaker: 5.1
Boost: Yes
DD: Yes
DTS: Yes
AOD: custom: plughw:0,7
Passthrough: custom: plughw:0,7
and here's my asound.conf:
Code:
pcm.!default {
type plug
slave {
pcm "hw:0,7"
channels 6
rate 48000
}
}
I tried putting this in advancedsettings.xml:
Code:
alex@alex ~/.xbmc/userdata $ more advancedsettings.xml
<advancedsettings>
<audio>
<resample>48000</resample>
</audio>
</advancedsettings>
alex@alex ~/.xbmc/userdata $
and restarted xbmc and from the log saw it picked up the config, but when I play the movie, I don't see it being resampled:
Code:
DEBUG: CALSADirectSound::Initialize - Channels: 2 - SampleRate: 22050 - SampleBit: 16 - Resample false - IsMusic false - IsPassthrough 0 - audioDevice: plughw:0,7
Full log is here: http://pastebin.com/SFrFZGT4
How do I force it to 48khz?
Any help would be really appreciated! Been struggling with this one for a while!