Mencoder transcoding

Need help? Post your questions here.

Moderator: moderators

Mencoder transcoding

Postby gornack » Mon Jan 31, 2011 12:31 am

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.
gornack
 
Posts: 5
Joined: Sun Jan 30, 2011 1:16 pm

Postby Xaev » Sat Feb 12, 2011 5:57 am

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.
Xaev
 
Posts: 1
Joined: Sat Feb 12, 2011 5:44 am

Postby badsanta » Fri Feb 18, 2011 12:59 pm

Hi i put there a method to use mencoder with subsonic (dirty).

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

Bye.
badsanta
 
Posts: 3
Joined: Fri Feb 18, 2011 10:30 am


Return to Help

Who is online

Users browsing this forum: No registered users and 16 guests