Problem converting *.mkv video files with BatchDPG

Discussion in 'NDS - Flashcarts and Accessories' started by phoood, Oct 15, 2006.

Oct 15, 2006
  1. phoood
    OP

    Member phoood taking it to a whole new level.

    Joined:
    Jul 28, 2006
    Messages:
    1,001
    Location:
    Jewgoslavia
    Country:
    United States
    Ok, I've been watching anime on my ds for a long time.
    Converted avi's and ogm's pretty fine too (with Eng/Jap audio).

    But when I convert a .mkv or .ogm file that has English audio, Japanese audio, AND English subtitles and play them in moonshell 1.41, it dosen't show up and freezes with black screens.

    I have a sloution in mind which includes using some app (can't remember on the top of my head) to rip only the video and English audio into an avi, but that's gona be time/harddrive consuming on my laptop.

    Does anyone here have another sloution to fix this?

    By the way, its Ghost in the Shell: Stand Alone Complex from anime-supreme.
     
  2. FAST6191

    Reporter FAST6191 Techromancer

    pip
    Joined:
    Nov 21, 2005
    Messages:
    21,748
    Country:
    United Kingdom
    MKV is generally considered a "final container", that is to say you put your video in and leave it (MKV is very good at taking multiple audio tracks across multiple standards, VFR video and VBR audio (VBR MP3 in an AVI file causes more hassle than it is worth usually)).

    Anyhow the tool you are searching for is called MKVextract and comes as part of the mkvtoolnix package:
    http://www.bunkus.org/videotools/mkvtoolnix/
    Using this (command line app I am afraid, use mkvmergegui aka mmg.exe in the same package to get the required names) to extract the desired video and audio content.
    If your comp is good enough to handle the video then it shold have no issues simply extracting the desired files (writing the files to your HDD will be the long part).

    Once you have the (probably seperate) files you can hopefully remux them or grab the avisynth script that batchdpg will use and make use of the audiodub feature (you could probably also use the VFAPI app the batchDPG uses).
    It may well be worth not using batchDPG at all and instead encoding a DPG the hard way (it is mpeg1 video and MP2 audio, my suggestion quenc: http://www.doom9.org/index.html?/mpg/quenc.htm (make sure to convert sampling frequency first), then use the headermaker app from the batchDPG package to finally create a DPG. I plan on writing up and advanced DPG guide to this in the near future (next week or so).

    Hopefully you can get it all sorted but post back if you need help.

    Edit. You may have missed this and I apologise if you did.
    You can also use mkvmerge to mess around with the priority of the audio and video (I advise extracting any subs and hardsubbing after resizing.).

    Edit2 the typo monkey has cursed me it seems.
     
  3. kolis

    Newcomer kolis Member

    Joined:
    Apr 18, 2006
    Messages:
    12
    Country:
    FAST6191, a advanced DPG guide would be very appreciated! Hope to see it soon [​IMG]
     
  4. phoood
    OP

    Member phoood taking it to a whole new level.

    Joined:
    Jul 28, 2006
    Messages:
    1,001
    Location:
    Jewgoslavia
    Country:
    United States
    Ok, I extracted it and out came the Track2.acc file and the Track1.h264 (out of one video, two audio, and two subtitles.)

    I know I only need the files i mention above, but what do I do with the h264 file? I know its some type of mpeg4 file. I tired putting both of thouse in to a mkv file but nothing on my system dosen't reconize that file.

    Same for virtualdubmod.

    So other than finding a tool to re-encode it to another type, what can I do?
     
  5. FAST6191

    Reporter FAST6191 Techromancer

    pip
    Joined:
    Nov 21, 2005
    Messages:
    21,748
    Country:
    United Kingdom
    H264 huh.
    I would be lying if I said that was not a bad thing for what you want to do, chances are the video is variable frame rate and will have to be converted and so could end up looking like ass.
    H264 is a raw stream of H264 video, to do anything with it you will need to have it in a container, I suggest either sticking it back into an MKV or using MP4.
    You can use MP4box (I tend to use megui which unfortunately requires .net is needed:
    http://x264.nl/ ). Bunch of others though:
    http://forum.doom9.org/showthread.php?s=&threadid=62723

    If you put your video and audio into a single file (MP4 or MKV) you should be able to easily convert it to DPG.

    Of course most MKV splitters have the option to select whatever language you like by default (I use/suggest haali media splitter that you get with CCCP: http://www.cccp-project.net/ ) and then you should be able to choose a priority language for everything), this then means a avisynth's directshowsource (which should be the method can be used(make sure to set FPS and make sure convertFPS=true is in there).
     
  6. phoood
    OP

    Member phoood taking it to a whole new level.

    Joined:
    Jul 28, 2006
    Messages:
    1,001
    Location:
    Jewgoslavia
    Country:
    United States
  7. imgod22222

    Member imgod22222 GBAtemp's Original No-faced Member

    Joined:
    Jul 5, 2006
    Messages:
    1,555
    Country:
    United States
    Do you mind telling us how you got ogm to work? I tried and to no avail... Same with .divx. Wish I could transcode and get rid of DivX Menus.
     
  8. FAST6191

    Reporter FAST6191 Techromancer

    pip
    Joined:
    Nov 21, 2005
    Messages:
    21,748
    Country:
    United Kingdom
    @imgod22222 assuming you do not have DRMed file (I do not know if you can/how to crack divx's DRM, it seems limited to porn films and random junk you get off some TV channels sites though) .divx files are simply tweaked AVI files and the latest versions of VDUB should make short work of it, this being said I have never put Vdub through any real tests with divx container files.

    As for OGM a combintation of directshowsource and tweaking the options in the splitter should work, of course there exists demuxers ( http://corecodec.org/projects/ogmtools/ ) you can use or you can simply remux into MKV as is described in the thread linked by phoood.
     
  9. phoood
    OP

    Member phoood taking it to a whole new level.

    Joined:
    Jul 28, 2006
    Messages:
    1,001
    Location:
    Jewgoslavia
    Country:
    United States
  10. imgod22222

    Member imgod22222 GBAtemp's Original No-faced Member

    Joined:
    Jul 5, 2006
    Messages:
    1,555
    Country:
    United States
    Fast, so you know, it's not porno I want on my DS. I actually capture video from my TV at 15Mbps with MPEG2 so i get like 1GB files. I then use DivX to make 1 file from 2 parts of the same show (i stop recording at the commercial break) so that changes from 2 files at 1GB- 1.5GB each to 1 file that's about 250MB. And being able to play those shows (Anime like Bleach, Trinity Blood, and other good shows on Adult Swim and IGPX until they re-air it) back on my DS would be 1337 'cause my computer does not like to move. X.X So I'll get virtualDub and see if it works.
    phoood, that's a really really good way to explain what a container is. Good Job on that. But it's almost shocking how true that is, no one likes tomatoes or pickles, or subtitles if it's dubbed. (Unless you're a true Otaku! Then you're a sick depraved person! xD) No offense. Really.
     
  11. phoood
    OP

    Member phoood taking it to a whole new level.

    Joined:
    Jul 28, 2006
    Messages:
    1,001
    Location:
    Jewgoslavia
    Country:
    United States
  12. imgod22222

    Member imgod22222 GBAtemp's Original No-faced Member

    Joined:
    Jul 5, 2006
    Messages:
    1,555
    Country:
    United States
  13. Firon

    Member Firon GBAtemp Regular

    Joined:
    Oct 25, 2006
    Messages:
    116
    Country:
    United States
    If you use Haali Media Splitter for MKV and OGM, you can make it choose only one audio language by adding the language you want to audio language priority (eng for english, jpn for Japanese).
     

Share This Page