Recode a motion-jpeg stream into mpeg-ts?

Nicolas Dufresne nicolas at ndufresne.ca
Fri Mar 15 13:58:22 UTC 2019


Le mer. 6 févr. 2019 06 h 27, Christophe Lohr <christophe.lohr at cegetel.net>
a écrit :

> Hi,
>   Sorry, I have a final-user question... (I'm quite far to become a gst
> developper...) So, may I ask my question here?
>
>   I'm trying to recode the motion-jpeg stream for a network cam into an
> mpeg-ts stream
> (the ultimate wish is to watch this on a DLNA TV via Rygel, but this is
> another step)
>
> For now, I can watch the mjpeg stream via gstreamer:
>
> $ gst-launch-1.0 uridecodebin uri=http://192.168.3.55/mjpg/video.mjpg !
> autovideosink
>
> It's fine, I'm happy.
>
> Now, I try to reencode the stream:
>
> $ gst-launch-1.0 -v uridecodebin uri=http://192.168.3.55/mjpg/video.mjpg
> ! video/x-raw, framerate=25/1, width=640, height=480 !  videoconvert


Is this the right caps? You might want to add videoscale and videorate
before your caps filter.

!
> avenc_mpeg2video ! mpegtsmux ! tcpserversink
>

You may need mpegvideoparse before the mixer.

../..
> /GstPipeline:pipeline0/GstCapsFilter:capsfilter1: caps = video/x-raw,
> framerate=(fraction)25/1, width=(int)640, height=(int)480
> ERROR: from element
> /GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstSoupHTTPSrc:source:
> Internal data stream error.
> Additional debug info:
> gstbasesrc.c(3055): gst_base_src_loop ():
> /GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstSoupHTTPSrc:source:
> streaming stopped, reason not-negotiated (-4)
> ERROR: pipeline doesn't want to preroll.
> Setting pipeline to NULL ...
> Freeing pipeline ...
>
> So, what's wrong?
>
> Best regards
> Christophe
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20190315/1a873e60/attachment.html>


More information about the gstreamer-devel mailing list