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
0
votes
1 answer
Segmentation fault in samplerate conversion function
playmp3() using libmpg123
if (isPaused==0 && mpg123_read(mh, buffer, buffer_size, &done) == MPG123_OK)
{
char * resBuffer=&buffer[0]; //22100=0,5s
buffer = resample(resBuffer,22100,22100);
if((ao_play(dev, (char*)buffer, done)==0)){
…
0
votes
0 answers
how to convert an MPEGTS file into an FLV file by programming with libavcodec
I wanna convert an MPEGTS file into an FLV file with libavcodec APIs(just transformat, video/audio codecs are not changed). Following is the code I found on web. After some hack, it can generate an FLV file, which could not be played. Any clue to…

Hexing B
- 1
- 2
0
votes
1 answer
x264/avcodec: Deduce frame sequence number from NAL unit
I'm using avcodec H264 decoder in my project. I receive NAL units from network, stick together NALs from same frame (additional header is added on network layer) and than pass to the decoder. I was wondering if frame sequence number is encoded into…

Dan Tumaykin
- 1,213
- 2
- 17
- 37
0
votes
1 answer
ffmpeg libavcodec AVPixelFormat for png
What AvPixelFormat i should use for *.png (PNG-24 and PNG-8) image?
I am trying to convert from png to PIX_FMT_YUV420P using sws_scale
Edit, code:
avpicture_fill((AVPicture*)m_encode_inpic, (uint8_t*)imagePixels, ,…

Rhot
- 63
- 2
- 9
0
votes
0 answers
How to add particular ffmpeg sources into config?
I have my ffmpeg confix. For example:
./configure \
--target-os=darwin \
--arch=armv7s \
--cc='xcrun -sdk iphoneos clang' \
--extra-cflags='-arch armv7s -mios-version-min=7.0' \
--extra-cxxflags='-arch armv7s -mios-version-min=7.0'…

user500
- 4,519
- 6
- 43
- 56
0
votes
1 answer
Frames per second Conceptual Details
i am a newbie and trying to understand the concepts behind ffmpeg/video.
FPS means frame per second , for example
25fps -> 25 frames captured in a second
From the display perpective
25 frames need to be displayed in a second.
correct me if i am…

Whoami
- 13,930
- 19
- 84
- 140
0
votes
1 answer
FFMPEG: How input data is fed to the decoders
In FFMPEG, there are many video decoders integrated. One of them is H264. Now, in FFMPEG, which part of the decoder is taking care of providing the decoder with necessary input data to the decoder, so that it can decode it?
I have gone through most…

sam
- 289
- 5
- 16
0
votes
1 answer
Compiling FFMPEG in Visual Studio 2013
I need help compiling "http://cekirdek.pardus.org.tr/~ismail/ffmpeg-docs/api-example_8c-source.html" using visual studio express 2013.
I followed the solution indicated in "Use FFmpeg in Visual Studio", however I still get the message "error C1189:…

jax
- 840
- 2
- 17
- 35
0
votes
0 answers
Picture size 0x10 is invalid | video codec is not opened.What should be the reason?
Right now am using RTMPStreamPublisher to publish the video at wowzaserver from iphone application. i have downloaded some demo code from this GitHub Project https://github.com/slavavdovichenko/MediaLibDemos/tree/master/RTMPStreamPublisher.
Now this…

BhavikKama
- 8,566
- 12
- 94
- 164
0
votes
1 answer
Encoding flv video by libavcodec not working
I'm trying to use libavcodec to encode a flv video.
Following code is a sample code to generate a mpeg video, it works well. But after replacing the codec ID with AV_CODEC_ID_FLV1, the generated video file cannot be played.
void simpleEncode(){
…

Mark Ma
- 1,342
- 3
- 19
- 35
0
votes
0 answers
encoding from rgb24 to mpeg4 and decoding from mpeg4 to rgb24 with libavcodec
Problem:
I am receiving rgb24 images from a webcam and am encoding them to mpeg4 using libavcodec. I am not able to decode them back to rgb24. avcodec_decode_video2 returns that it processed all of the input but the third parameter to…

user3017830
- 21
- 3
0
votes
1 answer
libavcodec not found even though ffmpeg has been built and installed
I have a program that depends on libavcodec on Linux. I have downloaded the ffmpeg sources and built them using ./configure, make and make install. But the program that depends on libavcodec refuses to recognize the libraries. What have I done…

user1049697
- 2,479
- 4
- 29
- 36
0
votes
1 answer
Decoding m4a and dumping PCM data gives back noise
I'm using the code below (modified from the examples given in libavcodec) to decode audio files
int main(int argc, char **argv)
{
av_register_all();
avcodec_register_all();
char *filename = argv[1];
char *outfilename = argv[2];
…

L__
- 866
- 1
- 9
- 15
0
votes
2 answers
Golang + Avconv error (exit status 254)
I'm getting "panic: exit status 254" on the second line.
Can you spot the mistake I made here:
command := exec.Command("avprobe", "inputfile.mp4 -loglevel quiet -show_streams -frame_size -print_format -show_format -of json")
output, err :=…
user2554883
0
votes
0 answers
Reducing the Frame-Rate of a Network Video Stream with FFMPEG
I have a network video stream that I am decoding with the ffmpeg C library.
I'd like to reduce the maximal frame rate to some maximum, say 15 fps.
I used the filter fps=fps=15, but even on a 25 fps video stream this caused frame duplication. I…

Adi Shavit
- 16,743
- 5
- 67
- 137