แปลงวิดีโอสำหรับ HTML5 บน Linux ด้วย ffmpeg
1. แปลงเป็น MP4 (รองรับ IE11 และเก่ากว่า)
ใช้ Video Codec H.264 และ Audio Codec AAC:
ffmpeg -i input.mov -vcodec h264 -acodec aac -strict -2 output.mp4
2. แปลงเป็น MP4 รุ่นเข้ากันได้สูงสุด (QuickTime, ไม่มีเสียง)
ffmpeg -an -i input.mov -vcodec libx264 -pix_fmt yuv420p -profile:v baseline -level 3 output2.mp4
3. แปลงเป็น OGG สำหรับ Firefox
ติดตั้ง ffmpeg2theora ก่อน แล้วใช้ไฟล์ output จากขั้นตอนก่อนหน้า:
ffmpeg2theora -o video_out_file.ogv output.mp4
จะได้ไฟล์ .ogv ที่เล่นได้ใน Firefox