Active Topics

 


Reply
Thread Tools
Posts: 1 | Thanked: 0 times | Joined on Dec 2009
#1
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.
 
Reply


 
Forum Jump


All times are GMT. The time now is 18:42.