stream static file
Carl Karsten
carl at personnelware.com
Fri Sep 19 22:38:15 PDT 2014
I am experimenting with youtube live sreams. I created an account, put
the secret in auth.sh, and this works:
gst-launch-1.0 \
videotestsrc pattern=18 is-live=1 \
! video/x-raw, framerate=30/1, width=426, height=240 \
! timeoverlay \
! x264enc bitrate=2000 key-int-max=60 bframes=0 byte-stream=false
aud=true tune=zerolatency \
! h264parse \
! "video/x-h264,profile=main" \
! queue \
! mux. audiotestsrc is-live=true \
! "audio/x-raw, format=(string)S16LE, endianness=(int)1234,
signed=(boolean)true, width=(int)16, depth=(int)16, rate=(int)44100,
channels=(int)2" \
! voaacenc bitrate=128000 \
! flvmux streamable=true name=mux \
! rtmpsink location="rtmp://a.rtmp.youtube.com/live2/x/$AUTH
app=live2"
maybe you can see it here:
https://www.youtube.com/watch?v=YVAjgAfBkYc
Now I would like to swap the ball/tone with content from a file. the file
I am using is an mp4 that my be the same encoding as I need to send, but I
would like to demux, timeoverlay, encode, send.
I am assuming I need is-live=1 somewhere. And I need to keep sync.
I took a shot and realized I am in over my head, but here it is, maybe I am
close, or maybe it will make someone laugh:
uri=file:///home/carl/Videos/What_teachers_really_need_from_us.mp4
gst-launch-1.0 \
uridecodebin uri=$uri \
! tsdemux \
! timeoverlay \
! x264enc bitrate=2000 key-int-max=60 bframes=0 byte-stream=false
aud=true tune=zerolatency \
! h264parse \
! "video/x-h264,profile=main" \
! queue \
! mux. "audio/x-raw, format=(string)S16LE, endianness=(int)1234,
signed=(boolean)true, width=(int)16, depth=(int)16, rate=(int)44100,
channels=(int)2" \
! voaacenc bitrate=128000 \
! flvmux streamable=true name=mux \
! rtmpsink location="rtmp://a.rtmp.youtube.com/live2/x/$AUTH
app=live2"
(gst-launch-1.0:27423): GStreamer-CRITICAL **: gst_element_make_from_uri:
assertion 'gst_uri_is_valid (uri)' failed
WARNING: erroneous pipeline: no element "audio"
--
Carl K
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140920/035f062c/attachment.html>
More information about the gstreamer-devel
mailing list