Recode a motion-jpeg stream into mpeg-ts?

Christophe Lohr christophe.lohr at cegetel.net
Tue Mar 5 08:01:17 UTC 2019


Hi,
  I'm still trying to handle the motion-jpeg stream from my network cam.

I try another pipeline, based on souphttpsrc instead of uridecodebin
I have no more issues about the framerate, but I have issues about
"multiview mode"
This is very surprising because my cam has no stereoscopic mode at all.


export GST_DEBUG="*:2"
gst-launch-1.0 -v souphttpsrc
location="http://192.168.3.55/mjpg/video.mjpg" do-timestamp=false
is_live=true ! jpegdec ! videorate ! avenc_mpeg2video ! fakesink
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
0:00:00.037243353 26024 0x55c9a94e8ad0 WARN               structure
gststructure.c:1832:priv_gst_structure_append_to_gstring: No value
transform to serialize field 'session' of type 'SoupSession'
Got context from element 'souphttpsrc0': gst.soup.session=context,
session=(SoupSession)NULL, force=(boolean)false;
Setting pipeline to PLAYING ...
New clock: GstSystemClock
0:00:00.319396676 26024 0x55c9a94a65e0 WARN            videodecoder
gstvideodecoder.c:2443:gst_video_decoder_chain:<jpegdec0> Received
buffer without a new-segment. Assuming timestamps start from 0.
/GstPipeline:pipeline0/GstJpegDec:jpegdec0.GstPad:src: caps =
video/x-raw, format=(string)I420, width=(int)1280, height=(int)800,
interlace-mode=(string)progressive, multiview-mode=(string)mono,
multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono,
pixel-aspect-ratio=(fraction)1/1, chroma-site=(string)mpeg2,
colorimetry=(string)1:4:0:0, framerate=(fraction)0/1
/GstPipeline:pipeline0/GstVideoRate:videorate0.GstPad:src: caps =
video/x-raw, width=(int)1280, height=(int)800,
framerate=(fraction)750/1001, pixel-aspect-ratio=(fraction)1/1,
colorimetry=(string)1:4:0:0, chroma-site=(string)mpeg2,
format=(string)I420, interlace-mode=(string)progressive,
multiview-mode=(string)mono,
multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono
/GstPipeline:pipeline0/avenc_mpeg2video:avenc_mpeg2video0.GstPad:sink:
caps = video/x-raw, width=(int)1280, height=(int)800,
framerate=(fraction)750/1001, pixel-aspect-ratio=(fraction)1/1,
colorimetry=(string)1:4:0:0, chroma-site=(string)mpeg2,
format=(string)I420, interlace-mode=(string)progressive,
multiview-mode=(string)mono,
multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono
/GstPipeline:pipeline0/GstVideoRate:videorate0.GstPad:sink: caps =
video/x-raw, format=(string)I420, width=(int)1280, height=(int)800,
interlace-mode=(string)progressive, multiview-mode=(string)mono,
multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono,
pixel-aspect-ratio=(fraction)1/1, chroma-site=(string)mpeg2,
colorimetry=(string)1:4:0:0, framerate=(fraction)0/1
0:00:00.416987752 26024 0x55c9a94a65e0 WARN                   libav
gstavvidenc.c:632:stereo_gst_to_av: Unsupported multiview mode - no
mapping in libav
0:00:00.442030959 26024 0x55c9a94a65e0 WARN                   libav
gstavvidenc.c:632:stereo_gst_to_av: Unsupported multiview mode - no
mapping in libav
/GstPipeline:pipeline0/avenc_mpeg2video:avenc_mpeg2video0.GstPad:src:
caps = video/mpeg, mpegversion=(int)2, systemstream=(boolean)false,
width=(int)1280, height=(int)800, framerate=(fraction)750/1001,
pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive,
colorimetry=(string)1:4:0:0, chroma-site=(string)mpeg2,
multiview-mode=(string)mono,
multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono
/GstPipeline:pipeline0/GstFakeSink:fakesink0.GstPad:sink: caps =
video/mpeg, mpegversion=(int)2, systemstream=(boolean)false,
width=(int)1280, height=(int)800, framerate=(fraction)750/1001,
pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive,
colorimetry=(string)1:4:0:0, chroma-site=(string)mpeg2,
multiview-mode=(string)mono,
multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono
0:00:00.513455631 26024 0x55c9a94a65e0 WARN                   libav
gstavvidenc.c:632:stereo_gst_to_av: Unsupported multiview mode - no
mapping in libav
0:00:00.612562218 26024 0x55c9a94a65e0 WARN                   libav
gstavvidenc.c:632:stereo_gst_to_av: Unsupported multiview mode - no
mapping in libav
0:00:00.677977733 26024 0x55c9a94a65e0 WARN                   libav
gstavvidenc.c:632:stereo_gst_to_av: Unsupported multiview mode - no
mapping in libav
0:00:00.763901741 26024 0x55c9a94a65e0 WARN                   libav
gstavvidenc.c:632:stereo_gst_to_av: Unsupported multiview mode - no
mapping in libav
0:00:00.853542160 26024 0x55c9a94a65e0 WARN                   libav
gstavvidenc.c:632:stereo_gst_to_av: Unsupported multiview mode - no
mapping in libav
^Chandling interrupt.
Interrupt: Stopping pipeline ...
Execution ended after 0:00:01.375909345
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...


So, why?
Note: adding 'video/x-raw, multiview-mode=mono, multiview-flag=none'
does not fix it.
Any idea ?


Best regards
Christophe



More information about the gstreamer-devel mailing list