VideoHelp Forum




+ Reply to Thread
Results 1 to 28 of 28
  1. Member
    Join Date
    May 2010
    Location
    Amsterdam
    Search PM
    Hey,

    My question is just as the title says:
    How to open a x264 encoded mp4 in VirtualDubMod?

    Thanks,
    Sedoc94
    Quote Quote  
  2. you can do it through avisynth scripts

    e.g.

    DirectShowSource("video.mp4")

    or

    FFMpegSource2("video.mp4",atrack=-1)


    FFMpegSource2 is preferrable, because it indexes the file and is frame accurate, directshow is problematic
    Quote Quote  
  3. Member
    Join Date
    May 2010
    Location
    Amsterdam
    Search PM
    So what do I do/install?

    I installed ffdshow, and I put in the avs file DirectShowSource("video.mp4") and when I try to open it in VirtualDubMod it says:
    Quote Quote  
  4. do you have current version of avisynth installed?

    can you play the file in a directshow player, like mpc ?

    can you render the file in graphstudio, do the pins connect?

    are you on win7? if so, you need win7dsfiltertweaker



    ffmpegsource is preferrable as a source filter
    http://code.google.com/p/ffmpegsource/
    Quote Quote  
  5. Member
    Join Date
    May 2010
    Location
    Amsterdam
    Search PM
    Well I need to do it in VirtualDubMod, because that's like the only program around wich can easily make a fade in and -out watermark on my video..

    Only problem is I don't know how I can manage so do that it will be able to open x264 encoded mp4s..
    Quote Quote  
  6. did you follow the instructions? it works for everyone else vdubmod or vdub should work fine


    The questions above were to troubleshoot and diagnose the problem with your directshow subsystem, not to suggest using something different than vdubmod
    Last edited by poisondeathray; 28th May 2010 at 16:26.
    Quote Quote  
  7. Member
    Join Date
    May 2010
    Location
    Amsterdam
    Search PM
    If I open the raw file in MPC it just plays as it should..
    But when I try to open the .avs file it gives the same error as in the screenie I made..
    Quote Quote  
  8. do you have the full version of avisynth installed ?

    what os? x64 or x86?

    I would seriously consider using ffmpegsource2 , it is less prone to sync issues than directshowsource
    Quote Quote  
  9. Member
    Join Date
    May 2010
    Location
    Amsterdam
    Search PM
    Okay... I just downloaded the last version of avisynth from this website..

    But the bad thing is I don't get anything at all from FFMPEGSOURCE

    I downloaded this file: http://code.google.com/p/ffmpegsource/downloads/detail?name=ffms2-2.13_src.7z&can=2&q=

    But I see a bunch of files and I don't even know where to open the program or something...
    Quote Quote  
  10. unzip them, especially the .dll's and .avsi, and ffmsindex.exe, into the avisynth\plugins folder

    open a text file in notepad in the same directory as your video, write the syntax in post#2 (change the filename to match), save it, rename the extension to .avs . Open that .avs in vdub/vdubmod
    Last edited by poisondeathray; 28th May 2010 at 17:13.
    Quote Quote  
  11. Member
    Join Date
    May 2010
    Location
    Amsterdam
    Search PM
    THank you very much! it works! :d

    only now.. how can I save the video as mp4?
    Quote Quote  
  12. how can I save the video as mp4?
    you can't , at least not very easily

    you could use x264vfw , then re-wrap with yamb (mp4box)

    newer versions can output a dummy avi, and mp4 if you use the extra options command line box

    modern vfw builds can be found here
    http://komisar.gin.by/

    see this thread for more info:
    http://forum.doom9.org/showthread.php?t=98247&page=29
    Quote Quote  
  13. Member
    Join Date
    May 2010
    Location
    Amsterdam
    Search PM
    Originally Posted by poisondeathray View Post
    newer versions can output a dummy avi, and mp4 if you use the extra options command line box
    And how would I do that?
    Quote Quote  
  14. use the extra options box, and enter the output in the command line

    e.g.
    -o e:\output.mp4

    save the dummy avi as you would normally in vdubmod e.g. to the desktop, and the real output.mp4 will be saved to the e directory. Of course you can change the path and filename

    read the thread link above, there are more instructions there, and screenshots
    Quote Quote  
  15. Member
    Join Date
    May 2010
    Location
    Amsterdam
    Search PM
    YES! It worked! Only though.. I put in the extra options box: -o output.mp4
    But I don't hear any sound in the output file..
    Quote Quote  
  16. did you select audio compression in the options? (in vdubmod it's under streams, in vdub it's under audio) . What kind of compression did you use? mp3, ac3 ?

    if you use file=>file information does it report audio?

    did you use atrack=-1 in the script? (see post #2)

    If you didn't add or delete any frames (just overlay graphics, nothing else) , I would use yamb to mux in the original audio from the source file ,instead of re-encoding it (lose quality)

    It might be that this muxer doesn't add in audio (video only) , since it's experimental. I haven't used it very much, I normally use other methods
    Quote Quote  
  17. Member
    Join Date
    May 2010
    Location
    Amsterdam
    Search PM
    Well, I use vdubmod and I don't see anywhere in the options taskbar where I can se the audio compression.. also not under streams.

    Yes I did use atrack=-1

    And I just added a watermark in vdubmod, but I rather want to re-encoding the audio so that the file size also becomes smaller...
    Quote Quote  
  18. does file information report audio passed through?

    streams=>streams list

    what kind of audio? use mediainfo if you don't know

    i'm not sure if the experimental muxer works with audio. Normally you are limited to AVI container ONLY with vdub/vdubmod

    you can use another audio encoder and mux it in with yamb
    Quote Quote  
  19. Member
    Join Date
    May 2010
    Location
    Amsterdam
    Search PM
    Just audio of the source file
    And in the source file information it says that it is PCM uncompressed

    Well if there is no way to add in the audio directly i guess I need to just mux it with the video

    And does anyone knows a program that can Demux MKV files and Mux mp4 files?
    Last edited by Sedoc94; 29th May 2010 at 09:08.
    Quote Quote  
  20. mkvextract, mkvtoolnix, yamb to mux

    You can still encode the audio , then mux it in. e.g. lamexp is easy to use

    If you are using mp3, you can still use AVI output from vdubmod, and use lamemp3 acm to encode in vdubmod in 1 step (audio & video), then yamb to change container from avi=>mp4

    If you want aac audio, you can't use vdubmod
    Quote Quote  
  21. Member
    Join Date
    May 2010
    Location
    Amsterdam
    Search PM
    thanks
    Quote Quote  
  22. And in the source file information it says that it is PCM uncompressed
    just an FYI, you can't use file=>file information to determine the audio, when feeding an .avs script (it will always report uncompressed)

    when you use avisynth, everything is uncompressed (video frames and audio)

    to determine what the original audio format was, use mediainfo on the the original source file

    cheers
    Quote Quote  
  23. Member
    Join Date
    May 2010
    Location
    Amsterdam
    Search PM
    thanks...
    one last thing! virtualdub is very slow in saving the file... something like 7fps

    is there any other encoder wich can do h264 .mp4 through frameserving with vdubmod and thats pretty fast?

    thanks
    Quote Quote  
  24. x264 CLI , you could use a front end like megui or staxrip for example (it's faster without any GUI, however)

    But you would have extra overhead going through the frameserver

    It would be faster if you did everything in avisynth and fed it directly to x264 CLI

    I've also noticed the x264vfw version is slower; I think it has to do with the VFW interface

    Another option is to use lower quality (faster) settings
    Quote Quote  
  25. Member
    Join Date
    May 2010
    Location
    Amsterdam
    Search PM
    Okay.. but I don;'t know anything of how to the the code and stuff like that..

    How will I be able to do everything in avisynth and feed it directly to x264 CLI?

    bcause i need to add subs and fade-in/out watermark in vdub and I don't know if its possible with doing everything in avisynth etc..


    btw thank you for the help man... i really appreciate it!
    Last edited by Sedoc94; 29th May 2010 at 10:18.
    Quote Quote  
  26. Sorry, it's going to be long to post all the instructions of how do to in avisynth , I just don't have the time right now.

    Do a search, I've posted instructions and code some other threads before (and others have as well)
    Quote Quote  
  27. Member
    Join Date
    May 2010
    Location
    Amsterdam
    Search PM
    Well... I checked the container file (.mp4) if there was an audio stream in it, but indeed, vdubmod only encoded the video and not with the audio. This is not a very very big problem for me as I can just take out the audio stream of the source file and mux it with the new encoded file..

    But though, I am just wondering if there maybe is a way to make it automaticly include (encode) the audio stream?

    Thanks!
    Quote Quote  
  28. Member
    Join Date
    Nov 2002
    Location
    United States
    Search Comp PM
    Using External Encoder in Virtualdub 1.9.X test20

    http://forums.virtualdub.org/index.php?act=ST&f=5&t=18789&

    Virtualdub 1.9.X test20

    http://www.virtualdub.org/beta/VirtualDub-1.9.X-test20.zip

    Directshow Input Driver (can open MKV in Virtualdub with this and latest Haali media splitter)

    http://www.virtualdub.org/beta/DShowInputDriver-mediadettest.zip


    I used...

    x264.exe for 264 encoder
    NeroAacEnc.exe instead of ffmpeg (could not get ffmpeg to work) for aac encoder
    MP4Box.exe to mux into MP4 container

    x264 800
    --preset slower --bitrate 800 --thread-input --b-pyramid strict --vbv-maxrate 1600 --cqm \"jvt\" --fps %(fps) --direct temporal --output \"video.264\" - %(width)x%(height)

    neroAacEnc
    -ignorelength -lc -if - -of \"%(tempaudiofile)\"

    MP4Box
    -add \"video.264\" -add \"audio.aac\" -fps %(fps) \"%(outputname)\"
    Image Attached Thumbnails Click image for larger version

Name:	Untitled-6.jpg
Views:	502
Size:	106.9 KB
ID:	2088  

    Last edited by DarrellS; 1st Jun 2010 at 17:45.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!