<div dir="ltr">Hello. I trying to stream rtmp from rasberrypi, the omx hardware encoder worked really nice, by the way, so I'm running:<div><br></div><div><div>gst-launch-1.0 v4l2src ! «video/x-raw,width=640,height=480,framerate=30/1» !\</div>
<div> omxh264enc target-bitrate=1000000 control-rate=variable !\</div><div> video/x-h264,profile=high ! h264parse ! queue ! \</div><div>flvmux name=mux alsasrc device=plughw:1 ! audioresample ! \</div><div>audio/x-raw,rate=48000,channels=1 ! queue ! voaacenc bitrate=32000 ! queue ! mux. mux. !\</div>
<div> rtmpsink location='rtmp://my_rtmp_for_ustream.tv_url'</div></div><div><br></div><div>And there is an error:</div><div><br></div><div><div>Setting pipeline to PAUSED ...</div><div>Pipeline is live and does not need PREROLL ...</div>
<div>Setting pipeline to PLAYING ...</div><div>New clock: GstAudioSrcClock</div><div>ERROR: from element /GstPipeline:pipeline0/GstAlsaSrc:alsasrc0: Internal data flow error.</div><div>Additional debug info:</div><div>gstbasesrc.c(2812): gst_base_src_loop (): /GstPipeline:pipeline0/GstAlsaSrc:alsasrc0:</div>
<div>streaming task paused, reason not-negotiated (-4)</div><div>Execution ended after 535913298 ns.</div><div>Setting pipeline to PAUSED ...</div><div>Setting pipeline to READY ...</div><div>Setting pipeline to NULL ...</div>
<div>libv4l2: warning v4l2 mmap buffers still mapped on close()</div><div>Freeing pipeline ...</div></div><div><br></div><div>First of all i thought that there is some alsa problems or such, but then I tried to write simple mpegts and it worked:</div>
<div><br></div><div><div>gst-launch-1.0 v4l2src ! «video/x-raw,width=640,height=480,framerate=30/1» ! \</div><div>omxh264enc target-bitrate=1000000 control-rate=variable !\</div><div> video/x-h264,profile=high ! h264parse ! queue ! \</div>
<div> mpegtsmux name=mux alsasrc device=plughw:1 ! audioresample !\</div><div> audio/x-raw,rate=48000,channels=1 ! queue ! voaacenc bitrate=32000 ! \</div><div>queue ! mux. mux. ! filesink location=1.ts</div></div><div><br>
</div><div>But i can't just change "filesink location=1.ts" to rtmpsink location='rtmp://my_rtmp_for_ustream.tv_url' because i'll get an error:</div><div><br></div><div>WARNING: erroneous pipeline: could not link mux to rtmpsink0<br>
</div><div><br></div><div>So, what can I do to get it work? Thanks.</div></div>