adding an option to smb input

Want to help the VideoLAN project? Designers, testers, translators, please come...
This is NOT about GETTING some help.
Forum rules
Please read the forum's rules carefully before posting. This forum should not be used to post VLC usage related questions.
Rarrum
New Cone
New Cone
Posts: 6
Joined: 29 Apr 2008 19:49

adding an option to smb input

Postby Rarrum » 04 May 2008 00:13

I'm interested in implementing a very specific feature in order to fix a stutter-at-start problem I get when playing audio over a high-latency smb connection. Specifically, if you go to the UI in the settings, under Input / Codecs - Access modules - SMB. Right now there is an option for "caching value in ms". I would like to add another option there to prevent playback from starting until a certain amount is already cached.

I'm not familiar with the vlc code-base, though I've done "svn checkout svn://svn.videolan.org/libdvbpsi/trunk libdvbpsi-trunk" as per http://wiki.videolan.org/Subversion#Check_out . Could someone point me to the specific files I would need to touch in order to add that option to the gui, and to implement that into wherever the reader/input/etc code is?

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: adding an option to smb input

Postby Jean-Baptiste Kempf » 04 May 2008 09:17

Git will help you get the VLC code source.
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.

Rarrum
New Cone
New Cone
Posts: 6
Joined: 29 Apr 2008 19:49

Re: adding an option to smb input

Postby Rarrum » 20 May 2008 18:48

I've checked out the source using git now, and ran bootstrap, configure, and make. I've got a question:

After compiling it all, when I run the ./vlc, it starts into some sort of commandline version of the player. How do I get it to start the normal gui for the player?

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: adding an option to smb input

Postby Jean-Baptiste Kempf » 20 May 2008 19:03

--enable-qt4 or --enable-wxwidgets
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.

Rarrum
New Cone
New Cone
Posts: 6
Joined: 29 Apr 2008 19:49

Re: adding an option to smb input

Postby Rarrum » 21 May 2008 06:58

Thanks! That, along with installing libqt4-dev did the trick.

I've been looking over things.. what I want to implement here sounds like it would be useful for a lot more than just smb. I've got the option added to the UI for the file access module so far, now I just need to hook that up and make use of it.

I'm not really familiar with how the different pieces of vlc are hooked up though. Basically the feature I want to implement is "don't start playing until X amount is already cached". In /src/input/stream.c I see "#define STREAM_CACHE_PREBUFFER_SIZE (32767)" ... I don't know if the prebuffer code in that file is even relevant to what I'm trying to do here though. Any suggestions on what code I should be looking at, which controls this type of stuff?

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: adding an option to smb input

Postby Jean-Baptiste Kempf » 21 May 2008 19:59

ask with more details on vlc-devel@
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.


Return to “Contribute and help the VideoLAN project”

Who is online

Users browsing this forum: No registered users and 11 guests