Hot answers tagged

29

As of April 2015 GStreamer 1.2 included in Raspbian supports OpenMAX hardware accelerated H.264 encoding through omxh264enc. I've done some benchmarking comparing: MacBook Pro (Early 2011) dual-core i7-2620M 2.7GHz (Sandy Bridge) - 4GB RAM RaspBerry Pi 2 Model B 900MHz quad-core ARM Cortex-A7 CPU - 1GB RAM Sample file: 60s sample from the movie Alatriste (...


26

In /boot/config.txt: hdmi_force_hotplug=1 hdmi_group=1 hdmi_mode=16 Those are explained here: https://www.raspberrypi.org/documentation/configuration/config-txt/video.md There is also this: https://www.raspberrypi.org/documentation/configuration/hdmi-config.md -- But if the group 1, mode 16 as above works, you don't have to worry about all that.


18

From Raspberry Pi 2 - FAQ and collated answers Do I still need CODEC licences? Yes, if you want to use the HW decoders. However, the higher speed of the device MIGHT mean a SW decoder can be used. This will depend on the resolution of the video you are trying to display.


18

The best information I can find suggests that it's possible to output 4K resolutions, but at fairly miserable frame rates. The Pi 3 has the same GPU as the Pi 2, so the information should still be valid: Source: https://www.raspberrypi.org/forums/viewtopic.php?f=38&t=79330 I have managed to get 3840 x 2160 (4k x 2k) at 15Hz on a Seiki E50UY04 ...


15

That cable is most likely a DisplayPort-to-HDMI cable not a HDMI-to-DisplayPort cable (mind the direction). While there are DP ports able to support HMDI signals (DisplayPort Dual-mode) HDMI does not support DP directly. Since HDMI data transmission is very different from DP there will be no simple (passive) cable that just re-routes some signal lines on the ...


12

Yes. As far as I can remember, pretty much every Pi I've ever tried to play 1920x1080 video on has worked, up to and including the very first generation boards. You can see a brief sample of the Zero playing back 1080 resolution footage from Big Buck Bunny using Kodi on the KordKutters Youtube channel. Looks fine to me, although the presenter notes a little ...


10

GStreamer is included in Raspbian and with its OpenMAX plugin it will use the hardware encoding capabilities of the Raspberry Pi. See this link for a tutorial on doing what you're looking for: https://www.raspberrypi.org/forums/viewtopic.php?t=72435 If you're interested in transcoding, I've just posted an answer to another question that might interest you: ...


9

No, those pins have nothing to do with audio. The upper two pins are to reset the Pi and are labeled "Run". While we have no schematics of the Pi Zero available yet, we can deduce this from former models of the Pi. According to this article it's a two pin header. The circuit with two clamp diodes, a pull-up resistor, and capacitor connected (at least that's ...


8

omxplayer now has an option to set the background to black. omxplayer -b It works both on the terminal and in X. This feature should be in the current version available in raspbian.


8

If you want to use the PI exclusively as a HTPC or media center, you could use a distribution geared towards such applications. OpenELEC/XBMC /RasBMC seem to be the obvious choice. I did try OpenELEC at one time, but getting WiFi to work reliably on it seemed to be a pain. Here's how I went about using Raspbian (since I use the RPi for tasks other than ...


8

You should look to v4l2loopback in order to allow to open "twice" a V4L2 device. 1 - It will allow to create a virtual video device using : sudo apt-get install v4l2loopback-dkms sudo modprobe v4l2loopback video_nr=10 This will add a new device /dev/video10 2 - Next you will need to copy the real device (/dev/video0) to the virtual one (/dev/video10) ...


8

It would likely be a 4-pole RCA cable, similar to this one - http://www.techbuy.com.au/p/160072/CABLES_RCA/Sansai/MP-9103.asp However you will need to check pinouts on the cable to make sure it matches with what the Pi is outputting. I found this blog post - http://www.raspberrypi-spy.co.uk/2014/07/raspberry-pi-model-b-3-5mm-audiovideo-jack/ - that ...


7

