Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: [SOLVED] How do I navigate to different folders in the Terminal?

  1. #1
    Join Date
    Sep 2007
    Beans
    234

    [SOLVED] How do I navigate to different folders in the Terminal?

    I am trying to use this command:
    mencoder <filename.avi> -ovc xvid -oac mp3lame -o <output.avi>
    but I always get and error saying that it cannot find the file. I assume that I must navigate in the Terminal to the proper folder but I do not know how.

  2. #2
    Join Date
    May 2007
    Location
    The New Forest
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: How do I navigate to different folders in the Terminal?

    Using cd - when you start you terminal you are in your /home - to get to the desktop, ~ is a shorthand to home

    Code:
    cd Desktop
    to get to for instance the X11 folder in etc

    Code:
    cd /etc/X11
    Case is important, desktop is completely different to Desktop

    So if the file is on the desktop you could run it without changing the directory

    Code:
    mencoder ~/Desktop/<filename.avi> -ovc xvid -oac mp3lame -o <output.avi>
    Last edited by Elfy; September 2nd, 2008 at 08:57 PM.

  3. #3
    Join Date
    May 2008
    Location
    Beverley, UK
    Beans
    733
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: How do I navigate to different folders in the Terminal?

    I would also add:

    Code:
    cd ..
    This is used to change to the current directories parent directory. For example, the parent directory of the X11 folder is /etc.
    You can also use:

    Code:
    cd ../..
    This will go to the parent of the parent directory. You can place as many "../" directives here as you want, so it can be used as a long winded way to get back to the root of the partition. E.g. if you were in your users Desktop folder, you can get back to the root of the partition by typing:

    Code:
    cd ../../..
    Everything that has a Beginning, has an End

  4. #4
    Join Date
    Oct 2005
    Location
    Linköping, Sweden
    Beans
    56
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: How do I navigate to different folders in the Terminal?

    Also
    Code:
    cd ~
    takes you to your Home folder
    Using Intel Core2Duo with 11.10 64-bit
    How many roads must a man walk down?
    - 42

  5. #5
    Join Date
    May 2007
    Location
    The New Forest
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: How do I navigate to different folders in the Terminal?

    To add further this might be wortha look

    https://help.ubuntu.com/7.04/basic-c...C/ar01s03.html

    You can also get the man page for most things in terminal, it's a quick way to look at commands you might be running -

    man cd

  6. #6
    Join Date
    Oct 2005
    Location
    De Kwakel - Holland
    Beans
    3,657

    Re: How do I navigate to different folders in the Terminal?

    Quote Originally Posted by Nevyn View Post
    Also
    Code:
    cd ~
    takes you to your Home folder
    You can save 2 keys
    Code:
    cd

  7. #7
    Join Date
    Sep 2007
    Beans
    234

    Re: How do I navigate to different folders in the Terminal?

    Thanks for all the help and info. I decided to move the file to my Desktop to be sure I could make it work but when I run Mencoder I get this error. Does anyone know what the problem might be?

    mencoder ~/Desktop/Video1.avi -ovc xvid -oac mp3lame -o output.avi
    MEncoder 2:1.0~rc2-0ubuntu13+medibuntu1 (C) 2000-2007 MPlayer Team
    CPU: Intel(R) Pentium(R) 4 CPU 2.93GHz (Family: 15, Model: 4, Stepping: 1)
    CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
    Compiled with runtime CPU detection.
    success: format: 0 data: 0x0 - 0x2bc15000
    AVI file format detected.
    [aviheader] Video stream found, -vid 0
    [aviheader] Audio stream found, -aid 1
    VIDEO: [MP42] 480x360 24bpp 29.970 fps 921.6 kbps (112.5 kbyte/s)
    [V] filefmt:3 fourcc:0x3234504D size:480x360 fps:29.97 ftime:=0.0334
    ================================================== ========================
    Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
    AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
    Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
    ================================================== ========================
    xvid: using library version 1.1.2 (build xvid-1.1.2)
    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
    Selected video codec: [ffmp42] vfm: ffmpeg (FFmpeg M$ MPEG-4 v2)
    ================================================== ========================
    MP3 audio selected.
    VDec: vo config request - 480 x 360 (preferred colorspace: Planar YV12)
    VDec: using Planar YV12 as output csp (no 0)
    Movie-Aspect is undefined - no prescaling applied.
    videocodec: XviD (480x360 fourcc=44495658 [XVID])
    xvid: par=0/0 (vga11), displayed=480x360, sampled=480x360
    xvid: you must specify one or a valid combination of 'bitrate', 'pass', 'quantizer' settings
    FATAL: Cannot initialize video driver.
    VDec: vo config request - 480 x 360 (preferred colorspace: Planar YV12)
    VDec: using Planar YV12 as output csp (no 0)
    Movie-Aspect is undefined - no prescaling applied.
    videocodec: XviD (480x360 fourcc=44495658 [XVID])
    xvid: par=0/0 (vga11), displayed=480x360, sampled=480x360
    xvid: you must specify one or a valid combination of 'bitrate', 'pass', 'quantizer' settings
    FATAL: Cannot initialize video driver.

    Exiting...

  8. #8
    Join Date
    Feb 2006
    Beans
    5,714

    Re: How do I navigate to different folders in the Terminal?

    mencoder ~/Desktop/Video1.avi -ovc xvid -oac mp3lame -o output.avi
    MEncoder 2:1.0~rc2-0ubuntu13+medibuntu1 (C) 2000-2007 MPlayer Team
    maybe I'm missing something but is there a reason why you are "converting" from .avi to .avi?
    Debian Testing(64bit) + XFCE4 AM2 5200+ ATI Radeon HD4350, 4gig RAM,320Gig and 750gig HDs

    what's the difference between an answer and a solution? An answer is what they want to hear, a solution is what they don't want to hear

  9. #9
    Join Date
    Sep 2007
    Beans
    234

    Re: How do I navigate to different folders in the Terminal?

    Quote Originally Posted by halitech View Post
    maybe I'm missing something but is there a reason why you are "converting" from .avi to .avi?
    It needs to be a format that my Xbox 360 can read.

  10. #10
    Join Date
    Sep 2007
    Location
    over there
    Beans
    2,430
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How do I navigate to different folders in the Terminal?

    I think this is your problem:

    xvid: you must specify one or a valid combination of 'bitrate', 'pass', 'quantizer' settings
    I have to echo what halitech said: if you "convert" a file from .avi to .avi, you are left with an .avi file -which is what you started with, is it not?

    Or maybe, like halitech, I am missing something?
    "All people are scum. No matter what they look like." ~ Spider Jerusalem, Transmetropolitan #4
    blog


Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •