Posts

Showing posts with the label ffmpeg

ffmpeg and docker result in averror_invaliddata

Image
Clash Royale CLAN TAG #URR8PPP ffmpeg and docker result in averror_invaliddata I am running ffmpeg within a docker container, and I am having a problem. I have a wittled-down debug program (listing below) that simply opens (and reads) a test.mp4 I open the file with fopen(), read and print the first 32 bytes. The values agree and are correct whether running in docker or locally. (ie. the file is accessible and readable in the docker container) However, when it gets to avformat_open_input(): Running locally: Works just fine. (and the real program fully decodes it) Running in docker container: The call to avformat_open_input() fails with AVERROR_INVALIDDATA. This is with test.mp4 in the docker directory. I'm a bit lost at this point. I appreciate any ideas. test program listing: ========================================= #include <stdio.h> extern "C" { #include <libavformat/avformat.h> } int main (int argc, char **argv) { int erc=0; AVFormatConte...

How to create an image using images with FFMPEG?

Image
Clash Royale CLAN TAG #URR8PPP How to create an image using images with FFMPEG? How to create an image using images with FFMPEG? Something like below? -f lavfi -i color=c=white:s=1080x1920 -loop 1 -i 1.png -loop 1 -i 2.png -filter_complex [0:v][1:v]overlay=shortest=1:x=0:y=0[v1];[v1][2:v]overlay=shortest=1:x=10:y=10 -vframes 1 -q:v 5 By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.