Page 1 of 1

Mencoder transcoding

PostPosted: Mon Jan 31, 2011 12:31 am
by gornack
Hello everyone,

I'm looking to stream video in subsonic 4.3 with .srt subtitles.
I googled a bit and found out that ffmpeg does not seem to be able to embed .srt subtitles in the video output.
Mencoder is supposed to, though.

So I tried to use mencoder as a transcoder (I'm running my test on a mkv file).
The first step, is to be able to transcode mkv to flv (without subtitles, for now).
I failed at it :-(

I first added a symbolic link on /var/subsonic/transcode/
Then I tried to setup the following line in the Settings>Transcoding page as 1st step :
Code: Select all
mencoder -forceidx -of lavf -oac mp3lame -lameopts abr:br=56 -srate 44100 -ovc lavc -lavcopts vcodec=flv:vbitrate=1000:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 -ss %o -vf scale=%w:%h %s


It does not work...
Here's what's in the log :
Code: Select all
[2011-01-31 01:15:22,565] INFO PlaylistInputStream - admin listening to "Saison 04/the.big.bang.theory.s04e02.720p.hdtv.x264-ctu.mkv"
[2011-01-31 01:15:22,572] DEBUG TranscodeInputStream - Starting transcoder: [/var/subsonic/transcode/mencoder] [-forceidx] [-of] [lavf] [-oac] [mp3lame] [-lameopts] [abr:br=56] [-srate] [44100] [-ovc] [lavc]
[-lavcopts] [vcodec=flv:vbitrate=1000:mbd=2:mv0:trell:v4mv:cbp:last_pred=3] [-ss] [0] [-vf] [scale=428:240] [/data/public/Series/The Big Bang Theory/Saison 04/the.big.bang.theory.s04e02.720p.hdtv.x264-ctu.mkv
]


Has anyone been able to use mencoder to transcode video streams, at least to perform what ffmpeg does ?

Any help would be appreciated.

PostPosted: Sat Feb 12, 2011 5:57 am
by Xaev
It looks to me like the problem is mencoder not receiving an output file name, but I'm far from an expert on the matter. It seems to require the output path to be prefaced by a '-o'. If you figure something out, let us know; I'd really like to get this working myself.

PostPosted: Fri Feb 18, 2011 12:59 pm
by badsanta
Hi i put there a method to use mencoder with subsonic (dirty).

http://forum.subsonic.org/forum/viewtop ... 1941#21941

Bye.