LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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

Reply
 
Search this Thread
Old 01-11-2009, 03:58 AM   #1
delite
Member
 
Registered: Nov 2008
Posts: 44

Rep: Reputation: 15
ffmpeg tips


Hi,

I'm no expert when it comes to AV stuff. Anyway I wanted to do a quick tutorial for my little nephew, so i've developed this using ffmpeg:
Code:
ffmpeg  -ar 48000 -vol 512 -f oss -i /dev/audio -t 10 -s 1280x800 -sameq -f x11grab -r 30 -i :0.0 movie.mpg
Now the size, is the size of my screen, however can I change this or will I just do it by re-encoding later?

Also, padtop adds black to the top, but still starts at 0. On trying croptop it errored out. I was wanting to just grab a section of the screen, say a rect ((100,100)(640,480)), at a higher res, any ideas?

I banged in '-sameq' and the quality of the text improved greatly, but does that override any other settings, if so what?

Any other tips and tricks?

Cheers...
 
Old 01-11-2009, 04:39 AM   #2
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
Quote:
Originally Posted by delite View Post
Code:
ffmpeg  -ar 48000 -vol 512 -f oss -i /dev/audio -t 10 -s 1280x800 -sameq -f x11grab -r 30 -i :0.0 movie.mpg
Also, padtop adds black to the top, but still starts at 0. On trying croptop it errored out. I was wanting to just grab a section of the screen, say a rect ((100,100)(640,480)), at a higher res, any ideas?
If you want that section why not do:

Code:
ffmpeg  -ar 48000 -vol 512 -f oss -i /dev/audio -t 10 -s 640x480 -sameq -f x11grab -r 30 -i :0.0+100,100 movie.mpg
See here for a decent tutorial:
http://polishlinux.org/linux/ubuntu/...ubuntu-part-2/

Using a different video codec such as mpeg4 or x264 will improve quality to size ratio.

Last edited by H_TeXMeX_H; 01-11-2009 at 04:41 AM.
 
Old 01-11-2009, 05:34 AM   #3
delite
Member
 
Registered: Nov 2008
Posts: 44

Original Poster
Rep: Reputation: 15
I like the offset trick, very good!
I'm off to read tut now... (after Click anyway!)
 
  


Reply

Tags
desktop, ffmpeg, mic


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help me in installing ffmpeg, ffmpeg-PHP, Mplayer, Mencoder, flv2tool, LAME MP3 Encod mitesh.ever Red Hat 5 05-16-2009 12:14 PM
Does the latest version of ffmpeg not work with ffmpeg-php? whitey4900 Linux - Software 0 08-04-2008 05:16 PM
Ffmpeg fedoraman Linux - Software 2 01-21-2008 02:01 AM
ffmpeg Polanski Linux - Software 9 05-10-2006 01:52 PM
ffmpeg Polanski Linux - Laptop and Netbook 5 01-11-2006 07:01 PM


All times are GMT -5. The time now is 10:47 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration