Problem in using mpegtsmux

Peter Maersk-Moller pmaersk at gmail.com
Sun Oct 4 11:41:43 PDT 2015


Hi Sina.

MPEG TS can not handle MJPEG/JPEG. No standards for that I'm afraid. Also
no standard for PSI
<http://en.wikipedia.org/wiki/Program-specific_information> description for
such a stream exist. You'll need something like MPEG-4 part 2 (XviD),
MPEG-4 part 10 (H.264) or MPEG-2. 720p MJPEG really needs a lot of
bandwidth for a somewhat decent quality. If you don't have the CPU or
hardware encoder sufficient for encoding, you could use a webcam with
built-in support for H.264 encoding such as Logitech C920 and others.

While MPEG-TS does not support MJPEG, RTP streams can. With some
limitations, Matroska can as well I think, but no UDP for the latter.

Peter MM

On Sun, Oct 4, 2015 at 2:17 PM, sina_sh <sina.shafai at gmail.com> wrote:

> Hi,
>
> I would like to capture a video stream (+audio) in MJPEG from my webcam
> into
> .mts container using this pipeline:
>
> gst-launch-1.0  v4l2src do-timestamp=true  device=/dev/video0  !
> 'image/jpeg,framerate=30/1,width=1280,height=720' ! videorate ! queue !
> mux2.  pulsesrc do-timestamp=true
> device="alsa_input.pci-0000_00_1b.0.analog-stereo" !
> 'audio/x-raw,rate=88200,channels=1,depth=24' !  audioconvert !  avenc_aac
> compliance=experimental ! queue ! mux2. mpegtsmux name="mux2" ! filesink
> location=/home/sina/Webcam.mts
>
> it seems that my pipeline doesn't recognize the mpegtsmux (?)
> when i use avimux or even matroskamux it works but as far as I know for
> MPEG-TS I need to use the correct muxer which is "mpegtsmux"
>
> This is the warning:
>
> WARNING: erroneous pipeline: could not link queue0 to mux2
>
>
> Can you please tell me what part of my pipeline is wrong? or what shall I
> change in order to get a timestamped video stream at the end (duration of
> the video must be shown when I play it via kdenlive or VLC)?
>
> Best,
> Sina
>
>
>
>
>
> --
> View this message in context:
> http://gstreamer-devel.966125.n4.nabble.com/Problem-in-using-mpegtsmux-tp4673947.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20151004/e15a622b/attachment-0001.html>


More information about the gstreamer-devel mailing list