Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
48

You can embed the Raspberry Pi in any end-product you want. For mass production, the Compute Module may be a better choice. The Compute Module is a Raspberry Pi in a more flexible form factor, intended for industrial application. You cannot use the words Raspberry Pi to promote your product without permission. Raspberry Pi is trademarked. You will have ...


30

Streaming with HLS Apple's proprietary method of streaming live video. It is called HTTP Live Streaming (HLS) and is only supported by Apple's technology. Google (Chromium / YouTube) uses its own implementation called dash mpeg and everybody else is either confused or using H.264 encapsulated in MP4. PROS Can stream HD 1080p on LAN to any device that ...


20

UV4L MMAL Thanks to comment from @mpromonet for the update on the Linux-Projects V4L2 driver that now implements MMAL very efficiently - but it is still a work in progress. Follow these instructions to install the linux-project repository and install the UV4L driver with extras. Then install the server and mjpeg. If you want, you can experiment with the ...


19

and I quote from Raspberry Pi's blog If, like Brian, you’re making a product which requires a Raspberry Pi to run, we don’t ask you to buy special permission or licences from us to use it. All we ask is that you include the words “Powered by Raspberry Pi” somewhere on your packaging. If your business is successful, we’d be very grateful if you could ...


12

Nope, sorry. There is currently no way to run Netflix in Linux without emulating a Windows environment, which is something the Raspberry Pi will not have the resources to attempt.


10

It depends how you define "mass" in "mass production". If you're talking hundreds, the Pi is probably a good choice. If you're talking thousands, there might be "better" solutions available through OEM. "Better" as in price, availability, quantity, security and specific functionality. Price - $30 dollar a pop might not be much for a couple of devices, ...


9

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


8

As of 2017 (or perhaps earlier) raspivid is no longer the preferred method, with the Pi devs recommending people use V4L2 instead. So this method allows you to stream H264 via RTP using V4L2 instead of raspivid. I noticed this method results in fewer dropouts and allows a higher bitrate: #!/bin/sh # Use V4L2 (preferred) instead of raspivid # ...


8

Streaming with MJPEG U4VL A kernel interface with a build in HTTP(S) server. http://www.linux-projects.org/uv4l/tutorials/streaming-server/ Raspberry Pi Cam Web interface A nice project by silvanmelchior that deploys a web server, dvr like, multi target streaming server. Needs more information https://github.com/silvanmelchior/RPi_Cam_Web_Interface ...


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

The options: raspivid -t 0 -o - | nc -k -l 1234 raspivid -t 0 -o - | cvlc stream:///dev/stdin --sout "#rtp{sdp=rtsp://:1234/}" :demux=h264 cvlc v4l2:///dev/video0 --v4l2-chroma h264 --sout '#rtp{sdp=rtsp://:8554/}' raspivid -t 0 -o - | gst-launch-1.0 fdsrc ! h264parse ! rtph264pay config-interval=1 pt=96 ! gdppay ! tcpserversink host=SERVER_IP port=1234 gst-...


7

It is possible Netflix WILL run on the Raspberry Pi but it's based on current development of Android Pi. Currently Android compiles on the Pi but does not have video hardware acceleration. The developers are working on this now however with Broadcom. When finished the Android Netflix app should work just fine. It's just waiting for finished driver ...


7

There's a simple way to do it with VLC, this post explains step by step how to do it, in few words this is the way you do it: After having the camera fully set and ready to be used(connected and enabled), now you need to download the package that will perform the live streaming functionality, getting it is as simple as just executing this command in your ...


7

With Ubuntu 14.10 and Gstreamer I reach 100 to 116 ms latency with 1280 x 720 @ 60Hz. Tanks to @Antonvh who puts me on the right way. I reproduce here the solution for latter reference. To stream from the Pi : raspivid -t 0 -b 2000000 -fps 60 -w 1280 -h 720 -o - \ | gst-launch-1.0 -e -vvv fdsrc ! h264parse ! rtph264pay pt=96 config-interval=5 \ ! ...


7

Nothing wrong at all with goldilocks answer above, but here's an additional one that deals specifically with the picamera API. You can use a custom output to perform such a split (as many ways as you like) and send the output to a variety of destinations. In your case, if you wanted to record to a file and a socket you could do something like this: #!/usr/...


