[gst-devel] ffmux_mp4 : audio signal not emitted
Edward Hervey
bilboed at gmail.com
Fri Feb 13 10:26:59 CET 2009
On Thu, 2009-02-12 at 18:11 +0530, Jyoti D wrote:
> Hi all,
>
> I have written a application to transcode given media file to H264 and
> AAC video. The application works for most of the media files I
> checked. But in one case where the input file is mpegts with video
> content->mpeg2video and audio->mp2. The muxer doesn't emit a
> "pad-added" signal for audio stream only, it emits signal for video
> stream.
Muxers don't create pads automatically but on request (as you're doing
below with _get_request_pad). Don't use 'pad-added' for muxers.
>
> The error is :
>
> ** (dec-check:30607): CRITICAL **: gst_ffmpegmux_request_new_pad:
> assertion `ffmpegmux->opened == FALSE' failed
This means you can't request a new sink pad once the muxer is
initialized (most likely because it's already paused/playing).
Connect all your streams to the muxer in one go, that should solve
your issue.
Edward
>
> I get the request pad for both video and audio pads as below.
>
> mux_sinkpad = gst_element_get_request_pad (ffmux_mp4,
> "audio_0");
> if (mux_sinkpad == NULL) {
> g_print ("Error : get request pad : mux_sinkpad audio_0
> \n");
> return;
> }
>
> Also I tried using the g_signal_connect (); function as below
>
> g_signal_connect (GST_OBJECT (ffmux_mp4), "pad-added", G_CALLBACK
> (cb_newpad_mux), NULL);
>
> But the same error pops out.
>
> Could some one help me regarding this?
>
> Thanks
> ------------------------------------------------------------------------------
> Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
> software. With Adobe AIR, Ajax developers can use existing skills and code to
> build responsive, highly engaging applications that combine the power of local
> resources and data with the reach of the web. Download the Adobe AIR SDK and
> Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
> _______________________________________________ gstreamer-devel mailing list gstreamer-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
More information about the gstreamer-devel
mailing list