Recode a motion-jpeg stream into mpeg-ts?
Antonio Ospite
ao2 at ao2.it
Wed Feb 6 13:53:36 UTC 2019
On Wed, 6 Feb 2019 11:45:23 +0100
Christophe Lohr <christophe.lohr at cegetel.net> wrote:
> Hi,
> Sorry, I have a final-user question... (I'm quite far to become a gst
> developper...) So, may I ask my question here?
[...]
> 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 ! 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?
>
Caps negotiation failed, you can look up what this means at a lower
level.
In the particular case, if the source material is not 640x480 (your
desired destination resolution) you'll have to add videoscale as well
next to videoconvert (also add videorate if you are changing the
framerate too).
Ciao,
Antonio
--
Antonio Ospite
https://ao2.it
https://twitter.com/ao2it
A: Because it messes up the order in which people normally read text.
See http://en.wikipedia.org/wiki/Posting_style
Q: Why is top-posting such a bad thing?
More information about the gstreamer-devel
mailing list