how to mux audio and video in gstreamer -
i'm trying mux .ogv video file .mp3 file .ogv file both video , audio, in gstreamer (v0.10). seek pipeline :
gst-launch-0.10 filesrc location="video.ogv" ! oggdemux ! queue ! oggmux name=mux ! filesink location="test.ogv" filesrc location="audio.mp3" ! audioconvert ! vorbisenc ! queue ! mux.
when utilize command line, error :
error : of element /gstpipeline:pipeline0/gstaudioconvert:audioconvert0 : not negotiated additional debogging info : gstbasetransform.c(2541): gst_base_transform_handle_buffer (): /gstpipeline:pipeline0/gstaudioconvert:audioconvert0: not negotiated error : pipeline reject pass in preparation phase
i can't see what's wrong. suggestion ? thanks.
you need add together mp3 decoder between filesrc , audioconvert, or decodebin e.g.
gst-launch-0.10 filesrc location="video.ogv" ! oggdemux ! queue ! oggmux name=mux ! filesink location="test.ogv" filesrc location="audio.mp3" ! decodebin ! audioconvert ! vorbisenc ! queue ! mux.
audio video gstreamer mux
No comments:
Post a Comment