+ Reply to Thread
Page 1 of 3 1 2 3 LastLast
Results 1 to 20 of 47

Mencoder Video Converter Info

This is a discussion on Mencoder Video Converter Info within the Video and Imaging forums, part of the miniPlayer M6 / SL category; Mecoder is part of the Mplayer family and is the core of video converter software (iriverter, Winmemc, Meizu Video Converter,super,BADAK,etc) ...

  1. #1
    Valued Member
    Join Date
    Nov 2006
    Location
    Brisbane, Australia
    Posts
    200
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Mencoder Video Converter Info

    Mecoder is part of the Mplayer family and is the core of video converter software (iriverter, Winmemc, Meizu Video Converter,super,BADAK,etc)

    Mencoder documentation
    http://www.mplayerhq.hu/DOCS/HTML/en/index.html
    Mencoder documentation single file
    http://www.mplayerhq.hu/DOCS/HTML-si...n/MPlayer.html

    List of all available command options
    http://www.mplayerhq.hu/DOCS/man/en/mplayer.1.html

    To see list of available options
    mencoder -[opt] help

    Video Filter options (example)
    mencoder -vf help

  2. #2
    Valued Member
    Join Date
    Nov 2006
    Location
    Costa Rica
    Posts
    536
    Thanks
    0
    Thanked 1 Time in 1 Post
    great info, thanks for the post.

  3. #3
    Freshman
    Join Date
    Nov 2006
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts
    someone posted this before the server crashed, so I'll post it again because it works fine for me:

    Just install memcoder and post this into your terminal:

    MOVIENAME.avi -idx -noodml -ofps 20 -vf scale=320:-2,expand=:240:::1,crop=320:240,rotate=1 -ovc lavc -ffourcc XVID -lavcopts vcodec=mpeg4:vbitrate=384:vmax_b_frames=0:vhq -sws 9 -srate 44100 -oac mp3lame -lameopts cbr:br=128:mode=0 -o CONVERTED_MOVIENAME.avi

    Reduce the bitrate if you're having problems with audio being not in sync.

  4. #4
    quatrecouleurs
    Guest

    ... trying to coming out with meizu videos under linux

    ... Not working

    I typed :

    mencoder /media/mymoviefolder/mymoviename.avi -idx -noodml -ofps 20 -vf scale=320:-2,expand=:240:::1,crop=320:240,rotate=1 -ovc lavc -ffourcc XVID -lavcopts vcodec=mpeg4:vbitrate=384:vmax_b_frames=0:vhq -sws 9 -srate 44100 -oac mp3lame -lameopts cbr:br=128:mode=0 -o /media/mymovieoutput/mymovieoutputname.avi

    And the only thing I have is an arrow > not anything more ?

    The input file was a divx.



    Can I use Transcode ? Do anybody know the commands to use ? If not, I will try to look for it myself but it might take several time :D

  5. #5
    quatrecouleurs
    Guest

    ... Some frontend ?

    I looked for a good frontend for mencoder under ubuntu (edgy)... Acidrip seem useful but has not all the options that I need...
    Any ideas ?

  6. #6
    quatrecouleurs
    Guest

    continued

    Here did I found an answer to try


    chernomyrdin
    12-01-2006, 09:32 PM
    Anybody using mencoder (under linux for example) for convert video source to format for miniplayer ?

    After dome try I found correct command line full equal Virtual-Dub action:
    mencoder /media/wheremyfileis.avi -quiet -vc ffmpeg12 -ofps 20 -vf scale=320:240:0:0:0.00:0.75,expand=320:240,rotate= 1 -ovc xvid -xvidencopts profile=dxnhtntsc:cartoon:zones=0,w,1.0:bitrate=38 4:pass=1 -oac mp3lame -lameopts cbr:br=128 -info name=Film_Name -o /media/wheremyoutputwillbe.avi

    It works, but I obtain :
    Forced video codec: ffmpeg12
    Cannot find codec matching selected -vo and video format 0x44495658.
    Read DOCS/HTML/en/codecs.html!

    ... So will I :)
    Last edited by quatrecouleurs; 12-21-2006 at 01:45 PM.

  7. #7
    Passing By
    Join Date
    Dec 2006
    Location
    US
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by barc View Post
    someone posted this before the server crashed, so I'll post it again because it works fine for me:

    Just install memcoder and post this into your terminal:

    MOVIENAME.avi -idx -noodml -ofps 20 -vf scale=320:-2,expand=:240:::1,crop=320:240,rotate=1 -ovc lavc -ffourcc XVID -lavcopts vcodec=mpeg4:vbitrate=384:vmax_b_frames=0:vhq -sws 9 -srate 44100 -oac mp3lame -lameopts cbr:br=128:mode=0 -o CONVERTED_MOVIENAME.avi

    Reduce the bitrate if you're having problems with audio being not in sync.
    Thanks for reposting this, it works great for me in Fedora Core 6.

    Daniel

  8. #8
    Freshman
    Join Date
    Dec 2006
    Posts
    34
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by barc View Post
    someone posted this before the server crashed, so I'll post it again because it works fine for me:

    Just install memcoder and post this into your terminal:

    MOVIENAME.avi -idx -noodml -ofps 20 -vf scale=320:-2,expand=:240:::1,crop=320:240,rotate=1 -ovc lavc -ffourcc XVID -lavcopts vcodec=mpeg4:vbitrate=384:vmax_b_frames=0:vhq -sws 9 -srate 44100 -oac mp3lame -lameopts cbr:br=128:mode=0 -o CONVERTED_MOVIENAME.avi

    Reduce the bitrate if you're having problems with audio being not in sync.
    For video this works beautifully but the sound has a terrible warbling fault (that is not present on the source avi). The problem is not a miniplayer one as the output avi has the same warbling when watches using several different players, thus it must be a mencoder conversion issue. Does anyone have any suggestions?

    TIA

    F

    ( PS running mencoder on SuSE 10 )
    Last edited by scaglifr; 01-15-2007 at 04:02 PM.

  9. #9
    Passing By
    Join Date
    Nov 2006
    Location
    Sweden
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts
    To (crop) get rid of black bars in widescreen movies:

    x = 240 * movie aspect ratio

    -vf scale=x:240,expand=:240:::1,crop=320:240,rotate=1

    example:
    movie aspect ratio is 16/9 = 1.777777778
    240 * 1.777777778 = ~427 (must be integer)
    mencoder options:
    -vf scale=427:240,expand=:240:::1,crop=320:240,rotate= 1

  10. #10
    Passing By
    Join Date
    Nov 2006
    Location
    ITA
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    try some more audio options...

    Quote Originally Posted by scaglifr View Post
    For video this works beautifully but the sound has a terrible warbling fault (that is not present on the source avi). [...] Does anyone have any suggestions?

    TIA

    F

    ( PS running mencoder on SuSE 10 )
    In the Audio Output Codec (-aoc) options I use this and the audio works great!

    -oac mp3lame -lameopts cbr:mode=2:br=96 -af resample=44100 -srate 44100

    I think you should give a try to the resample/samplerate values...

    Also try to decrease video and audio bitrates: if the video bytestream is too demanding the player could render bad video or bad audio (or not render anything at all!) .

    Hope this helps!

  11. #11
    quatrecouleurs
    Guest

    Works !

    Hello

    I just answer to myself in posting a command line able to work under my Ubuntu linux :

    Code:
    mencoder /home/myfolder/meizu/inputfile.avi -idx -noodml -ofps 20 -vf scale=320:-2,expand=:240:::1,crop=320:240,rotate=1 -ovc lavc -ffourcc XVID -lavcopts vcodec=mpeg4:vbitrate=384:vmax_b_frames=0:vhq -sws 9 -srate 44100 -oac mp3lame -lameopts cbr:br=128:mode=0 -o /home/myfolder/meizu/outputfile.avi
    So this one works fine for me, but I will try the options you are talking about too, to improve the files mencoder creates


    I wish I could use avidemux, but I can't choose to best options to use... It's too bad, because this soft is a very good one to work with movies, for instance homemade movie of my family

    If somebody can help me with it


    My post in french


    Just to say, I mean that meizu should use the fact they are open source-friendly a bit more... It could be very helpful for selling players in foreign countries !

  12. #12
    Freshman
    Join Date
    Dec 2006
    Posts
    34
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by quatrecouleurs View Post
    Hello

    I just answer to myself in posting a command line able to work under my Ubuntu linux :

    Code:
    mencoder /home/myfolder/meizu/inputfile.avi -idx -noodml -ofps 20 -vf scale=320:-2,expand=:240:::1,crop=320:240,rotate=1 -ovc lavc -ffourcc XVID -lavcopts vcodec=mpeg4:vbitrate=384:vmax_b_frames=0:vhq -sws 9 -srate 44100 -oac mp3lame -lameopts cbr:br=128:mode=0 -o /home/myfolder/meizu/outputfile.avi
    So this one works fine for me, but I will try the options you are talking about too, to improve the files mencoder creates


    I wish I could use avidemux, but I can't choose to best options to use... It's too bad, because this soft is a very good one to work with movies, for instance homemade movie of my family

    If somebody can help me with it


    My post in french


    Just to say, I mean that meizu should use the fact they are open source-friendly a bit more... It could be very helpful for selling players in foreign countries !
    I can get decent video using avidemux2 on SuSE linux the the sound-track becomes "warbled" which I cannot explain. Any help re using open source stuff much appreciated. A direct rip and encoode via dvd::rip would be great (worked a treat on a whole range of movies for my son's cowon A3).

  13. #13
    Passing By
    Join Date
    Dec 2006
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I've got huge problems to encode avi files and add subtitles with mencoder.
    You guys using mencoder, did you succeed in doing this properly ?

  14. #14
    Passing By
    Join Date
    Nov 2006
    Location
    ITA
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by jvander59 View Post
    I've got huge problems to encode avi files and add subtitles with mencoder.
    You guys using mencoder, did you succeed in doing this properly ?
    I suggest you use Avidemux 2 to do all the difficult stuff (such adding subtitles) and produce one avi file. Then give it the final run with Mencoder...

    With Avidemux it's also super-easy to set in and out-points for ripping, so you can rip just a couple of minutes of an entire DVD to check everything is doing fine...

    http://fixounet.free.fr/avidemux/

  15. #15
    Member
    Join Date
    Mar 2007
    Posts
    108
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Linux script for mencoder.

    In the thread above I am working on making it easier to convert using mencoder in linux.

    So far i have default options and cropbar, thanks to spuck for that info.

    Any feedback is welcomed.

    I am looking for the perfect settings. The settings shown here have given me sync issues.

  16. #16
    Member
    Join Date
    Dec 2006
    Posts
    129
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by jvander59 View Post
    I've got huge problems to encode avi files and add subtitles with mencoder.
    You guys using mencoder, did you succeed in doing this properly ?
    No when i don't rotate video, if i rorate it in same command when adding subtitles i got crap output.

  17. #17
    Passing By
    Join Date
    May 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The firs option, you gave, works great but only on shotr film. When i tryed to convert a 45 minute long doctor who, i can't whatch it on my miniplayer. I only add option -delay -0.25 i order to improve the synchro. I tryed all another options only on long movie, but noone works.

    PS. I sorry, but i lern english, and i might have some problems...

  18. #18
    mfb
    mfb nincs online
    Member
    Join Date
    May 2007
    Location
    The Netherlands
    Posts
    220
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I have a very irritating sound problem with video.

    I converted a music-video using the following command:

    Code:
    mencoder dvd:// -dvd-device /media/Rammstein/ -chapter 1 -ofps 18 -idx -noodml -vf scale=320:-2,expand=:240:::1,crop=320:240,rotate=1 -ovc xvid -xvidencopts bitrate=378:max_bframes=0:chroma_opt:lumi_mask:vhq=4 -sws 9 -srate 48000 -oac mp3lame -lameopts cbr:br=160:mode=0 -o Reise,\ Reise\ Nimes\ France-meizu.avi
    The audio had strange contained strange noises after converting using this command. To fix this, I expermented a bit and fixed the strange noises by seperately encoding the audio and finally converting the video using the following command:

    Code:
    mencoder dvd:// -dvd-device /media/Rammstein/ -chapter 1 -audiofile Nimes.mp3 -ofps 18 -idx -noodml -vf scale=320:-2,expand=:240:::1,crop=320:240,rotate=1 -ovc xvid -xvidencopts bitrate=378:max_bframes=0:chroma_opt:lumi_mask:vhq=4 -sws 9 -oac copy -o Reise,\ Reise\ Nimes\ France-meizu.avi
    Now the audio is perfect, clean and without noises. Only, the Audio/Video Sync suddenly became terrible using this method.

    Does anyone know how to fix the audio/video sync? (Other than guessing some kind of delay, I don't seem to be very good at that :P ) Or is there a way to get clean audio using mencoder itself? Does using libavcodec for encoding MP3 in mencoder help?

  19. #19
    Administrator
    Join Date
    May 2007
    Posts
    3,191
    Thanks
    17
    Thanked 32 Times in 29 Posts
    Hi mfb, I think I know what the problem is. I have sent you some information about my tests via private message.
    To sum it up, I think that the problem here is not the audio itself, it's the quantization of the xvid codec. There is no practical way to limit the videobitrate (by means of cutting off at a given number) other than to use the "profile" option, which is not applicable for the Meizu since the dimensions don't fit to the standard profiles.
    Now then, with your above settings, you tell xvid to use 378 kbit as an average bitrate, and this can (and will) produce bitrate peaks of over 500 kbit which are causing the problem for the Meizu chip.
    The same settings as above with only 300 kbit wouldn't cause the problem (or at least much less of a problem after what I tested).
    It would be great if anyone would find out a way to cap the bitrate with xvid at a certain value (though I doubt it will happen since I have read the opposite on the web !)

    With libavc this does not happen at all since it can be limited at the value of your choice. Then again, xvid is a little bit better than libavc when it comes to quality (but much slower).
    BatMan, the free video converter for Meizu players. Problems ? English First Aid here. Deutsche Erste Hilfe hier.
    Join the Meizume Chatroom at irc://irc.moofspeak.net/meizume ! Firefox Users : get the Chatzilla Plugin. Other Browsers : use this web client.

  20. #20
    mfb
    mfb nincs online
    Member
    Join Date
    May 2007
    Location
    The Netherlands
    Posts
    220
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hey BobbyQ. There's some truth to that, see PM . The problem I have is of a different kind, LAME through mencoder produces a lot more audio artifacts than mere LAME. This annoyed me in music videos, while it didn't bother me with TV series and such. Mencoder can't correctly parse and external audio file, causing a/v sync issues. I now use libavcodec for MP3 compression for music videos, which does the trick.


 

Similar Threads

  1. MZ Video Converter
    By Err0r in forum Video and Imaging
    Replies: 20
    Last Post: 07-01-2010, 03:30 PM
  2. Loli Video Converter for M6
    By Lolita in forum Video and Imaging
    Replies: 127
    Last Post: 12-25-2009, 01:23 AM
  3. Meizu converter and vob files
    By scaglifr in forum Video and Imaging
    Replies: 0
    Last Post: 01-25-2007, 10:02 AM