01:23
AVFilterGraph* filter_graph = avfilter_graph_alloc();
char filter_desc[2048];
snprintf(filter_desc, sizeof(filter_desc),
"buffer=video_size=%dx%d:pix_fmt=%d:time_base=%d/%d:frame_rate=%d/%d[in];"
"color=color=blackⓐ0:size=200x50[bg];"
"[bg]drawtext=text='%s':"
"fontfile='%s':"
"fontsize=24:"
"fontcolor=whiteⓐ0.8:"
"box=1:"
"boxcolor=blackⓐ0.5:"
"x=10:y=10[watermark_text];"
"[watermark_text]hwupload_cuda[watermark];"
"[in][watermark]overlay_cuda=x=10:y=10[out];"
(...)
09:17
I am taking a video file representing a live stream vod of several ours, I am trying to create an output file that is a few minutes of highlights taken from different parts of the video (that I let the streamer choose). I want to preserve quality as much as possible.
For the most part this works, but with every jump to a new section in the VOD, I'm noticing a bigger and bigger gap forming between audio and video, falling out of sync in the output.
I notice that some vods have imperfect framerate (59.998 or something of that sort) but I have been trying to adjust it in my (...)