Re: [FFmpeg-user] Large Sized output files recieved while encoding the audio

2022-04-21 Thread Carl Zwanzig
On 4/21/2022 8:38 AM, Shubham Tiwari wrote: Does ffmpeg always convert the audio file while running the filter? if not, in what cases does it skip the conversion? Most (all?) filters must operate on uncompressed data, so it depends entirely on what filters are being used- https://ffmpeg.org/

Re: [FFmpeg-user] Large Sized output files recieved while encoding the audio

2022-04-21 Thread Shubham Tiwari
Thanks for all the inputs, I have a better understanding of the problem now. The input audio is highly compressed. While applying the filter, ffmpeg is converting the audio based on the fileformat of the output file. If the output file provided is wav format, the resulting file is 1536 kb/s uncompr

Re: [FFmpeg-user] Large Sized output files recieved while encoding the audio

2022-04-20 Thread Ferdi Scholten
Rephrasing the requirement. We have an audio pipeline which redacts the audios using the set of start time and end time provided from our ML team. To achieve this, we execute the ffmpeg command with filter "volume=enable='between(t,starttime,endtime)':volume=0". For some cases, we are receiving a

Re: [FFmpeg-user] Large Sized output files recieved while encoding the audio

2022-04-20 Thread Bouke / edit 'B
> On 20 Apr 2022, at 19:50, Shubham Tiwari wrote: > > I think you are not reading the message properly. I think I do. > If you notice, the size > of the file i am passing is 2 mb, the return file size is 176 mb. Does 88 > times increase seem reasonable to you? Yes, as far as it goes for your

Re: [FFmpeg-user] Large Sized output files recieved while encoding the audio

2022-04-20 Thread Carl Zwanzig
Please stop top-posting. On 4/20/2022 11:19 AM, Shubham Tiwari wrote: *behaviour: *executed within a second, input file size 2.1 mb, output file size 176 mb Yep, 15 minutes at 48k samples/second is... 48000 * 60 * 15 = 43 million(!) samples. In 16 bit stereo at 4 bytes/sample, hmm, at least 1

Re: [FFmpeg-user] Large Sized output files recieved while encoding the audio

2022-04-20 Thread morgan holly via ffmpeg-user
> On Apr 20, 2022, at 12:13 PM, morgan holly via ffmpeg-user > wrote: > > >> On Apr 20, 2022, at 12:04 PM, Shubham Tiwari >> wrote: >> >> Thanks Bouke for the opinion. >> Help from any other person is appreciated!! >> >> Regards, >> Shubham >> > > I have not read the entire thread, but

Re: [FFmpeg-user] Large Sized output files recieved while encoding the audio

2022-04-20 Thread Shubham Tiwari
Rephrasing the requirement. We have an audio pipeline which redacts the audios using the set of start time and end time provided from our ML team. To achieve this, we execute the ffmpeg command with filter "volume=enable='between(t,starttime,endtime)':volume=0". For some cases, we are receiving au

Re: [FFmpeg-user] Large Sized output files recieved while encoding the audio

2022-04-20 Thread morgan holly via ffmpeg-user
> On Apr 20, 2022, at 12:04 PM, Shubham Tiwari > wrote: > > Thanks Bouke for the opinion. > Help from any other person is appreciated!! > > Regards, > Shubham > I have not read the entire thread, but it looks like your source is highly compressed, your output is uncompressed. So yes, in th

Re: [FFmpeg-user] Large Sized output files recieved while encoding the audio

2022-04-20 Thread Shubham Tiwari
Thanks Bouke for the opinion. Help from any other person is appreciated!! Regards, Shubham On Wed, Apr 20, 2022 at 11:27 PM Bouke / edit 'B wrote: > > > > On 20 Apr 2022, at 19:50, Shubham Tiwari > wrote: > > > > 1 million audio files per day. > > Hire a specialist. Now. Immediately. Pay him /

Re: [FFmpeg-user] Large Sized output files recieved while encoding the audio

2022-04-20 Thread Bouke / edit 'B
> On 20 Apr 2022, at 19:50, Shubham Tiwari wrote: > > 1 million audio files per day. Hire a specialist. Now. Immediately. Pay him / her well. Do NOT hesitate. Do NOT think, just do it. Right now. It WILL pay off. Did I mention you DO NOT HAVE time to waste? Bouke / edit 'B videotoolshed.c

Re: [FFmpeg-user] Large Sized output files recieved while encoding the audio

2022-04-20 Thread Shubham Tiwari
I think you are not reading the message properly. If you notice, the size of the file i am passing is 2 mb, the return file size is 176 mb. Does 88 times increase seem reasonable to you? I want the file to be in approximately similar quality and file size should go at max 2 to 3 times. In this case

Re: [FFmpeg-user] Large Sized output files recieved while encoding the audio

2022-04-20 Thread Bouke / Videotoolshed
> On 20 Apr 2022, at 19:30, Shubham Tiwari wrote: > > Please accept my apology for putting a large size msg. I appreciate all the > help received. > > I have another example with similar behavior. The exact commands used are > below. The detailed output is attached in this email. > > *command

Re: [FFmpeg-user] Large Sized output files recieved while encoding the audio

2022-04-20 Thread Shubham Tiwari
Please accept my apology for putting a large size msg. I appreciate all the help received. I have another example with similar behavior. The exact commands used are below. The detailed output is attached in this email. *command 1*: ffmpeg -i call.wav -af "volume=enable='between(t,0,1)':volume=0"

Re: [FFmpeg-user] Large Sized output files recieved while encoding the audio

2022-04-20 Thread Bouke / edit 'B
Hi Shubham, When I copy your mail below (not done on this list, mind you!), it’s exactly as long as it was before. What do you expect? Bouke > On 20 Apr 2022, at 15:01, Shubham Tiwari wrote: > > Hi, > > When I run ffmpeg command on a wav file, the received output file is of > large size as c

Re: [FFmpeg-user] Large Sized output files recieved while encoding the audio

2022-04-20 Thread Carl Zwanzig
On 4/20/2022 9:31 AM, Shubham Tiwari wrote: My use case is redaction of audio. To achieve this, our backend adds the filter to mute the audio in the ffmpeg command and then executes on audio files. What are those commands? The original email only shows basic file conversion. When we use th

Re: [FFmpeg-user] Large Sized output files recieved while encoding the audio

2022-04-20 Thread Shubham Tiwari
Hi Ferdi, My use case is redaction of audio. To achieve this, our backend adds the filter to mute the audio in the ffmpeg command and then executes on audio files. For some audio files it's taking more than 30 seconds which is causing high cpu usage and low throughput. The problem in our scenario

Re: [FFmpeg-user] Large Sized output files recieved while encoding the audio

2022-04-20 Thread Ferdi Scholten
Hi, When I run ffmpeg command on a wav file, the received output file is of large size as compared to the original file. The command and the output are below, *FFMPEG command* % ~/Downloads/audio/ffmpeg -i call-redacted.wav output.wav ffmpeg version 4.4.1-tessus https://evermeet.cx/ffmpeg/

[FFmpeg-user] Large Sized output files recieved while encoding the audio

2022-04-20 Thread Shubham Tiwari
Hi, When I run ffmpeg command on a wav file, the received output file is of large size as compared to the original file. The command and the output are below, *FFMPEG command* % ~/Downloads/audio/ffmpeg -i call-redacted.wav output.wav ffmpeg version 4.4.1-tessus https://evermeet.cx/ffmpeg/ C