[gst-devel] muxing and filesink

roope.jarvinen at nokia.com roope.jarvinen at nokia.com
Fri Nov 19 13:05:02 CET 2010


You need to run gst-launch with "-e" switch on receiver side to force EOS when you kill your pipeline, otherwise your file won't be properly finalized.


From: ext Peter Innerhofer [mailto:peter.innerhofer at student.tugraz.at]
Sent: 19. marraskuuta 2010 13:41
To: gstreamer-devel at lists.sourceforge.net
Subject: Re: [gst-devel] muxing and filesink

On 19.11.2010 11:16, sudarshan bisht wrote:
One more thing,  I have used videotestsrc instead of v4l2src .
On Fri, Nov 19, 2010 at 8:10 AM, sudarshan bisht <bisht.sudarshan at gmail.com<mailto:bisht.sudarshan at gmail.com>> wrote:

In your first pipeline it should be udpsink , not udpsrc.

Another thing is that you are not properly setting up rtp packets of encoded data.
So I think your pipelines should look like this;

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

gst-launch  udpsrc port=5000   ! application/x-rtp,media=video,payload=100,clock-rate=100000000,encoding-name=MP4V-ES  ! rtpmp4vdepay  ! video/mpeg,width=640,height=480,framerate=25/1,mpegversion=4,systemstream=false  ! avimux  ! filesink location=test.avi

And I could  play this file using gst-launch playbin uri=file:///home/maemo/test.avi<file:///\\home\maemo\test.avi>

first of all, thanks for your answer.
but this pipeline doesn't solve my problem, vlc cant play the recorded video. (anyway the problem is not so big, and there are some workarounds)

i already thought about the rtp payloader,  i could even make a rtp stream with control ports, but that's quite an overhead and i think it doesn't solve my problems ether.

could it be a failure of the filesink? does the filesink add codec details, or make a header? vlc sometimes even thinks the file just has a audio track...

the reason why i want it to play with vlc is, that i think it is one of the most common player on all systems and i probably want to edit it further on
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20101119/37b029a8/attachment.htm>

More information about the gstreamer-devel mailing list