Re: [Libav-user] [Phishing Risk] [External] Re: How to migrate atadenoise in ffmpeg to my own project?

2021-03-03 Thread 项首彦
I want to use the function 'static int filter_slice(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)' as an API to process the frames output by the encoder. The original format of the frame obtained from the encoder is YUV_I420, and then libyuv can be used to convert it to RGB24. I want

Re: [Libav-user] Reuse of format context after free and reallocate?

2021-03-03 Thread william keeling
Again, Thanks for your input -- never said the code was bug free or even not buggy -- but I do know the free of all the context listed are being called and other than avformat_free_context() which has no way to check it worked (not sure way it was written like that) are validated. code is here

[Libav-user] Error running av_hwdevice_ctx_create: ENOMEM

2021-03-03 Thread Lucas Nogueira
Hi, I am trying to perform h264 video encoding on a GPU using the ffmpeg's vaapi library. I have been following this this example from ffmpeg Github repo: https://github.com/FFmpeg/FFmpeg/blob/master/doc/examples/vaapi_encode.c I installed ffmpeg with –enable-vaapi, but whenever I try to run

Re: [Libav-user] Reuse of format context after free and reallocate?

2021-03-03 Thread Paul B Mahol
On Wed, Mar 3, 2021 at 8:26 PM william keeling wrote: > thanks for you input -- I am freeing all context and still get the errors > as if FLVContext is not freed > Than show actual code, It must be buggy. > -- > *From:* Libav-user on behalf of Paul B > Mahol > *Se

Re: [Libav-user] Reuse of format context after free and reallocate?

2021-03-03 Thread william keeling
thanks for you input -- I am freeing all context and still get the errors as if FLVContext is not freed From: Libav-user on behalf of Paul B Mahol Sent: Wednesday, March 3, 2021 11:21 AM To: This list is about using libavcodec, libavformat, libavutil, libavdevic

Re: [Libav-user] Reuse of format context after free and reallocate?

2021-03-03 Thread Paul B Mahol
On Wed, Mar 3, 2021 at 5:50 PM william keeling wrote: > I have not used "valgrind" I will need to look into that tool. any tips > on how to use it? > > If you are on Linux, using it is very easy. > yes, I am free the all contexts before reallocation but I cannot find a > way to for the FLVCon

Re: [Libav-user] Reuse of format context after free and reallocate?

2021-03-03 Thread william keeling
I have not used "valgrind" I will need to look into that tool. any tips on how to use it? yes, I am free the all contexts before reallocation but I cannot find a way to for the FLVContext/Muxer to be freed/reinitialized thru the API. I am doing the following: avcodec_free_context() of all stre

Re: [Libav-user] Libavformat - Guranteed seeking before keyframe

2021-03-03 Thread ilkercan Kaya
In case this got lost, I'm kindly replying to this thread. On Sun, Feb 21, 2021, 04:20 ilkercan Kaya wrote: > Hello Everyone, > > I am trying to seek my audio ogg file with the following: > > int64_t targetPts = av_rescale_q(seekTimeMicro, AV_TIME_BASE_Q, > streamTimeBase); > > av_seek_frame(av

Re: [Libav-user] [Phishing Risk] [External] Re: How to migrate atadenoise in ffmpeg to my own project?

2021-03-03 Thread 项首彦
It’s early morning here, can I discuss the code in detail with you tomorrow? On Thu, Mar 4, 2021, 00:14 wrote: On Wed, Mar 3, 2021 at 5:08 PM 项首彦 wrote: > As mentioned in the title, I want to use atadenoise in my own project. For > a detailed description of the problem, see: > https://stackove

Re: [Libav-user] How to migrate atadenoise in ffmpeg to my own project?

2021-03-03 Thread Paul B Mahol
On Wed, Mar 3, 2021 at 5:08 PM 项首彦 wrote: > As mentioned in the title, I want to use atadenoise in my own project. For > a detailed description of the problem, see: > https://stackoverflow.com/questions/66459547/how-to-migrate-atadenoise-in-ffmpeg-to-my-own-project > . > > I would be glad if you

[Libav-user] How to migrate atadenoise in ffmpeg to my own project?

2021-03-03 Thread 项首彦
As mentioned in the title, I want to use atadenoise in my own project. For a detailed description of the problem, see: https://stackoverflow.com/questions/66459547/how-to-migrate-atadenoise-in-ffmpeg-to-my-own-project

Re: [Libav-user] Reuse of format context after free and reallocate?

2021-03-03 Thread Paul B Mahol
On Wed, Mar 3, 2021 at 5:22 AM william keeling wrote: > I did some digging and found the error is coming from this code in > flvenv.c line 921. > > if (pkt->dts < -flv->delay) { > av_log(s, AV_LOG_WARNING, >"Packets are not in the proper order with respect to > DTS\n");

Re: [Libav-user] Reuse of format context after free and reallocate?

2021-03-03 Thread Paul B Mahol
On Wed, Mar 3, 2021 at 12:54 PM Paul B Mahol wrote: > > > On Wed, Mar 3, 2021 at 5:22 AM william keeling > wrote: > >> I did some digging and found the error is coming from this code in >> flvenv.c line 921. >> >> if (pkt->dts < -flv->delay) { >> av_log(s, AV_LOG_WARNING, >>