15:37
I am using this script to convert all images in a folder into a video. Each image is shown for 4 seconds and the script runs from a bat file.
`ffmpeg -framerate 1/4 -i %%03d.jpg -pix_fmt yuv420p video.mp4`
I have hundreds of subfolders each containing images with the same resolution and I want to convert them into one moive per subfolder.
I might be close to a solution but it still does not do the job
ⓐecho off
setlocal enabledelayedexpansion
:: Set the frame rate and file format
set "framerate=1/4"
set "image_format=%%03d.jpg"
set (...)
22:00
I am new to OpenCV, and I want write Mat images into video using VideoWriter on Ubuntu 12.04. But when constructing VideoWriter, errors came out.
It seems that OpenCV invoke ffmpeg API using default parameters and ffmpeg invoke x264 using its default parameters. Then these setting is broken for libx264. Thus the "Could not open codec 'libx264'" error.
Anyone has ideas to solve this problem?
More specifically:
anyone knows where and how OpenCV invoke ffmpeg API?
how to change ffmpeg default settings using code, hopefull, can be (...)
19:04
I'm implementing a real-time screen streaming application using FFmpeg's libraries (libavcodec, libavformat) with H.264 encoding and UDP transport. While I have basic low-latency settings in place, I'm looking to minimize latency as much as possible while maintaining reasonable quality.
Here's my current encoder configuration:
// Configure codec for low latency
codecContext->width = WIDTH;
codecContext->height = HEIGHT;
codecContext->time_base = AVRational1, FPS;
codecContext->framerate = AVRationalFPS, 1;
codecContext->pix_fmt = (...)
15:23
I am trying to create a video editing tool in HTML/CSS and PHP. For the video editing, I am using ffmpeg. Now, the file upload and the general editing works pretty well, but I have a problem. I would like to preview the final result inside an HTML video-tag. Thus, wenn I upload 4 clips and then select seconds 5 to 10 to be cut out, I'd like to immediately view the result so I can decide whether I want to keep it or not. Does FFmpeg support something like this? If not, what would be the best solution? (...)