ffmpeg-php - flv avi, video uzunluğu ve ses

1 Cevap php

Ben bir centos 5.4 sunucuda ffmpeg-php kullanarak. Flv bir. Avi dosyasını dönüştürmek çalışıyorum.

Bu benim kodudur:

exec("ffmpeg -y -i " . $srcFile . " -ab 32 -ar 22050 -b " . $newBitrate . "k -vframes 2500 -qscale 7 -f flv -s " . $newWidth . "x" . $newHeight ." " . $destFile);

I ile (-an) audionun sürece nedense yeni. Flv dosya video uzunluğu bozuk veya online oyuncular için eksik. Video çalış ama oyuncular doğru ilerleme görünmüyor.

Ben (. Orijinal avi) 128/48000 ile sayıları değiştirmek zaman örneğin - sadece o zaman işe yaramaz - Artı ses bit hızı ve örnek hızını değiştiremezsiniz.

1 Cevap

Ffmpeg nedeniyle legalities bir mp3 kodlayıcı içermez çünkü göre this bug report, bu. Görünüşe göre, son sürüme güncelleyerek sorunu çözecektir.