Re: Gstreamer 1.0 for raspbian
Posted: Thu Oct 30, 2014 7:31 am
It's used by the new webkit3 engine to display videos inside the browser (epiphany, kweb3).Ivan Tham wrote:Can I use Gstreamer1.0 in midori or other browser?
A small, affordable computer with free resources to help people learn, make things, and have fun
https://www.raspberrypi.org/forums/
https://www.raspberrypi.org/forums/viewtopic.php?f=66&t=34250
It's used by the new webkit3 engine to display videos inside the browser (epiphany, kweb3).Ivan Tham wrote:Can I use Gstreamer1.0 in midori or other browser?
Code: Select all
raspivid -n -w 1280 -h 720 -b 4500000 -fps 30 -vf -hf -t 0 -o - | gst-launch-1.0 -v fdsrc ! h264parse ! rtph264pay config-interval=10 pt=96 ! udpsink host=10.3.99.33 port=9000
Code: Select all
Pipeline is PREROLLED..
Setting pipeline to PLAYING...
New clock: GstSystemClock
Code: Select all
gst-launch-1.0 -v udpsrc port=9000 caps='application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264' ! rtph264depay ! video/x-h264,width=1280,height=720,framerate=30/1 ! h264parse ! avdec_h264 ! videoconvert ! autovideosink sync=false
Code: Select all
New clock: GstSystemClock
Code: Select all
gst-launch-1.0 videotestsrc ! \
jpegenc ! \
rtpjpegpay ! \
udpsink host=127.0.0.1 port=5200
Code: Select all
gst-launch-1.0 udpsrc port=5200 ! \
rtpjpegdepay ! \
jpegdec ! \
autovideosink
Code: Select all
Setting pipeline to PAUSED...
Pipeline is PREROLLING...
Pipeline is PREROLLED...
Setting pipeline to PLAYING...
New clock: GstSystemClock
Code: Select all
Setting pipeline to PAUSED...
Pipeline is live and does not need PREROLL...
Setting pipeline to PLAYING...
New clock: GstSystemClock
Code: Select all
gst-launch-1.0 -v videotestsrc ! autovideosink
Code: Select all
GST_DEBUG=4 gst-launch-1.0 -v videotestsrc ! autovideosink
Code: Select all
gst-launch-1.0 -v videotestsrc ! ximagesink
Code: Select all
dpkg -l | grep gstreamer
Thank you, much appreciatedsphaero wrote:If you are new gstreamer or streaming in general read this:
http://www.z25.org/static/_rd_/videostr ... index.html
Code: Select all
raspivid -f -b 10000000 -fps 30 -t 0 -o - | gst-launch-1.0 -v fdsrc ! h264parse! rtph264pay config-interval=1 pt=96 ! udpsink host=10.3.99.255 port=9000
Code: Select all
gst-launch-1.0 -v udpsrc port=9000 caps='application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264' ! rtph264depay ! avdec_h264 ! videoconvert ! autovideosink sync=false
How would one do this?fruitoftheloom wrote:Did you fully remove the packages installed by the byvontaene.de-repository prior to dist-upgrade ?sphaero wrote:Thanks for the pointer. I missed some sources indeed.
Just tested and it is much smootheralthough gstreamer takes quite some overhead. 50% cpu compared to 3-7%. Anybody got lower cpu burden?
sudo apt-get remove --purge gstreamer1.0*
sudo apt-get update && sudo apt-get dist-upgrade
Code: Select all
gst-launch-1.0 -e multifilesrc location="image_%04d.jpg" ! image/jpeg, framerate=12/1 ! decodebin ! video/x-raw, width=1296, height=976 ! progressreport name=progress ! omxh264enc target-bitrate=15000000 control-rate=variable ! video/x-h264, profile=high ! h264parse ! mp4mux ! filesink location=test.mp4
Code: Select all
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
ERROR: from element /GstPipeline:pipeline0/GstMultiFileSrc:multifilesrc0: Internal data flow error.
Additional debug info:
gstbasesrc.c(2867): gst_base_src_loop (): /GstPipeline:pipeline0/GstMultiFileSrc:multifilesrc0:
streaming task paused, reason not-linked (-1)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...
Code: Select all
sudo apt-get install gstreamer1.0
Raspbian latest should include the latest gstreamer, that is why you should be wary of old postsnitschkecm wrote:Ok I will give it a try on a fresh raspbian install. Thanks for the update.
Should I just use theor is there anything else needed especially if I want to use the gstreamer to create the video of time-lapse jpgCode: Select all
sudo apt-get install gstreamer1.0
Code: Select all
sudo apt-get update
sudo apt-get dist-upgrade
Code: Select all
gst-launch-1.0 -e multifilesrc location="image_%04d.jpg" ! image/jpeg, framerate=12/1 ! \
decodebin ! video/x-raw, width=1296, height=976 ! progressreport name=progress ! \
omxh264enc target-bitrate=15000000 control-rate=variable ! video/x-h264, profile=high ! \
h264parse ! mp4mux ! filesink location=test.mp4
Code: Select all
// server
gst-launch-1.0 -v filesrc location=video.mp4 ! qtdemux ! video/x-h264 ! rtph264pay ! udpsink host=192.168.0.255 port=5000
-or
gst-launch-1.0 -v filesrc location=video.mp4 ! qtdemux ! queue ! rtph264pay ! udpsink host=192.168.0.255 port=5000
// client
gst-launch-1.0 -v udpsrc port=5000 caps = 'application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, sprop-parameter-sets=(string)"Z2QAH6zZQFAFuhAAAAMAEAAAAwPA8YMZYA\=\=\,aOvssiw\=", payload=(int)96, ssrc=(uint)36838312, timestamp-offset=(uint)1359991347, seqnum-offset=(uint)58019' ! rtpjitterbuffer latency=1000 ! rtph264depay ! decodebin ! videoconvert ! eglglessink
-or
gst-launch-1.0 -v udpsrc port=5000 caps="application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264" ! rtph264depay ! h264parse ! omxh264dec ! videoconvert ! eglglessink sync=false
this, and tkbd if you create a new thread please add more details, e.g. the medium you are using (wifi/ethernet)Defiant wrote:You should ask this in a separate, not dead thread.
I read the links provided.....and did a fresh installation of gstreamer-1.0 on Raspbian Sketch thinking the problem was in the gstreamer's package.codestar02 wrote: ↑Mon Nov 03, 2014 7:54 amFINALLY got it streaming!
However, the video is extremely choppy, laggy, and fragmented. Is there a way to speed this up? Right now i'm seeing around 4 seconds of delay, and quick movements turn the screen to a mass of blocks.
My goal is an infinite stream onto a second, overclocked b+ pi, that does nothing else but view the video.
Sending line:Receiving line:Code: Select all
raspivid -f -b 10000000 -fps 30 -t 0 -o - | gst-launch-1.0 -v fdsrc ! h264parse! rtph264pay config-interval=1 pt=96 ! udpsink host=10.3.99.255 port=9000
ThanksCode: Select all
gst-launch-1.0 -v udpsrc port=9000 caps='application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264' ! rtph264depay ! avdec_h264 ! videoconvert ! autovideosink sync=false
Code: Select all
raspivid -f -b 10000000 -fps 30 -t 0 -o - | gst-launch-1.0 -v fdsrc ! h264parse! rtph264pay config-interval=1 pt=96 ! udpsink host=192.168.100.84 port=6000
Code: Select all
raspivid -t 0 -w 1920 -h 1080 -fps 20 -b 10000000 -o - | gst-launch-1.0 -e -vvvv fdsrc ! h264parse ! rtph264pay pt=96 config-interval=5 ! udpsink host=192.168.0.103 port=5000
Code: Select all
@echo off
F:\gstreamer\1.0\x86_64\bin\gst-launch-1.0 -e -v udpsrc port=5000 ! application/x-rtp, payload=96 ! rtpjitterbuffer ! rtph264depay ! avdec_h264 ! fpsdisplaysink sync=false text-overlay=false