[Ffmpeg-devel] rtp - mpeg ts open problem
Wed Oct 25 12:13:15 CEST 2006
> From: Michael Niedermayer [mailto:michaelni at gmx.at]
> Sent: 25 October 2006 11:47
> On Wed, Oct 25, 2006 at 10:58:20AM +0200, Anders Moden wrote:
> > Hi !
> > I have written a rtp alike protocol for our distributed
> network. The packages sent on the network are the same
> packages as included in a rtp stream output from vlc (except
> for the header witch is not included).
> > When I try to decode these packages, the av_open_input_file
> eats a lot of packages before it will success. After that
> everything runs smooth.
> > I have added is_streamed=1 in the protocol "open" callback
> as well as stated a max_packet_size of 1316 bytes witch is
> the package size of the rtp data.
> > Is there any flag I have missed in the context or what
> could cause the open to require so many packages before
> detecting correct formats ?
> see av_find_stream_info() iam pretty sure thats what causes
> the delay and feel free to send a patch to make the
> timeconsuming part optional if there is no other simpler solution ...
Commenting out these lines fixes the problem:
/* first do a scaning to get all the services */
// url_fseek(pb, pos, SEEK_SET);
// handle_packets(ts, s->probesize);
More information about the ffmpeg-devel