Formati di Compressione

From Alessandro's Wiki
Jump to: navigation, search

Tabella dei formati di compressione attualmente in uso nel repositorio video

mediaroot

Alta Qualità

DV25 48000

Media Qualità

converter.mediaroot.sh

MPEG2

mencoder ___.dv -demuxer rawdv -oac lavc -ovc lavc -of mpeg 
         -mpegopts format=dvd -vf scale=720:576 -srate 48000 -af lavcresample=48000 
         -lavcopts vcodec=mpeg2video:vbitrate=4096 -ofps 25 
         -o ___.mpg

h264

(vecchio) mencoder 1664.dv -of avi -oac mp3lame -ovc x264 -x264encopts bitrate=4096:threads=auto -o mediaroot/video/mid/1664.mp4
ffmpeg -i "${fileCS}" -y -vcodec libx264 -b 4096000 -subq 6 -acodec libfaac -ac 2 -f mp4 "${ODIR}$EncodedName"

Bassa Qualità

flv

ffmpeg -y -i "$ifile" -acodec $acodec -ar 22050 -f flv -b 500k -ab 32000 -s $lowSize "$cleanifile".flv
  • Con Logo
ffmpeg -y -i "$ifile" -acodec $acodec -ar 22050 -f flv -b 500k -ab 32000 -s $lowSize -vhook "$vhook -f "$LogoSTD" -m 0 -t 000000 " "$cleanifile"_logo.flv

mp4

ffmpeg -i "${fileCS}" -y -vcodec libx264 -b 429600 -subq 7 -bf 3 -subq 6 -cmp 256 -refs 5 -qmin 10  -qmax 51 -qdiff 4 -coder 1 -loop 1 -me_range 16 -trellis 1 -flags +mv4 -flags2 +bpyramid+wpred+mixed_refs -partitions parti4x4+parti8x8+partp4x4+partp8x8+partb8x8 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71  -acodec libfaac -ar 44100 -ac 1 -threads 2 -f mp4 "${ODIR}_tmp_$EncodedName" 
$moovFix "${ODIR}_tmp_$EncodedName" "${ODIR}$EncodedName"  || echo "could not reverse MOOV Atom!"
/bin/rm -f "${ODIR}_tmp_$EncodedName"