IPB

Welcome Guest ( Log In | Register )

22 Pages V  « < 20 21 22  
Reply to this topicStart new topic
R128GAIN: An EBU R128 compliant loudness scanner
westis
post Apr 27 2013, 11:03
Post #526





Group: Members
Posts: 2
Joined: 27-April 13
Member No.: 107859



How can I use this tool to normalize mpeg-2 and h.264 files?
Go to the top of the page
+Quote Post
pbelkner
post Apr 28 2013, 11:38
Post #527





Group: Members
Posts: 396
Joined: 13-June 10
Member No.: 81467



QUOTE (westis @ Apr 27 2013, 12:03) *
How can I use this tool to normalize mpeg-2 and h.264 files?

You may consider re-wrapping them into a MKV container by choosing the MKV format.
Go to the top of the page
+Quote Post
westis
post Apr 28 2013, 12:34
Post #528





Group: Members
Posts: 2
Joined: 27-April 13
Member No.: 107859



QUOTE (pbelkner @ Apr 28 2013, 11:38) *
QUOTE (westis @ Apr 27 2013, 12:03) *
How can I use this tool to normalize mpeg-2 and h.264 files?

You may consider re-wrapping them into a MKV container by choosing the MKV format.


Thanks for your reply. I need the final file in H.264/AVC/MPEG-4 Part 10, since this is for TV broadcasting. I tried separating audio and video, to normalize the audio and then merge audio and video together. But the audio doesn't change. I have downloaded the shared autobuild of ffmpeg and replaced the dll's in the r128gain-tools folder.

The script that I use is one that Charalampos Tsimpouris helped me adapt from his script at http://1024.gr/blog/normalize-audio-movies...and-sox-windows. It looks like this:

CODE
echo off
cls
echo Script by http://1024.gr

cd /d %~dp0

echo Extracting audio to "%~1_clean.wav"..
r128gain-1.0-beta-2\r128gain-tools\ffmpeg.exe -i "%~1" -ac 2 -y "%~1_clean.wav"

echo Getting max amplitude and normalizing to "%~1_clean.wav"..
r128gain-1.0-beta-2\r128gain.exe --in-place "%~1_clean.wav"

echo Extracting video to "%~1_clean.avi"..
r128gain-1.0-beta-2\r128gain-tools\ffmpeg.exe -i "%~1" -map 0:0 -vcodec copy -y "%~1_clean.avi"

echo Creating new video file into "%~1_new.avi"..
r128gain-1.0-beta-2\r128gain-tools\ffmpeg.exe -i "%~1_clean.avi" -i "%~1_clean.wav" -vcodec copy "%~1_new.avi"

:clear
echo Cleaning..
del "%~1_clean.wav"
del "%~1_clean.avi"
pause


If I remove deleting the temporary files at the end, I compared the cleaned audio with the original audio and there is no change after running it through r128gain. Are we doing anything wrong in the script above?

In the above case we used it on avi files, but same result regardless of video format.

Cheers,
Daniel
Go to the top of the page
+Quote Post
pbelkner
post Apr 28 2013, 14:33
Post #529





Group: Members
Posts: 396
Joined: 13-June 10
Member No.: 81467



QUOTE (westis @ Apr 28 2013, 13:34) *
I tried separating audio and video, to normalize the audio and then merge audio and video together.

In principle this should work.

QUOTE (westis @ Apr 28 2013, 13:34) *
But the audio doesn't change.

That's right because "r128gain" doesn't apply the gain. You may use the "--command" option in order to let SoX apply the gain:

CODE
r128gain "--command=sox %TRACK% %BN%-norm.wav gain %TGDB%" C:\Windows\Media\chord.wav -o .
Go to the top of the page
+Quote Post
J.Fleming
post May 9 2013, 03:39
Post #530





Group: Members
Posts: 16
Joined: 13-February 13
Member No.: 106606



Crashes on 2 different computers for me after I click OK using default settings, no log files are written.

