Questions tagged [avcodec]

avcodec is a free software/open source LGPL-licensed library of codecs for encoding and decoding video and audio data.

54 questions
2
votes
2 answers

Hwaccel with AVCodec in FFMPEG?

I am using AVCodec as a video stream decoder and would like to know if it was possible to use hardware acceleration with hwaccel via FFMPEG? or is it already used by default? I have already listed codecs available but I do not understand how to…
HellBlood
  • 31
  • 1
  • 4
2
votes
1 answer

ffmpeg - Access elements of AVCodecContext

I want to access some members of my AVCodecContext *av_ctx in my program. It is fine when I compile it in 32bit version, But when I change it to 64bit this elements act like they been shifted. For example, I want to get av_ctx->coded_width and…
HMD
  • 2,202
  • 6
  • 24
  • 37
2
votes
1 answer

C# ffmpeg unable to load dll avcodec

I downloaded project to controlling AR Drone from this site: https://github.com/Ruslan-B/AR.Drone This project is old. Then I downloaded ffmpeg.autogen library from this site…
Robert
  • 2,571
  • 10
  • 63
  • 95
2
votes
1 answer

GOP size for realtime video stream

I'm working on a kind of rich remote desktop system, with a video stream of the desktop encoded using avcodec/x264. I have to set manually the GOP size for the stream, and so far I was using a size of fps/2. But I've just read the following on…
MadMass
  • 313
  • 3
  • 10
1
vote
0 answers

FFmpeg LGPL build

Hello I'm trying to build ffmpeg under the LGPL license but I'm having trouble creating the dll's. I'm building the source on the Windows platform using MinGW and I use the configure options below to build the latest snapshot ./configure…
1
vote
1 answer

when encoding live video with avcodec/H264

I want to encode live video whith avcodec/H264. I tryed with some setting params. m_pCodec = avcodec_find_encoder(CODEC_ID_H264); m_pCodecCtx = avcodec_alloc_context3(m_pCodec); m_pCodecCtx->coder_type=1; …
user978297
  • 11
  • 3
1
vote
1 answer

ffmpeg avcodec lib crashed on ff_hevc_sao_edge_filter_32_8_avx2()

I'm using avcodec to decode some hevc clip on linux, the avcodec lib is built from source package ffmpeg-4.3.1 with command: configure --prefix=/mnt/projects/ffmpeg-4.3.1/build --disable-static --enable-shared --disable-stripping && make My…
wenzhi
  • 29
  • 4
1
vote
0 answers

How can I make ffmpeg output proper SDP data for a data stream

I have a program based on the FFMPEG libraries, to add KLV data to a video stream. When I try to sent the output to an RTSP server (rtsp-simple-server), I get a 400 response. The apparent reason is that the SDP data for the KLV stream is missing the…
Shalom Crown
  • 116
  • 1
  • 6
1
vote
1 answer

How to set fixed (const) fps using avcodec and libx264

I'm using this project https://github.com/apc-llc/moviemaker-cpp I'm wondering how can I set fixed framerate on my video for now it results like 33.6 38.1 35.3 when I enter 30FPS as c->framerate I tried everything found on the net but no…
Cyclone
  • 23
  • 8
1
vote
1 answer

avcodec config for AAC into HLS/MPEG-TS ([mpegts @ 0x7fc4c00343c0] AAC bitstream not in ADTS format and extradata missing)

We're encoding video into H264 and raw PCM samples into AAC for HLS streaming. The video works fine, but having trouble configuring the AAC encoder in libavcodec. This SO question says: There are two ways to put AAC into transport stream. 1. Using…
Danny
  • 2,482
  • 3
  • 34
  • 48
1
vote
1 answer

avcodec_receive_packet() doesn't see the output

I'm trying to create a converter which will make a video out of set of images. Everything is at its place, AVFormatContext, AVCodecContext, AVCodec. I'm creating YUV AVFrame out of UIImage and send it to encoder by avcodec_send_frame() method.…
Eugene Alexeev
  • 1,152
  • 12
  • 32
1
vote
1 answer

Configure AVCodecContext structure to encode from raw PCM to u-law

I'm trying to encode raw PCM audio data to u-law and it's sound very weird (when it sounds...). I don't understand pretty much how to initialize my AVCodecContext structure (and my input AVFrame). Here are my parameters: Input : PCM (16bits…
N0un
  • 868
  • 8
  • 31
1
vote
1 answer

What is the best way to fill AVFrame.data

I want to transfer opengl framebuffer data to AVCodec as fast as possible. I've already converted RGB to YUV with shader and read it with glReadPixels I still need to fill AVFrame data manually. Is there any better way? AVFrame *frame; //…
Tim Hsu
  • 402
  • 5
  • 19
1
vote
1 answer

Error: avcodec_init();

I'll try to compile under Ubuntu 14.04.2 and I get the following error: VideoPlayerPipHd.c: In static member function ‘static void reel::VideoPlayerPipHd::Create()’: VideoPlayerPipHd.c:792:6: error: ‘avcodec_init’ was not declared in this scope …
musbach
  • 558
  • 1
  • 9
  • 29
1
vote
1 answer

Error Opening Codec with avcodec

I have been trying to transcode subtitles from format SubRip (.srt) to MPEG4 Timed Text to mux them into a MP4 container, where there is already audio and video. Doing so from command line with ffmpeg is trivial: ffmpeg -i subtitles.srt -i video.mp4…
marsop
  • 323
  • 4
  • 19