Fansite and Forum for Meizu Products
 
       

Go Back   Meizu Me > General > Video and Imaging

Reply
 
Thread Tools
Old 11-23-2006   #1
Valued Member
 
FirePower's Avatar
 
Join Date: Nov 2006
Location: Brisbane, Australia
Posts: 199
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
FirePower nincs online   Reply With Quote
Old 11-23-2006   #2
Moderator
 
marcelo1251's Avatar
 
Join Date: Nov 2006
Location: Costa Rica
Posts: 520
great info, thanks for the post.
marcelo1251 nincs online   Reply With Quote
Old 11-29-2006   #3
Freshman
 
Join Date: Nov 2006
Posts: 25
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.
barc nincs online   Reply With Quote
Old 12-21-2006   #4
quatrecouleurs
Guest
 
Posts: n/a
... 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
  Reply With Quote
Old 12-21-2006   #5
quatrecouleurs
Guest
 
Posts: n/a
... 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 ?
  Reply With Quote
Old 12-21-2006   #6
quatrecouleurs
Guest
 
Posts: n/a
continued

Here did I found an answer to try


Quote:
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.
  Reply With Quote
Old 01-05-2007   #7
Passing By
 
Join Date: Dec 2006
Location: US
Posts: 16
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
parishd nincs online   Reply With Quote
Old 01-15-2007   #8
Freshman
 
Join Date: Dec 2006
Posts: 34
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.
scaglifr nincs online   Reply With Quote
Old 01-20-2007   #9
Passing By
 
Join Date: Nov 2006
Location: Sweden
Posts: 17
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
spuck nincs online   Reply With Quote
Old 01-22-2007   #10
Passing By
 
taiabati's Avatar
 
Join Date: Nov 2006
Location: ITA
Posts: 14
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!
taiabati nincs online   Reply With Quote
Old 01-26-2007   #11
quatrecouleurs
Guest
 
Posts: n/a
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 !
  Reply With Quote
Old 01-26-2007   #12
Freshman
 
Join Date: Dec 2006
Posts: 34
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).
scaglifr nincs online   Reply With Quote
Old 01-27-2007   #13
Passing By
 
Join Date: Dec 2006
Posts: 7
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 ?
jvander59 nincs online   Reply With Quote
Old 01-29-2007   #14
Passing By
 
taiabati's Avatar
 
Join Date: Nov 2006
Location: ITA
Posts: 14
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/
taiabati nincs online   Reply With Quote
Old 03-20-2007   #15
Member
 
Join Date: Mar 2007
Posts: 108
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.
shookie nincs online   Reply With Quote
Old 04-30-2007   #16
Member
 
Join Date: Dec 2006
Posts: 129
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.
Lolita nincs online   Reply With Quote
Old 05-17-2007   #17
Passing By
 
Join Date: May 2007
Posts: 2
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...
stah nincs online   Reply With Quote
Old 06-24-2007   #18
mfb mfb is on a distinguished road
Member
 
Join Date: May 2007
Location: The Netherlands
Posts: 220
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?
mfb nincs online   Reply With Quote
Old 07-14-2007   #19
Moderator
 
BobbyQ's Avatar
 
Join Date: May 2007
Posts: 2,598
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://dalnet/meizume ! Firefox Users : get the Chatzilla Plugin. Other Browsers : open a java chat at www.dal.net and enter "/join #meizume"
BobbyQ nincs online   Reply With Quote
Old 08-05-2007   #20
mfb mfb is on a distinguished road
Member
 
Join Date: May 2007
Location: The Netherlands
Posts: 220
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.
mfb nincs online   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Loli Video Converter for M6 Lolita Video and Imaging 120 08-03-2008 12:48 PM
MZ Video Converter Err0r Video and Imaging 10 02-16-2008 01:58 AM
Meizu converter and vob files scaglifr Video and Imaging 0 01-25-2007 10:02 AM


All times are GMT. The time now is 07:41 PM.


Powered by vBulletin. Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.
 
Meizu Me is an independent resource for all things Meizu. Meizu, Mini Player, Music Card, Mini One and all other related names are properties of MEIZU Inc. All content © 2008 Meizu Me. All Rights Reserved.