<div dir="ltr"><div><div><div>Hi Sina.<br><br></div>MPEG TS can not handle MJPEG/JPEG. No standards for that I'm afraid. Also no standard for <a href="http://en.wikipedia.org/wiki/Program-specific_information">PSI</a> 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.<br><br></div>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.<br><br></div>Peter MM<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Oct 4, 2015 at 2:17 PM, sina_sh <span dir="ltr"><<a href="mailto:sina.shafai@gmail.com" target="_blank">sina.shafai@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I would like to capture a video stream (+audio) in MJPEG from my webcam into<br>
.mts container using this pipeline:<br>
<br>
gst-launch-1.0  v4l2src do-timestamp=true  device=/dev/video0  !<br>
'image/jpeg,framerate=30/1,width=1280,height=720' ! videorate ! queue !<br>
mux2.  pulsesrc do-timestamp=true<br>
device="alsa_input.pci-0000_00_1b.0.analog-stereo" !<br>
'audio/x-raw,rate=88200,channels=1,depth=24' !  audioconvert !  avenc_aac<br>
compliance=experimental ! queue ! mux2. mpegtsmux name="mux2" ! filesink<br>
location=/home/sina/Webcam.mts<br>
<br>
it seems that my pipeline doesn't recognize the mpegtsmux (?)<br>
when i use avimux or even matroskamux it works but as far as I know for<br>
MPEG-TS I need to use the correct muxer which is "mpegtsmux"<br>
<br>
This is the warning:<br>
<br>
WARNING: erroneous pipeline: could not link queue0 to mux2<br>
<br>
<br>
Can you please tell me what part of my pipeline is wrong? or what shall I<br>
change in order to get a timestamped video stream at the end (duration of<br>
the video must be shown when I play it via kdenlive or VLC)?<br>
<br>
Best,<br>
Sina<br>
<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/Problem-in-using-mpegtsmux-tp4673947.html" rel="noreferrer" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/Problem-in-using-mpegtsmux-tp4673947.html</a><br>
Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div><br></div>