GNOME Bugzilla – Bug 647709
mpeg2dec: errors out on not-linked flow return
Last modified: 2011-04-14 22:14:49 UTC
I am trying to allow in Transmageddon to transcode only the audio part of a video file, basically inputing a video and outputing a audio file with just the sound. However it seems that if you don't connect something to the videopad, uridecodebin fails to output just audio. Tried attaching a fakesink to the videopad, but this seems to mess up getting EOS. Also it would of course be much preferable to not decode the video at all in this usecase.
Does this happen with all container formats and could you attach a testcase, for example your transmageddon patch? Preventing decoding of video could be done by adding a autoplug-continue handler to uridecodebin and claiming from that handler that all video formats are raw.
Actually further testing shows that this is an issue with mpeg2dec which fails when getting not-connected on the pad. With theora it worked fine I discovered.
commit 9ccdcda5e68bef768cacb5c27612f8f7b55b0b31 Author: Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> Date: Mon Feb 21 13:13:11 2011 +0100 mpeg2dec: do not fail fatally when unlinked ... as _NOT_LINKED was neither tested as fatal before nor complained about.