6

The only modern way to stream H264 to a browser is with UV4L: no latency, no configuration, with optional audio, optional two-way audio/video. No magic GStreamer sauce, yet it's possible to extend its usage.


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

There is a proper Netflix addon but it uses Kodi 17 (krypton)'s newly implemented InputStream API. However, Kodi 17 still isn't enough for running the plugin, Netflix uses DRM encryption which is only supported in the Kodi 18 nightly builds. At the time writing, OSMC is using Kodi 17 wich doesn't support this feature. My sugestion is using raspbian (or other ...


5

You don't need a Raspberry Pi device (or in this case, 2 devices), with all the inherent software issues you would face, plus power-packs, just to send composite video downstairs. Search online for Composite Video Baluns. These are passive transformers that can be used to send audio and video up to 300 feet over standard CAT5 wiring. You can even get them ...


5

To stream to services like UStream you can use ffmpeg: ffmpeg -f video4linux2 -i /dev/video0 -qscale 1 -r 25 -vcodec libx264 -b 636k -aspect 4:3 -s 640x480 -ar 44100 -ab 64k -async 1 -g 6 -threads 2 -f flv "${RTMP_URL}/${KEY} flashver=FME/2.5\20(compatible;\20FMSc\201.0)" Where: /dev/video0: where your webcam is connected on Linux RTMP_URL: Ustream ...


5

I had the same problem, found this thread when searching for a hardware encoder, not for c920 issues. Nevertheless, execute a firmware update for the raspberry pi and the garbage should be gone $> sudo rpi-update I myself found the solution here: http://wiki.matthiasbock.net/index.php/Logitech_C920,_streaming_H.264#Raspberry_Pi


5

The tee command reads from standard input and copies to any number of files plus standard output by default, see man tee for more details. This means you can ask tee to create a file from input and then pipe the output to something else. The addition of an extra pipe does in theory add a bit of inefficiency. As to whether this is significant or not you ...


5

Or for simplicity replace "format_id" with "best" (best: Select best quality format represented by single file with video and audio): omxplayer `youtube-dl -g -f best <youtube-url>` # play the video https://github.com/rg3/youtube-dl/blob/master/README.md#format-selection


4

Have you tried: lsmod rmmod uvcvideo modprobe uvcvideo nodrop=1 timeout=5000 quirks=0x80 Also try to remove all "auto" settings through guvcview It worked perfectly for me. It has been running för 24 hours straight with a steady 15fps @ 320x240. Please check this for details. Cheers


4

The limit on resolution went away when I switched from motion to MJPG-streamer. MJPG-streamer streams 1280x720 at 5FPS. With 3 computers connected to the stream, the CPU usage is only around 10%. The disadvantage with MJPG-streamer is that it does not have motion detection. However, this solution is not completely stable. I have to reboot the RPi every few ...


4

Have you tried connecting the webcam to a powered USB hub? Some devices require more current than the Raspberry Pi can provide, and can behave erratically when connected to the built-in USB ports.


4

Google's Chromecast uses similar technology in a compact hardware package (though the similarity probably ends there). It turns out there is a screencast standard for Wifi called Miracast. There is a Raspberry Pi project in the early stages of development (beta) called Piracast. Right now there is support for only a limited hardware (the Realtek ...


4

EDIT: This is not with RTSP but may help you You can try with How to stream video and audio from a Raspberry Pi with no latency. Install gstreamer1.0 on the Raspberry Pi video server: In /etc/apt/sources.list, add "deb http://vontaene.de/raspbian-updates/ . main" sudo apt-get update sudo apt-get install gstreamer1.0 Start streaming the video In the ...


4

I achieved a 200ms lag! The trick: send out less frames from the Pi than you read on the remote side, this makes sure the buffer stays empty. Here's a picture I took of the RPi filming a stopwatch. It shows the time difference. This is the recipe I use. First on the laptop (Mac) do this: nc -l 5001 | mplayer -fps 24 -cache 1024 - then on the RPI start ...


4

You can use a USB tuner to capture Video in. Please check here for compatibility Just make sure to get one that has the extra inputs for SVideo and Analoque input, as well as the terrestrial input.


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