Showing posts with label ffmpeg. Show all posts
Showing posts with label ffmpeg. Show all posts

Sunday, May 22, 2011

mepis8 ffmpeg x11grab desktop capture

capture
fffffffffffffffffffff
[bitrate 800] 

$ ffmpeg -f oss -ac 2 -i /dev/audio \ -f x11grab -r 25 -s 1024x600 -i :0.0 -b 800 video-n-sound-test_av.mpeg
note:"alsa-oss" may be need to be installed for "/dev/dsp" to work.
------------------
[check] "capture" control on it needs to be used to grab mic sound recording.

mepis8 webcam ffmpeg 5moy2011

tested 5moy2011 mepis8 ...
mepis8 uname -r 2.6.27!!!

---------------------
mpeg
352x288

/**************
****mepis8 ****
*************/

this work with the [ffmpeg -formats] [-f mpeg]
==================

LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so \ ffmpeg -f oss -i /dev/dsp -acodec mp3 -f mpeg -s 352x288 -r 30000/1001 -i /dev/video0 -qmin 4 -qmax 4 -b 500 -aspect 4:3 -f mpeg -r 30000/1001 -y vid-mpeg-ffmpeg-with-mp3sound-q4.mpg


NOTE: "/dev/dsp" can probably be swapped out with [/dev/audio] .

mepis8 is built on debian lenny repos. Debian's ffmpeg is missing alot of codecs but it works better than MENCODER for av sync web cam recording because mencoder did not keep the audio in sync.
for /dev/dsp to work it may require "alsa-oss.deb" the legacy compliance ap layer is likely needed. "?"
------------------
[check] "capture" control on it needs to be used to grab mic sound recording.

alt.....
NOW ffmpeg-svn
alt.....
Now mepis8 with debiand's 2.6.26 kernel loaded
uname -a
Linux mepis1 2.6.26-2-686 #1 SMP Wed Sep 21 04:35:47 UTC 2011 i686 GNU/Linux

/******************
*** debian / lenny *
*******************/
##############################
mpeg
================
640x480
================
mepis8 uname -r 2.6.27-***
mepis8 code:
$ LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so \
############
or
debian/lennny
uname -r 2.6.26-2-686
video :large
code lenny:
$ nice -n 19 ffmpeg -f oss -i /dev/dsp -acodec mp3 \ -f video4linux \ -s 640x480 \ -r 30000/1001 \ -i /dev/video0 -qmin 4 -qmax 4 \ -b 500 -aspect 4:3 \ -f mpeg -r 30000/1001 \ vid-[large]-mpeg-ffmpeg-with-mp3sound-q4-large.MPG
video :small
code lenny:
$ nice -n 19 ffmpeg -f oss -i /dev/dsp -acodec mp3 -ac 2 \ -f video4linux \ -s 352x288 \ -r 15000/1001 \ -i /dev/video0 -qmin 4 -qmax 30 \ -b 500 -aspect 4:3 \ -f mpeg -r 20 \ vid-[small]-mpeg-ffmpeg-with-mp3sound-q4-small.mpg

Friday, May 13, 2011

test my ffmpeg webcam vlog script

for lubuntu 11.04
webcam test script. has auto renaming using the time function.
os: linux Lubuntu11.04 @ 5moy2011 uname -r 2.6.38-8-generic hardware: acer aspire one [aod255e] webcam video driver: video4linux2 audio drivers: alsa for the mic.
#################################### note the low bitrate and frame rate, netbook settings are kind of slow so keep the bitrate, codecs and frame rate low so that the netbook keeps up with ffmpeg. press Q to stop ffmpeg.
#!/bin/bash
#
# test auto vlog1 [ naming] script and capture byant.
##############################
##ffmpeg -r 15 -b 800k -s 640x400 -f video4linux2 -i /dev/video0  \
## -vcodec msmpeg4v2 -f alsa -ac 2 -vol 512 -i hw:0,0 vlog111div3-vol512_alsa.avi
##
###############################

