LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Blogs > sumeet inani
User Name
Password

Notices

Rate this Entry

my dvdrip

Posted 03-15-2011 at 01:38 AM by sumeet inani
Updated 03-15-2011 at 01:56 AM by sumeet inani

Formula to calculate video bitrate
Code:
bitrate(in kb\s) = (target_size_in_Mbytes - sound_size_in_Mbytes) * 1024 * 1.024 * 8 / length_in_secs
sound_size is obtained from
Code:
mencoder INPUT_video_file -of rawaudio -oac mp3lame -ovc copy  -o sound_size.mp3
rip it
Code:
ffmpeg -i Input_video_file  -s widthxheight -f avi -vcodec mpeg4 -b from_formula -g 300 -bf 2 -acodec libmp3lame -ab 96k dvdrip.avi
If ffmpeg gives 'segmentation error' , 'cannot resample...'
Then
Code:
ffmpeg -i input_video -i sound_size.mp3 [other options] output.avi
If you have time then you can do two pass as follows
Code:
ffmpeg -i INPUT -vcodec libx264 -vpre max -threads 0 -b BITRATE(like 800k) -pass 1 -f mp4 -y /dev/null 
quality can be max,hq(preferable),normal

ffmpeg -i INPUT -vcodec libx264 -vpre max -threads 0 -b 2100k -pass 2 OUTPUT.mp4
you can also make dvdrip using mencoder.
Code:
mencoder INPUT_video_file   -ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=from_formula -vf scale -zoom  -oac mp3lame -lameopts br=96 -xy width_desired -o dvdrip.avi
It is said audio quality of 96kb/s is enough.Otherwise
Code:
-aq 8 (variable bit rate) for ffmpeg
For video if you don't specify video bitrate then
Code:
-qscale <1-31>for ffmpeg
-vqscale <0-31> for mencoder
value above 13 is unacceptable
5 is best . 11 is good .
Posted in Uncategorized
Views 391 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 11:58 PM.

Main Menu
Advertisement

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