USB webcam stream to YouTube.com

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

USB webcam stream to YouTube.com

vecerapl
I need advice on a script to create YouTube.com streaming (RTMP) at least in HD 1920x1080 pixels at 25 fps. Preferably over GStreamer to be able to use GPU hardware.
How can I do that?

v4l2-ctl -d /dev/video0 --list-formats-ext

Index       : 1
    Type        : Video Capture
    Pixel Format: 'MJPG' (compressed)
    Name        : Motion-JPEG
            Size: Discrete 3264x2448
                    Interval: Discrete 0.067s (15.000 fps)
            Size: Discrete 2592x1944
                    Interval: Discrete 0.067s (15.000 fps)
            Size: Discrete 2048x1536
                    Interval: Discrete 0.067s (15.000 fps)
            Size: Discrete 1920x1080
                    Interval: Discrete 0.040s (25.000 fps)
            Size: Discrete 1600x1200
                    Interval: Discrete 0.033s (30.000 fps)

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: USB webcam stream to YouTube.com

vecerapl
This works for me, but if I want to use the 16: 9 format, more precisely the
1920x1080 resolution, gstreamer no longer works.
The sound beeps for more and I want to use the sound from the USB camera
there.

Can you advise?

gst-launch-1.0 -v v4l2src device=/dev/video0 ! image/jpeg, width=1600,
height=1200, framerate=30/1, format=MJPG ! jpegdec ! queue ! omxh264enc !
'video/x-h264, streamformat=(string)byte-stream' ! h264parse ! flvmux
streamable=true name=mux ! rtmpsink
location="rtmp://a.rtmp.youtube.com/live2/xxxxx" audiotestsrc ! voaacenc
bitrate=128000 ! mux.



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel