519 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
2
votes
1
answer
133
views
Libav* encoding to FLAC results in MD5 Signature Mismatch
I am trying to learn how to use the FFmpeg libav* libraries but have encountered an issue when encoding to FLAC audio.
Running FFmpeg 5.1.7
I have copied the transcoding.c example from https://www....
0
votes
0
answers
91
views
avcodec_send_frame constantly returns -22
I am trying to write a WAV-to-AAC encoder using ffmpeg/libavcodec. Finding the encoder, setting up the context and feeding data into the frame all work, but once it's time to avcodec_send_frame() I ...
2
votes
1
answer
149
views
5.1 PCM Sound to 5.1 Dolby Digital in Windows C++ for SPDIF Playback
I try to write a program, that can convert 5.1 PCM Sound to 5.1 Dolby Digital Compressed Audio to use with my optical Toslink/SPDIF USB Interface. For Debugging reasons I use a sine-wave PCM signal on ...
0
votes
1
answer
89
views
some codecs (ie. libx264) cannot be reused after draining
After draining an encoder (by sending it a null frame and then receiving packets until EOF) it enters draining mode after which avcodec_send_frame will fail, returning EOF. You're supposed to call ...
2
votes
1
answer
222
views
Detect if an interlaced video frame is the Top or Bottom field?
I'm decoding video PES packets (packetized elementary stream) containing H.264/AVC and H.265/HEVC using libavcodec like this:
while (remainingESBytes > 0)
{
int bytesUsed = av_parser_parse2(
...
2
votes
1
answer
227
views
FFmpeg does not detect bitstream filter parameter
I have tried to make a bitstream filter for FFmpeg that drops the nth keyframe for positive numbers and allows the first n keyframes and drops the rest for nonpositive numbers, called "datamosh&...
0
votes
0
answers
416
views
av_write_header() doesn't work, throws "Invalid data found when processing input" (error code -1094995529)
I just wrote some basic code to try encoding some sample frames into a file. But before I could even get to that point, the program fails writing the header. If I try to ignore this, or skip writing ...
1
vote
1
answer
224
views
Retrieving VUI after AVC/HEVC decoding from *.yuv file?
Background:
Video usability information (VUI) is extra information that can be inserted into an AVC (h.264) or HEVC (h.265) video bitstream. The documents defining AVC and HEVC specify that an AVC/...
1
vote
1
answer
167
views
FLAC created using libavformat/avcodec doesn't contain meta information
I have a bit of code where I needed to convert PCM16LE to a FLAC which is simple enough. I've managed to do this, however, the generated FLAC file does not contain the duration of the file.
i.e. ...
-1
votes
1
answer
113
views
libav: Store h264 frames in mp4 container
I'm making a C++ application that retrieves frames from a camera and then encodes each frame with a H264 encoder (not using libav). This encoded H264 frame is then kept in memory as a void *mem as I ...
2
votes
1
answer
179
views
How to call av_read_frame() when streamed data is not yet available?
I am streaming audio data and using the ffmpeg/libav libraries to process it in C++. I create a CustomIOContext and a read_packet function to provide the streamed data to ffmpeg, and I create an ...
0
votes
2
answers
2k
views
How can I install FFmpeg so that pkg-config can find it?
I want to use the ffmpeg libraries in my program. These are libavformat and libavcodec. To link them, I'm trying to use pkg-config.
I cannot get pkg-config to find these libraries.
When I run
pkg-...
0
votes
0
answers
535
views
ffmpeg avcodec_send_packet fail after several frames
I am trying to use ffmpeg to decode a video stream and convert to Opencv cv::Mat.
I found this piece of code and made it compiled. Howerver, the decoding process will always fail after several frames. ...
1
vote
1
answer
140
views
Is raw audio in AVFrame->data the same as LPCM?
In the ffmpeg documentation for an AVFrame it says
This structure describes decoded (raw) audio or video data.
In the case of audio data, what format are the samples within an AVFrame in? Do they ...
1
vote
0
answers
160
views
Why is the last frame not showing in an MP4 generated by libav?
Note: I have a working example of the problem here.
I'm using the libav/ffmpeg API to generate an MP4 with the h264 codec. In my specific situation I'm generating the files with a max number of 2 &...