The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Hot answers tagged

42

Yes, VLC can be installed on the recommended Debian image using sudo apt-get install vlc. As far as I understand, VLC (>= 1.1) uses the VAAPI to decode video, if it is available. VAinfo should tell you whether hardware decoding is available and since all packages are available for armel, hardware acceleration should work from the technical side. Since ...


32

Netcat (nc) seems to be the one with the smallest delay. In my experience, VLC has the biggest delay. On the other hand, there is a VLC client for Android, which is convenient. <IP-OF-THE-CLIENT> is the IP of the computer that should receive the video stream. <IP-OF-THE-RPI> is the IP of the Raspberry Pi. Using Netcat: On the client (Run the ...


27

better: on the rpi: raspivid -t 0 -w 1280 -h 720 -hf -ih -fps 20 -o - | nc -k -l 2222 on your computer: mplayer -fps 200 -demuxer h264es ffmpeg://tcp://10.0.1.3:2222 supports reconnecting


19

VLC is available in the extra repository for Arch Linux ARM. However, unless I'm mistaken, VLC doesn't yet support hardware acceleration with the GPU on the Pi. This means playback wont be as good as using OMXPlayer (see this question for more information).


10

rmmod bcm2835-v4l2 modprobe bcm2835-v4l2 Destroys and re-creates /dev/video0 Just ran into the same problem and that fixed it for me.


6

I will make this answer more general. There are couple of things that one should check if having problems with audio. In no particular order: Check if it's not PCM sample rate/format problem Currently RPi ALSA driver has no nmap support. This makes plug ALSA plugin behave badly. This plugin should let you play any PCM format you like converting it if ...


4

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 ...


4

Use omxplayer which is already installed on the Pi and performs much better, because it uses the GPU. It is actually the core of the RASPBMC Media Centre. NOTE omxplayer runs from the command line.


4

Basics First off, you need to install the vlc package. sudo apt-get install vlc You should see a few things show up on the terminal, and then a Do you want to continue [Y/n]? Click Y. Next, you need to make VLC the default application to open these types of files. Right-Click on one of your .iso files. Click on Properties. Then go to Open with: and select ...


4

If you would like to learn about OpenGL ES used on Raspberry Pi here is a interactive walk through with examples. You can find out more about OpenGL at opengles-book That can be useful for the GUI and at the moment you do not need X to run them (in some ways nice but in other not nice) You would also need to implement hardware decoding video using the ...


3

vanilla vlc can be installed on archlinux using pacman -Sy vlc To get hardware acceleration you might want to compile vlc yourself. There is a tutorial on vlc compilation at: http://www.raspberrypi.org/phpBB3/viewtopic.php?f=66&t=59814 which was the basis for gekod's answer above. I tried to create a script for the whole process and am currently ...


3

I made a tutorial on how to compile and run VLC with HW acceleration i you're still interested. You can find it at: http://intensecode.blogspot.com/2013/10/tutorial-vlc-with-hardware-acceleration.html


3

There is a simple but functional media player called omxplayer specially developed for the Raspberry Pi. It uses the GPU for video decoding, something VLC might not (yet?) do. Omxplayer should be available through the package manager, apt-get in this case. It works on the command line, just say omxplayer filename It does not even need to have X running. ...


2

This is a known problem with libv4l2 and the Raspberry Pi. The thing is it tries to allocate 256MB os RAM to make that conversion, which is all the memory of Model A and half of Model B. If you are using model A your only hope is to create a Swap file/drive big enough for accomodating that conversion. 256MB should be the minimum. If you are using model B, ...


2

I would recommend OpenElec. It's an open source media player distribution and works very well out of the box on a 256MB Model B RasPi, able to play media files from a USB key or over a network. There are installation images (and source code) available from the website and there is a RasPi compatible image available by automatic download with BerryBoot (...


2

you can use omxplayer. maybe you wanna take a look at a simple python omxplayer wrapper to get an idea for a wrapper: https://github.com/jbaiter/pyomxplayer/blob/master/pyomxplayer.py. Good luck! Paul


2

You don't need to use v4l2 to capture sound through PulseAudio. First of all, find the correct device for pulseAudio. If you're using PulseAudio as a daemon, run this command at the command line: pacmd list-sources | awk '/name:.+\.monitor/' You should get output such as: name: <alsa_output.pci-0000_01_00.1.hdmi-stereo.monitor> name: <...


2

LogiTechUSB Headset worked for me with VLC Media, even when I could not get the Analog Headphones to work! I can get sound on the Analog headphones using the RPi test program: user: pi@raspberrypi path: /opt/vc/src/hello_pi/hello_audio command: ./hello_audio.bin But the ALSA "default" failed to activate the Analog Headphones!


2

So you have 2 programs that you want to run at the same time and have them both launched at boot. Personally, I'd be inclined to do this with init.d scripts. I have had success using the example shown on this page: http://blog.scphillips.com/posts/2013/07/getting-a-python-script-to-run-in-the-background-as-a-service-on-boot/ Although the page refers to a ...


2

There could be a couple reasons why this is happening. First of all, update your repositories with the command sudo apt-get update. Then run sudo apt-get install vlc.


2

The 'standard' library for working with the Pi camera module in Python is picamera, described here by the Pi Foundation as: python-picamera is a pure Python interface to the Raspberry Pi camera module for Python 2.7 (or above) or Python 3.2 (or above). The library is written and maintained by Dave Jones. The linked Pi Foundation page above has a ...


1

fifos are not for saving or reading more than once. You may find tee better suited to your goals. Untested guess at what you want(split a network stream): mkfifo myfifo1 myfifo2 && curl -s http://192.168.1.27:8554 | tee myfifo1 > myfifo2; Other guess at what you want(display and save on rpi): raspistill --fullpreview --output - >> jpgs....


1

UV4L works perfectly. You way want to try this example to get the stream with VLC. Raspberry Pi Exchange Discussion about UV4L


1

You can also use OMXPlayer which is shipped with the latest distibution of Raspbian. Jack output: sudo modprobe snd_bcm2835 sudo amixer cset numid=3 1 omxplayer -o hdmi [filename] HDMI output (issue the first two lines if you used jack before - this is the default): sudo modprobe snd_bcm2835 sudo amixer cset numid=3 0 omxplayer -o local [filename] It ...


1

AFAIK there is no version of VLC which uses the GPU. Use omxplayer which is already installed on the Pi and performs much better, because it uses the GPU. It is actually the core of the RASPBMC Media Centre. NOTE omxplayer runs from the command line.


1

I used the uv4l driver + streaming option, i only required one connection for streaming through a website. This tutorial worked for me I used : uv4l --driver raspicam --auto-video_nr --width 640 --height 480 for letting the thing stream though :) . The default encoding worked faster for me then specifying JPEG.


1

I was in a similar situation and I especially didn't like the order of actions in the "classic" raspivid -> netcat -> netcat -> mplayer streaming example because it requires entering the client IP on the Pi side. I wanted something that allows me to request a stream from the Pi to a single client only without excess load when idle So let's start ...


1

Have a look at the example script in the "recording to a network stream" recipe in the picamera docs. The script at the end of that section listens on a network port and only starts recording video when someone connects. It shouldn't be terribly difficult to modify that recipe so that 1) it's more than a one-shot affair (in the recipe it streams for 60 ...


1

It is unclear from your question exactly what you are asking. Why involve 2 Pis? IN any event VLC will be very slow - try the command line viewer omxplayer which uses the GPU, and is included in Rabpbian.


1

I am assuming the machine you are using to send is an x86 machine with gigabit ethernet; if it is, the underlying problem you are seeing is likely to be what I am asking about in my more recent question -- UDP packet loss. This is a common problem when using UDP between hosts with different bitrates, and workarounds include: Enabling flow control on sender, ...


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