Friday, November 12, 2010

Temporary smplayer/mplayer "subcc" fix.

Came across this with latest mplayer and smplayer

The subcc option must be an integer: -subpos
Error parsing option on the command line: -subcc



Bug report.

Here's my simple work around for now:

changed the 'mplayer executable' setting to /usr/bin/mplayer.rmsubcc in smplayer and put this into mplayer.rmsubcc (and chmod +x /usr/bin/mplayer.rmsubcc).


#!/bin/sh
command=$(echo $* | sed 's/-subcc//g')
/usr/bin/mplayer $command


EDIT:

command=$(echo $* | sed 's/-subcc//g' | sed 's/-aid\ 1/-aid\ 0/g')


will also fix the "MPlayer interrupted by signal 8 in module: demux_open" problem. 


Bug report.

Edit: Fixed in latest SVN

1 comment:

  1. #!/bin/bash

    last="${@: -1}"

    command=$(echo $@ | sed 's/-subcc//g' | sed 's/-aid\ 1/-aid\ 0/g' | sed "s/$last// g" )

    mplayer $command "$last"

    #fix'd :)

    ReplyDelete