raspberrypi / firmware

This repository contains pre-compiled binaries of the current Raspberry Pi kernel and modules, userspace libraries, and bootloader/GPU firmware.
5.18k stars 1.68k forks source link

H264 MKV stream problem after 48f8bb0 #115

Closed fake666 closed 12 years ago

fake666 commented 12 years ago

hi,

with firmware 48f8bb0 on raspbian i can use omxplayer (both 0.2.1 and 0.2.3) to play back an MKV H264 1080 stream from tvheadend, as soon as i update the firmware to a newer version, these streams do no longer work - playback starts for a second, stops, starts, stutters and freezes. audio continues for a couple more seconds, but eventually stops, too.

in the working firmware version, i see these lines in the log, they are NOT in the broken versions:

DEBUG: COMXCoreComponent::Initialize OMX.broadcom.image_fx input port 190 output port 191 ... ERROR: COMXCoreComponent::WaitForEvent OMX.broadcom.video_decode wait event 0x00000003 timeout 300 ... [and several others]

the newer version constantly reports 6/8 channel, where the version that works reports only 2 channels. i am playing to the analog audio, but also tried HDMI + passthrough.

gimli told me this is being worked on, but i've searched far and wide for an answer to these problems and guess having google show this report may save people some time: http://forum.xbmc.org/showthread.php?tid=140518&pid=1227167#pid1227167

popcornmix commented 12 years ago

It's being worked on: http://www.raspberrypi.org/phpBB3/viewtopic.php?f=35&t=20302&p=206112#p206112

fake666 commented 12 years ago

cool!

i guess i'm too old for this web stuff, i've been lurking in that forum for days, trying to find someone with a similar problem.. sorry for the noise.

popcornmix commented 12 years ago

If anyone is interested in testing an experimental fix you can try updating these files: https://dl.dropbox.com/u/3669512/temp/start.elf https://dl.dropbox.com/u/3669512/temp/fixup.dat

Let me know what it fixes and what still fails

clandmeter commented 12 years ago

Playing a recording in xbmc (Openelec) with tvheadend seems to work now, but watching tv still gives a black screen. Not sure its a xbmc or rpi bug.

fake666 commented 12 years ago

with my minmal testcase (using omxplayer 0.2.3 on up-to-date wheezy) this fixes the issue, both for live streams and recordings! very cool!

fake666 commented 12 years ago

also works with raspbmc RC5 - edit: seems only for the first stream started, but seeing that omxplayer works, i guess that's an xbmc bug.

Toniob commented 12 years ago

Seems to work for me too. But I've got the same behavior, the first stream is ok but the following ones remain black with no sound.

popcornmix commented 12 years ago

Can you provide a sample file that exhibits the problem? I was able to play a few files more than once.

fake666 commented 12 years ago

accessing the h264 1080i mkv recording files created by tvheadend using NFS, i can start them several times, too. when using the streaming http thingy (pvr -> recordings -> ..) i get the same problems as with the tv channels - so i really think this is a problem with how the stream is buffered, not with the firmware.

popcornmix commented 12 years ago

I've pushed this firmware to rpi-update as there's not been any negative reports, and there's been some positive ones.

clandmeter commented 12 years ago

I can confirm it works on raspxbmc and not on openelec. I do notice when playing inside raspxbmc de-interlacing is not functioning properly. Did something change?

fake666 commented 12 years ago

i think this ticket could be closed - it's fixed to the extent that i stated in the ticket description. maybe you want to open a new one for the de-interlacing problem?

clandmeter commented 12 years ago

Sure go ahead and close it. I got too less experience with de-interlacing to conclude its faulty. If its faulty, I will open another one.

fake666 commented 12 years ago

i can't tell if it's working or not either, i guess i need new glasses ^^

clandmeter commented 12 years ago

You should watch a football match, its horrible to watch. Regular tv content looks ok though.

solidspike commented 12 years ago

Deinterlacing works fine with raspbmc

When playing something go to video settings and put deinterlacing on 'Auto' Then go down and press save as default for all videos or something.

Then you have to stop the playback totally then start it again . It doesn't change while a video is playing. Only when you restart it.