[gst-devel] avimux header problem
Georg Holzmann
grh at mur.at
Sun Aug 19 17:32:58 CEST 2007
Hallo Mark!
> Following pipeline works fine on my system, that is, proper duration and playing
> with totem, mplayer, xine (and it is generally comparable to your pipeline, I
> assume):
>
> videotestsrc num-buffers=500 ! ffmpegcolorspace ! video/x-raw-yuv,
> framerate="25/1", format="(fourcc)I420" ! avimux ! filesink location=test.avi
Thanks for the tip with the framerate conversion. I tried the (amongst
other things) the following pipeline now:
appsrc ! videorate ! ffmpegcolorspace ! avimux ! filesink
(code see [1])
but with GST_DEBUG=3 I always get these errors:
------------8<-------------
0:00:07.572208000 8929 0x85dba98 WARN videorate
gstvideorate.c:722:gst_video_rate_chain:<videorate_> Got buffer with
GST_CLOCK_TIME_NONE timestamp, discarding it
0:00:07.624372000 8929 0x85dba98 WARN videorate
gstvideorate.c:722:gst_video_rate_chain:<videorate_> Got buffer with
GST_CLOCK_TIME_NONE timestamp, discarding it
0:00:07.671670000 8929 0x85dba98 WARN videorate
gstvideorate.c:722:gst_video_rate_chain:<videorate_> Got buffer with
GST_CLOCK_TIME_NONE timestamp, discarding it
------------8<-------------
But when I change the location of videorate it doesnt work ...
Thanks,
LG
Georg
[1]: Pipeline setup:
------------8<-------------
file_encode_ = gst_pipeline_new( "file_encode_");
source_ = gst_element_factory_make ("appsrc", "source_");
g_assert(source_);
videorate_ = gst_element_factory_make ("videorate", "videorate_");
g_assert(videorate_);
colorspace_ = gst_element_factory_make ("ffmpegcolorspace",
"colorspace_");
g_assert(colorspace_);
mux_ = gst_element_factory_make("avimux", "mux_");
g_assert(mux_);
sink_ = gst_element_factory_make ("filesink", "sink_");
g_assert(sink_);
g_object_set (G_OBJECT(sink_), "location", filename.c_str(), NULL);
gst_bin_add_many (GST_BIN (file_encode_), source_, colorspace_,
videorate_, mux_, sink_, NULL);
gst_element_link_many(source_, colorspace_, videorate_, NULL);
gst_element_link_filtered(videorate_, mux_,
gst_caps_new_simple ("video/x-raw-yuv",
"format", GST_TYPE_FOURCC,
GST_MAKE_FOURCC('I', '4', '2', '0'),
"framerate", GST_TYPE_FRACTION, 25, 1,
NULL) );
gst_element_link(mux_, sink_);
------------8<-------------
More information about the gstreamer-devel
mailing list