หากยังไม่ติดตั้ง ก็ติดตั้งด้วย
sudo apt-get install mencoder
แปลงไฟล์ MOD เป็น mp4 แบบ widescreen (HD)
mencoder -vf scale=640:360 -oac mp3lame -lameopts abr:br=56 -srate 22050 -ovc lavc -lavcopts vcodec=mpeg4 -o output.mp4 input.mod
รวมไฟล์ avi เป็น mp4
mencoder file1.avi file2.avi -o video3.mp4 -of lavf -lavfopts format=mp4 -vf harddup -oac lavc -ovc lavc -lavcopts vcodec=mpeg1vide
คำสั่งสำหรับแปลงไฟล์จากต้นฉบับไปเป็น FLV (Flash Video) โดยรวมหลาย ๆ ไฟล์เข้าด้วยกัน คือ
mencoder -of lavf -oac mp3lame -lameopts abr:br=56 -srate 22050 -ovc lavc -lavcopts \ -vf harddup -ofps 24000/1001 \ vcodec=flv:vbitrate=400:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 \ -o output.flv input1.mp4 input2.mp4
หรือ
mencoder -of lavf -oac mp3lame -lameopts abr:br=56 -srate 22050 -ovc lavc \ -vf harddup -ofps 24000/1001 -lavcopts \ vcodec=flv:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 \ -o output.flv input.avi
Join wmv files
mencoder -oac copy -ovc copy -o NEWVIDEOFILE part1.wmv part2.wmv part2.wmv ...
or just
mencoder -oac copy -ovc copy -o NEWVIDEOFILE part*
เทคนิค หากต้องการให้ได้คุณภาพที่ดีขึ้น ก็สามารถเปลี่ยนคุณภาพของเสียงให้ดีขึ้นจาก -srate 11025 เป็น -srate 22050 และ คุณภาพของภาพจาก vbitrate:400 vbitrate:500 ก็ได้
มี options เพิ่มเติมเช่น
- หากต้องการ 1000 เฟรมแรก ใช้ -frames 1000
- เริ่มแปลงตั้งแต่วินาทีที่ 10 เป็นต้นไป ใช้ -ss 10
- scale ได้หลายขนาด เช่น HD 640x360 , 1280x720
you can also use mpgtx (install it via APT) then just
mpgtx -j file01.mpg file02.mpg -o output_name.mpg
EXAMPLES OF MENCODER USAGE
Encode DVD title #2, only selected chapters:
mencoder dvd://2 -chapter 10-15 -o title2.avi -oac copy -ovc lavc -lavcopts vcodec=mpeg4
Encode DVD title #2, resizing to 640x480:
mencoder dvd://2 -vf scale=640:480 -o title2.avi -oac copy -ovc lavc -lavcopts vcodec=mpeg4
Encode DVD title #2, resizing to 512xHHH (keep aspect ratio):
mencoder dvd://2 -vf scale -zoom -xy 512 -o title2.avi -oac copy -ovc lavc -lavcopts vcodec=mpeg4
The same, but with bitrate set to 1800kbit and optimized macroblocks:
mencoder dvd://2 -o title2.avi -oac copy -ovc lavc -lavcopts vcodec=mpeg4:mbd=1:vbitrate=1800
The same, but with MJPEG compression:
mencoder dvd://2 -o title2.avi -oac copy -ovc lavc -lavcopts vcodec=mjpeg:mbd=1:vbitrate=1800
Encode all *.jpg files in the current directory:
mencoder "mf://*.jpg" -mf fps=25 -o output.avi -ovc lavc -lavcopts vcodec=mpeg4
Encode from a tuner (specify a format with -vf format):
mencoder -tv driver=v4l:width=640:height=480 tv:// -o tv.avi -ovc raw
Encode from a pipe:
rar p test-SVCD.rar | mencoder -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=800 -ofps 24 -
View full document at www.mplayerhq.hu
แหล่งอ้างอิง
Now I use FreeMind but I recieved MindManager files from friend.
The way to convert :
- use Online MindMap® conversion tools
- use MindManager ↔ FreeMind
- FreeMind version 0.8.1 can import MindManager X5
Thank for a good work.
I try to copy a .dat movie file to harddisk. Easy way with these step
- Install the 'vcdimager' from synaptic
- Type in terminal
and computer will copying the .dat file automatically to /home/user directory...vcdxrip
ตอน update kernel ครั้งก่อน ทำให้ Virtualbox ค้าง ขึ้นข้อความ Spawing.... แล้วก็ไม่ไปไหนเลย
แก้ไขด้วยคำสั่ง
sudo /etc/init.d/vboxdrv setup
แล้วก็รออีกเช่นกัน
วันนี้ตัดสินใจ upgrade Ubuntu 8.04.1 เป็น 8.10
คำสั่ง
sudo update-manager -d
แล้วก็คอย zzzzzzzzzzzzzzzzzzzzzzzzzzz
Update :
8.30am Upgrading complete on morning of next day.
วันนี้ซื้อฮาร์ดดิสก์ใหม่ 500 GB เพื่อมาลง Ubuntu โดยเฉพาะ สืบเนื่องจากตัวเก่า (80 GB) มันเริ่มจะเต็มแล้ว ทั้งโปรแกรม ทั้งข้อมูล เลยถือโอกาสเปลี่ยนตัวใหม่เสียเลย
ตอนนี้ติดตั้ง Ubuntu (Pirate Edition) เรียบร้อยแล้ว ต่อเน็ตได้แล้ว กำลัง Update อยู่
แล้วคงต้องเริ่มทยอยติดตั้ง software สำหรับใช้งานต่อไป
ยังวางแผนเรื่องการแบ่ง partition ว่าจะแบ่งอย่างไรดี ตอนนี้ลองแบ่งให้ / จำนวน 300 GB /home 195 GB /swap 5 GB ไม่รู้ว่าทำถูกต้องหรือเปล่า (ขอค้นหาข้อมูลเพิ่มเติมสักหน่อย ว่าคนอื่นเขาแบ่ง partition กันอย่างไร)
10pm หลังจากค้นหาการแบ่ง partition และสำรวจข้อมูลตนเอง จึงขอแบ่งดังนี้
Mount point Used New Size
/ 1GB 10GB
/home 54GB 400GB
/httpdocs 7GB 50GB
/tmp - 10GB
/usr 3GB 10GB
/var 1GB 10GB
/swap 2GB 2GB
2am กว่าจะไล่ลงโปรแกรมที่ต้องใช้งาน และ copy ไฟล์ พร้อมทดสอบใช้งานจริง..
Today!!!! There is new language in "What languages does AdSense support?" page.
Thai language was add in Google Adsense already.
ไม่ต้องกลัวว่าการแสดง Google Adsense ในหน้าเว็บภาษาไทยจะโดยแบน account อีกแล้วครับ.
Google Adsense can be for sites with content primarily in:
Arabic Hungarian
Bulgarian Italian
Chinese (simplified) Japanese
Chinese (traditional) Korean
Croatian Norwegian
Czech Polish
Danish Portuguese
Dutch Romanian
English Russian
Finnish Serbian
French Slovak
German Spanish
Greek Swedish
Hebrew Thai
Turkish
A good news in this morning.
Start upgrade from Ubuntu 8.04 to 8.10 tonight.
Take time 13 hours.
Starting and go to bed.....
Update
9am Wake up , disconnect , start again.
เว็บไซท์ http://irrigation.rid.go.th/rid16/ranode มีปัญหามาหลายวันแล้ว วันนี้เลยลองหาทางแก้ไขดู
ปัญหา
Charactor Encoding ผิดพลาด
ใน HTML Code มี meta http-equiv="Content-Type" content="text/html; charset=utf-8" แต่ในเมนู View/Charactor Encoding ยังคงเป็น iso-8859-11 อยู่ ทำให้แสดงภาษาไทยผิดพลาด
ตรวจสอบใน phpinfo ปรากฎว่าใน HTTP Response Headers มีค่า Content-Type เป็น text/html; charset=iso-8859-11 ไม่ยอมเปลี่ยนเป็น utf-8 ตาม meta http-equiv="Content-Type"
วิธีแก้ไข
มีอยู่ 3 จุด (เท่าที่คิดได้) คือ
- เพิ่มคำสั่งในไฟล์ .htaccess
AddDefaultCharset utf-8
- เพิ่มคำสั่งในไฟล์ index.php
iniset('defaultcharset', 'utf-8');
- เพิ่มคำสั่งในไฟล์ index.php
header('Content-Type: text/html;charset=UTF-8');
ที่ทำแล้วได้ผลคือเพิ่มคำสั่งข้างล่างนี้ในไฟล์ index.php
header('Content-Type: text/html;charset=UTF-8');
Python Learning Website
- Web Python Tutorial
Tutorial mod_python on Apache. - Python on DreamHost.com
How to write Python on DreamHost.com. - ภาษา Python: โมดูลและการโปรแกรมเชิงวัตถุ
อธิบายหลักการโปรแกรมด้วยภาษา Python ในส่วนที่เกี่ยวข้องกับโมดูลและการโปรแกรมเชิงวัตถุ