Ulysses
January 30th, 2009, 11:52 AM
Hello,
I posted a reply to this http://ubuntuforums.org/showthread.php?t=892971&page=2 and realized (while I was at work, no less) that I should not have posted to a [SOLVED] thread, so here goes.
I did as instructed
Edited .bashrc to include the following lines:
# Command line function to convert video for sansa player
sansavideo() {
frame_per_second="23.98"
video_bit_rate="578k"
ffmpeg -i "$1" -r 29.97 -vcodec mpeg4 -b $video_bit_rate -ar 44100 -g 300 -s 320x240 -aspect 4:3 -ac 2 -f mp4 -y "$2"
}
I have the correct version of ffmpeg
I did this
ffmpeg -formats |grep aac
And received the proper result
D aac ADTS AAC
DEA aac
D A mpeg4aac
But when I put the command line in like this
sansavideo inputfilename.ext outputfilename.mp4
I get this error message
INPUT.avi: I/O error occured
Usually that means that input file is truncated and/or corrupted.
Though, I wonder now and am fain to admit that I did not think this before (I am as new as new can be at this and I really try, I really do), if when I executed the command line I did not use the terminal commands to navigate to the folder where the INPUTFILENAME.ext was located - and that the error message I received was a generic one that simply related to not being able to find the file
Please, any help would be appreciated. Sorry for posting in the wrong thread to begin with
I posted a reply to this http://ubuntuforums.org/showthread.php?t=892971&page=2 and realized (while I was at work, no less) that I should not have posted to a [SOLVED] thread, so here goes.
I did as instructed
Edited .bashrc to include the following lines:
# Command line function to convert video for sansa player
sansavideo() {
frame_per_second="23.98"
video_bit_rate="578k"
ffmpeg -i "$1" -r 29.97 -vcodec mpeg4 -b $video_bit_rate -ar 44100 -g 300 -s 320x240 -aspect 4:3 -ac 2 -f mp4 -y "$2"
}
I have the correct version of ffmpeg
I did this
ffmpeg -formats |grep aac
And received the proper result
D aac ADTS AAC
DEA aac
D A mpeg4aac
But when I put the command line in like this
sansavideo inputfilename.ext outputfilename.mp4
I get this error message
INPUT.avi: I/O error occured
Usually that means that input file is truncated and/or corrupted.
Though, I wonder now and am fain to admit that I did not think this before (I am as new as new can be at this and I really try, I really do), if when I executed the command line I did not use the terminal commands to navigate to the folder where the INPUTFILENAME.ext was located - and that the error message I received was a generic one that simply related to not being able to find the file
Please, any help would be appreciated. Sorry for posting in the wrong thread to begin with