Page 1 of 1

need to understand what happend inside function

Posted: 02 Aug 2010 10:45
by SiddeeqHssn
hi all
i use this command line to send video file Z.mpeg from linux to windows

Code: Select all

vlc -vvv /home/siddeeq/file/Z.mpeg --sout '#transcode{acodec=mpga,ab=128,channels=2}:duplicate{dst=display,dst=std{access=file,mux=mp4,dst=/home/siddeeq/live.dump},dst=rtp{dst=239.255.42.42,mux=ts,port=1234,port-audio=1235,port-video=1236,sap,group="",name="live"}}:sout-keep'
and i understand how to select codec and send/receive protocol and use it in C code

Code: Select all

libvlc_media_add_option(m,":sout=#transcode{acodec=mpga,ab=128,channels=2}:duplicate{dst=display,dst=std{access=file,mux=mp4,dst=/home/siddeeq/live.dump},dst=rtp{dst=239.255.42.42,mux=ts,port=1234,port-audio=1235,port-video=1236,sap,group=""}}",&ex); raise(&ex);
but i need to understand how RTP send and receive and what function will be called and what is the sequence and what is the source file and algorithm for rtp?? please i need that necessary
thank you very much.

Re: need to understand what happend inside function

Posted: 21 Aug 2010 09:18
by SiddeeqHssn
is this very hard question???
please i need that necessary.
thank you

Re: need to understand what happend inside function

Posted: 21 Aug 2010 09:25
by RĂ©mi Denis-Courmont
You do like every other developer does. Read the source code.

Re: need to understand what happend inside function

Posted: 21 Aug 2010 10:28
by SiddeeqHssn
excuse me, is VLC use live555 for send data over rtp protocol???

Re: need to understand what happend inside function

Posted: 21 Aug 2010 12:41
by SiddeeqHssn
ok i read it but i need a flowchart for work like this one for TCP
http://www.tenouk.com/Module41_files/image001.png

or this for UDP
http://www.tenouk.com/Module41_files/image002.png