You are not logged in.


#Kaizoku-Fansubs
Guide to re-encoding X264/MP4 episodes into XviD/AVI.
Written by dythim. Special thanks to TheFluff.
Note: This guide is written for Windows users only.
Mac and *nix users can run VMWare or another PC simulator to use these programs, or if someone can post a reencoding guide for Mac/nix, I'll post it.
First, you must install an H.264 decoder.
Anyone playing the file in VLC, that will not work for this.
We strongly recommend:
__CCCP__
-Download CCCP from the official site: CCCP
-You may get a message when the installer starts asking whether you want to disable Direct VobSub, or other aspects of your computer. If you get this message, click [Yes]: Disable VobSub? (Mirror 1)
-The only options you need to check are, once again, ffdshow and the Haali splitter. Nothing else is necessary, but it should not cause conflicts: CCCP Options (Mirror 1)
-Finally, you must configure the installation. Once again, uncheck all the options for ffdshow, except for H.264, and leave Haali with the default options: CCCP ffdshow Configuration (Mirror 1) CCCP Haali Configuration (Mirror 1)
Now install the audio codec you will need.
-Download Lame MP3 from this link: LameMP3 3.96.1 (Mirror 1)
-Extract the archive using a RAR utility (WinRAR) to your desktop. You will not need these files after the installation.
-Right click on LameACM.inf and then click Install.
-Windows may open a dialog box saying the installation has not past Windows Logo testing. Click the [Continue Anyway] button: Windows Logo Dialog (Mirror 1)
-The installation will complete without any further windows. Delete all the files after the installation completes.
Next, you must download VirtualDub and install AviSynth.
-Download VirtualDub from this link: VirtualDub 1.6.11 (Mirror 1)
-Extract the archive using a ZIP utility to C:\VirtualDub (or another directory of your choice)
-Download AviSynth from this link: AviSynth 2.56 2005-07-10 (Mirror 1)
-Install it using the default options: AviSynth Options (Mirror 1)
That's all the installation. Now the fun stuff.
This is just an example for Episode 162; it will, of course, work for any of the MP4 episodes.
-Open Notepad and enter this line of text:
DirectShowSource("[K-F]_One_Piece_162_[AB178EF9].mp4", fps=23.976)
-Change the Save as type field to "All Files" (otherwise it will save it as .txt)
-Save the file as "162.avs" in the same directory as the MP4 file: Notepad File Save (Mirror 1)
Now to the heart of the matter.
-Start C:\VirtualDub\VirtualDub.exe
-Make sure you have XviD installed.
-Open 162.avs in VirtualDub. You can use File->Open, or simply drag the AVS onto the VirtualDub window.
Note: The following settings will produce a nice-looking video, but not on the level of a K-F release. Anyone interested in using advanced encoding techniques should read the guides and forums on Doom9.net.
-Click on Video->Fast Recompress
-Click on Video->Compression and select XviD from the list of codecs: Select video compressor (Mirror 1)
-Click on the [Configure] button, and on the next window which comes up click the [Advanced Options] button.
-On the next window which comes up, click the [Quantization] tab and enter 2/4/2/4/2/4 in the six text boxes: Quantization Settings (Mirror 1)
-Click all of the [OK] buttons until you return to the main window.
Note: If you do not see an [Advanced Options] button, unintsall your version of XviD and reinstall it from this site: Koepi's XviD Build
-Click on Audio->Full Processing Mode (at the bottom).
-Click on Audio->Compression, select "Lame MP3" on the left and "48000 Hz, 128 kbps CBR, Stereo 16KB/s" on the right: Audio Compression Settings (Mirror 1)
-Click the [OK] button to return to the main window.
-Select File->Save as AVI... and pick a file name for you XviD encode.
-The encoding process will take less than an hour, probably closer to 30 minutes, depending on your computer speed.
END

