VideoHelp Forum


Try DVDFab Video Downloader and rip Netflix video! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 3 of 3
Thread
  1. Member
    Join Date
    Jan 2010
    Location
    Brazil
    Search Comp PM
    Hello there,
    I use ffmpeg a lot with BATs to extract 2 audios from avis, after that i use a bat with lame enconder, and use virtualdubmod bat to remux the new audios to a new avi. I updated ffmpeg to last version 0.11.1 and latest beta, and my bats stopped working. Will post the content of the bats. When I use one of these bats starts a dos screen in a loop and crachs the dos screen, closing it. And ffmpeg does nothing. Tried to read the new text infos from new ffmpeg, but i can't find what changed in the command line options. Please, someone having the same problem? Any Help?


    extract 2 audios.bat
    md audio1
    for %%z in ("*.avi") do C:\VirtualDubMod\ffmpeg.exe -i "%%z" -vn -map 0:1 -acodec copy "%%~dpzaudio1\%%~nz.mp3"
    md audio2
    for %%z in ("*.avi") do C:\VirtualDubMod\ffmpeg.exe -i "%%z" -vn -map 0:2 -acodec copy "%%~dpzaudio2\%%~nz.mp3"

    SOLVED: was trying to extract ac3 streams with the extension .mp3, ffmpeg doesn't accepted that.


    ffmpeg - transcode audio to 48Mhz and 128CBR.bat [FIXED - FIXED - FIXED - FIXED - FIXED - FIXED - FIXED]
    md converted
    for %%a in ("*.avi") do ffmpeg -i %%a -map 0:0 -map 0:1 -vcodec copy -acodec libmp3lame -ac 2 -ar 48000 -ab 128k converted\%%a
    FIXED:
    for %%a in ("*.avi") do "C:\VirtualDubMod\ffmpeg.exe" -i "%%a" -map 0:0 -map 0:1 -vcodec copy -acodec libmp3lame -ac 2 -ar 48000 -ab 128k "converted\%%a"

    test ONE file [drag & dropped].bat [FIXED - FIXED - FIXED - FIXED - FIXED - FIXED - FIXED - FIXED - FIXED]
    "c:\Meus Programas\MEDIA\ffmpeg\ffmpeg.exe" -i %1 -f null -v verbose - 2> %~n1.txt
    %~n1.txt
    FIXED:
    "c:\Meus Programas\MEDIA\ffmpeg\ffmpeg.exe" -i %1 -f null -v verbose - 2>"%~n1.txt"
    "%~n1.txt"
    Last edited by CactusMan; 1st Sep 2012 at 14:22.
    Quote Quote  
  2. Member
    Join Date
    Nov 2009
    Location
    United States
    Search PM
    Why not run the command from a command prompt and see what error ffmpeg throws ?
    It's hard to help without the ffmpeg output.
    Quote Quote  
  3. Member
    Join Date
    Jan 2010
    Location
    Brazil
    Search Comp PM
    C:\DVDs\The Life of Mammals\01\New Folder>for %z in ("*.avi") do "C:\VirtualDub
    od\ffmpeg.exe" -i "%z" -vn -map 0:1 -acodec copy "%~dpzaudio1\%~nz.mp3"

    C:\DVDs\The Life of Mammals\01\New Folder>"C:\VirtualDubMod\ffmpeg.exe" -i "BBC
    The Life Of Mammals - Episdio 01 - Um Design Vencedor.avi" -vn -map 0:1 -acode
    copy "C:\DVDs\The Life of Mammals\01\New Folder\audio1\BBC The Life Of Mammals
    - Episdio 01 - Um Design Vencedor.mp3"
    ffmpeg version N-44080-gdfb4757 Copyright (c) 2000-2012 the FFmpeg developers
    built on Aug 31 2012 16:58:51 with gcc 4.7.1 (GCC)
    configuration: --enable-gpl --enable-version3 --disable-pthreads --enable-run
    ime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libass
    -enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-
    ibfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopen
    peg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libthe
    ra --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-l
    bvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --en
    ble-zlib
    libavutil 51. 70.100 / 51. 70.100
    libavcodec 54. 55.100 / 54. 55.100
    libavformat 54. 25.104 / 54. 25.104
    libavdevice 54. 2.100 / 54. 2.100
    libavfilter 3. 15.101 / 3. 15.101
    libswscale 2. 1.101 / 2. 1.101
    libswresample 0. 15.100 / 0. 15.100
    libpostproc 52. 0.100 / 52. 0.100
    [avi @ 020bf820] non-interleaved AVI
    [mpeg4 @ 034c1d20] Invalid and inefficient vfw-avi packed B frames detected
    Input #0, avi, from 'BBC The Life Of Mammals - Epis├│dio 01 Um Design Vence
    or.avi':
    Duration: 00:49:11.00, start: 0.000000, bitrate: 1991 kb/s
    Stream #0:0: Video: mpeg4 (DX50 / 0x30355844), yuv420p, 688x384 [SAR 1:1 DA
    43:24], 25 fps, 25 tbr, 25 tbn, 30k tbc
    Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, stereo, s16, 192 k
    /s
    [mp3 @ 034c5640] Invalid audio stream. Exactly one MP3 audio stream is required

    Output #0, mp3, to 'C:\DVDs\The Life of Mammals\01\New Folder\audio1\BBC The Li
    e Of Mammals - Epis├│dio 01 Um Design Vencedor.mp3':
    Metadata:
    encoder : Lavf54.25.104
    Stream #0:0: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, stereo, 192 kb/s
    Stream mapping:
    Stream #0:1 -> #0:0 (copy)
    Could not write header for output file #0 (incorrect codec parameters ?): Inval
    d argument
    Quote Quote  



Similar Threads