devjeonghwan

Results 24 comments of devjeonghwan

`avformat_find_stream_info` second parameter can be null. it is okay. ([See link](https://ffmpeg.org/doxygen/2.8/group__lavf__decoding.html#gad42172e27cddafb81096939783b157bb)) I think problem is `AVFormatContext pFormatCtx = new AVFormatContext(null);` under `getFormatContext` method. use instead `AVFormatContext pFormatCtx = avformat_alloc_context();` (`new...

Use like this ``` java AVFormatContext pFormatCtx = avformat_alloc_context(); AVDictionary options = new AVDictionary(); av_dict_set(options, "rtsp_transport", "tcp", 0); if (avformat_open_input(pFormatCtx, url, null, options) != 0) { return null; } ```...

Your first code is strange, but it is no problem in working. (When AVFormatContext points to NULL, ffmpeg allocates it.) ``` java AVFormatContext pFormatCtx = new AVFormatContext(null); AVDictionary options =...

I can't say that the `avformat_find_stream_info` function is the problem. because the `avformat_find_stream_info` function is implemented to return an error code in case of an error. In general, it is...

Maybe crash frequency may have been reduced(solved the fundamentally error?). Use the standard usage of ffmpeg(standard way to create and release resources.)

> > FFmpeg is a C API, and it's quite tricky to deallocate everything properly. You'll need to read the API docs very carefully. > > This is not easy...

I'm not sure but, Maybe you can build openblas contains lapack/fortran using below repository. https://github.com/iains/gcc-darwin-arm64 https://github.com/fxcoudert/gfortran-for-macOS/releases/tag/12-arm-alpha

``` java int gpuId = 0; AVBufferRef hardwareDeviceContext = new AVBufferRef(); { int returnValue = av_hwdevice_ctx_create(this.hardwareDeviceContext, AV_HWDEVICE_TYPE_CUDA, gpuId + "", null, 1); if (returnValue < 0) { // FFmpeg Error...

You don't need a set AVHWAccel in AVCodecContext. To increase transcoding performance, both encoder and decoder must use NVIDIA codec. What decoder codec did you use?

Create decoder and encoder using "h264_cuvid" and "h264_nvenc". and set each context's pixel format to "AV_PIX_FMT_CUDA". **Encoder** ``` java avEncoderContext.hw_device_ctx(av_buffer_ref(hardwareDeviceContext)); avEncoderContext.pix_fmt(AV_PIX_FMT_CUDA); // avcodec_open2 ``` **Decoder** ``` java static class AvFormatGetter...