HIGHPASS FILTER AND ID£ METADATA

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

HIGHPASS FILTER AND ID£ METADATA

Marco Mircoli
Hello',
    I'm a newbie.
Just bought a php script that use ffmpeg.
it converts to mp3/96Kbps all media uploaded in a unique format.
this is the line, and now it normalizes to R128 (thanks Moritz)

$shell     = shell_exec("$ffmpeg_b -i $audio_file_full_path -map 0:a:0 -af
loudnorm -b:a 96k $audio_output_mp3 2>&1");

I'm wondering if it is possible to include a simple hi-pass filter (highest
db per octave @ 70Hz)
AND
if I could add some id3 info and track gif to the mp3 metadata.

I think it is possible, but I don't know how to do it :-(
Consider is a web script with server call, so it would be nice to have just
one call (or command)

Thanks in advance.
S.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: HIGHPASS FILTER AND ID£ METADATA

Michael Koch
Am 01.10.2020 um 13:25 schrieb Marco Mircoli:

> Hello',
>      I'm a newbie.
> Just bought a php script that use ffmpeg.
> it converts to mp3/96Kbps all media uploaded in a unique format.
> this is the line, and now it normalizes to R128 (thanks Moritz)
>
> $shell     = shell_exec("$ffmpeg_b -i $audio_file_full_path -map 0:a:0 -af
> loudnorm -b:a 96k $audio_output_mp3 2>&1");
>
> I'm wondering if it is possible to include a simple hi-pass filter (highest
> db per octave @ 70Hz)

add  highpass=70,    before  loudnorm

This filter attenuated 6dB per octave. If you need higher attenuation,
you can use several highpass filters, for example
highpass=70,highpass=70,highpass=70,loudnorm

Michael

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: HIGHPASS FILTER AND ID£ METADATA

Michael Koch
Am 01.10.2020 um 14:06 schrieb Michael Koch:

