Video im Web
Format
- Flash Video
- Flash Videoplayer Applikation FlowPlayer
- Adobe Flash Plugin erforderlich
Konvertierung
- Konvertieren in flv -Video mittels mencoder
mencoder -of lavf \ -oac mp3lame -lameopts abr:br=56 \ -ovc lavc -lavcopts vcodec=flv:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 -srate 22050 \ -vf pp=ac \ <infile> -o <outfile.flv>
- oder via ffmpeg
- ggf. zunächst in "portables" Format für ffmpeg konvertieren
- Erzeugen der FLV-Metadaten mittels Javaklasse swfx-flv-duration.jar
# identify media mplayer -identify -ao null -vo null -frames 0 <infile> 2>/dev/null # create portable media file with ffv1-format mencoder -quiet <infile> -ovc lavc -lavcopts vcodec=ffv1 -oac pcm -o <outfile.ffv1> # convert into flv-format # bit rate of audio (valid values are 16,32,64) AUDIO_BITRATE=32 # sampling rate (valid values are 11025, 22050, 44100) AUDIO_SAMPLINGRATE="22050" VIDEO_BITRATE="400" VIDEO_SIZE="384x288" # Beachte Seitenverhältnis $ ffmpeg -i <infile.ffv1> -ab $AUDIO_BITRATE -ar $AUDIO_SAMPLINGRATE -b $VIDEO_BITRATE -s "${VIDEO_SIZE}" -y <outfile.tmp.flv> # add flv metadata $ CLASSPATH=$CLASSPATH:swfx-flv-duration.jar java org.swfx.flvduration.Main <outfile.tmp.flv> <outfile.flv>
FlowPlayer
- Wiedergabe von flv -Video
Einbettung in Webseiten
<object type="application/x-shockwave-flash" data="FlowPlayerClassic.swf" width="360" height="308" id="FlowPlayer"> <param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="FlowPlayerClassic.swf" /> <param name="quality" value="high" /> <param name="flashvars" value="config={videoFile: 'myvideo.flv', autoPlay: false, loop: false}" /> </object>