RasPlex / OpenPHT

OpenPHT is a community driven fork of Plex Home Theater
Other
596 stars 110 forks source link

h264 ffmpeg: hardware accelerator failed to decode picture #136

Open bugmancx opened 8 years ago

bugmancx commented 8 years ago

When playing back certain MKV files, OpenPHT will play back the audio only but cannot decode the video. I am able to replicate this in OpenPHT using some MKV files that I have, but playback for these files works correctly using the Plex Home Theater 1.4.1 or VLC.

Logs state: 20:48:48 T:123145305600000 ERROR: ffmpeg[700000323000]: [h264] hardware accelerator failed to decode picture 20:48:48 T:123145305600000 ERROR: Decode - avcodec_decode_video returned failure 20:48:48 T:123145305600000 DEBUG: CDVDPlayerVideo - video decoder returned error 20:48:48 T:123145305600000 DEBUG: CDVDPlayerVideo - CDVDMsg::GENERAL_RESYNC(160000.000000, 0)

Extended Logs of a short playback: http://pastebin.com/409iMZLK

OpenPHT: v1.6.2.123-e23a7eef, OS/X, default skin PMS: 2.7.10 OS/X

g1t-dlanor commented 8 years ago

When playing those files via PHT 1.4.1, are they then playing in transcoded or direct-play mode ? I ask this because the problem could be due to a failure of OPHT to request transcoding when needed. You can check the playback mode by pressing the "i" key during playback, to bring up an info overlay.

If you can provide a link to a video file which fails this way, we can try to replicate the error in a test environment, which could help greatly in finding the cause of the problem.

bugmancx commented 8 years ago

The playback is direct in my case. The "i" key doesn't work I'm afraid, as this only seems to come up once video can successfully play. In this case it displays no video, only audio. I had a bit of a play around and I think this may have to do with audio tracks being encoded in Ogg Vorbis because I also tried another AVI encoded file which also had Ogg audio, and this only played the audio. OpenPHT lists the audio track as "Orbis Stereo".

An example affected file is here: https://www.dropbox.com/s/5y7gcjp2svvn15s and please note that this is a temporary link and will expire after 1 day.

Thanks

g1t-dlanor commented 8 years ago

Sorry, but I didn't have time to check these posts yesterday, and now that link has expired, so I didn't get that file.

Anyway, using Ogg Vorbis audio in MKV videos is quite unusual. I don't think I have any such file in my extensive collection. So I agree that this could be what triggers the problem. But it still needs to be confirmed and tested.

bugmancx commented 6 years ago

I realised that this bug was still open, so I have created a new temporary link. Please update the comments when you have the file for debugging purposes so I can remove the link. Thanks

https://www.dropbox.com/s/67msfjrt17npaek