Thank you, my mistake. With av_write_frame it works perfectly. Steffen
> On Tue, Aug 10, 2010 at 1:17 PM, Steffen Ebersbach > <[email protected]> wrote: >> Hi, >> >> >> I'm writing a Application, that produce a mpeg-2 transport stream with >> one >> video inside. But the problem is, that one DVB-device can't show the >> stream without a audiostream is present in the PMT. I don't have any >> audio >> stream, but i decide to create a stream and add it to the >> AVformatcontext >> (TS), so that a entry in the PMT is done. >> >> audiostm = av_new_stream(focontext,1); >> >> But with this initialization the output fails. The function >> av_interleaved_write_frame (for video) returns success (0), but on the >> udp >> output no packet are send. > > Do not call av_interleaved_write_frame() which will be cached and > wait for one audio frame to "interleave" > Just directly call av_write_frame() in this case > > -- > ----------------------------------------------------------------------------------------- > My key fingerprint: d1:03:f5:32:26:ff:d7:3c:e4:42:e3:51:ec:92:78:b2 > _______________________________________________ > libav-user mailing list > [email protected] > https://lists.mplayerhq.hu/mailman/listinfo/libav-user > _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
