[FFmpeg-devel] how do I fix streaming media pausing while waiting for input?

Michael Niedermayer michaelni
Fri Dec 28 19:36:33 CET 2007


On Fri, Dec 28, 2007 at 01:07:11PM -0500, Ronald S. Bultje wrote:
> Hi,
> 
> $attached does something required for RDT. The default mode for ffplay is to
> pause while calling av_find_streaminfo(), and starting media playback after
> that. The problem is that this sets data transfer in RTSP to paused (i.e. we
> send a "pause" to the server), meaning that we don't actually grab any data
> in av_find_streaminfo(), i.e. it loops endlessly and fails. The quick
> solution is to not pause (see patch), but that's obviously not right. What's
> the right solution?

It is invalid to send a pause to the server and then call
av_find_streaminfo(),there at least has to be a play between them.


[...]

> Index: ffmpeg/libavformat/rtsp.c
> ===================================================================
> --- ffmpeg.orig/libavformat/rtsp.c	2007-12-27 17:32:37.000000000 -0500
> +++ ffmpeg/libavformat/rtsp.c	2007-12-27 17:39:59.000000000 -0500
> @@ -1059,7 +1159,7 @@
>      rt->state = RTSP_STATE_IDLE;
>      rt->seek_timestamp = 0; /* default is to start stream at position
>                                 zero */
> -    if (ap->initial_pause) {
> +    if (0 && ap->initial_pause) {

There is no code in the whole ff* tree that sets initial_pause so the
bug must be in your code

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Good people do not need laws to tell them to act responsibly, while bad
people will find a way around the laws. -- Plato
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20071228/aa63d102/attachment.pgp>



More information about the ffmpeg-devel mailing list