Re: [FFmpeg-user] help: I use av_err2str function in c++, it occurs " error: taking address of temporary array" when build.

2021-06-13 Thread Lingjiang Fang
On Thu, 10 Jun 2021 12:55:08 +0200 "Diederick C. Niehorster" wrote: > That macro doesn't work in C++. use: > > char a[AV_ERROR_MAX_STRING_SIZE] = { 0 }; > av_make_error_string(a, AV_ERROR_MAX_STRING_SIZE, errCode_); > > On Thu, Jun 10, 2021 at 12:40 PM ?? wrote: > > > > I use av_err2str

Re: [FFmpeg-user] triming an audio wavfile

2021-06-13 Thread Carl Eugen Hoyos
Am So., 13. Juni 2021 um 08:47 Uhr schrieb Robert Jeffares : > ffmpeg -hide_banner -loglevel error -i $SOURCE -ss $HEADNUM > -to $TAILNUM somedesiredoutput.wav This cannot work as the file does not get recognized currently. The usual way of dealing with such a case is to upload a sample. Carl

Re: [FFmpeg-user] triming an audio wavfile

2021-06-13 Thread Robert Jeffares
Hi PP, assuming the wav file plays ok the following works here SOURCE=path/to/your/input/file HEADNUM=how far from the *START* of the file you want to start in seconds TAILNUM=how far from the *START* of the file you want to end in seconds. you may have 0 and 60 ffmpeg -hide_banner