To launch the terminal in Gnome...
Launch terminal in Chinese version of ubuntu. |
Launch terminal in English version of ubuntu. |
Unless you already have mencoder installed, otherwise, the first thing you have to do is to install mencoder after launching the terminal.
You need to type the following "sudo apt-get install mencoder" after the command prompt. After you press the enter key, a second line will appear asking for your password: "[sudo] password for chang:". After you type in the administrative password, the installation process will begin.
Second, you will need to figure out where the ogg file is located and how to switch to that directory.
To figure out where you are currently, you can type in the "pwd" command and press enter key...
chang@chang-desktop:~$ pwd
/home/chang
In the above two lines, I typed in "pwd" after the command prompt. After hitting the "enter" key, the second line appears "/home/chang"-- telling me that this is the directory I am in. You could also type in the "ls" command to list all items in the "chang" director.
In this scenario, the "usable" movie file in ogg format is located under 影片 (my video) directory. Since I know that the "影片" directory is a subdirectory of "chang," when writing the command line code to run mencoder, I could either switch to the "影片" directory first or include the path info in the command line as well.
By the way, "usable" in the command line is the file name of my ogg file and "usability.avi" is the file name I assigned to the output file. In other words, you can replace usable with the name of your file and "usability.avi" with whatever output file name you desire.
Switching to the "影片" directory before running the command to convert the file. |
You can also provide the path info directly. |
If you encounter messages like the following and you are sure that the file name is correct, you might have provided the wrong path:
chang@chang-desktop:~$ mencoder ./usable -oac mp3lame -ovc lavc -o usability.avi
MEncoder SVN-r1.0~rc3+svn20090426-4.4.3 (C) 2000-2009 MPlayer Team
File not found: './usable'
Failed to open ./usable.
Cannot open file/device.
Exiting...
chang@chang-desktop:~$
Otherwise, if you see text like the following going on and on and on.... congrats! Conversion might have been in process... and... good luck!
Hope this helps!
P.S. You can skip texts from this point on... this is but an example of the log..
chang@chang-desktop:~$ mencoder ./影片/usable -oac mp3lame -ovc lavc -o output_movie.avi
MEncoder SVN-r1.0~rc3+svn20090426-4.4.3 (C) 2000-2009 MPlayer Team
success: format: 0 data: 0x0 - 0x3710b7c
[Ogg] stream 0: video (Theora v3.2.1), -vid 0
[Ogg] stream 1: audio (Vorbis), -aid 0
Ogg file format detected.
VIDEO: [theo] 720x576 24bpp 15.000 fps 0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:18 fourcc:0x6F656874 size:720x576 fps:15.000 ftime:=0.0667
=======================
===================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 112.0 kbit/7.94% (ratio: 14000->176400)
Selected audio codec: [ffvorbis] afm: ffmpeg (FFmpeg Vorbis)
========================================
==================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
[theora @ 0x88541e0]Missing extradata!
Could not open codec.
VDecoder init failed :(
Opening video decoder: [theora] Theora/VP3
VDec: vo config request - 720 x 576 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
videocodec: libavcodec (720x576 fourcc=34504d46 [FMP4])
Selected video codec: [theora] vfm: theora (Theora (free, reworked VP3))
==========================================================================
MP3 audio selected.
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Pos: 256.9s 3854f (100%) 33.45fps Trem: 0min 28mb A-V:0.070 [803:126]
Flushing video frames.
Writing index...
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Video stream: 803.278 kbit/s (100409 B/s) size: 25798599 bytes 256.933 secs 3854 frames
Audio stream: 126.392 kbit/s (15798 B/s) size: 4067240 bytes 257.437 secs
chang@chang-desktop:~$
No comments:
Post a Comment