Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi everyone!
I'm trying to use ffmpeg to record my desktop. It's working with both audio and video, but no matter which options I use, the video is always out of sync. It's always too fast or too slow, sometimes even changing during one recording.
I used these commands among many others, but always the same result:
That's huge and 30 fps too. Lower the frames per second, lower the bitrate, capture only part of the desktop that you want seen at a time, don't encode sound and video on the fly,..you also don't say how good a machine you have.
With a 2 core AMD I just did this example with no problem.
Depends on what you are grabbing. If you are grabbing a terminal while you type you can get away with 15fps, 500K video, if you are talking into a mic while instructing then you can get away with 22050Hz, 32k audio
I tried with 12 to 30 frames per second, makes no difference. Changed resolution but it also doesn't make any difference, I need to capture the full screen anyway.
My machine is fast enough, it runs normally while I'm recording.
It doesn't stutter, it plays smoothly but faster or slower than the audio. So yes, it's out of sync with the audio.
Unfortunately -ar 48000 -async 48000 didn't change anything :/
Thanks for the help so far! The "drop" option makes it a bit better, but it slowly get's out of sync more over time. The first two minutes are ok, then it worsens.
Now that's really weird. I modified teckk's last line a bit to work on my sytem (syntax errors) and it just records a part of the screen (even though I additionally set it to 1920x1080 everywhere), but is still in sync after 3:42 minutes (10.4 MB):
I can't record video using avconv though, can I? Also I'd like to stream to an rtmp server later...
Well I said the system was fast enough... At least there were no noticeable lags or slowdowns while recording.
Video card: NVidia 9600 GT
CPU: Intel Core2 CPU 6600 @ 2.40GHz (that might be a bit rusty)
Memory: 4GB
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.