Tuesday, January 30, 2007

DAMN SMALL LINUX tips - ffmpeg div3 avi



-
Damn Small Linux tips - ffmpeg div3 avi -
A couple of thoughts and small tips
------------------------------------------------
"TESTING How To " pad an anime (*.avi) video using ffmpeg and the video codec msmpeg4/div3.
the video's final aspect we will use is 640 x 480 thats (1.3) .
and a 25min tv show should result in a 144mb video file give or take with a low bitrate of -b 700.
" -t 00:01:00 will create a 1 min sample video."
--------------------------------------
# ffmpeg -i *.avi -vcodec msmpeg4 -ab 128 -b 700 -s 576x416 -padtop 32 -padbottom 32 -padleft 32 -padright 32 -t 00:01:00 new-simple-msmpeg4.AVI
---------------------------------------------

Video transcoding
after converting the Xvid .avi file to msmpeg4/div3 .AVI using ffmpeg
the video did not loose a lot of quality and was able to play in Xine on my linux box
and it also played on my $50 dvd/divx player for my TV.
-
OPTIONAL RUN :
# tcprobe -i *.AVI
to find out more about your video vtag and other info about your video.
tcprobe is part of transcoder
-----------------------------------------------------------------------------
-
Video tips
1.Video Padding Tip. only pad the video if your dvd/divx player over scans the video in a way that
cuts of the edges of the video making the sub title unreadable.
2. Video scaling tip. common aspects for avi files for pc's are 640x480 or 320x240
and for us TV's 352x240 ntsc, all equal close to(1.3) (-aspect 4:3)
3. Video bitrate for animation. depending on your need for speed or quality
-b 700 or -b 500 is a good setting for slow pc's
-
CONS -
con - Div3 is a older video compression standard and is not as sharp Divx , Xvid or H.264.
con - the video compression done with div3 does not create a final file as small as newer avi codecs.
con - i have problem getting all " avi video codecs " to sync the audio correctly
when doing a single pass .
-
PROS -
pro - Since the anime I watch has subs and i'm reading slightly out of sync audio
is not a problem for me.
pro - div3 may be old but it takes less time to encode div3 video.
pro - audio quality is not that important to me when watching subbed
anime so I can drop the audio bitrate to (-ab 64)
-
AUDIO tips.
1. using a low audio bitrate will speed up transcoding time
and make the file smaller.
2. if you use in combination a low video bitrate setting and a low audio
bitrate setting for animation you can get a nice small file.
3. Small files are good for storing on a cd or data dvd.
4. smaller audio and video bitrates run smoother on older pc's
than high bitrate files.
--------------------------------------------------
/////////////////////////////////////////////////////////////
-------------------------------------------------
A COUPLE OF FINAL NOTES :

my OS : Linux $FREE Damn Small Linux
my PC : Was given to me used as A free gift from family,
the computer was doa at os login screen and had windows ME OS on it..
before putting Linux on it I tried windows XP but it ran a little to slow for me.
-
HP intel box :runs at 800mhz
RAM 186mb : junk that was mixed and matched together for $12 from office depot.
VIDEO CARD : Nvidia 128mb pci not pci express. $ 50 walmart.
-
This pc is old and to slow to play DVD's but it does a good job playing avi files
vcd, cvd ,and svcd.
I like avi's and svcd/cvd because their easier to transcode and author than DVD's.
-
IN CONCLUSION " ffmpeg can transcode video into a format suitable for
your storage and playback needs."
Try doing a google search for ffmpeg and give it a try
ALSO check to see if your distro supports
ffmpeg mencoder and transcoder.
-
you may have to add debian-multimedia or some other sites to your
source list

deb http://www.debian-multimedia.org sarge main



------------------------------


filed under bleach , anime ,

No comments: