openFrameworks-RaspberryPi / openFrameworks

This repo has migrated into the openFramworks core! Please go to http://github.com/openFrameworks/openFrameworks for the latest!
http://github.com/openFrameworks/openFrameworks
Other
104 stars 11 forks source link

videoPlayerExample can't play back common formats #120

Closed jvcleave closed 11 years ago

jvcleave commented 11 years ago

Currently getting ** (videoPlayerExample:3633): WARNING **: gstvideo: failed to get caps of pad app_sink:sink [error] GStreamer: cannot query width and height

looking into it

jvcleave commented 11 years ago

I was able to get the example working with Apple Photo JPEG but not with:

H.264 Sorenson

Here is a file that worked for me http://www.jvcref.com/files/PI/video/fingers_photo_jpeg.mov

davidsweeney commented 11 years ago

Hey Jason, I'm also having this same issue using videoPlayerExample, though when I use your Apple Photo JPEG compressed video above, it throws the same GStreamer error.

Any idea why I might still be having an issue?

Thanks

arturoc commented 11 years ago

i think you are probably just missing some codecs, will take a look

davidsweeney commented 11 years ago

I installed the codecs via the install_codecs script - installing gstreamer0.10-plugins-ugly

Should codecs be installed manually?

arturoc commented 11 years ago

no install_codecs should install everything necesary, perhaps there's something missing for raspbian but i'm pretty sure i've used h264 in the rpi, will test when i have a moment

igiso commented 11 years ago

guys.. it's definitely a codecs issue. But I couldn't find a way to install them either.. then I thought about installing gnome ... and it fixed everything.. but now I don't have startx.. and my sd card is filled.. ,,

bakercp commented 11 years ago

I too have had h264 working on the pi last time i tried -- in fact, it is working now on mine. I haven't done a fresh install with the current build instructions though. So, yes, it must be a codecs thing.

Is there a way to list my current installed codec-related packages? If so, I could post them here.

bakercp commented 11 years ago

Hi all -- any updates on this? Can we close it?

davidsweeney commented 11 years ago

Before you do, perhaps would you confirm what level of performance are you getting with ofVideoPlayer?

When I play a H264 video, encoded with a very modest quality, I can't get it to play at sizes over 400x300 without seriously affecting the framerate. It will drop to 12fps or so - and there's no way I can approach any variety of HD.

Does this sound about right?

Thanks again

jvcleave commented 11 years ago

i do dpkg -l | grep gst will to list packages

there is also gst-inspect-0.10 which has a lot of output

I have seen the gstvideo: failed to get caps of pad app_sink:sink message recently. Oddly the next time the app ran it ran ok.

@davidsweeney the slowness will be common until gstreamer supports OpenMax. In the meantime (if you are feeling brave :) feel free to try my addon https://github.com/jvcleave/ofxOMXPlayer

danzeeeman commented 11 years ago

@jvcleave oh nice addon.. is it still failing on some formats?

jvcleave commented 11 years ago

most of the video performance questions can be answered here https://github.com/openFrameworks-RaspberryPi/openFrameworks/issues/21

more formats (VP6, VP8, M-JPEG, OGG ) will be coming to OMX rpi-update http://www.cnx-software.com/2013/01/26/raspberry-pi-now-has-experimental-support-for-vp6-vp8-mjpeg-and-ogg-theora-video-codecs/

but will still be handled via an ofxAddon until gst-omx (also requires gstreamer-1.0)