[Ffmpeg-devel] [Ffmpeg-devel-old] rtp mpeg4 packetize problem

Zoltan NAGY nagyz
Wed Jul 20 12:57:05 CEST 2005


mike lee wrote:

>>Hello!
>>
>>Can you share your code with me? I'd be very interesting, as I'm
>>writing exactly the same application.. :)
>>    
>>
>
>Unfortunately, I am in the same situation as Luca. My boss won't allow
>me to do that.
>But i can answer what i ever know.
>  
>
sad, but that's also fine :-)
so, here is my idea:

after av_read_frame(), split the frame into packets, put the rtp header 
on them, and send them over the network.

it sounds very simple, but.. does it work? :)
and is it enough if I mark the payload time in the header for vlc to 
recognize that it's a video stream?

and how do I stream audio also? send sometimes audio sometimes video 
packets on the same port,
just with different PT markings in the header?

Thanks in advance,

Zoltan NAGY,
Software Engineer





More information about the ffmpeg-devel mailing list