[FFmpeg-user] [ffmpeg-user] Remove/reduce streaming errors
Massimo Battistel
battistel at gmail.com
Sat Feb 2 16:49:41 CET 2013
> > Are all the previous messages shown because ffplay
> > is waiting for key frame?
>
> I guess so, yes.
>
> > How to make them disapper?
>
> There is a loglevel option that allows to silence
> the executables.
>
>
Thanks for quick answers.
I also would like to reduce the stream latency/delay.
I tried (with success) reducing the value for -analyzeduration, but with
too low values I get these error:
[mpegts @ 01f37fc0] Could not find codec parameters for stream 0 (Video:
h264 ([27][0][0][0] / 0x001B)): unspecified size
[mpegts @ 02587fc0] Could not find codec parameters for stream 1 (Audio:
mp3 ([3][0][0][0] / 0x0003), 0 channels, s16p): unspecified frame size
Is there any general rule to find the limit?
-rtbufsize seems to be ignored (and documentation says it has drawbacks).
-fflags nobuffer seems to have no effect on ffplay.
-tune zerolatency on stream generation reduced delay a little
Summarizing:
Stream generation:
ffmpeg -re -f dshow -i video="Logitech QuickCam Communicate
STX":audio="Logitech Mic (Communicate STX)" -vcodec libx264 -s 320x240 -g
15 -r 15 -q:v 1 -acodec libmp3lame -q:a 1 -tune zerolatency -f mpegts udp://
192.168.0.27:1200
Stream view:
ffplay udp://192.168.0.27:1200 -analyzeduration 1000
With these parameters, the delay is a bit more than 1 second.
Is it possible to do better?
Thanks,
Massimo
More information about the ffmpeg-user
mailing list