11-23-2006
|
#2
|
|
Moderator
Join Date: Nov 2006
Location: Costa Rica
Posts: 520
|
great info, thanks for the post.
|
|
|
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.
|
|
|
12-21-2006
|
#4
|
|
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
|
|
|
|
12-21-2006
|
#5
|
|
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 ?
|
|
|
|
12-21-2006
|
#6
|
|
Guest
|
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.
|
|
|
|
01-05-2007
|
#7
|
|
Passing By
Join Date: Dec 2006
Location: US
Posts: 16
|
Quote:
Originally Posted by barc
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
|
|
|
01-15-2007
|
#8
|
|
Freshman
Join Date: Dec 2006
Posts: 34
|
Quote:
Originally Posted by barc
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.
|
|
|
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
|
|
|
01-22-2007
|
#10
|
|
Passing By
Join Date: Nov 2006
Location: ITA
Posts: 14
|
try some more audio options...
Quote:
Originally Posted by scaglifr
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!
|
|
|
01-26-2007
|
#11
|
|
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 !
|
|
|
|
01-26-2007
|
#12
|
|
Freshman
Join Date: Dec 2006
Posts: 34
|
Quote:
Originally Posted by quatrecouleurs
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).
|
|
|
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 ?
|
|
|
01-29-2007
|
#14
|
|
Passing By
Join Date: Nov 2006
Location: ITA
Posts: 14
|
Quote:
Originally Posted by jvander59
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/
|
|
|
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.
|
|
|
04-30-2007
|
#16
|
|
Member
Join Date: Dec 2006
Posts: 129
|
Quote:
Originally Posted by jvander59
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.
|
|
|
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...
|
|
|
06-24-2007
|
#18
|
|
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?
|
|
|
07-14-2007
|
#19
|
|
Moderator
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"
|
|
|
08-05-2007
|
#20
|
|
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.
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Powered by vBulletin. Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.
|