Offline
And there is Mainconcept h-264 Encoder easy to use and really good results, converts to mpg files
Offline
I had some problems playing the mp4 files in Linux, so I encoded them to AVI (mpeg4/xvid). I used ffmpeg, gpac, and transcode (avimerge) for the task. Here's a short overview of the commands you have to run to do the same. If anybody knows a player that can play back K-F's mp4 files natively without crashing, I'd sure like to know about it. mplayer, xine and vlc didn't do it...
# Unfortunately, gpac/MP4Box has problems with special chars in filenames, so we temporarily rename the file mv "[K-F]_One_Piece_166_[60426ECF].mp4" op166.mp4 # Extract audio track (K-F seems to be using plain old MP3 here, so no need to re-encode) MP4Box -raw 2 op166.mp4 # Encode video track using 1800 bitrate (value affects quality and file size) ffmpeg -an -i op166.mp4 -b 1800 op166.avi # Merge those two together now: avimerge -i op166.avi -p op166_track2.mp3 -o "[K-F]_One_Piece_166.avi"
Offline
no guys seriously help me i wanna see the new episodes
Offline
Alzheimer wrote:
I had some problems playing the mp4 files in Linux, so I encoded them to AVI (mpeg4/xvid). I used ffmpeg, gpac, and transcode (avimerge) for the task. Here's a short overview of the commands you have to run to do the same. If anybody knows a player that can play back K-F's mp4 files natively without crashing, I'd sure like to know about it. mplayer, xine and vlc didn't do it...
actually you don't need reencode video to play them in Linux, you just need to switch mp4 to someting more sane, like mkv. Sometimes mkvmege (from mkvtoolnix) do the job alone, sometimes (like with K-F encodes) you need to first use MP4Box to get audio right...
Offline
Thanks, I'll try that with the next episode and post the results here.
EDIT:
Hmmm. Okay, I tried the following method(s) with episode 167:
- mkvmerge the mp4 directly: This produces a lot of messages about garbage in the audio track (lost synchronisation). The resulting file is unusable.
- mkvmerge, after extracting the audio with gapc/MP4Box: mplayer crashes when trying to play this file, xine only plays the audio.
So this doesn't work for me. Can you post the commands you used to make it work for you?
As for software versions, I'm using the most recent Gentoo (~x86).
Last edited by Alzheimer (2005-12-11 06:07:11)
Offline
I always receive this message whenever i try opening the avs file in virtualDub
Video: DirectShowSource Timeout waiting for graph to start
Audio: DirectShowSource the Filter graph manager wont talk to me

Offline
I've got a problem when I want to open the 166.avs file in VirtualDub. I got all the programs, but when I want to open it in VirtualDub I got the following message: AVI Import Filter error: (unknown) (80040154)
What's wrong?
Swordsman in THE Daisuki-Chwan~ crew!Offline
Ok.. finally got it to work on VDubMod. I installed the latest FFDSHOW settings then reinstalled CCCP. I guess i was missing the VFW settings in the old FFDSHOW ones that were included in the CCCP. I used Yamb to extract the audio track then combined it with the avs file in VDubMod and encoded it on XviD
To make the audio sync i converted the audio first to PCM Wav then i re-encoded it to AC3 hehehehehe
Last edited by rdperalta (2005-12-11 11:13:42)

