Proper way to write data into an AVFrame

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Proper way to write data into an AVFrame

Ronak Patel
Hi,

I'm trying to use FFmpeg in my iOS App; and would like to write data into an AVFrame that I can later filter using one of the filters in the libavfilter library (silenceremove, loudnorm or dynaudnorm for example).

I noticed there's a method to correctly write data into a frame in libavcodec: https://ffmpeg.org/doxygen/4.1/libavcodec_2utils_8c_source.html#l00372.

Is there any such method in libavfilter or libavutil to do the same? I would like to use an already provided C API; instead of trying to do this manually in Swift...since the bridging between Swift and C isn't the best for FFmpeg.

Thanks,

Ronak
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Proper way to write data into an AVFrame

Lou Logan
On Thu, Jan 3, 2019, at 9:06 PM, Ronak wrote:

> Hi,
>
> I'm trying to use FFmpeg in my iOS App; and would like to write data
> into an AVFrame that I can later filter using one of the filters in the
> libavfilter library (silenceremove, loudnorm or dynaudnorm for example).
>
> I noticed there's a method to correctly write data into a frame in
> libavcodec:
> https://ffmpeg.org/doxygen/4.1/libavcodec_2utils_8c_source.html#l00372.
>
> Is there any such method in libavfilter or libavutil to do the same? I
> would like to use an already provided C API; instead of trying to do
> this manually in Swift...since the bridging between Swift and C isn't
> the best for FFmpeg.
>
> Thanks,
>
> Ronak

ffmpeg-user is for questions involving the FFmpeg command-line tools (ffmpeg, ffplay, ffprobe). Questions involving the FFmpeg libraries should be asked at libav-user.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".