Tanya :
Mas, tahu konverter ogv ke flv via terminal ndak ? Saya menggunakan Ubuntu Lucid
Jawab :
Coba mencoder
Install dengan :
sudo apt-get install mencoder
Lalu gunakan perintah :
mencoder -of lavf -oac mp3lame -lameopts abr:br=56 -srate 22050 -ovc lavc \ -lavcopts vcodec=flv:vbitrate=250:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 \ -vf scale=640:480 -o filekeluaran.flv fileinput.ogv
Keterangan :
mencoder : Menjalankan program mencoder
-of lavf : Melakuan enkoding video dengan libavformat muxers
-oac mp3lame : Melakukan enkoding audio dengan LAME menjadi MP3
-lameopts : opsi untuk mp3lame
abr : average bit rate
:br : bitrate dalam kbps –> 56 berarti 56 kbps
-srate : memilih sampel rate keluaran yang ingin digunakan
-ovc lavc : Melakukan enkoding video dengan libavcodec codec.
-lavcopts : Menetapkan av codec yang diinginkan yakni : vcodec=flv:vbitrate=250:mbd=2:mv0:trell:v4mv:cbp:last_pred=3
Contoh :
mencoder -of lavf -oac mp3lame -lameopts abr:br=56 -srate 22050 -ovc lavc -lavcopts vcodec=flv:vbitrate=250:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 -vf scale=640:480 -o outputmovie.flv inkscapegradasiwarna.ogv
Anda akan melihat proses konversi seperti berikut, lamanya bergantung besarnya file yang sedang anda konversi.
MEncoder SVN-r1.0~rc3+svn20090426-4.4.3 (C) 2000-2009 MPlayer Team success: format: 0 data: 0x0 - 0x86bad Ogg stream 0 is of an unknown type [Ogg] stream 1: video (Theora v3.2.1), -vid 0 [Ogg] stream 2: audio (Vorbis), -aid 0 Ogg file format detected. VIDEO: [theo] 1280x800 24bpp 15.000 fps 0.0 kbps ( 0.0 kbyte/s) [V] filefmt:18 fourcc:0x6F656874 size:1280x800 fps:15.000 ftime:=0.0667 ========================================================================== Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders AUDIO: 22050 Hz, 1 ch, s16le, 90.0 kbit/25.51% (ratio: 11248->44100) Selected audio codec: [ffvorbis] afm: ffmpeg (FFmpeg Vorbis) ========================================================================== ** MUXER_LAVF ***************************************************************** REMEMBER: MEncoder's libavformat muxing is presently broken and can generate INCORRECT files in the presence of B-frames. Moreover, due to bugs MPlayer will play these INCORRECT files as if nothing were wrong! ******************************************************************************* OK, exit. Opening video filter: [expand osd=1] Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1 Opening video filter: [scale w=640 h=480] ========================================================================== Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family [theora @ 0x8b4d500]Missing extradata! Could not open codec. VDecoder init failed :( Opening video decoder: [theora] Theora/VP3 VDec: vo config request - 1280 x 800 (preferred colorspace: Planar YV12) VDec: using Planar YV12 as output csp (no 0) Movie-Aspect is 1.60:1 - prescaling to correct movie aspect. SwScaler: reducing / aligning filtersize 9 -> 8 Last message repeated 1 times SwScaler: reducing / aligning filtersize 8 -> 7 Last message repeated 1 times [swscaler @ 0x8c69340]BICUBIC scaler, from yuv420p to yuv420p using MMX2 [swscaler @ 0x8c69340]using 8-tap MMX scaler for horizontal luminance scaling [swscaler @ 0x8c69340]using 8-tap MMX scaler for horizontal chrominance scaling [swscaler @ 0x8c69340]using n-tap MMX scaler for vertical scaling (YV12 like) [swscaler @ 0x8c69340]1280x800 -> 640x480 videocodec: libavcodec (640x480 fourcc=31564c46 [FLV1]) [VE_LAVC] High quality encoding selected (non-realtime)! Selected video codec: [theora] vfm: theora (Theora (free, reworked VP3)) ========================================================================== MP3 audio selected. VIDEO CODEC ID: 22 AUDIO CODEC ID: 15001, TAG: 0 Writing header... [flv @ 0x8b4ac90]Codec for stream 0 does not use global headers but container format requires global headers [flv @ 0x8b4ac90]Codec for stream 1 does not use global headers but container format requires global headers Pos: 6.3s 94f (99%) 33.58fps Trem: 0min 0mb A-V:0.062 [200:51] Flushing video frames. Writing index... Video stream: 200.364 kbit/s (25045 B/s) size: 156952 bytes 6.267 secs 94 frames Audio stream: 51.192 kbit/s (6398 B/s) size: 37443 bytes 5.851 secs
Gampang Bukan ?
Selamat Mencoba
Mas.,.
bisa jelaskan.,.
perbedaan mencoder dengan ffmpeg apa saja.,.?
Syukran., ^^