wenqi's profile''研究就是search search再rese...PhotosBlogLists Tools Help

''研究就是search search再research.''

wenqi li

November 17

rmvb to mp4

mencoder Hinter.Kaifeck.rmvb -oac lavc -lavcopts acodec=mp2:abitrate=64 -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=500 -of avi -o Hinter.Kaifeck.mpg

August 11

Convert PDF to Text in Linux

A PDF file can be converted into text by the Tool belonging to the XPDF package pdftotext:

pdftotext irgendein.pdf

This instruction produces a text file with the name irgendein.txt with contents of any PDF. They can work on this file now completely normally. The parameter - layout ensures for the fact that the appearance of the PDF file is transferred as far as possible to the text file:

pdftotext -layout irgendein.pdf

If you want to transfer only certain sides from a PDF file to the text excerpt, goes with the parameter - f (for first PAGE) and - l (for last PAGE):

pdftotext -f 3 -l 7 irgendein.pdf

in this example only the pages from 3 to 7 after irgendein.txt would be taken over.

May 11

彪悍的回答:)

             Q: Do Chinese eat dogs?
    A: Yes.We eat a lot of dogs. And cats,too. Especially on your "Thanks giving" day. Besides, turkeys are our favorite pets. We regard turkeys as human's best friends. In China only the most uneducated eat turkeys.
    
    
    
    Q: China is becoming strong. Does your government want to take over the world?
    A: Yes, absolutely. As soon as we become powerful, we will invade Iraq and Afghanistan.
    
    
    
    Q: Why doesn't your government give Tibet back to its monks?
    A: Because the monks want to help the Seminoles take back Florida.
    注:Seminoles (印第安人的)塞米诺尔族
    
    
    Q: Are the products made in China very cheap?
    A: Yes. Were we using black slaves, the price would be even cheaper.
    
    
    Q: You have 1.4 billion people. Now what do you want to do with it?
    A: Find a new planet. Kill the native people there, and move in.
    
    
    Q: Why you are the only kids in your family?
    A: Because our parents don't fuck around.
April 23

在线视频地址解析

今天找到个好东西:)

http://www.downflv.com/




April 07

mencoder 和ffmpeg常用命令

先从Mencoder这个开始,将所有格式转AVI,

RMVB转AVI

mencoder 1.rmvb -oac mp3lame -lameopts preset=64 -ovc xvid -xvidencopts bitrate=600 -of avi -o rmvb.avi

RM转AVI

mencoder 1.rm -oac mp3lame -lameopts preset=64 -ovc xvid -xvidencopts bitrate=600 -of avi -o rm.avi

MPEG转AVI

mencoder mp4.mpeg -oac mp3lame -lameopts preset=64 -ovc xvid -xvidencopts bitrate=600 -of avi -o mp4.avi

MOV转AVI

mencoder qtime.mov -oac mp3lame -lameopts preset=64 -ovc xvid -xvidencopts bitrate=600 -of avi -o qtime.avi

WMV转AVI 包括WMV7到WMV9,只实验到WMV9

mencoder m7.wmv -oac mp3lame -lameopts preset=64 -ovc xvid -xvidencopts bitrate=600 -of avi -o m7.avi

RV转AVI

mencoder 1.rv -oac mp3lame -lameopts preset=64 -ovc xvid -xvidencopts bitrate=600 -of avi -o rv.avi

等等……格式,参数不变,改文件名就好了。

接下来是FFMPEG上场。

AVI转FLV

ffmpeg -i test.avi -ab 56 -ar 22050 -b 500 -r 15 -s 320x240 test.flv

抓图JPG。

ffmpeg -i 2.wmv -y -f image2 -ss 8 -t 0.001 -s 350x240 test.jpg

3GP转FLV

mencoder -vf scale=320:240 -ffourcc FLV1 -of lavf -lavfopts i_certify_that_my_video_stream_does_not_use_b_frames -ovc lavc -lavcopts vcodec=flv:vbitrate=200 -srate 22050 -oac lavc -lavcopts acodec=mp3:abitrate=56 ok\1.3gp -o ok\3gp.flv

MOV转FLV

mencoder -vf scale=320:240 -ffourcc FLV1 -of lavf -lavfopts i_certify_that_my_video_stream_does_not_use_b_frames -ovc lavc -lavcopts vcodec=flv:vbitrate=200 -srate 22050 -oac lavc -lavcopts acodec=mp3:abitrate=56 ok\qtime.mov -o ok\mov.flv

RMVB转FLV

mencoder -vf scale=320:240 -ffourcc FLV1 -of lavf -lavfopts i_certify_that_my_video_stream_does_not_use_b_frames -ovc lavc -lavcopts vcodec=flv:vbitrate=200 -srate 22050 -oac lavc -lavcopts acodec=mp3:abitrate=56 ok\1.rmvb -o ok\rmvb.flv

WMV转FLV

mencoder -vf scale=320:240 -ffourcc FLV1 -of lavf -lavfopts i_certify_that_my_video_stream_does_not_use_b_frames -ovc lavc -lavcopts vcodec=flv:vbitrate=200 -srate 22050 -oac lavc -lavcopts acodec=mp3:abitrate=56 ok\m9.wmv -o ok\m9.flv

等等等…………

以上的参数通用,只要在输入的ok\m9.wmv换成你自己相应的格式就好,绝对可以,这次测试完全OK,效果点这里,给大家看看,我近期的成果,已实现的。

裁图方面,跟以前一样的,我再贴一份。

ffmpeg -i ok\3gp.flv -y -f image2 -ss 8 -t 0.001 -s 320x240 3gp.jpg

ffmpeg -i ok\mov.flv -y -f image2 -ss 8 -t 0.001 -s 320x240 mov.jpg

ffmpeg -i ok\mpeg.flv -y -f image2 -ss 8 -t 0.001 -s 320x240 mpeg.jpg

ffmpeg -i ok\mp1.flv -y -f image2 -ss 8 -t 0.001 -s 320x240 mp1.jpg

ffmpeg -i ok\mp2.flv -y -f image2 -ss 8 -t 0.001 -s 320x240 mp2.jpg

ffmpeg -i ok\rm.flv -y -f image2 -ss 8 -t 0.001 -s 320x240 rm.jpg

ffmpeg -i ok\rmvb.flv -y -f image2 -ss 8 -t 0.001 -s 320x240 rmvb.jpg

ffmpeg -i ok\rv.flv -y -f image2 -ss 8 -t 0.001 -s 320x240 rv.jpg

ffmpeg -i ok\mp4.flv -y -f image2 -ss 8 -t 0.001 -s 320x240 mp4.jpg

ffmpeg -i ok\avi.flv -y -f image2 -ss 8 -t 0.001 -s 320x240 avi.jpg

ffmpeg -i ok\m7.flv -y -f image2 -ss 8 -t 0.001 -s 320x240 m7.jpg

ffmpeg -i ok\m8.flv -y -f image2 -ss 8 -t 0.001 -s 320x240 m8.jpg

ffmpeg -i ok\m9.flv -y -f image2 -ss 8 -t 0.001 -s 320x240 m9.jpg


以上转完FLV,有个缺陷,就是FLV播放时不能拖放,要用下面的一个软件来修复。

在服务器上自动转,用命令行的。用这个,
flvmdigui.exe 要有用户界面的,手动修复的,用这个

flvmdi.exe 使用方法:
命令提示符下输入>flvmdi inputFile [outputFile][/s] [/x] [/e] [/k]

给个例子,后面的参数不加也可以修复,比如。

flvmdi m7.flv

这样就行了。

 
Roma  
Photo 1 of 75