Has anyone successfully gotten ffmpeg from fink to successfully encode an avi 
file for an ipod?  ( I have a nano.).

I found a reasonably nice script (at bottom) which first used "aac" as the 
audio codec.  That didn't work, so I did an "ffmpeg -formats | grep aac" and 
found libfaac.  In my vane attempt at using libfaac, I get this error:
FFmpeg version UNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
  configuration: --prefix=/sw --mandir=/sw/share/man --enable-shared 
--enable-gpl --enable-pp --enable-swscaler --enable-pthreads --enable-x11grab 
--enable-liba52 --enable-libamr-nb --enable-libfaac --enable-libfaad 
--enable-libgsm --enable-libmp3lame --enable-libtheora --enable-libvorbis 
--enable-libx264 --enable-libxvid --disable-mmx --disable-iwmmxt 
--disable-altivec
  libavutil version: 49.6.0
  libavcodec version: 51.49.0
  libavformat version: 52.2.0
  built on Mar  1 2009 08:07:15, gcc: 4.0.1 (Apple Inc. build 5465)

Seems stream 0 codec frame rate differs from container frame rate: 23.98 
(65535/2733) -> 23.98 (23976024/1000000)
Input #0, avi, from 'lost.s05e10.hdtv.xvid-xor.avi':
  Duration: 00:41:16.5, start: 0.000000, bitrate: 1188 kb/s
    Stream #0.0: Video: mpeg4, yuv420p, 624x352 [PAR 1:1 DAR 39:22], 23.98 tb(r)
    Stream #0.1: Audio: mp3, 48000 Hz, stereo, 128 kb/s
File '/Users/tracipeters/Documents/ipodlost.mov' already exists. Overwrite ? 
[y/N] y
Output #0, mp4, to '/Users/tracipeters/Documents/ipodlost.mov':
    Stream #0.0: Video: mpeg4, yuv420p, 320x240 [PAR 4:3 DAR 16:9], q=3-5, 700 
kb/s, 23.98 tb(c)
    Stream #0.1: Audio: libfaac, 48000 Hz, stereo, 160 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
[mpeg4 @ 0x751810]removing common factors from framerate
[mpeg4 @ 0x751810]timebase not supported by mpeg 4 standard
Error while opening codec for output stream #0.0 - maybe incorrect parameters 
such as bit_rate, rate, width or height


If anyone has ANY hints at all, it would be greatly appreciated.  I've made a 
few mods and retried the script (like deleting "aspect 19:6" or making it 4:3 
and none seem to help.


Here's the script:
#!/bin/bash
## ipodvidenc - The iPod Video Encoder for Linux.
## Created by Eric Hewitt, January 9, 2006.
## Released under the GPL.  Go nuts.

input_file=$1

echo "What would you like to name the output file (sans extension)?"

read output_file_name

echo "$output_file_name will be located in $PWD. Is this acceptable? [y/n]"

read output_file_loc_permis

if [ $output_file_loc_permis = 'n' ] || [ $output_file_loc_permis = 'N' ]
then
        echo "Where would you like to store $output_file_name.mov?"
        read output_dir
else
        output_dir=$PWD
fi

ffmpeg -i "${input_file}" -f mp4 -vcodec mpeg4 -maxrate 2500k -b 700k -qmin 3 
-qmax 5 -bufsize 4096k -g 300 -acodec libfaac -ab 160k -s 320x240 -aspect 16:9 
"${output_dir}/${output_file_name}.mov"




thanks, in advanced,
Kurt
------------------------------------------------------------------------------
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to