Re: [Libav-user] Audio buffer to AVFrame

2020-05-06 Thread Attila Krüpl
Hi Denis, When encoding you want to fill your AVFrame with the raw audio data. You need to initialize AVFrame and set a buffer size. Then you need to fill it's buffer with that size of data. You can split your own input buffer manually to fill AVFrame's buffer and then encode it (avcodec_send_fram

Re: [Libav-user] Trouble Decoding with h264_qsv

2020-01-22 Thread Attila Krüpl
avcodec_decode_video2 is a deprecated function, so the success of usage depends on what version of LibAV you are using. If decoding is not working for you it might be worth to turn on logging with av_log_set_level(AV_LOG_TRACE) and add an own logger callback so you can define the output with av_log

Re: [Libav-user] libx264 not found when caling avcodec_find_encoder_by_name()

2019-11-15 Thread Attila Krüpl
hi, call av_register_all() first. br, Attila On Fri, 15 Nov 2019, 09:28 Wodzu, wrote: > Hi guys, > > > > Second day I am struggling co compile ffmpeg so it include libx264. I’ve > downloaded version 4.1.4 and configured it like this: > > ./configure --enable-shared --enable-libx264 --enable-g

Re: [Libav-user] Internal error: Could not register an input HW frame

2019-10-10 Thread Attila Krüpl
hi, i think you are trying to encode the sw frame instead of transfering the data buffer to hw frame and then encoding the hw frame. i believe the vaapi example works fine for the other hw encoders too (nvenc, qsv, amf) best regards attila On Thu, 10 Oct 2019, 12:20 freefalcon, wrote: > Hi,

[Libav-user] Hardware encoding camera stream (RGB32 pixel format) to h264

2019-08-15 Thread Attila Krüpl
Hi All, I'm about to create a video encoder. I'm receiving RGB32 pixel format from camera, but the h264_qsv encoder accepts only PAL8 pixel format. Am I on the right track with converting RGB32 pixels into PAL8 pixels? Isn't that a bit overkill considering that I want to achieve a hardware encod

[Libav-user] Decoding RTMP stream

2019-05-30 Thread Attila Krüpl
Hi all, I’m reading RTMP stream with LibRTMP ( RTMP_Read ). I’m processing the FLV as follows: - I’m reading the header - I’m reading the tag - Getting the frame type codec byte out of the tag - If the codec is AVC, than I’m reading the package byte, and the

Re: [Libav-user] Decoding AAC Stream

2019-05-12 Thread Attila Krüpl
I'm sorry, somehow I've got directed back to this thread. The libav mailing list is totally unresponsive. Best Regards, Attila On Sun, 12 May 2019 at 00:10, Carl Eugen Hoyos wrote: > Am Sa., 11. Mai 2019 um 18:24 Uhr schrieb Attila Krüpl < > krupl.att...@gmail.com&g

[Libav-user] Decoding AAC Stream

2019-05-11 Thread Attila Krüpl
Hi All, I'm about to decode AAC stream - with the LibAV codec - received from Mainconcept's AAC encoder. Basically, the Mainconcept library is doing an encoding on raw media input, sending it through to my LibAV decoder, where I'm trying to decode it. My issue is, that I can't decode it the way