Recode a motion-jpeg stream into mpeg-ts?
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 :
> 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 !
> 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
> Internal data stream error.
> Additional debug info:
> gstbasesrc.c(3055): gst_base_src_loop ():
> 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
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the gstreamer-devel