Most probably, bottle neck in this case is CPU speed to process the feed. I use Rpi for some basic image processing based automation work and here is what I've noticed. Rpi 1 hardly gives 5 fps at max @ 640x480. Blame single core @ 700 Mhz Rpi 2 gives about 14 - 16 fps at 640x480. (Quad core @ 900 Mhz) I've used Odriod-C1 (SBC mostly similar to Rpi 2 - ...


7

You can send raw 264 frames to a browser through websocket and decode in in javascript. Latency < 0.1s :p I wrote an opensource project in this manner, checkout https://github.com/131/h264-live-player


7

Here's the relevant part of the official docs. Min and max: GPU memory in megabytes, sets the memory split between the CPU and GPU; the CPU gets the remaining memory. The minimum value is 16; the technical maximum value 944 [for the RPi 4]. The default value is 64, values above 512 will not provide increased performance and should not be used. Default ...


6

This seems to be a problem with the noob release - previous versions would default to the composite video if nothing was connected to the HDMI port. To correct this do the following: Connect your keyboard and TV to the Pi. Insert your SD card. Power on the TV. Power up the Pi and hold down the SHIFT key, until the green LED stops flickering This will ...


6

All hardware accelerated players go directly to the video hardware (overlay). You can only view them on a monitor connected directly to the Pi.


6

As Qualcuno pointed out yesterday, the RPi (all models) does not have support for hardware acceleration of H.265 video sources. As such, the RPi just doesn't have the raw horsepower needed to decode higher resolution videos on the fly. Will an MPEG-2 License help? MPEG-2 is a totally different encoding type, so no it won't help your case. do I even ...


6

Same issue a few days ago. Order of plugged in peripherals mattered. Making sure video out was connected before connecting power.


6

In 'Raspberry Pi Configuration', select 'Set Resolution' Choose resolution, then reboot.


5

The answer by Pouet nearly did it for me, but the following list took it all the way: Edit your apt-get source list by adding another source. sudo nano /etc/apt/sources.list Paste in deb http://www.deb-multimedia.org/ wheezy main non-free on a new line. Save and exit. sudo apt-get install debian-keyring Next, we would perform sudo apt-get update, but it ...


5

That's probably not what you are wanting from answers, but I do not recommend VLC streaming at all.. For a school project, I tried some streaming options (on RPi too!) : VLC MJPEG GStreamer Using VLC and MJPEG (and some other less known), I had latency between 3 and 5 seconds.. Using GStreamer, NO LATENCY and with a best resolution (and lots of more ...


5

Okay, from your question I'm assuming the following: Latency is of primary importance Quality (including framerate) is the second consideration Compatibility (permitting a wide variety of client software) is irrelevant Given that latency is king, let's first explore the differences between streaming JPEGs and H.264 and what they mean for latency: When ...


5

Yes, it is possible, I started this project some time ago but I had to stop because of insufficient time. This is the best result I could get (1080p): https://youtu.be/fVM1GRDhXGw. It is based on this open library: https://github.com/carlonluca/pi. Some more info here. The demo uses that library with WebKit1 in QtWebKit, all running without X11. It ...


5

feh is a simple image viewer that should do what you want. feh requires X11. You can give it a list of files or directories or URLs. It looks like you might be able to use the --info option to display the IP address. For displaying images on the console (without X11) you can use fbi. It is not a full featured as feh but it will do a simple slideshow. ...


5

There is an command-line utility called omxplayer which will use the Raspberry Pi's VideoCore IV GPU to play video at 1080p resolution. Open up a terminal window (from the Desktop menu or by pressing Windows-key+R and then typing lxterminal). On the command line type omxplayer vid.h264 and the video should play.


5

Just like @Ghanima said, the top two, labeled "RUN" are the reset pins, if you wire them together it will hard reset your Pi. Now, as for the bottom two pins, the square one is TX (signal) and the circular one is ground. If you have an old RCA cable you can strip the wire and solder the two wires directly onto the two pins like so: and use RCA video out ...


5

A RPI3 can decode 1080p HEVC quite well. There have been NEON optimizations to HW-accelerate HEVC decoding. Best played with KODI. The problem is a RPI3 is running hot, so it starts throttling, an RPI3+ has much less thermal issues. Nowadays a RPI3+ can even decode 10bit 1080p HEVC pretty well. Use the latest KODI/LibreElec builds for the best performance.


5

All Raspberry Pis can play 1080p@30fps provided the video is encoded with a codec the Pi can accelerate (i.e. h.264) - note that filename extension doesn't always indicate the used codec correctly ! the video player you use can use hardware acceleration (only Kodi/omxplayer till date) You might need to buy a MPEG-2 license since the Zero is too weak to ...


5

You are on the right track by using mmal hardware decoding and the mpv-build repo (which makes things a lot easier). I found out a config that works pretty well for me, although it's specifically tuned to work explicitly without X11 via an ssh environment within the linux framebuffer. (I think all of this will work for anyone though). So to fully answer the ...


Only top voted, non community-wiki answers of a minimum length are eligible