libavcodec is a free software/open source LGPL-licensed library of codecs for encoding and decoding video and audio data.
Questions tagged [libavcodec]
509 questions
12
votes
1 answer
Decode MP3, then increase the audio volume, and then encode the new audio
I want to first decode a MP3 audio file, and then increase the volume of the audio, and then encode it again into a new MP3 file. I want to use libavformat or libavcodec for this. Can you help me how I can do this? Any example?

Blue Sky
- 293
- 1
- 5
- 14
11
votes
2 answers
Recording video with unknown framerate with FFmpeg
I am recording video with FFmpeg and I would like the frame rate it is written with to at least be in the right ballpark. Right now I take the frame rate that my input claims to have and use that to set the frame rate (time_base) for my output video…

Chris
- 574
- 7
- 24
11
votes
1 answer
What is ffmpeg, avcodec, x264?
From wiki, I read that
FFmpeg is a free software project that produces libraries and programs
for handling multimedia data. The most notable parts of FFmpeg are
libavcodec, an audio/video codec library used by several other
projects,…

onmyway133
- 45,645
- 31
- 257
- 263
11
votes
5 answers
How to obtain titles and chapters information in DVD?
I found many question about creating DVD menu using ffmpeg but i did not find any one about programmically access to DVD structure information. When i using libav (or FFmpeg) library i can open DVD image (iso file) and access to video, audio and…

Tarhan
- 536
- 1
- 7
- 15
10
votes
0 answers
FFmpeg: av_interleaved_write_frame doesn't detect failure for TLS output
How can I detect failure from av_interleaved_write_frame/av_write_frame when the output uses TLS and the connection fails? Both functions continue to return 0 after the destination becomes unavailable. When TLS isn't used, the functions detect the…

DanielB6
- 1,181
- 1
- 10
- 22
9
votes
1 answer
Decode audio using libavcodec and play using libAO?
I use following code snippet to decode audio files (tested with MP3,WAV,WMV).
But when it plays the audio , it just gives static sounds and crashes time to time.
Any hints on what i am doing wrong here ?
#include
#include…

Ashika Umanga Umagiliya
- 8,988
- 28
- 102
- 185
9
votes
1 answer
sws_scale YUV --> RGB distorted image
I want to convert YUV420P image (received from H.264 stream) to RGB, while also resizing it, using sws_scale.
The size of the original image is 480 × 800. Just converting with same dimensions works fine.
But when I try to change the dimensions, I…

Sami susu
- 103
- 1
- 1
- 5
9
votes
2 answers
Using OpenMAX (IL?) for audio/video decoding on Android
Many of the newer hardware platforms running Android, in particular NVIDIA's Tegra 2, support OpenMAX for media acceleration. It's effectively impossible on today's devices to decode 720p video without this support, but the number of demuxers…

Christopher Corsi
- 131
- 1
- 1
- 4
9
votes
3 answers
Problem to Decode H264 video over RTP with ffmpeg (libavcodec)
I set profile_idc, level_idc, extradata et extradata_size of AvCodecContext with the profile-level-id et sprop-parameter-set of the SDP.
I separate the decoding of Coded Slice, SPS, PPS and NAL_IDR_SLICE packet :
Init:
uint8_t start_sequence[]= {0,…

bben
- 93
- 1
- 1
- 3
9
votes
4 answers
FFMPEG Can't Display The Duration Of a Video
I'm trying to use ffmpeg to capture frames from a video file, but I can't even get the duration of a video. everytime when I try to access it with pFormatCtx->duration I'm getting 0. I know the pointer initialized and contains the correct duration …

Malkavian
- 372
- 1
- 5
- 16
8
votes
1 answer
How is better to use ffmpeg with the ASP.NET Core, on Linux?
I've got the project (ASP.NET Core, on Linux) where are the several tasks, which relate to the video converting and extracting frames from the video file.
I thought about the two possible options:
using ffmpeg console utility
using P/Invoke with…
user8245660
8
votes
2 answers
FFMPEG decoding too slow (avcodec_send_packet() / avcodec_receive_frame())
I'm using ffmpeg libraries to decode, scale, and re-encode video within an MPEG transport stream. I've just recompiled from source to v3.3.2 and changed from the old avcodec_decode_video2() API to the new send/receive API.
Both the old and new…

Danny
- 2,482
- 3
- 34
- 48
8
votes
4 answers
Is there a set of working P/Invoke declarations for FFMpeg, libavutil, libavformat and libavcodec in .NET?
I'm currently looking to access libavutil, libavformat and libavcodec (all part of FFMpeg) from .NET.
Currently, I'm getting the libraries from the automated builds of the shared FFMpeg package performed every night for Windows 32-bit.
I am also…

casperOne
- 73,706
- 19
- 184
- 253
8
votes
2 answers
Undefined reference to avcodec_alloc_context but ffmpeg linker order correct?
I want to build a statically linked executable statically linked to libavcodec and libavformat.
The static ffmpeg library was build with:
./configure --enable-static --enable-gpl --enable-nonfree --disable-vaapi
--disable-libopus…

user2212461
- 3,105
- 8
- 49
- 87
7
votes
1 answer
av_register_all() vs. avcodec_register()
Instead of calling av_register_all(), is there an example of selecting a single decoder to use?
I guess I would have to call avcodec_register(), av_register_codec_parser() etc...
The question is, which functions exactly should be called, because…
user472155