Log in

View Full Version : Howto repack some Xvid anime to x264 ?


galaxy001
25th November 2005, 08:23
I want to repack some Xvid avi to x264, I wonder which is the best options.

The Xvid is for a cartoon with many low-motion parts, or I can say with many unmoved parts in the film (or it is better to save as .flc file ? ^-^)
And the Xvid Q is : max=5, min=2, avg.=3.

The cartoon is "Hikaru no go", I hope this helps.

I am trying Quality-based VBR (nominal QP), because 2-pass takes too much time.
And my current way is:

"x264.exe" --crf 20 --ref 5 --bframes 3 --b-pyramid --subme 6 --b-rdo --weightb --trellis 1 --analyse all --8x8dct --qpmax 27 --me umh --progress --no-psnr --output "test.mkv" "[txxz][hikaru_no_go][DVDrip][33].avs"


any suggestions?
I want to get a smaller file without losing much quality. Maybe 70% of the origin file size.(that is from 4DVD to 3DVD or less.)

PS:I am not sure with "--trellis 1", I just followed MeGUI.

galaxy001
25th November 2005, 08:30
And I am gonig home.
I will return on Sunday afternoon.[2005-11-27]

I hope I can get a good solution then. :)

ChronoCross
25th November 2005, 09:43
reencode the DVD's. Then use 2 pass mode to do it. That's how you'll achieve the best quality. but since you obviously downloaded this anime off the internet you should still use two pass with extreme settings in Megui. 70% of the original size should be no problem.

btw this probably violates rule #5. but the mods will take care of that if they so choose.

hitbit
25th November 2005, 11:31
For the same goal I use mencoder, mplayer, besweet and mp4box (and mkvmerge if you prefer matroska)

First, dump original audio with:
mplayer.exe yourmovie.avi -dumpaudio -dumpfile audio.mp3
(assuming audio is in mp3 format)

if you want, you could convert mp3 in ps-aac with besweet and dimzon plugin:
besweet.exe -core( -input audio.mp3 -output audio.aac ) -dimzon( -dllname bse_WinampAacPlusV2.dll -cbr 32 -mode 4 -v 2 )
(you can use -cbr 48 for better quality)

then encode video with:
mencoder.exe yourmovie.avi -nosound -ovc x264 -x264encopts crf=20:trellis=1:frameref=3:bframes=5:b_adapt:b_pyramid:weight_b:mixed_refs:4x4mv:8x8dct:subq=6:i8x8 -of rawvideo -o video.264
(the above must go on a single line. I think that crf=20 for anime is a bit overkill, but is your taste that count... I use 25)

Then mux everything:
mp4box -fps <original fps here> -add video.264 -add audio.mp3 output.mp4
or
mp4box -sbr -fps <original fps here> -add video.264 -add audio.aac output.mp4

for matroska you'll need an intermediate passage:
mp4box -fps <original fps here> -add video.264 intermediate.mp4
then mux intermediate.mp4 and audio.mp3 (or audio.aac) with mkvmerge GUI.

Hope this helps.

Sirber
25th November 2005, 13:14
RealAnime LE ;)

http://forum.doom9.org/showthread.php?t=100863

bond
25th November 2005, 14:06
6) No warez, cracks, serials or illegally obtained copyrighted content! Links to content of a questionable nature, asking for, offering, or asking for help/helping to process such content in any way or form is not tolerated. closed