I suppose that the problem is in the way you are sending encoded data by udp. That fact that vlc can open files encoded by you means that ffmeg's part works ok. As I understand ffmpeg has no functionalty of sending data by udp, for this purpose I use my own code. You should send data chunks of correct size and with correct delay between them. Try to read about mpeg-ts format. For debug purposes you can retransmit your .ts file to vlc by udp with no decoding\encoding
2011/2/11 Pierre MIMI <[email protected]>: > Hi, thanks max > > I've tryied mepgts it works but not the way i would like it to be. > The 264 data are put in .ts container file and vlc is enable to read it > only when the file encoding is finished. I already knew how to do that with > other file format (.mkv .avi ...). So this is ok for "video on demand" but > what i try to achieve is broadcast live video. > > I am quite confused on how i could use libavformat for streaming live video, > I only understand how to do video file. > > Has anyone any sample code on how to stream live h264 data whatever the > protocol (udp , tcp ,rtp....) > > > Pierre > _______________________________________________ > 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
