i have an mpeg2 file that needs to be transcoded into mp4, i am using 3ivx encoders but stuck on how to connect the video/audio out pins to the muxer, heres what i got so far
- add video compressor (3ivx video encoder) to the graph
- get the input pin and connect it to the decoded video output pin
- add audio compressor (3ivx audio encoder) to the graph
- get the input pin and connect it to the decoded audio output pin
here i need to connect the video/audio output pins to the muxer input1 and input2, but i can only get the 1st pin using the following:
filter.EnumPins(...)
loop through the pins, check if the current pin is input (only returns 1 input pin).
- add the muxer to the graph
- get the output pin from the muxer and connect it to the input pin of the file writer
i think i need to connect the video/audio to the muxer a different way, can someone pleaase shed some light on this
thanks
-
-
nm, figured it out, needed to RenderStream instead of Connect.
Thread Closed
This thread is kinda stale and has been closed but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.