Understanding the Code

*nix specific usage questions
pravish
New Cone
New Cone
Posts: 3
Joined: 13 Mar 2008 12:05

Understanding the Code

Postby pravish » 13 Mar 2008 12:10

Hi guys
I hv been using the VLC for quiet some time now. I have decided to learn the VLC src code just to hone my skills. Please guide me how to go about it. Where to start from. I have been coding in C/C++ for a couple of yers now so i have a basic understanding of the language.
Thanks
regards

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Understanding the Code

Postby Jean-Baptiste Kempf » 13 Mar 2008 18:14

First work on the trunk version, which is better to understand.

then src/ is the vlc/libvlc code with module managements and so on.

modules/ is the big part of the code and is all the modules/plugins.

If you want to extend VLC, you will probably dig into modules/
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

aziatedu13
Blank Cone
Blank Cone
Posts: 22
Joined: 20 Feb 2008 16:31

Re: Understanding the Code

Postby aziatedu13 » 18 Mar 2008 15:32

hello, I want do that to, but i interested by a part one of vlc,
iwanted to see whicj part of vlc can create a mpeg-TS stream, set data on this stream,( data are pricture),i want to send a lot of picture grabed and send them on the network to do a video........
can you sai to me, what part of vlc do that ? i am searching, but vlc is very big and i have only understood libdvdpsi do stream, and live 555 send this stream....
can you help me ??
thx.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Understanding the Code

Postby Jean-Baptiste Kempf » 18 Mar 2008 18:19

live555 is client side of rtp.

creating ts is in demux/ts
streaming is in src/streaming
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

aziatedu13
Blank Cone
Blank Cone
Posts: 22
Joined: 20 Feb 2008 16:31

Understanding the Code

Postby aziatedu13 » 19 Mar 2008 15:15

ouai j'ai bien ciblé ou se trouvé les source approprié, mais je n'arrive pas a isolé les bout de code et a savoir lequel sert a quoi, iln'y as pratiquement aucun commentaire,
je cherche le bout qui cré le flux au format TS,colle les données dedans, et envoie tout ça,
merci.

aziatedu13
Blank Cone
Blank Cone
Posts: 22
Joined: 20 Feb 2008 16:31

Re: Understanding the Code

Postby aziatedu13 » 08 Apr 2008 09:59

i don't know with part of code is doing the stream, i read but no comment are written...i don't understand the code and the parameter to send in the fonction...

nero
Blank Cone
Blank Cone
Posts: 18
Joined: 30 Apr 2008 12:01
VLC version: 0.8.6f
Operating System: Fedora
Location: Malaysia
Contact:

Re: Understanding the Code

Postby nero » 02 May 2008 05:00

Hi...

I have a doubt too... can i know which part of the source code actually establishes a socket connection prior to do a multicast IPTV streaming?
And which portion of the code that actually relates to the multicast streaming?


Thank you very much.


Best Regards,

Nero

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Understanding the Code

Postby Rémi Denis-Courmont » 02 May 2008 16:55

Socket code is in src/network/
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

sarnov
New Cone
New Cone
Posts: 1
Joined: 13 May 2008 16:48

Re: Understanding the Code

Postby sarnov » 13 May 2008 16:58

Hi every one,

I want to ask another question.

When I switch between tow multicast channel : first, VLC send an IGMP Leave (for the OLD channel) then an IGMP Membership (for the new channel). I what to change de process (IGMP membership first, thant an IGMP leave).

In which part of the code I must look to get what I want ?

Thank you

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Understanding the Code

Postby Rémi Denis-Courmont » 13 May 2008 17:05

The part of the code that handles IGMP is in your TCP/IP stack, not in VLC.

VLC uses the standard multicast socket API (again, the code is in src/network/udp.c).
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 34 guests