[gst-devel] muxing and filesink

Peter Innerhofer peter.innerhofer at student.tugraz.at
Thu Nov 18 17:32:30 CET 2010


hello,

i have an issue with multiplexing and writing a stream to a file.

for example:
gst-launch v4l2src ! videoscale ! videorate !
video/x-raw-yuv,width=640,height=480,framerate=25/1 ! ffmpegcolorspace !
ffenc_mpeg4 ! avimux ! filesink location=test.avi

ok, this stream works fine. vlc can open and show codec meta data. but
now i send the stream to a udpsink and receive it.

gst-launch v4l2src ! videoscale ! videorate !
video/x-raw-yuv,width=640,height=480,framerate=25/1 ! ffmpegcolorspace !
ffenc_mpeg4 ! udpsrc host=127.0.0.1 port=5000

gst-launch udpsrc port=5000 ! video/mpeg, width=(int)640,
height=(int)480, framerate=(fraction)25/1, mpegversion=(int)4,
systemstream=(boolean)false ! avimux ! queue ! filesink location=test.avi

now the video wont play in vlc and i cant open it in video editing
programs which are not based on gstreamer, they can't find any codec details

ideas? what's wrong here, i have tried several multiplexer
(mpegtsmux,qtmux,ffmux_mp4), but its the same. shall i exit the pipeline
in an other way? (not just interrupting it)

i build a python script around this pipelines and i can start/stop the
stream with keyboard input, setting the pipelines to NULL and to
PLAYING.... sometimes the stream is playable in vlc, but mostly not.

thx
 peter




More information about the gstreamer-devel mailing list