<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr">Le mer. 6 févr. 2019 06 h 27, Christophe Lohr <<a href="mailto:christophe.lohr@cegetel.net">christophe.lohr@cegetel.net</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
  Sorry, I have a final-user question... (I'm quite far to become a gst<br>
developper...) So, may I ask my question here?<br>
<br>
  I'm trying to recode the motion-jpeg stream for a network cam into an<br>
mpeg-ts stream<br>
(the ultimate wish is to watch this on a DLNA TV via Rygel, but this is<br>
another step)<br>
<br>
For now, I can watch the mjpeg stream via gstreamer:<br>
<br>
$ gst-launch-1.0 uridecodebin uri=<a href="http://192.168.3.55/mjpg/video.mjpg" rel="noreferrer noreferrer" target="_blank">http://192.168.3.55/mjpg/video.mjpg</a> !<br>
autovideosink<br>
<br>
It's fine, I'm happy.<br>
<br>
Now, I try to reencode the stream:<br>
<br>
$ gst-launch-1.0 -v uridecodebin uri=<a href="http://192.168.3.55/mjpg/video.mjpg" rel="noreferrer noreferrer" target="_blank">http://192.168.3.55/mjpg/video.mjpg</a><br>
! video/x-raw, framerate=25/1, width=640, height=480 !  videoconvert !<br>
avenc_mpeg2video ! mpegtsmux ! </blockquote></div></div><div dir="auto"><br></div><div dir="auto">I'm not sure, but maybe you need a parser after the encoder. mpegvideoparse I think. I'm really not certain from the output.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">tcpserversink<br>
../..<br>
/GstPipeline:pipeline0/GstCapsFilter:capsfilter1: caps = video/x-raw,<br>
framerate=(fraction)25/1, width=(int)640, height=(int)480<br>
ERROR: from element<br>
/GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstSoupHTTPSrc:source:<br>
Internal data stream error.<br>
Additional debug info:<br>
gstbasesrc.c(3055): gst_base_src_loop ():<br>
/GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstSoupHTTPSrc:source:<br>
streaming stopped, reason not-negotiated (-4)<br>
ERROR: pipeline doesn't want to preroll.<br>
Setting pipeline to NULL ...<br>
Freeing pipeline ...<br>
<br>
So, what's wrong?<br>
<br>
Best regards<br>
Christophe<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank" rel="noreferrer">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div></div></div>