I'm guessing this needs SSE2... both computers I tried are PIII. sad.gif
Go to the top of the page
+Quote Post
pbelkner
post May 9 2013, 21:23
Post #531





Group: Members
Posts: 396
Joined: 13-June 10
Member No.: 81467



Version 1.0 RC1 released:
Download: http://sourceforge.net/projects/r128gain/files/r128gain/1.0/
What's new?
  • SoX 14.4.1
  • Improved stability
  • Win64 build

  • QUOTE (J.Fleming @ May 9 2013, 04:39) *
    Crashes on 2 different computers for me after I click OK using default settings, no log files are written.

    I'm guessing this needs SSE2... both computers I tried are PIII. sad.gif

    Final finish: Removed SSE.

Go to the top of the page
+Quote Post
MrMod
post May 11 2013, 22:05
Post #532





Group: Members
Posts: 8
Joined: 21-November 12
Member No.: 104659



I noticed that the 14.4.1 windows build of SoX doesn't include FLAC or W64 support. I did some searching and found this posted on their project forum:
QUOTE
Unfortunately, there was a build problem in the 14.4.1 release leading to libflac and libsndfile being left out of the Windows binary.

I don't know what the fix is, just letting you know of this issue. In the meantime, I'll continue using SoX 14.4.0 with R128GAIN RC1 due to WAVs above 4GB in size not working properly (hence why I use FLAC).
Go to the top of the page
+Quote Post
pbelkner
post May 12 2013, 20:29
Post #533





Group: Members
Posts: 396
Joined: 13-June 10
Member No.: 81467



QUOTE (MrMod @ May 11 2013, 23:05) *
I noticed that the 14.4.1 windows build of SoX doesn't include FLAC or W64 support.

This may be true for the official distribution, but it doesn't hold for the build coming with R128GAIN (which is crippled in other ways).

QUOTE (MrMod @ May 11 2013, 23:05) *
I did some searching and found this posted on their project forum:
QUOTE
Unfortunately, there was a build problem in the 14.4.1 release leading to libflac and libsndfile being left out of the Windows binary.

Meanwhile there are "sox-14.4.1a-win32.*" builds available.
Go to the top of the page
+Quote Post
MrMod
post May 21 2013, 16:45
Post #534





Group: Members
Posts: 8
Joined: 21-November 12
Member No.: 104659



Thank you for adding FLAC support to the RC2 build. Works great.
Go to the top of the page
+Quote Post
BFG
post May 22 2013, 16:13
Post #535





Group: Members
Posts: 158
Joined: 22-July 12
Member No.: 101637



I decided to give R128Gain (latest RC2 build) a try last night after reading about it here and hearing good things about it. At first, I couldn't get it to work on my MP3s, but as directed I updated FFmpeg and then it was able to do so. However, the R128Gain-modified MP3s seem to be missing all the ID3 and other metatags. Is there any simple way to tell R128Gain to simply pass through all tags other than the original ReplayGain one?

This post has been edited by BFG: May 22 2013, 16:14
Go to the top of the page
+Quote Post
pbelkner
post Yesterday, 14:23
Post #536





Group: Members
Posts: 396
Joined: 13-June 10
Member No.: 81467



QUOTE (BFG @ May 22 2013, 17:13) *
I decided to give R128Gain (latest RC2 build) a try last night after reading about it here and hearing good things about it. At first, I couldn't get it to work on my MP3s, but as directed I updated FFmpeg and then it was able to do so. However, the R128Gain-modified MP3s seem to be missing all the ID3 and other metatags. Is there any simple way to tell R128Gain to simply pass through all tags other than the original ReplayGain one?

Unfortunately I'm not able to reproduce this. The result should be the same as in

CODE
ffmpeg -i "in.mp3" -c copy -y "out.mp3"

You may list the meta data seen by FFmpeg by means of

CODE
ffmpeg -i "in.mp3"

or

CODE
ffmpeg -i "out.mp3"
Go to the top of the page
+Quote Post

22 Pages V  « < 20 21 22
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 26th May 2013 - 05:12