I really like the n900 videos, but I would like to be able to convert then to ogg as firefox 3.5 now supports ogg natively. I used the following script with my old camera to convert avi files. Any suggestions how to get this to work with mp4?
Code:
#!/bin/sh
# this script can be used to convert AVI movie files (like the ones you take with digital cameras)
# to ogg video files
set -v
if [ ! "$1" ]; then
echo "usage: avi_to_ogg <avi filename>"
exit -1
fi
# create ogg filename
ogg_filename=`echo $1 | sed 's/avi/ogg/'`
gst-launch filesrc location="$1" ! decodebin name="decode" decode. ! queue \
! ffmpegcolorspace ! theoraenc quality=32 ! oggmux name=mux ! \
filesink location="$ogg_filename" decode. ! queue ! audioconvert ! vorbisenc ! queue ! mux.