Recode a motion-jpeg stream into mpeg-ts?
Nicolas Dufresne
nicolas at ndufresne.ca
Wed Feb 6 14:09:40 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 !
> avenc_mpeg2video ! mpegtsmux !
I'm not sure, but maybe you need a parser after the encoder. mpegvideoparse
I think. I'm really not certain from the output.
tcpserversink
> ../..
> /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/20190206/7097dfa4/attachment.html>
More information about the gstreamer-devel
mailing list