Bug #1903

RPi is blackscreen on Theora/OGG videos

Added by Leonid Protasov about 7 years ago. Updated about 7 years ago.

Status:FixedStart date:02/02/2014
Priority:HighDue date:
Assignee:Andreas Smas% Done:

100%

Category:Video playback
Target version:4.6
Found in version:Latest Platform:RPi

Description

Attached VP6 was playable on STOS beta 7.
Theora is playable on PS3 and Linux and should be playable on RPi too:
http://www.cnx-software.com/2013/01/26/raspberry-pi-now-has-experimental-support-for-vp6-vp8-mjpeg-and-ogg-theora-video-codecs/

VC-1 could be enabled on RPi too as with license it should be playable...

trailer_VP6.FLV (2.03 MB) Leonid Protasov, 02/02/2014 10:55 AM

Theora.ogg (29.4 MB) Leonid Protasov, 02/02/2014 10:55 AM

Associated revisions

Revision 12aecbe9
Added by Andreas Smas about 7 years ago

rpi: Add support for Theora video playback

Fixes #1903

Change included in version 4.5.222

History

#1 Updated by Leonid Protasov about 7 years ago

PS: VP8 and MJPEG play fine.

#2 Updated by Leonid Protasov about 7 years ago

http://solitudo.net/software/raspberrypi/rpi-openmax-demos/rpi-camera-playback.c/

       case OMX_VIDEO_CodingUnused:     return "not used";
        case OMX_VIDEO_CodingAutoDetect: return "autodetect";
        case OMX_VIDEO_CodingMPEG2:      return "MPEG2";
        case OMX_VIDEO_CodingH263:       return "H.263";
        case OMX_VIDEO_CodingMPEG4:      return "MPEG4";
        case OMX_VIDEO_CodingWMV:        return "Windows Media Video";
        case OMX_VIDEO_CodingRV:         return "RealVideo";
        case OMX_VIDEO_CodingAVC:        return "H.264/AVC";
        case OMX_VIDEO_CodingMJPEG:      return "Motion JPEG";
        case OMX_VIDEO_CodingVP6:        return "VP6";
        case OMX_VIDEO_CodingVP7:        return "VP7";
        case OMX_VIDEO_CodingVP8:        return "VP8";
        case OMX_VIDEO_CodingYUV:        return "Raw YUV video";
        case OMX_VIDEO_CodingSorenson:   return "Sorenson";
        case OMX_VIDEO_CodingTheora:     return "OGG Theora";
        case OMX_VIDEO_CodingMVC:        return "H.264/MVC";

[email protected]:~# \
> for codec in H264 MPG2 WVC1 MPG4 MJPG WMV9 ; do \
>     echo -e "$codec:\t$(vcgencmd codec_enabled $codec)" ; \
> done
H264:   H264=enabled
MPG2:   MPG2=enabled
WVC1:   WVC1=enabled
MPG4:   MPG4=enabled
MJPG:   MJPG=enabled
WMV9:   WMV9=enabled

#3 Updated by Leonid Protasov about 7 years ago

On OpenELEC plays fine but on ST:

00:42:11.865: thread [DEBUG]:Created detached thread: subscanner
00:42:11.881: Video [DEBUG]: Stream #0: Video: vp6f, yuv420p, 368x202, 460 kb/s
00:42:11.914: Video [DEBUG]:Scanning for subs in smb://192.168.0.190/c$/Showtime/movies/ for trailer_VP6
00:42:11.930: Video [DEBUG]: Stream #0: Codec created
00:42:11.946: OMX [INFO]:OMX.broadcom.video_decode: Corrupt stream
00:42:11.961: Video [DEBUG]: Stream #1: Audio: mp3, 22050 Hz, stereo, s16p, 65 kb/s
00:42:11.979: Video [DEBUG]: Stream #1: Codec created
00:42:11.997: thread [DEBUG]:Created thread: audio decoder
00:42:12.036: Video [DEBUG]:Scanning for subs in zip://smb://192.168.0.190/c$/Showtime/movies//Arabic-3.6.0.zip for trailer_VP6
00:42:12.098: Video [DEBUG]:Selecting audio track libav:1
00:42:12.108: audio [DEBUG]:Codec changed to mp3
00:42:12.132: Audio [DEBUG]:Converting from [stereo 22050Hz s16p] to [stereo 22050Hz s16]
00:42:12.430: thread [DEBUG]:Thread subscanner exited
00:42:12.909: Video [DEBUG]:Playback reached EOF: End of file (-1606004923)
00:42:15.196: OMX [ERROR]:Timeout while waiting for buffer
00:42:18.210: OMX [ERROR]:Timeout while waiting for buffer
00:42:21.223: OMX [ERROR]:Timeout while waiting for buffer

#4 Updated by Leonid Protasov about 7 years ago

In stos 1.0.4 and 4.5.213 vp6 plays ok. Just enable theora/ogg. Samples are correspondingly named in my lib.

#5 Updated by Leonid Protasov about 7 years ago

  • Subject changed from RPi is blackscreen on VP6 and Theora to RPi is blackscreen on Theora/OGG videos

#6 Updated by Andreas Smas about 7 years ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

Applied in changeset git|commit:12aecbe94e1a1f5ae48b6f0f2a2046d0ad04ddb2.

Also available in: Atom PDF