x264enc on the Logitech C920's viewfinder

Peter Maersk-Moller pmaersk at gmail.com
Wed Nov 13 15:06:34 PST 2013


Why would you use x264enc to encode a video stream from a camera that already can deliver a very good h.264 encoded stream?

Sent from my iPad

> On Nov 13, 2013, at 10:11, Severin Kacianka <severin.kacianka at aau.at> wrote:
> 
> Hello,
> 
> I am using the gstreamer 1.2 and a Logitech C920 with uvch264src[1]. I want to save the 1080p video to a file and stream the viewfinder (vfsrc) over the network.
> 
> I tried to use this pipeline:
> gst-launch-1.0 -e uvch264src device=/dev/video1 name=src auto-start=true src.vfsrc ! queue ! video/x-raw,width=320,height=240,framerate=30/1 ! \
> x264enc ! rtph264pay ! \
> udpsink host=example.com port=1234 src.vidsrc ! queue ! video/x-h264,width=1920,height=1080,framerate=30/1,profile=constrained-baseline !  h264parse ! mp4mux ! filesink location=bla.mp4
> 
> and this line at the receiver:
> gst-launch-1.0 udpsrc port=1234 ! "application/x-rtp, payload=127" ! rtph264depay ! avdec_h264  ! xvimagesink sync=false
> 
> This does not work. gstreamer seems to start, the camera lights up, the file get created but then has a size of 0 bytes and nothing gets streamed over the network.
> 
> If I change "x264enc ! rtph264pay" to "jpegenc ! rtpjpegpay" it works fine:
> gst-launch-1.0 -e uvch264src device=/dev/video1 name=src auto-start=true src.vfsrc ! queue ! video/x-raw,width=320,height=240,framerate=30/1 ! \
> jpegenc ! rtpjpegpay ! \
> udpsink host=example.com  port=1234 src.vidsrc ! queue ! video/x-h264,width=1920,height=1080,framerate=30/1,profile=constrained-baseline !  h264parse ! mp4mux ! filesink location=bla.mp4
> 
> (receiver line:  gst-launch-1.0 udpsrc port=1234 ! "application/x-rtp, payload=127" ! rtpjpegdepay ! jpegdec ! xvimagesink sync=false)
> 
> Does anyone know what could be the error or how I could track it down?
> 
> 
> Thank you for your time,
> Severin
> 
> 
> [1] http://kakaroto.homelinux.net/2012/09/uvc-h264-encoding-cameras-support-in-gstreamer/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


More information about the gstreamer-devel mailing list