recorded video file using gstreamer pipeline has problem in kdenlive(have no timestamp in VLC), failed to play
tim at centricular.com
Sat Oct 3 15:59:19 PDT 2015
On Sat, 2015-10-03 at 15:17 -0700, sina_sh wrote:
> I have a gstreamer pipeline to record Video (MJPEG)+Audio from a
> (C930e) as below:
> gst-launch-1.0 v4l2src device=/dev/video1 ! 'image/jpeg,
> height=1080, framerate=30/1' \
> ! videorate ! queue ! mux2. \
> ! 'audio/x-raw,rate=44100,channels=1,depth=24' ! audioconvert \
> ! avenc_aac compliance=experimental ! queue ! mux2. matroskamux
> name="mux2" ! filesink location=/home/sina/Webcam.mts
> every time I try to play the recorded video file (.mts) the player
> can not
> detect its duration (I'm using ffplay) + also Kdenlive can not even
> play it!
> my assumption is that this happens because the kdenlive can not
> detect the
> duration of the video(?), am I right?
> What should I do to get the kdenlive (and other players) to play this
> smoothly? what part of my pipeline causes the problem?
Pass the -e option to gst-launch-1.0, then the file will be finalized
properly when you interrupt the pipeline with Control-C.
> p.s: I don't wanna change the container to another one (or convert
> the video
> file) since it has to be in a .mts one due to future implementations.
> it has
> to capture in Mjpeg since that's the only option I have to capture in
Just keep in mind that ".mts" usually means MPEG-TS format, not
Tim Müller, Centricular Ltd - http://www.centricular.com
Join us at the GStreamer Conference: 8-9 October 2015 in Dublin, Ireland
More information about the gstreamer-devel