I usually render in .dv format and use ffmpeg to convert to mp4 or whatever.  
My script looks like this:

#!/bin/bash
# David Koski
#bitrate="6000k"
bitrate="5600k"
#bitrate="4800k"

iformat="dv"
odname=""

while [ "$1" != "" ]; do
        if [ "$1" == '-d' ]; then
                shift
                # get output directory name
                odname="$1"
                shift
        fi
        infile="$1"
        bname=$(basename "$1" ".$iformat")
        [ "$odname" == "" ] && odname=$(dirname "$1")
        shift

        [ ! -d "$odname" ] && echo "No directory: $odname" && continue
        # pcm_s16be=twos complement
        # see "ffmpeg -codecs" and "ffmpeg -formats" for lists of supported 
types
        ffmpeg -threads 4 -i "$infile" -vcodec mpeg4 -b "$bitrate" -acodec 
libfaac 
-f mp4 -aspect 4:3 "$odname/$bname.mp4"
done

Yes, it is a bit of a hack but look at the line:

        ffmpeg -threads 4 -i "$infile" -vcodec mpeg4 -b "$bitrate" -acodec 
libfaac 
-f mp4 -aspect 4:3 "$odname/$bname.mp4"

(It is wrapped in the email)

David

> I am willing to use ffmpeg or something to modify an output from Cinelerra
> to get a suitable format if it cannot be created directly, but I would
> appreciate someone telling me exactly HOW to do it.

_______________________________________________
Cinelerra mailing list
[email protected]
https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra

Reply via email to