I need a simple C++ Linux program that demonstrates using libavutil to extract frames from a video file, resize them and save them to disk.
The Input of the program:
1. A folder name – a folder in which there will be M video files.
2. N – The number of worker threads that will run on the system.
Note: N could be different then M
The program needs to:
1. Go over the folder and for each video file in the folder:
a. Send the video to one of the N workers
b. Each worker will:
i. Split the video file into image frames
ii. Resize each of the frames
iii. Write the resized frame to disk
iv. Return the worker process time
2. Print the total processing time of all the workers
The program needs to be written in C++ Linux, needs to run on Ubuntu 16.04 , needs to use libavutil , libswscale etc.
I would like it to be completed in less than a day.
6 freelancers are bidding on average $35 for this job
Hello, I can modify the scaling_video.c example from FFMPEG, which uses AVUtil and SWScale, to scale a video frame by frame. Will add threads using OpenMP or Pthreads.
This is something that can be completed with Bash instead of a compiled language like C++. I have done some work similar to what you are requesting for so I can pull it up and just make some adjustments.