VideoHelp Forum




+ Reply to Thread
Results 1 to 21 of 21
  1. Hi

    I've just learned how to use VCDGear to extract MPEG-1 from DAT. I did it one by one. It was painful. I couldn't find how to do batch processing. Is it available? Can you show me how?
    Quote Quote  
  2. I don't know about VCDGear but you can easily do this with ffmpeg. Install ffmpeg. Put the bat file in the attached ZIP file in a folder full of DAT files. Double click on it and it will remux them all of them to MPG.

    Code:
    for %%F in (*.dat) do "c:\program files\ffmpeg\bin\ffmpeg.exe" -i %%F -vcodec copy -acodec copy "%%~dF%%~pF%%~nF.mpg"
    pause
    You will have to change the path to ffmpeg.exe if it's installed in a different folder. Remove the "pause" if you want the window to close automatically when the process is done (but you will have a hard time seeing any error messages).
    Image Attached Files
    Quote Quote  
  3. Thanks for your solution. However, there is a problem. File name of my .DAT file is non English character (Unicode) and your script work only with English name. Any solution? See example for detail.

    D:\1.RHM Mini Album>"d:\ffmpeg\bin\ffmpeg.exe" -i 07. ????? ????????????????????
    ? - ?? ???????????.DAT -vcodec copy -acodec copy "D:\1.RHM Mi
    ni Album\07. ????? ????????????????????? - ?? ???????????.mpg
    "
    ffmpeg version N-58099-g9244a68 Copyright (c) 2000-2013 the FFmpeg developers
    built on Nov 14 2013 18:01:43 with gcc 4.8.2 (GCC)
    configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
    isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
    le-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetyp
    e --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --ena
    ble-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-l
    ibopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libsp
    eex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aa
    cenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavp
    ack --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
    libavutil 52. 53.100 / 52. 53.100
    libavcodec 55. 43.100 / 55. 43.100
    libavformat 55. 21.100 / 55. 21.100
    libavdevice 55. 5.100 / 55. 5.100
    libavfilter 3. 91.100 / 3. 91.100
    libswscale 2. 5.101 / 2. 5.101
    libswresample 0. 17.104 / 0. 17.104
    libpostproc 52. 3.100 / 52. 3.100
    07.: No such file or directory


    ---------------------------
    Sorry, It's not because of non English name but space. No space is allow.
    Last edited by Rexkh; 14th Nov 2013 at 19:24. Reason: Check the last line
    Quote Quote  
  4. Are you running XP? Try putting quotes around %%F:

    Code:
    for %%F in (*.dat) do "g:\program files\ffmpeg\bin\ffmpeg.exe" -i "%%F" -vcodec copy -acodec copy "%%~dF%%~pF%%~nF.mpg"
    Quote Quote  
  5. There is another problem. Some conversion has problem and I didn't get full length of video. For example, 5 minute DAT but only 2 minute mpg. Is there parameter to fix the error. See attachment for detail.
    Image Attached Thumbnails Click image for larger version

Name:	Conversion Error.PNG
Views:	278
Size:	47.9 KB
ID:	21258  

    Quote Quote  
  6. You've reached the limits of my knowledge of remuxing with ffmpeg!
    Quote Quote  
  7. That's fine. Someone else might be able to help me. OK. There two options somebody can help me. 1st: show me how to use VCDGear for batch processing. 2nd: teach me how to fix the error above using ffmpeg. Somebody please!
    Quote Quote  
  8. 1) In VCDGear click on Load button
    2) Navigate to folder with DAT files
    3) Select 1 dat file and select all files by Ctrl+A, click OPEN
    4) Select output folder
    5) Click Start
    Quote Quote  
  9. Did you try it if it work? I did it from the beginning but it didn't work. I'm able select all files and it show batch processing dialog. As soon as I press start it doesn't work. It's complicated to explain. Please try once and you will understand.
    Quote Quote  
  10. What message error?
    I upload video how I tested
    Image Attached Files
    Quote Quote  
  11. Here it is
    Image Attached Thumbnails Click image for larger version

Name:	Error.PNG
Views:	410
Size:	125.3 KB
ID:	21268  

    Quote Quote  
  12. Originally Posted by Rexkh View Post
    Did you try it if it work? I did it from the beginning but it didn't work. I'm able select all files and it show batch processing dialog. As soon as I press start it doesn't work.
    Maybe you have files other than DAT files in the folder? Ctrl+A will select those too. Maybe your "broken" DAT files are causing the program to hang?
    Quote Quote  
  13. Originally Posted by Rexkh View Post
    Here it is
    What version Winrar you have?
    The vcdgear using Winrar
    Quote Quote  
  14. I'm sure all files are DAT. I'm using WinRAR 5 beta2. What does it has to do with WinRAR? It suppose to do conversion. Not compression.

    Could you please confirm that you did success doing batch conversion from DAT to MPEG-1 with VCDGear?
    Quote Quote  
  15. Originally Posted by Rexkh View Post
    What does it has to do with WinRAR? It suppose to do conversion. Not compression.
    It probably keeps some utilities in a RAR file. It extracts those at runtime when necessary. I don't know why you even bother arguing about this when the program is telling exactly what's wrong.
    Last edited by jagabo; 15th Nov 2013 at 18:34.
    Quote Quote  
  16. Originally Posted by Rexkh View Post
    What does it has to do with WinRAR? It suppose to do conversion. Not compression.
    It does to do with WinRAR
    Please install WinRAR 4.20 and check VCDGear setting that directory of WinRAR correct then try again:
    Click image for larger version

Name:	Clipboard-1.png
Views:	414
Size:	32.2 KB
ID:	21269


    Originally Posted by Rexkh View Post
    Could you please confirm that you did success doing batch conversion from DAT to MPEG-1 with VCDGear?
    Did you see video file I uploaded?
    Yes I confirm.
    Quote Quote  
  17. Do you have Teamviewer? I can allow you to remote to my PC to see yourself.
    Quote Quote  
  18. Yes I have Teamviewer,
    but its very simple:
    1) Uninstall Winrar 5 by Control Panel -> Add or Remove Programs -> Winrar (usual its last in the list)
    2)Download and Install Winrar 4.20 from link by clicking Download This Version : http://www.filehippo.com/download_winrar_32/12564/
    that's it
    Last edited by roma_turok; 17th Nov 2013 at 03:26.
    Quote Quote  
  19. Newer WinRAR causes problem. I didn't expect that, but it did cause this problem. Thank, it work now. However, there is another problem. 100 of my DAT file name is in non English characters and VCDGear doesn't work with Unicode characters. It would be pain to rename all the file name back and forth. Any better suggestion?
    Quote Quote  
  20. Use ffmpeg for the bulk of the files then do the rest manually with VCDGear, with renaming.
    Quote Quote  
  21. What language DAT file name?
    I have no problem with non English characters
    You need set Windows XP (regional and language) options make software recognize non English characters
    By Control Panel -> Regional and language options -> Advanced:
    Click image for larger version

Name:	language.png
Views:	326
Size:	27.0 KB
ID:	21280
    Last edited by roma_turok; 16th Nov 2013 at 11:40.
    Quote Quote  



Similar Threads

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