Streaming to Youtube with gst-launch

Hi,
I’m new on this forum. I was looking info about youtube live stream but I did not find.

I try tu use:

gst-launch-1.0 videotestsrc is-live=1 ! videoconvert ! 'video/x-raw, format=(string)I420, width=(int)640, height=(int)480, framerate=25/1' ! queue ! omxh264enc ! 'video/x-h264, streamformat=(string)byte-stream' ! h264parse ! flvmux streamable=true name=mux ! rtmpsink location="rtmp://a.rtmp.youtube.com/live2/xxxx-xxxx-xxxx-xxxx" audiotestsrc ! voaacenc bitrate=128000 ! mux.

When I run this command, connection status is change from “No data” to “Wery good connection” in youtube creator studio, but preview screen spinning with message “loading preview…” and transmision doesn’t start. Any suggestion?

Hi,
we don’t have experience in this usecase. Please use x264enc plugin and go to http://gstreamer-devel.966125.n4.nabble.com/ to get suggestion.
Once you have a working pipeline with x264enc, it should work fine by replacing with omxh264enc.