Re: [FFmpeg-user] help: I use av_err2str function in c++, it occurs " error: taking address of temporary array" when build.
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 function in c++, it occurs " error: taking > > address of temporary array" when build. > > > > > > I use extern "C" but it doesn't work. my solution is override the default av_err2str() function in a specified header file(needn't modify header in FFmpeg), like this: #ifdef av_err2str #undef av_err2str #include av_always_inline std::string av_err2string(int errnum) { char str[AV_ERROR_MAX_STRING_SIZE]; return av_make_error_string(str, AV_ERROR_MAX_STRING_SIZE, errnum); } #define av_err2str(err) av_err2string(err).c_str() #endif // av_err2str or refer here: https://github.com/joncampbell123/composite-video-simulator/issues/5 > > ___ > > ffmpeg-user mailing list > > ffmpeg-user@ffmpeg.org > > https://ffmpeg.org/mailman/listinfo/ffmpeg-user > > > > To unsubscribe, visit link above, or email > > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". > ___ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > https://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". Regards, Lingjiang Fang ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] triming an audio wavfile
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 Eugen ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] triming an audio wavfile
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 -loglevel error -i $SOURCE -ss $HEADNUM -to $TAILNUMĀ somedesiredoutput.wav If this does not work you may have a wav file that is carrying data in chunks at one or other end. or is a wav container which has something ffmpeg won't play with. https://downloads.avaya.com/elmodocs2/cmapi/docs/api/doc-files/G729WaveFileFormat.html suggests you need to find a converter to make the g729 into something user friendly. regards Robert On 25/05/21 8:18 am, pink panther wrote: I have a 325kb audio wave file recorded in g729. I am trying to trim it to 1 minute. I have tried almost every command I see from guys using ffmpeg and none seem to work.Can someone assist? Thanks ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". -- Robert Jeffares Communication Consultants 64 Warner Park Avenue Laingholm Auckland New Zealand 0604 +64 9 817 6358 ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".