[FFmpeg-user] [FFmpeg-users] Play encoder's output video as it's being encoded
belcampo
belcampo at zonnet.nl
Thu Jun 16 14:27:32 CEST 2011
On 06/16/11 13:02, Quy Pham Sy wrote:
>> 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?
AFAIK not for the above command. Search for the exact specs that
QuickTime and Android need. BTW your command is not een mpegts but an
mpegps stream. You'll have to specify -f mpegts to make it an mpegts
format. I don't know if that will make THE difference though, to make
them playable.
>
> 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
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
More information about the ffmpeg-user
mailing list