DIR=/home/"user"/vlog



  ffmpeg -r 15 -b 800k -s 640x400 -f video4linux2 -i /dev/video0  \
-vcodec msmpeg4v2 -f alsa -ac 2 -vol 512 -i hw:0,0  vv1temp-out-lowercase.avi &&
  

 sleep 2

 for old in `ls   ~/vlog/*.avi` ; do today=~/vlog/`date +%F+Hour%H+Min%M+Sec%S`.AVI  ;  mv     $old $today; done


lubuntu mods below. ########################################## sound works , video works , wifi and lan work. not bad for a 200$ netbook from walmart.
lsmod
Module                  Size  Used by
cryptd                 19801  0 
aes_i586               16956  3 
aes_generic            38023  1 aes_i586
parport_pc             32111  0 
ppdev                  12849  0 
snd_hda_codec_realtek   255820  1 
joydev                 17322  0 
snd_hda_intel          24140  6 
snd_hda_codec          90901  2 snd_hda_codec_realtek,snd_hda_intel
snd_hwdep              13274  1 snd_hda_codec
snd_pcm                80244  4 snd_hda_intel,snd_hda_codec
snd_seq_midi           13132  0 
arc4                   12473  2 
snd_rawmidi            25269  1 snd_seq_midi
snd_seq_midi_event     14475  1 snd_seq_midi
i915                  450944  2 
snd_seq                51291  2 snd_seq_midi,snd_seq_midi_event
brcm80211             690428  0 
snd_timer              28659  4 snd_pcm,snd_seq
snd_seq_device         14110  3 snd_seq_midi,snd_rawmidi,snd_seq
sparse_keymap          13666  0 
mac80211              257001  1 brcm80211
uvcvideo               66851  0 
drm_kms_helper         40745  1 i915
cfg80211              156212  2 brcm80211,mac80211
videodev               75143  1 uvcvideo
psmouse                73312  0 
drm                   180037  3 i915,drm_kms_helper
snd                    55295  17 snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
serio_raw              12990  0 
soundcore              12600  1 snd
snd_page_alloc         14073  2 snd_hda_intel,snd_pcm
i2c_algo_bit           13184  1 i915
video                  18951  1 i915
lp                     13349  0 
parport                36746  3 parport_pc,ppdev,lp
usbhid                 41704  0 
hid                    77084  1 usbhid
ahci                   21591  2 
libahci                25548  1 ahci
atl1c                  36237  0 
#########################################
/********************** *** debian lenny old ** *********************/ and now for debian lenny mepis8/debian/lenny
debian lenny webcam scrypt. uname -r 2.6.26
#!/bin/bash
#
# test auto vlog1 [ naming] script and capture byant.
##############################
## lubuntu settingd BAK#
##ffmpeg -r 15 -b 800k -s 640x400 -f video4linux2 -i /dev/video0  \
## -vcodec msmpeg4v2 -f alsa -ac 2 -vol 512 -i hw:0,0 vlog111div3-vol512_alsa.avi
##
###############################

DIR=/home/"user name"/vlog1



 nice -n 19 ./ffmpeg-svn -f oss -i /dev/dsp -acodec mp3 -ac 2 -vol 512 \
  -f video4linux  -s 640x480 -r 30000/1001  -i /dev/video0  \
 -f avi -vcodec msmpeg4 -qmin 4 -qmax 7 -b 800 \
 vv1temp-out-lowercase.avi &&
  

 sleep 2

 for old in `ls   ~/vlog1/*.avi` ; do today=~/vlog1/`date +%F+Hour%H+Min%M+Sec%S`.AVI  ;  mv     $old $today; done

ok.

Tuesday, March 23, 2010

easyconverter zenity pluss ffmpeg revised for my setup

