Hi all,<br><br>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.<br>
<br>The error is :<br><br>** (dec-check:30607): CRITICAL **: gst_ffmpegmux_request_new_pad: assertion `ffmpegmux->opened == FALSE' failed<br><br>I get the request pad for both video and audio pads as below. <br><br>
mux_sinkpad = gst_element_get_request_pad (ffmux_mp4, "audio_0");<br> if (mux_sinkpad == NULL) {<br> g_print ("Error : get request pad : mux_sinkpad audio_0\n");<br> return;<br>
}<br><br>Also I tried using the g_signal_connect (); function as below<br><br>g_signal_connect (GST_OBJECT (ffmux_mp4), "pad-added", G_CALLBACK (cb_newpad_mux), NULL); <br><br>But the same error pops out. <br>
<br>Could some one help me regarding this?<br><br>Thanks<br>