> Am 01.10.2020 um 13:25 schrieb Marco Mircoli:
>> Hello',
>>      I'm a newbie.
>> Just bought a php script that use ffmpeg.
>> it converts to mp3/96Kbps all media uploaded in a unique format.
>> this is the line, and now it normalizes to R128 (thanks Moritz)
>>
>> $shell     = shell_exec("$ffmpeg_b -i $audio_file_full_path -map
>> 0:a:0 -af
>> loudnorm -b:a 96k $audio_output_mp3 2>&1");
>>
>> I'm wondering if it is possible to include a simple hi-pass filter
>> (highest
>> db per octave @ 70Hz)
>
> add  highpass=70,    before  loudnorm
>
> This filter attenuated 6dB per octave. If you need higher attenuation,
> you can use several highpass filters, for example
> highpass=70,highpass=70,highpass=70,loudnorm

Correction: The filter has 12dB per octave.

Michael

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: HIGHPASS FILTER AND ID£ METADATA

Marco Mircoli
Thanks a lot!

Il giorno gio 1 ott 2020 alle ore 14:17 Michael Koch <
[hidden email]> ha scritto:

> Am 01.10.2020 um 14:06 schrieb Michael Koch:
> > Am 01.10.2020 um 13:25 schrieb Marco Mircoli:
> >> Hello',
> >>      I'm a newbie.
> >> Just bought a php script that use ffmpeg.
> >> it converts to mp3/96Kbps all media uploaded in a unique format.
> >> this is the line, and now it normalizes to R128 (thanks Moritz)
> >>
> >> $shell     = shell_exec("$ffmpeg_b -i $audio_file_full_path -map
> >> 0:a:0 -af
> >> loudnorm -b:a 96k $audio_output_mp3 2>&1");
> >>
> >> I'm wondering if it is possible to include a simple hi-pass filter
> >> (highest
> >> db per octave @ 70Hz)
> >
> > add  highpass=70,    before  loudnorm
> >
> > This filter attenuated 6dB per octave. If you need higher attenuation,
> > you can use several highpass filters, for example
> > highpass=70,highpass=70,highpass=70,loudnorm
>
> Correction: The filter has 12dB per octave.
>
> Michael
>
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: HIGHPASS FILTER AND ID£ METADATA

Marco Mircoli
Hello, tried but doesn't work correctly:-(
$shell     = shell_exec("$ffmpeg_b -i $audio_file_full_path -map 0:a:0 -af
highpass=700,loudnorm=I=-24 -map_metadata -1 -metadata Artist=Someone
-metadata Title=Title -metadata author_url=http://example.com/ -b:a
".$convert_speed."k $audio_output_mp3 2>&1");

Tried with 700 hz
the result is very low in volume
it seems that it normalize to -24 and after apply the highpass

another point I can't fix is the metadata, they works except for the
author:url.
Maybe am I wrong with syntax?

Thanks in advance.



Il giorno gio 1 ott 2020 alle ore 15:40 Marco Mircoli <[hidden email]>
ha scritto:

> Thanks a lot!
>
> Il giorno gio 1 ott 2020 alle ore 14:17 Michael Koch <
> [hidden email]> ha scritto:
>
>> Am 01.10.2020 um 14:06 schrieb Michael Koch:
>> > Am 01.10.2020 um 13:25 schrieb Marco Mircoli:
>> >> Hello',
>> >>      I'm a newbie.
>> >> Just bought a php script that use ffmpeg.
>> >> it converts to mp3/96Kbps all media uploaded in a unique format.
>> >> this is the line, and now it normalizes to R128 (thanks Moritz)
>> >>
>> >> $shell     = shell_exec("$ffmpeg_b -i $audio_file_full_path -map
>> >> 0:a:0 -af
>> >> loudnorm -b:a 96k $audio_output_mp3 2>&1");
>> >>
>> >> I'm wondering if it is possible to include a simple hi-pass filter
>> >> (highest
>> >> db per octave @ 70Hz)
>> >
>> > add  highpass=70,    before  loudnorm
>> >
>> > This filter attenuated 6dB per octave. If you need higher attenuation,
>> > you can use several highpass filters, for example
>> > highpass=70,highpass=70,highpass=70,loudnorm
>>
>> Correction: The filter has 12dB per octave.
>>
>> Michael
>>
>> _______________________________________________
>> ffmpeg-user mailing list
>> [hidden email]
>> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>
>> To unsubscribe, visit link above, or email
>> [hidden email] with subject "unsubscribe".
>
>
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: HIGHPASS FILTER AND ID£ METADATA

Marco Mircoli
Hello, this is the final script line, and it works perfectly.
 $shell     = shell_exec("$ffmpeg_b -i $audio_file_full_path -map 0:a:0 -af
highpass=50,loudnorm=I=-16 -map_metadata -1 -metadata Artist='Agency -
VISIT HTTPS://WWW.agency.EU' -metadata Title='Title' -metadata
Publisher='agency' -metadata Language=italian -b:a ".$convert_speed."k
$audio_output_mp3 2>&1");

Now, I would like to insert an album artwork in the mp3.
Is it possible?
Thanks.
S.


Il giorno gio 1 ott 2020 alle ore 17:45 Marco Mircoli <[hidden email]>
ha scritto:

> Hello, tried but doesn't work correctly:-(
> $shell     = shell_exec("$ffmpeg_b -i $audio_file_full_path -map 0:a:0 -af
> highpass=700,loudnorm=I=-24 -map_metadata -1 -metadata Artist=Someone
> -metadata Title=Title -metadata author_url=http://example.com/ -b:a
> ".$convert_speed."k $audio_output_mp3 2>&1");
>
> Tried with 700 hz
> the result is very low in volume
> it seems that it normalize to -24 and after apply the highpass
>
> another point I can't fix is the metadata, they works except for the
> author:url.
> Maybe am I wrong with syntax?
>
> Thanks in advance.
>
>
>
> Il giorno gio 1 ott 2020 alle ore 15:40 Marco Mircoli <
> [hidden email]> ha scritto:
>
>> Thanks a lot!
>>
>> Il giorno gio 1 ott 2020 alle ore 14:17 Michael Koch <
>> [hidden email]> ha scritto:
>>
>>> Am 01.10.2020 um 14:06 schrieb Michael Koch:
>>> > Am 01.10.2020 um 13:25 schrieb Marco Mircoli:
>>> >> Hello',
>>> >>      I'm a newbie.
>>> >> Just bought a php script that use ffmpeg.
>>> >> it converts to mp3/96Kbps all media uploaded in a unique format.
>>> >> this is the line, and now it normalizes to R128 (thanks Moritz)
>>> >>
>>> >> $shell     = shell_exec("$ffmpeg_b -i $audio_file_full_path -map
>>> >> 0:a:0 -af
>>> >> loudnorm -b:a 96k $audio_output_mp3 2>&1");
>>> >>
>>> >> I'm wondering if it is possible to include a simple hi-pass filter
>>> >> (highest
>>> >> db per octave @ 70Hz)
>>> >
>>> > add  highpass=70,    before  loudnorm
>>> >
>>> > This filter attenuated 6dB per octave. If you need higher attenuation,
>>> > you can use several highpass filters, for example
>>> > highpass=70,highpass=70,highpass=70,loudnorm
>>>
>>> Correction: The filter has 12dB per octave.
>>>
>>> Michael
>>>
>>> _______________________________________________
>>> ffmpeg-user mailing list
>>> [hidden email]
>>> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>>
>>> To unsubscribe, visit link above, or email
>>> [hidden email] with subject "unsubscribe".
>>
>>
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".