[FFmpeg-user] VOICE POST PRODUCTION IN ONE LINE

Paul B Mahol onemda at gmail.com
Fri Jan 29 14:02:17 EET 2021


On Fri, Jan 29, 2021 at 12:52 PM Chris Miceli <chris at miceli.net.au> wrote:

> If you wish to have output from your service, you would need to check the
> documentation of the library you are using to execute the shell command.
> They often have the ability to capture stdout and stderr which is what you
> need.
>
> Often, these libraries may interpret shell commands in different ways and
> so it may be parsing the ffmpeg command line (this is something to keep in
> mind, not necessarily what is happening).
>
> If you can run your command from the shell normally, there is likely
> something in your service code which is causing it.
>

The only thing that come to mind, is that version is old that it does not
have that specific filter.
Also note that those audio filters are not magic way to solve your problems
by putting them in filtergraph and forgetting about them next second.


> On Fri, Jan 29, 2021, 10:21 PM Paul B Mahol <onemda at gmail.com> wrote:
>
> > On Fri, Jan 29, 2021 at 12:18 PM Marco Mircoli <nuvolablux at gmail.com>
> > wrote:
> >
> > > Thanks,
> > >     is there a way to understand if ffmpeg has aborted the process?
> > > I'm using a Linux version for an online service.
> > > It would be nice to let ffmpeg write a log file when there is a problem
> > > (process aborted)
> > > How to do it?
> > >
> >
> > By providing full ffmpeg output. (Not output file but command log)
> >
> >
> > > Thanks.
> > > S.
> > >
> > >
> > > Il giorno ven 29 gen 2021 alle ore 11:39 Paul B Mahol <
> onemda at gmail.com>
> > > ha
> > > scritto:
> > >
> > > > On Fri, Jan 29, 2021 at 11:25 AM Marco Mircoli <nuvolablux at gmail.com
> >
> > > > wrote:
> > > >
> > > > > Hello,
> > > > >     anybody knows the reason why this command works.
> > > > >
> > > > > $ffmpegCmd = "ffmpeg -i $fileOriginale -af
> > > > >
> > > > >
> > > >
> > >
> >
> adeclick,afftdn=nr=80:nf=-20:nt=w:om=o,highpass=f=70,loudnorm=I=-16:TP=-1.5:LRA=14
> > > > > $fileProcessato"; //Livella audio a R128
> > > > >
> > > > > and this doesn't work.
> > > > >
> > > > > $ffmpegCmd = "ffmpeg -i $fileOriginale -af
> > > > >
> > > > >
> > > >
> > >
> >
> adeclick,deesser=i=1,afftdn=nr=80:nf=-20:nt=w:om=o,highpass=f=70,loudnorm=I=-16:TP=-1.5:LRA=14
> > > > > $fileProcessato"; //Livella audio a R128
> > > > > This creates an audio file of zero bytes, just the name.
> > > > >
> > > > > The difference is that the last I've added deesser=i=1
> > > > > Any ideas?
> > > > >
> > > >
> > > > Dunno, you have not provided much info.
> > > > Also both commands works just fine here.
> > > >
> > > >
> > > > > Thanks.
> > > > > S.
> > > > >
> > > > >
> > > > >
> > > > > Il giorno gio 28 gen 2021 alle ore 10:15 Michael Koch <
> > > > > astroelectronic at t-online.de> ha scritto:
> > > > >
> > > > > > Am 28.01.2021 um 09:44 schrieb Marco Mircoli:
> > > > > > > Goodmorning everyone.
> > > > > > > I'm new to ffmpeg and was wondering if anyone from the group
> > could
> > > > help
> > > > > > me
> > > > > > > set up a command line.
> > > > > > > My goal is to improve voice audio recordings.
> > > > > > > I would like to be able to do this starting from a command
> line I
> > > > have
> > > > > in
> > > > > > > my script, modifying it to add:
> > > > > > >
> > > > > > > - 70HZ high pass filter
> > > > > > > - expander / noise gate
> > > > > > > - equalizer
> > > > > > > - compressor
> > > > > > > - exciter
> > > > > > > - de-esser
> > > > > > > - limiter
> > > > > > > - loudnorm to r128 (there is already)
> > > > > > >
> > > > > > > It would be nice to have all this just in one line, is it
> > possible?
> > > > > > > This is the string where I'm starting from.
> > > > > > >
> > > > > > > $ shell = shell_exec ("$ ffmpeg_b -i $ audio_file_full_path
> -map
> > 0:
> > > > a:
> > > > > 0
> > > > > > > -af loudnorm -b: a 96k $ audio_output_mp3 2> & 1");
> > > > > >
> > > > > > yes, I think it's possible to do all this in one command line.
> All
> > > > these
> > > > > > features must be added at the beginning of the audio filter
> chain,
> > > > > > that's between "-af" and "loudnorm". For example:
> > > > > >
> > > > > > $ shell = shell_exec ("$ ffmpeg_b -i $ audio_file_full_path -map
> 0:
> > > a:
> > > > 0
> > > > > > -af highpass=f=70,loudnorm -b: a 96k $ audio_output_mp3 2> & 1");
> > > > > >
> > > > > > Michael
> > > > > > _______________________________________________
> > > > > > ffmpeg-user mailing list
> > > > > > ffmpeg-user at ffmpeg.org
> > > > > > https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> > > > > >
> > > > > > To unsubscribe, visit link above, or email
> > > > > > ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
> > > > > _______________________________________________
> > > > > ffmpeg-user mailing list
> > > > > ffmpeg-user at ffmpeg.org
> > > > > https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> > > > >
> > > > > To unsubscribe, visit link above, or email
> > > > > ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
> > > > _______________________________________________
> > > > ffmpeg-user mailing list
> > > > ffmpeg-user at ffmpeg.org
> > > > https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> > > >
> > > > To unsubscribe, visit link above, or email
> > > > ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
> > > _______________________________________________
> > > ffmpeg-user mailing list
> > > ffmpeg-user at ffmpeg.org
> > > https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> > >
> > > To unsubscribe, visit link above, or email
> > > ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
> > _______________________________________________
> > ffmpeg-user mailing list
> > ffmpeg-user at ffmpeg.org
> > https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> >
> > To unsubscribe, visit link above, or email
> > ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-user mailing list