[FFmpeg-user] Can ffplay be used as realtime playing?
李超
flyingwalter at gmail.com
Thu May 31 10:42:10 CEST 2012
Hi,
I'm using ffplay to play a mpeg ts stream over tcp. After started, the
server will keep sending ts packet to ffplay, but ffplay wont start playing
it until I stop the tcp stream at server side by press Ctrl+C.
Seems that the ffplay keep reading the stream, until it reach the eof of
the stream, the play started.
Is there any way to make it play immediately while receiving packets?
such as buffer 3 frames and then play.
My command:
ffplay -f mpegts -ast 1 -vst 0 -ar 48000 tcp://192.168.244.226:5000
My Result:
ffplay version 0.9, Copyright (c) 2003-2011 the FFmpeg developers
built on May 25 2012 22:27:23 with gcc 4.4.5
configuration: --enable-postproc --enable-zlib --enable-gpl --disable-doc
--enable-shared --enable-libmp3lame --enable-libx264 --enable-pthreads
--enable-libfaac --enable-nonfree --enable-ffplay
libavutil 51. 32. 0 / 51. 32. 0
libavcodec 53. 42. 0 / 53. 42. 0
libavformat 53. 24. 0 / 53. 24. 0
libavdevice 53. 4. 0 / 53. 4. 0
libavfilter 2. 53. 0 / 2. 53. 0
libswscale 2. 1. 0 / 2. 1. 0
libpostproc 51. 2. 0 / 51. 2. 0
*[output freezed here, then, after server stopped, the following come out]*
[mpegts @ 0x90540e0] Could not find codec parameters (Unknown: none
([131][0][0][0] / 0x0083))
[mpegts @ 0x90540e0] Estimating duration from bitrate, this may be
inaccurate
Input #0, mpegts, from 'tcp://192.168.244.226:5000':
Duration: N/A, start: 0.086033, bitrate: N/A
Program 1
Stream #0:0[0x1011]: Video: h264 (Baseline) ([27][0][0][0] / 0x001B),
yuv420p, 1280x720, 30 fps, 30.08 tbr, 90k tbn, 60 tbc
Stream #0:1[0x1100]: Unknown: none ([131][0][0][0] / 0x0083)
32.92 A-V: 0.000 fd= 0 aq= 0KB vq= 0KB sq= 0B f=0/0 0/0
-Walter
More information about the ffmpeg-user
mailing list