Offline
Reencoding on Mac v2
EDIT - AAC-UPDATE: The following guide is only for the episodes with mp3 audio up to episode 168. For episodes 169+ follow the guide v3 that I posted later in this thread. EDIT-END.
Note: It looks like the latest version 0.8.4 of VLC will play the mp4 on Mac. But my 4 years old Mac has not enough CPU power to play it, so I have to reencode the episodes.
A new version of ffmpegX has been released and encoding on Mac is easier now.
Download the latest version of ffmpegX here: http://homepage.mac.com/major4/ffmpegX.dmg
You also need the additional binaries:
http://mjpeg.sourceforge.net/MacOS/mpeg2enc
http://prdownloads.sourceforge.net/mpla … p?download
If you want to use ffmpegX for other conversions (like reencoding ogm and mkv to xvid/avi with hardcoded subs) I recommend to use an older version of the mencoder binary from this link: http://prdownloads.sourceforge.net/mpla … 230105.zip (there are some issues with subtitle size and compatibility with the latest version of mencoder)
Copy the mencoder, mplayer and mpeg2enc binaries to Library/Application Support/ffmpegx/
ffmpeg has a problem in recognizing the mp3 audio in the mp4 episode, so you'll have to treat audio and video seperately.
1. Extract the audio
Open the mp4 in ffmpegX. Select "Movie audio to mp2". Then go to the "Audio" tab and change the codec from mp2 to passthrough. Hit "Encode" and ffmpegX will create a new file with the episode's name and .ff extension. Change the .ff to .mp3 and you'll get the episode's audio.
2. Convert the video
Open the mp4 in ffmpegX. Select "DivX ffmpeg". Go to the "Video" tab and select "4:3" and hit the "Best" button to get an optimal bitrate (should be 1654 kbit/s). Go to the "Audio" tab and uncheck "Encode Audio". Hit "Encode". This will create a new file with the episode's name and .ff.avi extension. This is a DivX avi of the episode without sound.
3. Mux audio and video.
Go to the "Tools" tab. Select the "mux" tab. Select "Avi" as the "mux as" option. Select the avi created above as video. Select the mp3 created above as audio. Hit "mux". And voila, you'll get a file with .muxed.avi extension. This is a Divx/avi ready to play on your slow Mac or on standalone players.
I hope this will help all the fellow Mac users out there, so that they can still get their weekly dose of One Piece.
Last edited by BeardFan (2006-01-06 11:09:07)
Offline
Chrystal wrote:
I've got a problem when I want to open the 166.avs file in VirtualDub. I got all the programs, but when I want to open it in VirtualDub I got the following message: AVI Import Filter error: (unknown) (80040154)
What's wrong?
I'm very unsure about what the cause is... I think you should check whether you have any other codec packs installed, and if not, try to install ffdshow and CCCP again. (Looking up, someone was missing a VFW interface which should have been installed.)
If you have more problems, can you paste your 166 script here?

Offline
Alzheimer wrote:
EDIT:
Hmmm. Okay, I tried the following method(s) with episode 167:
- mkvmerge the mp4 directly: This produces a lot of messages about garbage in the audio track (lost synchronisation). The resulting file is unusable.
- mkvmerge, after extracting the audio with gapc/MP4Box: mplayer crashes when trying to play this file, xine only plays the audio.
So this doesn't work for me. Can you post the commands you used to make it work for you?
As for software versions, I'm using the most recent Gentoo (~x86).
MP4Box -raw 2 One_Piece_167_\[9AAF8D5E\].mp4
mkvmerge -o One_Piece_167.mkv -A One_Piece_167_\[9AAF8D5E\].mp4 --language 0:jpn One_Piece_167_\[9AAF8D5E\]_track2.mp3
mplayer (cvs from 04.12.2005) plays resulting mkv just fine. afair mplayer (read libavcodec) started playing h264 ok around june-july, so make sure your is more fresh ![]()
Offline
dythim wrote:
Chrystal wrote:
I've got a problem when I want to open the 166.avs file in VirtualDub. I got all the programs, but when I want to open it in VirtualDub I got the following message: AVI Import Filter error: (unknown) (80040154)
What's wrong?I'm very unsure about what the cause is... I think you should check whether you have any other codec packs installed, and if not, try to install ffdshow and CCCP again. (Looking up, someone was missing a VFW interface which should have been installed.)
If you have more problems, can you paste your 166 script here?
My problem is pretty similar to this one
Hi, I'm kind of a noob at this so be gentle.
I installed all of the codecs and whatnot, and when I open say 167.avs on VirtualDub, if first gives an error that says:
Haali Media Splitter. Error Can't Open File 8007002.
After I press OK, then it goes to another error that generally says:
AviSynth Open Failure: Direct Show source could not open video or audio.
Video returned: could not find the file specified.
It also says the same thing for the audio.
I reinstalled everything from the beginning and it still happens, anyone have any ideas, thanks.
Last edited by youknowme (2005-12-13 19:15:44)
Offline
Well, paste your avs script here and we'll give it a try.