easyconverter uses zenity as a front end for ffmpeg to transcode audio file file. used it for converting mp3 files to ogg. BUT i had to chang the file a litle to get better audio quality. NOTE one of the changes i made was "-aq 100" and few other UGLY hacks and small work-arounds. -------------------------------------------
" ./easyconverter.sh " almost worked for me but i did have to coment out a few line and edit some other lines to get it to work for me. " Changes for my setup." for i in *.$vanform; do ffmpeg -i $i -acodec "$formaat" -aq 100 "${i%.mp3}*new-out-file-foo.ogg" 2>&1 | zenity --progress --text="Converting: $i" --title="$titel" --auto-close --pulsate echo $i gedaan done i all so commented out# the confirm #mapcheck= directory section because it was not working for me.
also note that it did not work for me on FILES with blank spaces like so ( 01 track mystify.mp3) so i had to rename my files first to something like ( 01_track_mystify.mp3). It took some short work to debug easyconverter.sh to get things to work for my setup (vector-linux6 lite). ================= (EasyConverter) home page. links: http://raymii.org/cms/index.php?title=EasyConverter_v0.3a ================= (ffmpeg) scripts: links: http://www.mygnulinux.com/?p=56

Tuesday, March 16, 2010

ffmpeg vextor-linux webcam video4linux2

vector-linux Vector linux = uses * ( LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so ) Vector Linux = and uses * ( -f video4linux2 ) thats video 4 linux TWO Debian uses * ( -f video4linux ) thats video 4 linux ONE. ================ ffmpeg web cam recording vector/linux $ LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so ffmpeg -f oss -i /dev/dsp -acodec mp3 \ -f video4linux2 -s 352x288 -r 30000/1001 -i /dev/video0 \ -qmin 4 -qmax 4 -b 500 \ -aspect 4:3 -f avi -vcodec msmpeg4 -r 30000/1001 -y tvffmpeg--msmpeg-with-mp3sound-q4.avi ============================= It's taking me a while to get use to Vector-Linux. With debian enabling the debian multi media repo made installing video editing software kind of easy. But doing video editing with Vector-Linux takes some work to install KDENLIVE and cinelerra but it can be done. ********************************** video transcoder ffmpeg and video editor kdenlive (build) (ffmpeg) and (kdenlive) for vector-linux to install a custom build of ffmpeg i used LINK: http://connie.slackware.com/~alien/slackbuilds/ffmpeg/build/ heres a how to do it VIDEO. Part 1. Upgrading and packaging ffmpeg from a 3rd party SlackBuild. http://forum.vectorlinux.com/index.php?PHPSESSID=574d0ea2e90d4c6bc3f31a467c59daa6&topic=8608.msg71234#msg71234
direct link @ http://www.opensourcebistro.com/blog1/?p=268 it worked for me BUT i did not follow the TUT letter for letter. * I was not able to get slackbuild to install apps but it did a good job compiling the apps so i let it do that then i ran " make install " ass root. my new ffmpeg worked great but from time to tine updates kind of fouled it up so i reinstall it when that happens. so don't delete the source when your done make a backup and reinstall ffmpeg from that. update do break things from time to time when you install 3rd party apps. *********************************** video editor (cinelarra) verssion (cinelerra-20080527-i686-1as.tgz ) ( 3rd party) (binary) from .... http://repository.slacky.eu/slackware-12.1/multimedia/cinelerra/20080527/ worked ok for me. but i did have to reinstall ffmpeg after installing cinelarra and i was not able to get my web cam to save mpeg file from cinelarra so i save my video as ms-avi's and that worked for me. NOTE recording my webcam from cinelarra the audio was all ways out of sync so thats why i use command line instead. command line apps are a lot more flexible to work with. *********************************** VOIP (skype) When i use Vector_Linux.....@$
LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so skype " was needed for me to get my web cam to work with CAM programs like skype .

Thursday, June 18, 2009

youtube h.264 flv codec sucks

