[FFmpeg-user] [FFmpeg-users] Play encoder's output video as it's being encoded

Quy Pham Sy phamsyquybk at gmail.com
Thu Jun 16 13:02:28 CEST 2011


> ffmpeg -i source.mp4 -vcodec libx264 -acodec xxxxx -f mpegts encoded.mpg
> The source.mp4 already is an existing file incl. the moov atom which can be
> played by any suitable player, and the resulting encoded.mpg als can be
> played while being encoded/created.

Hi,

Here is my encoding command:

ffmpeg -i test.avi -acodec libfaac -ar 48000 -ab 128k -ac 2 -vcodec
libx264 -s 480x320 -b 256k  -flags +loop -cmp +chroma -partitions
+parti4x4+partp8x8+partb8x8 -subq 5 -trellis 1 -refs 1 -coder 0
-me_range 16 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -bt 200k
-maxrate 256k -bufsize 256k  -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.6
-qmin 10 -qmax 51 -qdiff 4 -level 30 -aspect 480:320 -g 30 -async 2
test.mpg

the result can be played with vlc. Quicktime and android's player can
not play resulting file.
is that because they are not a suitable player?

What i about to do is sending output of encoding to android and iphone
to player while it's being encode.
Do i need to implement my own player?

very thanks
Quy


More information about the ffmpeg-user mailing list