Normalize files (AVI, MP4 & M2TS) for PS3

Discussion in 'Audio' started by Zaphod703, Dec 30, 2012.

  1. Zaphod703

    Zaphod703 Member

    Joined:
    Dec 30, 2012
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    11
    I have 40+ videos that I have on a external hard drive for my PS3... THey all work and fine. But often i find with these videos, peoples voices are so low that I need to crank up the audio big time. Does anyone know of a good program(s) that can normalize these videos in batch or atleast individually? Its got several different audio (& video types). Of course want to do this without converting files (to of course keep quality the same). I would GREATLY Appreciate any help with this!

    I have AVI files in:
    MP4 & AAC
    XVID & MP3
    XVID & AC3

    M2TS:
    all in... H.264 & AC3

    MP4:
    all in... H.264 & AAC

    Sorry if this is asking a bit much... just not good with this stuff.
     
  2. attar

    attar Senior member

    Joined:
    Jun 17, 2005
    Messages:
    11,147
    Likes Received:
    41
    Trophy Points:
    128
    That's a tall order.
    If you want to start with the AVI files first.

    Create a new folder named Source;collect the AVI files and place them in Source.
    Create a new, empty folder, called Destination.
    Download and install XviD codec.
    Download and install Lame mp3.
    Download Virtualdub;extract the files and run the program file (there is no installation).

    Set Video > Direct stream copy.
    Set Audio > Full processing mode.
    Set Audio > Volume...
    Check box and adjust volume +6db > OK.
    Select Audio > Compression..
    Select Lame mp3 48000, 128,CBR,Stereo > OK.

    Click File > Job control..
    Click Edit > Process directory.. (browse to and select Source folder > OK, then browse to and select Destination folder).
    The list of files should appear in the window.
    Press Start.

    http://www.afterdawn.com/software/audio_video/codecs/xvid.cfm
    http://www.videohelp.com/tools/Lame-MP3
    http://www.afterdawn.com/software/audio_video/video_editing/virtualdub_1_3c.cfm
     
    Last edited: Dec 31, 2012
  3. Zaphod703

    Zaphod703 Member

    Joined:
    Dec 30, 2012
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    11
    Thanks attar that worked great for the AVIs!
     
  4. attar

    attar Senior member

    Joined:
    Jun 17, 2005
    Messages:
    11,147
    Likes Received:
    41
    Trophy Points:
    128
    For the mp4 files (assumes they have aac audio) try a batch file using ffmpeg.

    Put the mp4 files in a new 'Source' folder (it's best that the file names don't have spaces)
    Download the package and locate the Bin folder.
    http://ffmpeg.zeranoe.com/builds/win32/static/ffmpeg-20121230-git-518239c-win32-static.7z
    Copy ffmpeg.exe to the Source folder.

    Create a text file in NotePad, thus:

    Code:
    FOR %%A IN (*.mp4) DO ffmpeg -i %%A -vcodec copy -acodec libvo_aacenc -af volume=3.0 %%A-loud.mp4

    Save the file with the .bat extension instead of .txt, i.e. 'Gain.bat'.
    Put the .bat file in the Source folder.
    Volume=3 means a gain of 3db
    %%A-loud.mp4 means the new file will have the same name with 'loud' added.

    If you are using Windows 7, press 'Shift' and right click on Source.
    Select 'Open command window here' from the drop down menu.
    The black command window opens.
    Type gain and press Enter;the files should be processed and new files created.
     
  5. Zaphod703

    Zaphod703 Member

    Joined:
    Dec 30, 2012
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    11
    Damn seriously I never expected this great amount of help so far! you really are going above and beyond seriously! everything you say is working 100% perfectly! AVIs & MP4 worked out perfectly! Genius really! What is great, this isn't just for these videos but every video I get in the future! oooh yea if you do help me out with the m2ts...i also have the mkv version encase that is easier or not.

    .....

    well spoke bit soon there with mp4. One video worked. Worked exactly correct.. new file created. Than each file got this error. Than tried doing everything over again but still same error. Than tried just doing one video (of those that didn't work) and still the same error game up:

    C:\[# - #] ~ MOVIES\(1) -- MAIN\MP4\Source>gain

    C:\[# - #] ~ MOVIES\(1) -- MAIN\MP4\Source>FOR %A IN (*.mp4) DO ffmpeg -i %A
    -vcodec copy -acodec libvo_aacenc -af volume=3.0 %A-loud.mp4

    C:\[# - #] ~ MOVIES\(1) -- MAIN\MP4\Source>ffmpeg -i Video 1.mp4 -vcodec cop
    y -acodec libvo_aacenc -af volume=3.0 Video 1.mp4-loud.mp4
    ffmpeg version N-48284-g518239c Copyright (c) 2000-2012 the FFmpeg developers
    built on Dec 29 2012 22:38:19 with gcc 4.7.2 (GCC)
    configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
    isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
    le-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libg
    sm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --e
    nable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --e
    nable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwben
    c --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-
    libxvid --enable-zlib
    libavutil 52. 12.100 / 52. 12.100
    libavcodec 54. 81.100 / 54. 81.100
    libavformat 54. 50.104 / 54. 50.104
    libavdevice 54. 3.102 / 54. 3.102
    libavfilter 3. 30.101 / 3. 30.101
    libswscale 2. 1.103 / 2. 1.103
    libswresample 0. 17.102 / 0. 17.102
    libpostproc 52. 2.100 / 52. 2.100
    Video: No such file or directory

    C:\[# - #] ~ MOVIES\(1) -- MAIN\MP4\Source>
     
    Last edited: Jan 2, 2013
  6. attar

    attar Senior member

    Joined:
    Jun 17, 2005
    Messages:
    11,147
    Likes Received:
    41
    Trophy Points:
    128
    It doesn't like the file name or the directory?

    Make three copies of the source file that worked, put them in a folder and see if they convert.
    If they do, check the file names or folder names for spaces, etc.
     
  7. Zaphod703

    Zaphod703 Member

    Joined:
    Dec 30, 2012
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    11
    seemed to help little.... made just source folder in C drive... and took out spaces and got this:


    C:\Source>gain

    C:\Source>FOR %A IN (*.mp4) DO ffmpeg -i %A -vcodec copy -acodec libvo_aacenc -a
    f volume=3.0 %A-loud.mp4

    C:\Source>ffmpeg -i video.mp4 -vcodec copy -acodec libvo_aacenc -af volume=3.0 v
    ideo.mp4-loud.mp4
    ffmpeg version N-48284-g518239c Copyright (c) 2000-2012 the FFmpeg developers
    built on Dec 29 2012 22:38:19 with gcc 4.7.2 (GCC)
    configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
    isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
    le-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libg
    sm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --e
    nable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --e
    nable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwben
    c --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-
    libxvid --enable-zlib
    libavutil 52. 12.100 / 52. 12.100
    libavcodec 54. 81.100 / 54. 81.100
    libavformat 54. 50.104 / 54. 50.104
    libavdevice 54. 3.102 / 54. 3.102
    libavfilter 3. 30.101 / 3. 30.101
    libswscale 2. 1.103 / 2. 1.103
    libswresample 0. 17.102 / 0. 17.102
    libpostproc 52. 2.100 / 52. 2.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video.mp4':
    Metadata:
    major_brand : isom
    minor_version : 1
    compatible_brands: isom
    creation_time : 2012-09-25 10:29:52
    Duration: 02:22:33.41, start: 0.000000, bitrate: 3356 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x528
    [SAR 88:89 DAR 640:267], 2699 kb/s, SAR 253:256 DAR 115:48, 23.98 fps, 23.98 tbr
    , 90k tbn, 47.95 tbc
    Metadata:
    creation_time : 2012-09-25 18:30:44
    Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 651 k
    b/s
    Metadata:
    creation_time : 2012-09-25 10:32:16
    handler_name : GPAC ISO Audio Handler
    [libvo_aacenc @ 037db600] Unable to set encoding parameters
    Output #0, mp4, to 'video.mp4-loud.mp4':
    Metadata:
    major_brand : isom
    minor_version : 1
    compatible_brands: isom
    Stream #0:0(und): Video: h264, yuv420p, 1280x528 [SAR 253:256 DAR 115:48], q
    =2-31, 2699 kb/s, 23.98 fps, 90k tbn, 90k tbc
    Metadata:
    creation_time : 2012-09-25 18:30:44
    Stream #0:1(eng): Audio: aac, 48000 Hz, 5.1, s16, 128 kb/s
    Metadata:
    creation_time : 2012-09-25 10:32:16
    handler_name : GPAC ISO Audio Handler
    Stream mapping:
    Stream #0:0 -> #0:0 (copy)
    Stream #0:1 -> #0:1 (aac -> libvo_aacenc)
    Error while opening encoder for output stream #0:1 - maybe incorrect parameters
    such as bit_rate, rate, width or height

    C:\Source>
     
  8. attar

    attar Senior member

    Joined:
    Jun 17, 2005
    Messages:
    11,147
    Likes Received:
    41
    Trophy Points:
    128
    Did the one that worked have 5.1 or stereo.
     
  9. Zaphod703

    Zaphod703 Member

    Joined:
    Dec 30, 2012
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    11
    Stereo... And the rest have stereo but one that says 6 channels (viewing in windows media player).
     
    Last edited: Jan 2, 2013
  10. attar

    attar Senior member

    Joined:
    Jun 17, 2005
    Messages:
    11,147
    Likes Received:
    41
    Trophy Points:
    128
    Without a clip to test I can't offer much - except you could load a file in AviDemux and use the A/B buttons to select a few seconds, save it and upload to the likes of MediaFire.


    [​IMG]

    Or you can try adjusting the audio one at a time using the 'Filter' button thus:

    [​IMG]
     

Share This Page