youtube h.264 flv codec sucks. h264 hates old slow computers and FLV players are pigs. Work around this with ffmpeg. ./ffmpeg input.flv -vcodec copy -acodec copy "output-mpeg4--6moy2009.mp4" (LQ) ./ffmpeg -i *.FLV -vcodec flv -acodec libmp3lame -ar 44100 -ab 32 \ -s 320x240 -aspect 16:9 -b 350 -r 25 \ "OUTPUT-LQ_4tube-vcodec-flv--b350--ver3-mp3.flv" ------------------------------ //////////// ////// /// youtube safe? video format " will look like crap. SO TRY Qscale for averAGE-quality... NON-youtube videos ============= ./ffmpeg -i *.FLV -vcodec h263 -s 352x288 -aspect 16:9 -b 350 -r 25 -qscale 4 \ -acodec libmp3lame -ar 44100 -ab 124 \ "OUTPUT--averageQ-h263--avi-.avi"

Monday, June 1, 2009

superimpose images and video with ffmpeg | vhooks

?? : to place or lay over or above something "superimposed images" ??
links and more detailed info at bottom of post.
******************************
extrack still A image with ffmpeg.
(-itsoffset 0 ) =start at frame zero.
(-vcodec png) = were extracting to a png file.
(-an) = audio no
=================
####################
PART 1 of 3 $ ffmpeg -itsoffset 0 \ -i source1file.mov -vcodec png \ -vframe 1 -an -format rawvideo \ -s 320x240 still-image1.png (sample video posted here http://wardcraft.blogspot.com/2009/05/loop-still-png-image-to-mpeg-video-with.html) ----------------------------------------------- #################### # PART 2 of 3 NOW extend the still image into a short STILL movie clip. (-t 3) = three seconds.
$ ffmpeg -loop_input -i still-image1.png \ -r 29.97 -t 3 -qscale 2 still-background-video1.mpg -----------------------
#######################
# PART 3 of 3 .
# use vhook to super_impose a rising video.????

$ ffmpeg -i still-background-video1.mpg -vhook \
'/usr/lib/vhook/imlib2.so -x 0 \
-y (-N*3) -i foreground-pic.png' \
-qscale 2 -an superIMposed-vids.mpg
____________________________
#////////////////////////
#/////////////////
#/////////////
#////////
#///
#//
#/
ffmpeg -i *.avi -vhook \
'/usr/lib/vhook/imlib2.so -x 0 \
-y (-N*3) -i foreground-pic.png' \
-qscale 2 -an superIMposed-vids.mpg
________________________
************************
links: has a ffmpeg how-to flash video sample..
http://www.linuxjournal.com/video/linux-howto-video-editing-magic-ffmpeg
______________________
**********************
links : is just a lot of text codes for ffmpeg..
http://read.pudn.com/downloads110/sourcecode/unix_linux/453401/ffmpeg/doc/hooks.texi__.htm
_____________________
*********************

ffmpeg (notes) and how to A generic FLV youtube video.

#( youtube safe codec ) # ( fast uplode and no recoding) $ ffmpeg -i *mpg -r 25 -b 350kb -t 10 \ -vcodec flv -an \ my-flv-for-youtube.flv --------------------------- --------------------------------- ?? exiftool *.flv ================================ ExifTool Version Number : 7.67 File Name : my-flv-for-youtube-5moy2009.flv Directory : . File Size : 894 kB File Modification Date/Time : 2009:05:31 11:00:41-07:00 File Type : FLV MIME Type : video/x-flv Duration : 10.04 s Image Width : 320 Image Height : 240 Video Bitrate : 0 Frame Rate : 25 Video Codec ID : 2 File Size Bytes : 915713 Video Encoding : Sorensen H.263 Image Size : 320x240 --------------------- ?? ?? and it all looks good.

Sunday, May 31, 2009

loop still png image to mpeg-video with FFMPEG

FFMPEG how to . loop still png image to mpeg-video .
youtube vid
how to code with FFMPEG: $ ffmpeg -loop_input \ -i pic-that-will-be-looped.png -r 29.97 \ -t 10 -qscale 2 -an my-frozen-vid.mpg ----------------------- how it works " -r 29.97 " = 30 frames a second. " -t 10 " = ten seconds. " -qscale 2 " = quality 2 = best quality 30 is worst. " -an " = audio none. #/////////////////////////// #/////////////////// #////////////// #//////// #//// $ ffmpeg -loop_input -i *.png -r 29.97 \ -t 10 -qscale 2 -an my-frozen-vid.mpg

related post: turn flv video into mpeg 1 vcd with ffmpeg URL: http://wardcraft.blogspot.com/2007/02/ffmpeg-dvp640-mpeg1-vcd.html

Monday, May 25, 2009

record your webcam with ffmpeg-svn

"1st just the video" for a quick test $ ./ffmpeg -f video4linux -s 352x288 -r 30000/1001 -i /dev/video0 -sameq -aspect 4:3 -f avi -vcodec msmpeg4 -r 30000/1001 -y tvffmpeg.avi ====================== this codec only works with the ffmpeg-svn that i compiled. because DEBIAN can be so stupid some times and not to include extra codecs........ ///////////////////////////////////////////////// /////////------- sound no try the recording with a 3.5mm mic...... =============== " with your sound this time...." " using -f oss -i /dev/dsp \ " ============== now with audio $ ./ffmpeg-svn -f oss -i /dev/dsp \ -f video4linux -s 352x288 -r 30000/1001 -i /dev/video0 \ -sameq -aspect 4:3 -f avi -vcodec msmpeg4 -r 30000/1001 -y tvffmpeg--msmpeg-with-sound.avi ------------------------------------- //////////////////////// /////---- AND NOW you can " TEST " acodec mp3 $ ./ffmpeg-svn -f oss -i /dev/dsp -acodec mp3 \ -f video4linux -s 352x288 -r 30000/1001 -i /dev/video0 \ -sameq -aspect 4:3 -f avi -vcodec msmpeg4 -r 30000/1001 -y tvffmpeg--msmpeg-with-mp3sound.avi #////////////////////////// #///////////////////////// #/////////////////////// #//////////////////// #///////////////// #///////////// #//////// # last a low quality format for a smal file this time. $ ./ffmpeg-svn -f oss -i /dev/dsp -acodec mp3 \ -f video4linux -s 352x288 -r 30000/1001 -i /dev/video0 \ -qmin 4 -qmax 4 -b 500 \ -aspect 4:3 -f avi -vcodec msmpeg4 -r 30000/1001 -y tvffmpeg--msmpeg-with-mp3sound-q4.avi

Tuesday, July 3, 2007

bleach 116 sub eng. " full episode " ffmpeg Div3

veoh del my video :(
http://www.veoh.com/users/thorncat ---------------------------------------------------

bleach 116 sub eng. " full episode " the red head takes a bath at the end " wow "

#---------------------
# ffmpeg notes. fisrt pass -an
#---------------------
CODE:
$ ffmpeg -i *yourvideo.avi -vcodec msmpeg4 -ab 128 -b 592 -bufsize 4096 -mbd 1 -precmp 0 -cmp 2 -subcmp 2 -s 576x416 -padtop 32 -padbottom 32 -padleft 32 -padright 32 -qmin 4 -qmax 4 -pass 1 -an [q4-4-mbd1]new-p1-simple-msmpeg4.avi
#-------------------------
#  second and final pass.
#------------------------
/* add the time switch -t 00:24:04.6 if you need it*/
CODE:

$ ffmpeg -i *yourvideo.AVI -vcodec msmpeg4 -ab 128 -b 592 -bufsize 4096 -mbd 1 -precmp 0 -cmp 2 -subcmp 2 -s 576x416 -padtop 32 -padbottom 32 -padleft 32 -padright 32 -qmin 4 -qmax 4 -pass 2 [q4-4-mbd1]new-p2-simple-msmpeg4.avi
/* I should now have a medium qualty copy with padding for my TV dvd/divx player. */

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

I some times just do a simple one pass encode set at -mbd 2 and I end up with the same quality that looks good on standard def TV. " What works well for me is the setting " ( -qmin 4 -qmax 4 ) my standard def TV dose not realy display quality set below 4. BEST quality is ( -qmin 2 -qmax 2 ) and setting the quality to belowe 4 makes the compressed file bigger... Pluss it takes longer to encode...

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

I'm using a old pc with a 788mhz intel chip and it takes me over 30min to encode medium quality video set a qualtity 4 if i do a simple one pass encode using the old msmpeg4 Div3 codec... BUT if i try to encoded with divx in HQ it takes me for-ever on my slow pc.

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

I wrote this and tagged it as ffmpeg then posted it here at http://wardcraft.blogspot.com so i can refer to this post in the future when I wont to cut and paste instead of typing ever switch into terminal.

Monday, July 2, 2007

bleach 115 "sub eng .full video." ffmpeg msmpeg4 div3

veoh broke my video :( -------------------------------------- bleach 115 "sub eng .full video." with padding

===================================== some ffmpeg NOTES :

ffmpeg -i *.avi -acodec mp3 -ab 96 -vcodec msmpeg4 -b 720 -ar 24000 -mbd 2 -aic 2 -cmp 2 -subcmp 2 -s 480x352 -padtop 32 -padbottom 32 -padright 32 -padleft 32 -r 23.98 -title X -f avi -qmin 3 -qmax 10 -t 00:02:00 new-480x352div3-tube.AVI

===================================== i coded the video like like this back when "?" i downloaded the video because i was trying to make the video aspect the same size as youtubes embedded flv player. But i don't think i like the aspect now. I had the file siting around so i uploaded it. it looks ok on veoh. I have some other file siting on cd's that i can dig up and upload later this week.

======================================

thx for reading.

bleach 114 "anime " "540x406 @ veoh "

veoh broke my video :( http://www.veoh.com/users/thorncat ----------------------------------------

I uploaded this video to veoh I used ffmpeg for the transcoding.

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

ffmpeg -i *.avi -acodec mp3 -ab 128 -vcodec msmpeg4 -b 720 -ar 44100 -mbd 2 -aic 2 -cmp 2 -subcmp 2 -s 476x342 -padtop 32 -padbottom 32 -padright 32 -padleft 32 -r 23.98 -title X -f avi -qmin 3 -qmax 10 -t 00:02:00 new-veoh-540x406div3-tube.AVI

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

it took a long time to upload but it looks ok a lot better then it would on youtube.
i shrunk the embedded player to fit the blog 440x420 but it's larger sized @ veoh.

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

i padded the video so i can burn a copy to cd and play on divx/dvd player without the overscanning cutting of the English subs.

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

This is one of my favorite eps of bleach . watch it . thx bleach ep 114

Wednesday, March 21, 2007

Windows XP ffmpeg.exe

Windows XP ffmpeg.exe

-

normally i use linux with ffmpeg and mENCODER to convert video into [xvid - avi] but it can be done with windows XP.

-

download pspvideo9

install pspvideo9
and then click my computer and browse the the program folder till you find the folder with ffmpeg in it. drag a copy of the ffmpeg folder to your desk top.

-

also grab a copy of cmd.exe from yor system folder and place it in the ffmpeg folder.

-

place video in the ffmpeg folder . -

click on cmd.exe it will bring up a command shell that you can type into.
@command line.

ffmpeg.exe -i inputfile.avi -vcodec xvid -vtag XVID -s 320x240 -r 23.98 -b 592 -maxrate 728 -qmin 3 -qmax 3 -mbd 2 -acodec mp3 -ab 192 -ar 48000 NEW-VIDEO-XVID.AVI
ffmpeg runs in emulation on windows

I only used it a few time on windows it works if you wont to view the video your going to need a player like vlc video lan client or mplayer.

-

another free video tool that works with ffmpeg is super do a google search for [super and flv]

super uses ffmpeg and mENCODER.
Mencoder can be used to copy video made by ffmpeg. i use mencoder to fix audio sync and the codec header.

@commandline

mencoder.exe old-video.AVI -ovc copy -oac copy -o new-video-xvid-XVID.avi -ffourcc XVID
NOTE: -fforcc XVID will make the codec header xvid in capt XVID when i use linux ffmpeg only vtags the video in lowercase xvid and some of my players will not play the video. so i run Mencder on the video to fix it. -

so before you buy $$ a video encoder try some of the free ones you don't need the gui's their just front ends for ffmpeg command line or some other command line encoder. #
I don't test a lot of widows apps but " pspvideo9 and super " are keepers because i like using ffmpeg and mENCODER. but i to lazy to build them from source.

Tuesday, February 27, 2007

[27] FFMPEG : dvp640 mpeg1 vcd.



Jessica Simpson. Sweetest Sin. live at Miss teen U.S.A @youtube
WARDCRAFT:
I down loaded some video from youtube then converted them to
avi and tried to watch them on my tv set.
'but they would not play on the Phillips dvp640'.

The FLV files from youtube would not convert into an
AVI file that was readable on the dvp640.
THE AVI files did work on my computer just fine.

WORK AROUND:

FLV to MPEG1 / then MPEG1 to AVI.
by converting the youtube FLV file to MPEG1 first
I was able to get the files to play on my divx/dvd player.

FFMPEG NOTES:
# first convert the FLV video to mpeg1 ntsc.
# make the first pass 1

$ ffmpeg -i youtubevideo9mb.flv -target ntsc-vcd -pass 1 new-video-pass1-30mb.mpg

# then run the second pass 2

$ ffmpeg -i youtubevideo9mb.flv -target ntsc-vcd -pass 2 new-video-pass2-30mb.mpg
------------------------
------------------------
Most divx/dvd players can read a mpeg1 file.
NOTE: you can now rip the ntsc-vcd into a divx/avi file
and the divx/avi file will now
work on the 'Pillips dvp640 divx/dvd player'.

WARDCRAFT:
I don't now why the FLV video files nead to be converted to
a ntsc-vcd mpeg first before I rip them for my TV.
AFTER I rip the file I then transcode them into div3/msmpeg4/AVI
to save them onto CD.I like having a small div3/AVI video that
will play on just about any computer.

I have not uploaded any more videos to youtube in a while.
Youtube feels a little slow. It's to bad that youtube does not let you download AVI files.Some of the FLV file I find on youtube are real
real real low quality.
I nead to find a better file dump thats fast
and lets people 'upload and download' Higher quality vids.
#thx for sharing videos on youtube.

Monday, February 19, 2007

FFMPEG : cmp 2 test on dvp642

WARDCRAFT: I tried a couple more setting on (Phillips dvp640) divx DVD player to see if they would work. --
-- NOTE using ffmpeg: final video will be 352x240 ntsc cif - div3 avi and it will play on this divx DVD player (Phillips dvp640) but the player is junk and will probably brake on me any day . Do a Google search on the player and on Phillips they do not have a good track record. --
--
ffmpeg -i *.avi -vcodec msmpeg4 -ab 128 -b 592 -bufsize 4096 -mbd 2 -precmp 0 -cmp 2 -subcmp 2 -s 320x208 -padtop 16 -padbottom 16 -padleft 16 -padright 16 -t 00:24:04.6 new-DIV3--[at512ab96]msmpeg4.AVI
-- 
-- The video did not scale well on my computer but it did scale well on my TV. - I padded the video so that the divx player on my TV would not cut of the sub tittles. -
- "what is cmp 2"
- Comparison Function for Motion estimation. I tried using cmp and I think it made the video look a little better. -
- cmp 0 = default *
* cmp 2 = handamard = anime ? *
* cmp 3 = dct =? and good for live action I think.*
* -*
* subcomp 2 ? Is good for anime, acording to some video site I read.*
* "subcomp 2 good for anime." -*
* precmp 0 - is the default and fastest . 0 is sufficient for precmp. I don't know why it's just something I read online. -*
* mbd 2*
* mbd 2 = High Quality Macroblock Decision Algorithem. mbd 2 is the same as vhq.*
* -*
* mbd 1 is faster but not the best quality.*
* -*
* THE video I tested on my player was 352x240 ntsc and it looked OK.*
* The final video size ended up at 126MB . -*
* I all so test 640x480 video . playback looked good but my computer is slow 800mhz so I'm not going to code a lot of video at 640x480.

Friday, February 2, 2007

[3] Shakira - ILLEGAL . youtube. (FFMPEG xvid)

---------------removed embedded video-------------- sorry clogged tubes --------------removed embedded video------------- Shakira ILLegal - http://youtube.com/user/thornwolf - FFMPEG NOTES. ---------------------------------------------------------------------- ffmpeg -i *.flv -vcodec xvid -bf 2 -b 512 -bufsize 4096 -r 23.97 -s 320x240 -acodec mp3 -ab 128 -ac 1 -ss 00:00:12 new-320x240-xvidbf-shakira-ab128.AVI ----------------------------------------------------------------------- /////////////////////////////////////////////////////////////////////// ----------------------------------------------------------------------- Testing (XVID) codec with b frames (-bf 2). because when I uploaded DIV3 video to youtube the sound was out of sync . Lets see if using XVID will fix the sound sync. - youtube took along time to proces this video maybe it doesn't like b frames? Senator the tubes are clogged can you fix it

[2] FFMPEG Shakira underneath your clothe.



href= http://youtube.com/

Shakira underneath your clothe
-
http://youtube.com/user/thornwolf
-
VIDEO NOTE.
I did a 20 sec edit to remove
the opening clip of this video so that
it stars with the music.
-
enjoy
-
thx
-
FFMPEG NOTE.
------------------------------------------------
ffmpeg -i *.flv -vcodec msmpeg4 -b 512 -bufsize 4096 -r 23.97 -s 320x240 -acodec mp3 -ab 128 -ac 1 -ss 00:00:20 new-320x240-div3-shakira-ab128.AVI
-------------------------------------------------
(-ss 00:00:20) command removed the first 20 seconds of the video.
-
There are a couple more music videos I wont to upload
before posting some more DVD reviews stay tuned for more

[1]Shakira don't bother - youtube. (FFMPEG test)

---------------removed video ------------------------ I did not do a good job encoding the video so i romoved it. --------------- removedvideo --------- http://youtube.com/user/thornwolf - Shakira don't bother music video. - TEST NOTES: 1.Download video from youtube. 2.Trans code the (flash-video.flv) to (new-div3-video.AVI) with ffmpeg. 3.Test the (new-div3-video.AVI) with xine and or mplayer for quality. 4.Upload the video back onto youtube. 5.Post the video on my blog and write a review notes. ------------------------------------------------------------ ffmpeg -i flash-video.flv -vcodec msmpeg4 -b 512 -bufsize 4096 -r 23.97 -s 320x240 -acodec mp3 -ab 160 -ac 2 -t 00:04:29.8 new-div3-video.AVI ------------------------------------------------------------ THE REVIEW. Step 1# and step 2# went OK. - But step 3# reviled that the audio bit rate (-ab 96) was to low for a music video next time i will use (-ab 128) that usually sounds better. The low audio bit rate sounds off but I did not try to fix it on this test. - Step 4# went OK but uploading was a little slow. youtube ask for divx or xvid avi file to upload but I uploaded my (div3.avi) and it worked fine. - CONCLUSION. The test video came out OK if you consider the starting video quality was all ready junk because I downloaded it from youtube and re-trans coded the video. - UPDATE. I will download and trans code a few more videos for this blog and test adding a (youtube music video channel) and maybe a couple other video channels.

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 ,