Offline
Thanks for the quick reply, my avs script is as follows:
DirectShowSource("[K-F]_One_Piece_166_[60426ECF].mp4", fps=23.976)
The actual video file is [K-F]_One_Piece_166_[60426ECF] and I also tried it by saving a .mp4 to it as well but still didn't work, should I change it back?
Offline
I'll split this up so it's easier for you to ask questions later.
A)
first we'll try something to get everything on track.
open My Computer and click Tools->Folder Options
click on the Display Tab
uncheck the box that says Hide extension for known file types
That should let you see the .mp4 extension in the file name.
B)
Something you should definitely check first is whether your file is corrupt or not. This will be pretty easy.
Download QuickSFV from http://www.quicksfv.org/download.html and install it with the default options.
After it's installed, right click on your file and click on Create SFV file..., then click OK and it will take a minute or so to compute the CRC.
Open Notepad from the Start -> Accessories folder and drag the SFV over top of that.
The last line of the file should say:
[K-F]_One_Piece_166_[60426ECF].mp4 60426ECF
If the numbers/letters on the right side are the same as in the file name, your file is not corrupt. If they are not the same, your file is corrupt and you need to redownload.
C)
If that's not the problem, then from the errors you pasted above, it is most likely a problem with Haali. Try uninstalling and reinstalling that.
D)
If you make it this far and it doesn't work, you are one letter grade from an F and you should come back and we'll find someone better than me to help you.

Offline
Hi, I went through steps A-D and nothing has really changed yet, after checking the files they were not corrupt, and I've reinstalled Haali a few times after first seeing the error message, and did it again just in case. The only thing I could maybe think of is the fps for each individual episode in the avs script. I can't find the fps for mp4 files so I have been using the 23.976 is the example, don't know if that's a big deal or not, but I can't find the fps in the properties section.
Last edited by youknowme (2005-12-13 21:57:02)
Offline
The MP4 files are at 23.976 fps, which is pretty standard.
I'll go get Fluff.

Offline
OK, first of all... the POINT of the Avisynth maneuver is that you WON'T need the VfW interface of ffdshow. It does not need to be installed, nor should it be.
Onwards to the next problem. Try typing out the FULL path to the mp4 file in the avisynth script. I.e., if you have the file in the folder C:/movies/one piece, type:
directshowsource("C:/movies/one piece/[K-F]_One_Piece_166_[60426ECF].mp4",fps=23.976)Make SURE you didn't type in anything wrong. If that still doesn't work, verify that the filename really is [K-F]_One_Piece_166_[60426ECF].mp4 and not [K-F]_One_Piece_166_[60426ECF].mp4.avi.mp4 or something - follow Dythim's instruction A above BEFORE you do this, and make SURE you've really done it.
Offline
Hi, thanks for your help, both dythium and fluff, because everything seems to be working fine now. I guess the problem was that since I installed all the codecs and whatnot, I didn't restart my computer, because it is working now with me not changing anything from yesterday. Sorry for all the trouble. Thanks again!
Last edited by youknowme (2005-12-14 08:15:47)
Offline
I download all the above programs.
But at step 1 with the VirtualDub there's a error "no video steam found" when i open the avs file.
I'm not sure if i got installed XviD. Can anyone link me to a website for XviD program? I'm really not sure where to get that.. Thanks.
Offline
Offline
nhj: Is that the only error you are getting?
Try the process in Post #16, part B in this thread.

Offline
nhj wrote:
I download all the above programs.
But at step 1 with the VirtualDub there's a error "no video steam found" when i open the avs file.
I got the same problem.. & I have done what you have said in post #16
Offline
dythim: i think i just solve the problem.
In post#1, you say install "ffdshow and Haali splitter" or "CCCP". Since i have already install both, i decided to go stright to step1. Then i got the problem rdperalta have in post#7. So i try his solution at post#9, by reinstall all the programs, except "CCCP". Then i got the error "no video steam found". Then i try the post#16. Then i figure it's time to ask for help. While waiting for the reply, i decided to install "CCCP" as well. Now it's finally working
i think..
The Sherk: maybe you can try wat i did.. install both "ffdshow and Haali splitter" & "CCCP".
Offline