Page 49 of 72 FirstFirst ... 39474849505159 ... LastLast
Results 481 to 490 of 711

Thread: HowTo: Encode Video for iPod Video

  1. #481
    Join Date
    Oct 2005
    Location
    Dallas
    Beans
    620
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: HowTo: Encode Video for iPod Video

    Woot! Bug I already fixed!

    Enjoy and happy encoding! Glad it's working for you!

  2. #482
    Join Date
    Apr 2007
    Beans
    7

    Re: HowTo: Encode Video for iPod Video

    Hello...

    I have gotten Vive to work on my PSP for SP mp4 profiles, but I really want to get AVC working. I tried it in Vive and got the following:

    Code:
    praetorian@Empire:~$ ffmpeg -i "/media/EXTERNAL_/TV/Firefly/05_Safe.avi" -f psp -vcodec h264 -maxrate 1000 -b 700 -bufsize 4096 -pass 2 -aspect 4:3 -s 320x240 -qmin 5 -qmax 6 -acodec aac -ab 192 -ar 44100 "/home/praetorian/a.mp4"
    FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2004 Fabrice Bellard
      configuration:  --enable-gpl --enable-pp --enable-pthreads --enable-vorbis --enable-libogg --enable-a52 --enable-dts --enable-libgsm --enable-dc1394 --disable-debug --enable-mp3lame --enable-faadbin --enable-faad --enable-faac --enable-xvid --enable-x264 --enable-amr_nb --enable-amr_wb --enable-shared --prefix=/usr 
      libavutil version: 0d.49.0.0
      libavcodec version: 0d.51.11.0
      libavformat version: 0d.50.5.0
      built on Mar 21 2007 14:14:05, gcc: 4.1.2 (Ubuntu 4.1.2-0ubuntu4)
    Input #0, avi, from '/media/EXTERNAL_/TV/Firefly/05_Safe.avi':
      Duration: 00:42:47.1, start: 0.000000, bitrate: 761 kb/s
      Stream #0.0: Video: mpeg4, yuv420p, 496x272, 23.98 fps(r)
      Stream #0.1: Audio: mp3, 48000 Hz, stereo, 32 kb/s
    File '/home/praetorian/a.mp4' already exists. Overwrite ? [y/N] y
    Output #0, psp, to '/home/praetorian/a.mp4':
      Stream #0.0: Video: h264, yuv420p, 320x240, q=5-6, pass 2, 700 kb/s, 23.98 fps(c)
      Stream #0.1: Audio: aac, 44100 Hz, stereo, 192 kb/s
    Stream mapping:
      Stream #0.0 -> #0.0
      Stream #0.1 -> #0.1
    [h264 @ 0xb7ed0f08]using SAR=1/1
    [h264 @ 0xb7ed0f08]using cpu capabilities MMX MMXEXT SSE SSE2 
    [h264 @ 0xb7ed0f08]ratecontrol_init: can't open stats file
    Error while opening codec for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height
    This is actually the problem recreated in terminal using the same command as in Vive, but I couldn't copy the output so I just re did it manually.
    I was wondering if I am missing the referenced "stats file" or if I have incorrect parameters.
    Any help is much appreciated.

    Thanks!

  3. #483
    Join Date
    Oct 2005
    Location
    Dallas
    Beans
    620
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: HowTo: Encode Video for iPod Video

    Ah, this issue. You see, the fine people at ffmpeg changed their bitrate from kb/s to b/s, putting things off by a value of 1024. The problem is the ffmpeg in Ubuntu uses kb/s, and the SVN uses b/s...it's an issue I'm trying to figure out how to tackle. Use 1024000 as your Max Bitrate and 716800 as your Bitrate, and life should be peachy.

  4. #484
    Join Date
    Oct 2005
    Location
    Dallas
    Beans
    620
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: HowTo: Encode Video for iPod Video

    I was wrong...it's a factor of 1000, not 1024. At any rate, the latest SVN checkout of Vive provides for kb/s, no matter what version of ffmpeg you use. Hooray standardization!

  5. #485
    Join Date
    Feb 2007
    Location
    New York
    Beans
    33
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: HowTo: Encode Video for iPod Video

    well, I've only been on ubuntu for about a month now, and while installing ffmpeg I got stuck. I did the code in the beginning
    "sudo apt-get install liblame-dev libxvidcore4-dev libx264-dev libfaac-dev libfaad2-dev
    sudo apt-get build-dep ffmpeg"

    then Without x264:
    "apt-get source ffmpeg
    cd ffmpeg-*/
    ./configure --enable-gpl --enable-pp --enable-vorbis \
    --enable-libogg --enable-a52 --enable-dts \
    --enable-dc1394 --enable-libgsm --disable-debug --enable-mp3lame \
    --enable-faad --enable-faac --enable-xvid --enable-pthreads --enable-shared
    make
    sudo make install"

    now in terminal it has this:
    "andrew@andrew-desktop:~/ffmpeg-0.cvs20060823$ "
    And I can't erase it or anything.
    What should I do, I'm running feisty fawn btw

  6. #486
    Join Date
    Oct 2005
    Location
    Dallas
    Beans
    620
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: HowTo: Encode Video for iPod Video

    Welcome to Linux, Andrew!

    This is what's called the command line. I'll break down what that shebangbang is:

    Code:
    andrew@andrew-desktop:~/ffmpeg-0.cvs20060823$
    andrew: Your username (assumedly you're named Andrew)
    @andrew-desktop: You are logged in at (@) the computer named "andrew-desktop"
    :~/ffmpeg-0.cvs20060823: You are looking at ( the folder ~/ffmpeg-0.cvs20060823 (~ is short for /home/andrew)

    You type in commands from there, and the magic happens. At any rate, if ffmpeg installed successfully, you can then install Vive or ipodvidenc or just use the ffmpeg command line. For example, if you wanted to encode a wmv movie to an avi, in the command line, you would type:

    Code:
    ffmpeg -f avi -vcodec mpeg4 -acodec mp3 -i /path/to/movie.wmv /path/to/movie.avi
    So that your command prompt would look like, before you hit enter:
    Code:
    andrew@andrew-desktop:~/ffmpeg-0.cvs20060823$ ffmpeg -f avi -vcodec mpeg4 -acodec mp3 -i /path/to/movie.wmv /path/to/movie.avi
    Here's a good command line reference guide. You don't need to memorize all of it, but scanning over it will give you a sense of what the terminal can do.

  7. #487
    Join Date
    Feb 2007
    Location
    New York
    Beans
    33
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: HowTo: Encode Video for iPod Video

    Thanks for the speedy reply and help endersshadow, its greatly appreciated. So, does it mean that ffmpeg is installed (or how can I tell)? I can't use my ubuntu machine till tomorrow, as I'm camping and right now I'm on a HP laptop with xp (bleh!) Thanks in advance.

  8. #488
    Join Date
    Oct 2005
    Location
    Dallas
    Beans
    620
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: HowTo: Encode Video for iPod Video

    Quote Originally Posted by Donnie Darko View Post
    Thanks for the speedy reply and help endersshadow, its greatly appreciated. So, does it mean that ffmpeg is installed (or how can I tell)? I can't use my ubuntu machine till tomorrow, as I'm camping and right now I'm on a HP laptop with xp (bleh!) Thanks in advance.
    Assuming that you didn't get any error messages, then yes, yes it is installed. It's important to check the last 15 or so lines of output from installs. It generally contains very important information

  9. #489
    Join Date
    Jan 2006
    Location
    MA
    Beans
    91
    Distro
    Xubuntu

    Re: HowTo: Encode Video for iPod Video

    Hey thanks for putting this How-To together. It's great! One quick problem (maybe) though, that maybe someone can help with.

    I used to have ffmpeg installed, and had a script to do my iPod video converting, and all worked well. The CLI of ffmpeg would have a nice output, showing what time index it was at, etc. that would allow me to figure out how long the conversion would (roughly) take.

    I recently had to rebuild my Ubuntu box (totally unrelated), and am trying to get things back the way they were. I couldn't find the original install method I had used, so I used the one you had in the first post (used the SVN method)

    I'm encoding my first video file now, and the output is a little strange to me. Instead of the "full-terminal-window" sized CLI interface, that updates on it's own, I'm getting thousands and thousands of scrolling messages that look like this:
    Code:
    [mpeg4 @ 0xb7d91488]rc buffer underflow9kB time=267.9 bitrate= 394.1kbits/s
    [mpeg4 @ 0xb7d91488]rc buffer underflow
    [mpeg4 @ 0xb7d91488]rc buffer underflow
    [mpeg4 @ 0xb7d91488]rc buffer underflow
    [mpeg4 @ 0xb7d91488]rc buffer underflow
    [mpeg4 @ 0xb7d91488]rc buffer underflow0kB time=268.0 bitrate= 394.0kbits/s
    [mpeg4 @ 0xb7d91488]rc buffer underflow
    [mpeg4 @ 0xb7d91488]rc buffer underflow
    [mpeg4 @ 0xb7d91488]rc buffer underflow
    [mpeg4 @ 0xb7d91488]rc buffer underflow
    [mpeg4 @ 0xb7d91488]rc buffer underflow2kB time=268.2 bitrate= 393.8kbits/s
    [mpeg4 @ 0xb7d91488]rc buffer underflow
    And so on. So just about every 1-2 tenths of a second of video encoding, it's throwing up these lines in the terminal window. Nonstop...

    Any ideas?

    Thanks

  10. #490
    Join Date
    Oct 2005
    Location
    Dallas
    Beans
    620
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: HowTo: Encode Video for iPod Video

    What ffmpeg command or options did you use?

Page 49 of 72 FirstFirst ... 39474849505159 ... 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
  •