I'm trying to pass Xvfb buffor directly to ffmpeg inside Docker. This is approach give me really big performance benefits.
This is how I'm doing it:
Xvfb write the screen output:
[code]sudo Xvfb $DISPLAY -ac -screen 0 1680x900x24 -fbdir /tmp/screen/test.xwd > /dev/null 2>&1 &[\code]
ffmpeg read command:
Code:ffmpeg -hide_banner -loglevel debug -loop 1 ' \ '-re -i /tmp/screen/test.xwd ' \ '-f alsa -i default -strict -2 -ac 2 -preset ultrafast -f ' \ '-c:av copy ' \ 'output_file.mkv'
The problem is: ffmpeg missed many frames and the video should be 3 minutes long, but is half of expected time (video accelerates at some point).
On following video you can see the problem: https://drive.google.com/file/d/1HWjEqrtPfZCRSndxpUpY1iXsrfMNWdp7/view
I guess there is a problem with ffmpeg command and it requires some tweaks, but no idea how to configure it properly.
Thanks!
+ Reply to Thread
Results 1 to 1 of 1
Similar Threads
-
Please help on my 2-pass (Windows) ffmpeg cmd (SOLVED)
By SameSelf in forum Video ConversionReplies: 2Last Post: 26th May 2017, 12:41 -
FFMPEG: can open a video file directly on ftp?
By marcorocchini in forum Newbie / General discussionsReplies: 6Last Post: 15th Feb 2015, 02:55 -
can ffmpeg directly type a .txt file with only timecode data?
By marcorocchini in forum Newbie / General discussionsReplies: 2Last Post: 17th May 2014, 16:49 -
ffmpeg 2-pass question
By DamienS in forum Video ConversionReplies: 18Last Post: 1st Dec 2013, 21:44 -
Using ffmpeg, can I burn in subtitles directly from an mkv subtitle track?
By raphael_is_red in forum Video ConversionReplies: 1Last Post: 31st Aug 2013, 03:06