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
How concatenate a array of videos using avconv
I want to concatenate a array of videos my array is
$interFIFO // array(
0=>test1.mpg,
1=>test2.mpg,
2=>test3.mpg,
3=>test4.mpg,
);// array count may be increase some time
I…

Elby
- 1,624
- 3
- 23
- 42
0
votes
1 answer
What could change the fps when copying frames from mp4 file to mp4 without reencoding?
I try to copy video from in.mp4 to out.mp4 without reincoding. I'm using the code example suggested by pogorskiy here. The copy process success, but the video is played very fast. I checked the fps of both files with MediaInfo. The fps of "in.mp4"…

theateist
- 13,879
- 17
- 69
- 109
0
votes
2 answers
Alternative to sws_scale
I am performing encoding of the captured windows screen with x264 using libavcodec. Since, the input is RGB, i am converting it to YUV to make it compatible with x264. I am using the sws_scale function for the same.
My question is if there is any…

Hrishikesh_Pardeshi
- 995
- 4
- 19
- 45
0
votes
0 answers
Error using libavcodec with linux in C/C++
The problem: AVFormatContext::nb_streams has too larve value.
My C++ code (error handling, includes etc. omited to reduce the listing):
void printA(AVFormatContext* _a)
{
std::cout << "duration " << (unsigned long)_a->duration << "\n";
std::cout…

pavelkolodin
- 2,859
- 3
- 31
- 74
0
votes
2 answers
Saving H.264 encoded data into file using ffmpeg
I have H264 data, coming from a frame grabber.
Using this data, I have already written an RTP/H264 streaming server (using live555) and a RTP/H264 client (using ffmpeg and live555).
I want to add a new feature to my server : Directely save encoded…

robosara
- 1
- 1
- 2
0
votes
1 answer
libav: Filling AVFrame with RGB24 sample data?
I am trying to fill sample data for a AVFrame initialized with RGB24 format.
I use following code snippet to populate RGB data.
But in the encoded video,I can only see grayscale strip covering only 1/3 of the videoframe.
This code snippet suppose to…

Ashika Umanga Umagiliya
- 8,988
- 28
- 102
- 185
-1
votes
0 answers
Fuji .mov file converted by ffmpeg doesn't play in Windows Media Player
My Fuji X-T3 generates an FHD movie as a .mov with HEVC video and PPM audio. The new Media Player on Windows won't play this (without buying a codec) so I convert it to .mp4 using ffmpeg CLI (ffmpeg -i in.mov out.mp4). The resulting .mp4 file uses…

glipster
- 1
-1
votes
2 answers
AVFrame buf size calculation
I am having trouble encoding a video with the ffmpeg libraries as i am getting segfaults and/or out of bound memory writing when i am writing raw video data to an AVFrame. I therefore just wanted to ask if one of my assumptions was right.
Am i right…

Elias Wagnerberger
- 64
- 5
-1
votes
1 answer
Use of SSE instructions along side with Libavcodec
I have written a simple video conferencing app which uses multiple threads for video and audio mixing. I use libavcodec (ffmpeg) codecs for mixing video. As I know, libavcodec uses SSE instructions to achieve high performance. For audio mixing, I'm…

M.Mahdipour
- 592
- 1
- 7
- 21
-1
votes
1 answer
VC++ dependencies linking issue?
My project is using some libs of libavcodec on Visual Studio 2010.
After updating the libs (replacing the lib and includes from Libav) and resolving all Compiler Errors (after 3 years a few things changed in libavcodec), the project compiles without…

Harry
- 1,233
- 10
- 24
-1
votes
1 answer
FFMPEG - AVFrame to per channel array conversion
I am looking to copy an AVFrame into an array where pixels are stored one channel at a time in a row-major order.
Details:
I am using FFMPEG's api to read frames from a video. I have used avcodec_decode_video2 to fetch each frame as an AVFrame as…

ahmadh
- 1,582
- 2
- 18
- 28
-1
votes
1 answer
Converting RGB frames to YUV420P using FFmpeg/C++
I tried a code based on this tutorial. What this does is it writes first 5 frames of a video into memory in RGB format. I need to convert these RGB frames to YUV420P format so that I can pass them to YUV420P encoder. I tried using the sws_scale but…

learner
- 1,197
- 6
- 22
- 34
-2
votes
1 answer
FFmpeg decode and convert RGB sws_scale error
I have a problem with my code.
I want convert YUV to RGB, but sws_scale returns 0 always and data is filled 00000000..NULL
I tried googling, but I could not find any problems.
Do I need AVPicture or QImage? Can anyone point out my problem?
pVFrame…

Birds
- 65
- 2
- 13
-2
votes
1 answer
how to convert a Image to video using avconv
i want to create a video from a image i used following code
shell_exec("avconv -f image2 -r 50 testimage.jpg output.mpg");
But when i trying to playing output video it shows stream contains no data

Elby
- 1,624
- 3
- 23
- 42