Flash Encoding mit FFMPEG

Aus FeM Streaming Wiki
Version vom 24. April 2008, 10:06 Uhr von ThamTHon (Diskussion | Beiträge)

(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Wechseln zu: Navigation, Suche

Beim Encoden von FlashVideos mit ffmpeg haben sich folgende Parameter bewährt:

Inhaltsverzeichnis

Größere Filme

ffmpeg.exe -i %1 -acodec libmp3lame -ar 44100 -ab 128k -s 480x270 -r 25 -pass 1 -y -vcodec flv -b 716800 -flags mv4+obmc+qpel+loop+gmc+mv0+umv+trell+aic+cbp+qprd -g 250 -strict 5 -pred 3 -cmp 3 -subcmp 3 -mbcmp 3 -ildctcmp 3 -precmp 3 -skipcmp 3 -subq 9 -coder 5 -mbd 2 -trellis 10 -i_qfactor 0.71 -qcomp 0.6 -qblur 1 -flags2 mixed_refs+brdo+skiprd+non_linear_q -partitions parti4x4+parti8x8+partp4x4+partp8x8 -inter_matrix "12,12,12,12,13,16,19,25,12,12,12,12,13,16,21,27,12,12,13,15,18,21,26,33,12,12,15,21,25,30,37,45,13,13,18,25,34,43,54,64,16,16,21,30,43,60,76,94,19,21,26,37,54,76,102,132,25,27,33,45,64,94,132,177" %2 ffmpeg.exe -i %1 -acodec libmp3lame -ar 44100 -ab 128k -s 480x270 -r 25 -pass 2 -y -vcodec flv -b 716800 -flags mv4+obmc+qpel+loop+gmc+mv0+umv+trell+aic+cbp+qprd -g 250 -strict 5 -pred 3 -cmp 3 -subcmp 3 -mbcmp 3 -ildctcmp 3 -precmp 3 -skipcmp 3 -subq 9 -coder 5 -mbd 2 -trellis 10 -i_qfactor 0.71 -qcomp 0.6 -qblur 1 -flags2 mixed_refs+brdo+skiprd+non_linear_q -partitions parti4x4+parti8x8+partp4x4+partp8x8 -inter_matrix "12,12,12,12,13,16,19,25,12,12,12,12,13,16,21,27,12,12,13,15,18,21,26,33,12,12,15,21,25,30,37,45,13,13,18,25,34,43,54,64,16,16,21,30,43,60,76,94,19,21,26,37,54,76,102,132,25,27,33,45,64,94,132,177" %2

Kleinere Filme

ffmpeg.exe -i %1 -acodec libmp3lame -ar 44100 -ab 128k -s 320x180 -r 25 -pass 1 -y -vcodec flv -b 350000 -flags mv4+obmc+qpel+loop+gmc+mv0+umv+trell+aic+cbp+qprd -g 250 -strict 5 -pred 3 -cmp 3 -subcmp 3 -mbcmp 3 -ildctcmp 3 -precmp 3 -skipcmp 3 -subq 9 -coder 5 -mbd 2 -trellis 10 -i_qfactor 0.71 -qcomp 0.6 -qblur 1 -flags2 mixed_refs+brdo+skiprd+non_linear_q -partitions parti4x4+parti8x8+partp4x4+partp8x8 -inter_matrix "16,18,20,22,24,26,28,30,18,20,22,24,26,28,30,32,20,22,24,26,28,30,32,34,22,24,26,30,32,32,34,36,24,26,28,32,34,34,36,38,26,28,30,32,34,36,38,40,28,30,32,34,36,38,42,42,30,32,34,36,38,40,42,44" out.flv ffmpeg.exe -i %1 -acodec libmp3lame -ar 44100 -ab 128k -s 320x180 -r 25 -pass 2 -y -vcodec flv -b 350000 -flags mv4+obmc+qpel+loop+gmc+mv0+umv+trell+aic+cbp+qprd -g 250 -strict 5 -pred 3 -cmp 3 -subcmp 3 -mbcmp 3 -ildctcmp 3 -precmp 3 -skipcmp 3 -subq 9 -coder 5 -mbd 2 -trellis 10 -i_qfactor 0.71 -qcomp 0.6 -qblur 1 -flags2 mixed_refs+brdo+skiprd+non_linear_q -partitions parti4x4+parti8x8+partp4x4+partp8x8 -inter_matrix "16,18,20,22,24,26,28,30,18,20,22,24,26,28,30,32,20,22,24,26,28,30,32,34,22,24,26,30,32,32,34,36,24,26,28,32,34,34,36,38,26,28,30,32,34,36,38,40,28,30,32,34,36,38,42,42,30,32,34,36,38,40,42,44" %2

FFMpeg-Version

Zum Encodieren wurde Version rev11870 verwendet.

Ein Windows-Binary findet man dafür z.B. hier: http://ffdshow.faireal.net/mirror/ffmpeg/

Quelle

Die Parameter für das VideoEncoding stammen dabei von User mikeytown2 aus dem Doom9-Forum. [[1]]