Hello,
i'm using kino and cinelerra. In kino, exports are piped to shell
scripts so people can modify easy theses scripts.
I've tried to used this idea in cinelerra, it works great.
For example, you can modify "cinelerra/fileyuv.C" with
- ffmpeg->add_item(new BC_MenuItem("(DVD) | ffmpeg -f yuv4mpegpipe -i -
-y -target dvd -ilme -ildct -hq -f mpeg2video %"));
+ ffmpeg->add_item(new BC_MenuItem("(DVD) | cinelerra_ffmpeg.sh 0 %"));
with cinelerra_ffmpeg.sh like this:
------------8<-------------------
#!/bin/sh
# By Ruda Matousek, October 5th 2004
# matousek(AT)utia.cas.cz
# used in kino project, updated for cinelerra exports
# by Eric Seigne, 2006 04 10
usage()
{
# Title
echo "Title: DivX using FFMpeg"
# Usable?
command -v ffmpeg 1> /dev/null 2>&1
[ $? -eq 0 ] && echo Status: Active || echo Status: Inactive
# Type
echo Flags: single-pass file-producer
# Profiles
echo "Profile: DVD"
echo "Profile: VCD"
echo "Profile: WMV1 320x240"
echo "Profile: WMV1 640x480"
echo "Profile: WMV2 320x240"
echo "Profile: WMV2 640x480"
echo "Profile: MSMpegV2 320x240"
echo "Profile: MSMpegV2 640x480"
echo "Profile: RealVideo 320x240"
}
execute()
{
# add -hq if ffmpeg support it
FFMPEG=ffmpeg
# Arguments
profile="$1"
file="$2"
[ "x$file" = "x" ] && file="cinelerra_export_"`date +%Y-%m-%d_%H.%M.%S`
# Run the command
# Note that the -cache 8192 parameter is required to force mencoder
# to recognize the DV stream on STDIN.
case "$profile" in
"0" ) ${FFMPEG} -f yuv4mpegpipe -i - -y -target dvd -ilme -ildct -f
mpeg2video "$file" ;;
"1" ) ${FFMPEG} -f yuv4mpegpipe -i - -y -target vcd -f mpeg2video
"$file" ;;
"2" ) ${FFMPEG} -f yuv4mpegpipe -i - -y -vcodec wmv1 -s 320x240
"$file" ;;
"3" ) ${FFMPEG} -f yuv4mpegpipe -i - -y -vcodec wmv1 -s 640x480
"$file" ;;
"4" ) ${FFMPEG} -f yuv4mpegpipe -i - -y -vcodec wmv2 -s 320x240
"$file" ;;
"5" ) ${FFMPEG} -f yuv4mpegpipe -i - -y -vcodec wmv2 -s 640x480
"$file" ;;
"6" ) ${FFMPEG} -f yuv4mpegpipe -i - -y -vcodec msmpegv2 -s 320x240
"$file" ;;
"7" ) ${FFMPEG} -f yuv4mpegpipe -i - -y -vcodec msmpegv2 -s 640x480
"$file" ;;
"8" ) ${FFMPEG} -f yuv4mpegpipe -i - -y -vcodec rv10 -s 320x240
"$file" ;;
esac
}
[ "$1" = "--usage" ] || [ -z "$1" ] && usage "$@" || execute "$@"
------------8<-------------------
There is an other idea in kino, at runtime, kino launch it's shell
exports scripts and build its dropdown exports lists with profile
results.
So if you add some exports profiles in you shell scripts, kino
dynamicaly added it !
What do you think about that ?
Éric
--
Éric Seigne - Directeur | [EMAIL PROTECTED]
RyXéo SARL | http://www.ryxeo.com
Le Topaze - Entrée C, 2 rue Jean Bonnardel | tel +33 6 987 444 01
33140 Villenave d'Ornon - FRANCE | fax +33 5 567 542 59
_______________________________________________
Cinelerra mailing list
[email protected]
https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra