Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Screencasting with FFMPEG in Arch Linux

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
628 views
Loading...
Alert icon
Sign in or sign up now!
Alert icon
Ratings have been disabled for this video.

Uploaded by on Jan 31, 2012

After toiling around the Internet I have found a solution to my problem with screencasting. This line of code gives my perfect synchronization with audio and video every time! Make sure you read the ArchWIKI covering codecs and the installation thereof otherwise this command string may not work!

ffmpeg -f alsa -ac 2 -i plughw:1,0 -f x11grab -r 15 -s 1360x768 -i :0.0 -acodec pcm_s16le -vcodec libx264 -preset ultrafast -threads 0 output.mkv

Category:

Science & Technology

Tags:

License:

Standard YouTube License

Link to this comment:

Share to:

Uploader Comments (LinuxSpatry)

  • Does it work in ubuntu?

  • @Armydude771 it should but you may have to alter the command to fit your needs... This is covered in detail on Ubuntu forums. The latest kazam has just been released and that may be a better option.

  • actually you use as much threads as possible, not 0. The second thing, regardless how complex does it look (or is) its not a code, just a command call with a lot of arguments.

  • @ClansmanAliasTool I stand corrected... thanks!

Video Responses

This video is a response to ffmpeg Screencast Lag issue Fix!
see all

All Comments (45)

Sign In or Sign Up now to post a comment!
  • ++ continued my camera is a microsoft cinema HD 720p cam with a digital mic now i notice ur setting is plughw 0,1 what would be mines i think mines uses pulse or alsa how can u check ur hw device if anythign may u help me.. i must say K.I.S.S. system aka BSD aka Unix is a fun system had to do alot of reinstall thank god archbang installs fast lol yeah and i didn't know arch is from canada orginally ha us canadians rock eh... anyways if u can help me with the HW please i woud like that. cheers

  • Hey spatry!!! ok i just want to say great video, and i switch to arch and got my / (root) on a whole sda (sata 1) and my /boot /swap /home all on my sdb (sata 2) now lol this works amazing ok i figure out all the stuff for my X11 got my res to its correct RES by using the 10-monitor some .conf chaning it to Card0 and device "ati" and figured out the vesa in the grub to load up to its correct res YAHOO! i save it on my external drive if i break any thing and.. yeah for the mic i have a camera

  • I just like to thank you for all the hard work you put into these videos. Keep up the good work :-)

  • @shafnet OH yes! now my hair is too short to pull out! LOL

  • @LinuxSpatry but you must have pulled a fair few hairs trying to find it ;) All the best Spatry :)

  • @LinuxSpatry

    yeah i mentioned that shortly after my earlier post..... ffmpeg seems to be installed as a dep though

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more