Hide

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again.

Delete that bloated snippets file you've been using and share your personal repository with the world. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.


Get involved!

You can sign-in using OpenID credentials, or register a traditional username and password.

First-time OpenID users will be automatically assigned a username which can be changed after signing in.

Universal configuration monitoring and system of record for IT.
Hide

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for:

Hide

News

May 19, 2015 - A Look At The New Commandlinefu
I've put together a short writeup on what kind of newness you can expect from the next iteration of clfu. Check it out here.
March 2, 2015 - New Management
I'm Jon, I'll be maintaining and improving clfu. Thanks to David for building such a great resource!
Hide

Top Tags

Hide

Functions

Psst. Open beta.

Wow, didn't really expect you to read this far down. The latest iteration of the site is in open beta. It's a gentle open beta-- not in prime-time just yet. It's being hosted over at UpGuard (link) and you are more than welcome to give it a shot. Couple things:

  • » The open beta is running a copy of the database that will not carry over to the final version. Don't post anything you don't mind losing.
  • » If you wish to use your user account, you will probably need to reset your password.
Your feedback is appreciated via the form on the beta page. Thanks! -Jon & CLFU Team

DVD ripping with ffmpeg

Terminal - DVD ripping with ffmpeg
cat VIDEO_TS/VTS_01_[1234].VOB | nice ffmpeg -i - -s 512x384 -vcodec libtheora -acodec libvorbis ~/Videos/dvd_rip.ogg
2010-09-14 14:45:27
User: zhangweiwu
Functions: cat nice
5
DVD ripping with ffmpeg

To rip DVD movie to ogg format using ffmpeg, follow these steps.

1) find the vob files on the mounted video DVD in VIDEO_TS that stores the movie itself. There would be a few other VOB files that stores splash screen or special features, the vob files for the movie itself can be identified by its superior size. You can verify these vob files by playing them directly with a player (e.g. mplayer)

2) concatenate all such vob files, pipe to ffmpeg

3) calculate the video size and crop size. The ogg video size must be multiple of 16 on both width and height, this is inherit limitation of theora codec. In my case I took 512x384.

The -vcodec parameter is necessary because ffmpeg doesn't support theora by itself. -acodec is necessary otherwise ffmpeg uses flac by default.

Alternatives

There are 2 alternatives - vote for the best!

Terminal - Alternatives
ffmpeg -i concat:VTS_02_1.VOB\|VTS_02_2.VOB\|VTS_02_3.VOB\|VTS_02_4.VOB\|VTS_02_5.VOB -map 0:v:0 -map 0:a:0 -codec:a libvo_aacenc -ab 128 -codec:v libx264 -vpre libx264-ipod640 movie.mp4
2012-05-10 23:51:19
User: br3wski3
Tags: ffmpeg dvd
2

Alternative, imho better, using the concat protocol

Know a better way?

If you can do better, submit your command here.

What others think

I used this command but pumped out to x264 instead of ogg. still the best command I found. thnx

cat VTS_01_[123456].VOB | ffmpeg -i - -acodec libfaa c -ab 128 -vcodec libx264 -vpre medium_quality -threads 0 /home/mediapath/folder/movie.mp4
Comment by unixmonkey18728 306 weeks and 5 days ago

Within instances when consumers are remarkably alert to the actual shifting fashion trends internationally, the necessity to join using this method rampage will be excellent for heads of a giant number of individuals. There are numerous of people that are generally very aware of the way they seem and provides by themselves yet it is not only your clothes that particular wears which often matters but also the method one accessorizes the idea. Accessorizing the idea properly is extremely essential because only after that may the charisma from the clothing arrived at leading. Artist handbags are the ideal ways to add accessories ones outfits as it presents category, style and elegance on the 1 holding this as well as reveals the true aspect of the dress at the same time. Designer bags can be found simply by distinct creative designers below his or her particular brands everyone can pick anything that like greatest and what http://www.hermesbeltsbirkinkellybag.co.uk/ believe that is required at that time over time. There will be something accessible for every person and something ought to produce total usage of this. Developer bags are in fantastic demand and keep transforming every single season making it convenient and also practical for a person your can purchase a considerable bunch of precisely the same allowing for these phones show off various bags on different occasions. With progress of technologies, there are many connected with shops that have arise on the net as well the other can simply decide on what they have to be able to by simply hitting some links. These internet shops have an assortment of goods offered and they've the most beneficial developer handbags as well among the a great many others. Those with busy times who don't find time and energy to just go and store could also get the best of custom masterpieces by just simply clicking control button right now. It is advisable to get bags on the web because they websites contain the best of creations and also have huge selling and also price reduction gives occurring all year long making it hassle-free along with practical for individuals to buy that they've every considered of having inside their resolved budget. The particular charges here i will discuss smaller you'll come across around the market, you will need to therefore absolutely consider the variety the following prior to making the invest in.

Comment by stephanieg915 15 hours ago

When you're starting up an enterprise of your family, you need to primarily feel with regards to the minimal things to be capable of preserve lots of the cash you may. Perhaps finding dark brown papers suitcases to pack your prospects buying coming from a at wholesale prices dealer can help you save numerous funds in the long term, and when your organization begins to develop, you'll save a lot more.The complete concept driving this wholesales is when you purchase additional, you'll get that less costly. As well as extra you acquire any additional you save. If you have received a small business that may be constant based, meaning that you might be certain you are doing business for just a while, you should begin purchasing required items like people dark brown papers bags since ample since you can. Receiving a decades investment forward is just not considerable if you'll manage to save a little each tavern, so when the sales get higher, but also the total amount you preserve will go additionally.The unsafe component with regards to a lot of these wholesales is basically that you can't sometimes receive the luggage imprinted together with your logo. They're plain brownish cardstock bags and when you need to craving these individuals published, you might must delegate which to a totally different organization. There are lots of distinct companies giving the printing solutions and http://www.hermesbeltsbirkinkellybag.co.uk/ some of which enable you to take the individual bags. Unfortunately they may not be by far the most inexpensive people and you could end up spending much more. That's why you must think about dark brown newspaper bag wholesales exclusively should you be prepared to use basic bags to your requirements. This means your current potential buyers will not accomplishing any kind of promoting for you as soon as walking around town with your bag, but you will conserve lots of cash in the charges on the bags.

Comment by stephanieg915 8 hours ago

Your point of view

You must be signed in to comment.