VideoHelp Forum
+ Reply to Thread
Results 1 to 10 of 10
Thread
  1. Member
    Join Date: Apr 2013
    Location: Italy
    Search PM
    Hi

    I was looking for a program that I can modify hex values of an .avi file from mjpg to MJPG because my NLE IS cAse SenSitiVe and use the internal mjpeg reader only when recognize the MJPG string, and not mjpg (if found "mjpg" use external VFW or directshow codec).

    Click image for larger version

Name:	VD5.JPG
Views:	82
Size:	158.2 KB
ID:	24725

    I need to build a batch file so it automatically modify (from mjpg to MJPG) the file o:\temp.avi, is exist a program than can do this?

    e.g. I launch c:\cat.bat, press the return, and it automatically change o:\temp.avi without doing anything else

    This because files generate in virtualdub have alwais the word of fourcc tag in lowercase

    thanks
    Quote Quote  
  2. Member TreeTops's Avatar
    Join Date: May 2010
    Location: Oregon
    Search Comp PM
    There are scripts if you do a search on the web that will do it if those hex values are in same place on all files. Those are easy script. Much harder to do if location of hex value changes in each file but it can be done. Search 'batch file to change hex values' in google for program that does it. One is found on Softpedia but it is not free.
    Inside Every Older Person Is A Younger Person Wondering What The Hell Happened.
    Quote Quote  
  3. VirtualDub has a built in hex editor. Tools -> Hex Editor...
    Quote Quote  
  4. You can also use AVI FourCC Changer.
    Quote Quote  
  5. Member
    Join Date: Apr 2013
    Location: Italy
    Search PM
    Originally Posted by poisondeathray View Post
    yes but doesn't work with large file :

    D:\>gpatch d:\virtualdubok.avi /i0112 /s"MJPG"
    GPATCH 2.1 - File Patching Utility
    Copyright (C) 2002-2010 by Greg Wittmeyer - All Rights Reserved

    Failed to open file "d:\virtualdubOK.avi": The file is too large to load into
    memory.


    D:\>

    I have write and email to the author of virtualdub but I don't have answer
    Quote Quote  
  6. Originally Posted by marcorocchini View Post
    I have write and email to the author of virtualdub but I don't have answer
    About what?
    Quote Quote  
  7. Member
    Join Date: Sep 2007
    Location: Canada
    Search Comp PM
    Originally Posted by marcorocchini View Post

    yes but doesn't work with large file :

    D:\>gpatch d:\virtualdubok.avi /i0112 /s"MJPG"
    GPATCH 2.1 - File Patching Utility
    Copyright (C) 2002-2010 by Greg Wittmeyer - All Rights Reserved

    Failed to open file "d:\virtualdubOK.avi": The file is too large to load into
    memory.
    That's not a vdub error, that's a gpatch memory error

    Another option is to batch ffmpeg -vtag "MJPG" with -c:v copy -c:a copy, but ffmpeg does not allow in place editing (slower because it has to stream copy audio/video)
    Quote Quote  
  8. Member
    Join Date: Apr 2013
    Location: Italy
    Search PM
    yes, seems to work this:

    cfourcc -i virtualdub.avi -u MJPG -d MJPG

    from http://forum.videohelp.com/threads/341713-GUI-Tool-created-for-batch-video-tasks
    Quote Quote