PDA

View Full Version : config VLC?



jasjol
2008-05-02, 09:50 AM
Hi

since i have problems with my GBPVR I would like to try VLC

how would a simple set up be in config file to enable VLC to se a folder where I have mpg files?


I looked at wiki etc

and is a little bit lost

so far I copied this into a file dongle.bin.config in c:/mvpMC

this folder and folder c:/videoC is shared to guest

what should I change ?

or do some of you have a simpler config file to use?


my config file:
## mvpmc (file://SVARTCOMP200710/mvpmc)
## mvpmc --startup emulate --emulate 192.168.1.42 &

vlc -I Telnet

################################################## ###
#
# Example config file.
# NOTE: -lines that start with a '#' are comments
# -command lines should end with a semicolon ';'
#
################################################## ###
#################################
# SECTION 1 Setting the Timezone
#################################
#set timezone to Eastern Time
# Other U.S. Timezones (with 2007 DST):
# CST+6CDT,M3.2.0/2,M11.1.0/2
# MST+7MDT,M3.2.0/2,M11.1.0/2
# PST+8PDT,M3.2.0/2,M11.1.0/2
#
### TZ=EST+5EDT,M3.2.0/2,M11.1.0/2; export TZ;
########################
# Setting the TZ variable above only affects the shell process this script
# runs in. If you want to telnet to the MVP and have the TZ variable set
# then we need to write it to the /etc/shell.config file that gets run
# everytime a new shell is started.
# This section is only needed if you want to telnet to the mvp
# and manually run things like mvpmc.
# It's great for debugging.
########################
# Echo the command to set the TZ variable to the shell.config file
#
### echo "TZ=EST+5EDT,M3.2.0/2,M11.1.0/2; export TZ" > /etc/shell.config;

#################################
# SECTION 2 Syncing the Time
#################################
# Set NTP variable to cause the system startup scripts to sync time.
# Use $SERVER if you are running a local TIME server.
# Note: $SERVER is the server IP address passed in with the DHCP response.
# You can attempt to sync to an internet TIME server by specifying the internet
# servers IP address/name.
# eg: sync to pool.ntp.org: >NTP=pool.ntp.org;
#
NTP=$SERVER;
################################################## ###
# SECTION 3 Example of Mounting a Windows File Share
################################################## ###
# a. Create /wxp_video directory on MediaMVP.
# b. Mount my Windows XP box's mpeg file share
#
# The following lines are commented out since they
# need to be customized on a per-user basis.
mkdir /wxp_video;
mount.cifs //192.1.1.42/videoC /wxp_video/ -o password=guest;

################################################## ########################
# SECTION 4
# Start the mvpmc application.
# The mvpmc command line (line that starts the mvpmc application)
# should be ended with an ampersand instead of a semicolon. This
# causes the mvpmc application to run in the background. If this
# is not done then the mvp may hang or reboot after several days or weeks.
#
# The following mvpmc options start mvpmc with replaytv support and
# the replaytv color theme
################################################## ########################
### mvpmc -R "ip=discover" -t /usr/share/mvpmc/replaytv.xml &
###
##
## mount CIFS, NFS, etc.
##
...

##
## create mvpmc file system
##
mkdir /mvpmc_media

##
## link tv, movies to /home/user/mnt/vidoes/tv and ../movies
##
ln -s /home/user/mnt/videos/tv /mvpmc_media/tv
ln -s /home/user/mnt/videos/movies /mvpmc_media/movies

##
## link pictures to /home/user2/mnt/photos
##
ln -s /home/user2/mnt/photos /mvpmc_media/pictures

##
## link music to /mvpmc_media/music
##
ln -s /home/user3/mp3 /mvpmc_media/music

mvallevand
2008-05-02, 11:50 AM
There's quite a few problems, but the biggest ones are that

- vlc -I Telnet runs on the server, not client
- you files for vlc will need to be linked to a folder /videoC in mvpmc
- you don't have an mvpmc command line in the config file.

Martin

jasjol
2008-05-02, 12:22 PM
ok thanks for support:

"- vlc -I Telnet runs on the server, not client"
what should I write instead in config file?

"- you files for vlc will need to be linked to a folder /videoC in mvpmc"

what VLC files do you mean - is it the folder where VLC is? (C:/program/VLC) should this folder also be shared?


"- you don't have an mvpmc command line in the config file."

what MVPMC command line is needed for running VLC?

additional questions:
*in guest account should have or not have password?

* in line below is home referring to c:/home or is it referring to home folder for configfile (in my case c:/MVPMC)?
and is "home/user/mnt/videos/tv " just a normal path?

ln -s /home/user/mnt/videos/tv /mvpmc_media/tv

natewin
2008-06-18, 08:04 PM
"- vlc -I Telnet runs on the server, not client"
what should I write instead in config file?

On the server you go to c:\program files\videolan\vlc\ and run "vlc -I Telnet" this will start a VLC server session. I have installed vlc as a NT service instead. You don't do anything on the MVP except for adding the --vlc VLC.SERVER.IP option to your mvpmc line (more later)



"- you files for vlc will need to be linked to a folder /videoC in mvpmc"

what VLC files do you mean - is it the folder where VLC is? (C:/program/VLC) should this folder also be shared?

I don't know what this is. Your wxp_video share / mount should take care of making a file-browser folder. Now you can just use the file browser to open that folder and play video. Note, playing files from Windows shares seems to be worded strangely in the docs (to me anyway). It seems a bit buried, but from what I understand is that for any file you want to play using VLC you need to create a .m3u playlist with the full path of the file you want to play with VLC in the playlist. So far I have not been able to play more than one file in a row this way, so it is just one file/playlist for me right now.

Example: playlist.m3u contains
c:\wxp_movies\movie.avi

This will let VLC play the file from your PC. If you use the file browser and select the .avi it would not find the file, you need to make the playlist file. In this case I guess you really only need to share a playlist folder and just put the .m3u files that link to video files on your machine.




"- you don't have an mvpmc command line in the config file."

what MVPMC command line is needed for running VLC?

Your config never starts mvpmc. you have it commented out here:


## mvpmc --startup emulate --emulate 192.168.1.42 &

That is going to start mvmpc in emulate mode using the server 192.168.1.42.

My startup looks like: mvpmc -c 192.168.123.100 -D 192.168.123.100:0 --vlc 192.168.123.100 --emulate 192.168.123.100 --startup emulate

It tells mvpmc to use -c SLIMSERVER.SERVER.IP -D VNC.SERVER.IP:DISPLAY# --vlc VLC.SERVER.IP --startup (IN EMULATE MODE) --emulate EMULATE.SERVER.IP

See: http://mvpmc.wikispaces.com/commandline for more info on mvpmc command line options.



additional questions:
*in guest account should have or not have password?

I have not set one, just used the "-o guest,ro;" OR "-o password=guest;" in your mount.



* in line below is home referring to c:/home or is it referring to home folder for configfile (in my case c:/MVPMC)?
and is "home/user/mnt/videos/tv " just a normal path?

ln -s /home/user/mnt/videos/tv /mvpmc_media/tv


I am not using any of these file system links and it looks like you should be all set with the line:
mkdir /wxp_video;
mount.cifs //192.1.1.42/videoC /wxp_video/ -o password=guest;
that you already have. I think you have added some lines from someone else's startup script? I think you are linking to/from folders that don't even exist.

Note, you have a share called c:\mvpMC I use the default C:\Program Files\Devnz\GBPVR\Dongle directory Windows shared as MVPMC, and put all my dongle files and config files there to keep everything in one place. I don't have a c:\mvpmc share.

Khurram
2008-09-22, 12:02 PM
I have installed vlc as a NT service instead. You don't do anything on the MVP except for adding the --vlc VLC.SERVER.IP option to your mvpmc line (more later)

Can you please post your command line used to install vlc as an nt service? I am having trouble using vlc this way. Thanks.

Khurram
2008-09-25, 11:40 PM
I have finally found the correct command line to use vlc as a service for both http (at port 8081) and telnet (at its default port of 4212):

vlc.exe -I ntservice --ntservice-install --ntservice-extraintf=http,Telnet --ntservice-option=--http-host=0.0.0.0:8081

Zato
2008-10-20, 06:16 PM
Thanks for posting this Khurram. Can you play DivX files through VLC? I'm interested in setting it up, but is there a step by step guide somewhere? :P

Khurram
2008-10-27, 11:42 AM
Can you play DivX files through VLC? I'm interested in setting it up, but is there a step by step guide somewhere?

VLC can play a lot of different formats. Their website states

VLC media player is a highly portable multimedia player for various audio and video formats (MPEG-1, MPEG-2, MPEG-4, DivX, mp3, ogg, ...) as well as DVDs, VCDs, and various streaming protocols
So it can play DivX at least on the PC. If you want to do watch it through MediaMVP, then I dont have any experience with that. VLC has extensive transcoding options, so you can play around with the options to see what would work correctly and then create a service including those options also.

Khurram
2008-10-29, 02:51 AM
Can you play DivX files through VLC? I'm interested in setting it up, but is there a step by step guide somewhere?
Take a look at http://www.rawsontetley.org/ref_mvpmcvlc.html. It might be useful.

adm1jtg
2009-01-08, 04:58 PM
I am also looking to use a vlc implementation for streaming non-mpg files. In my case DVD (vob) and possibly RM files. Please let me know if you got the basic VLC streaming working and if you did exactly what steps to follow.

mvallevand
2009-01-08, 05:24 PM
This implementation is not through emulation mode to GBPVR it is in the native mvpmc file system. It does still work but I'd strongly recommend 0.86 of vlc, since 0.9.x has many problems with the telnet interface.

Martin

adm1jtg
2009-01-08, 05:47 PM
I realize I would not be using gbpvr and thats ok with me. The problem I have is I cannot get it working. I have read through all the WIKI and postings and I just cannot seem to get the proper config file created. I am not at home now so cannot post my config file but the only things I would need are as follows in the config:

1) a cifs share named videos on the server 172.16.2.209 username is jeff and password is jeff
2) the vlc implementation line (vlc server is also 172.16.2.209)
3) The best version of vlc you mention .86 there are versions A all the way to I does it make a difference which?
4) The best version of your dongle, I think i am using a nightly build from a week or 2 ago
5) The line to start up the theme that has the large fonts on a blue background ( I think is the third on the list)
6) Lastly is this the right command to run on the server for VLC
vlc.exe -I ntservice --ntservice-install --ntservice-extraintf=http,Telnet --ntservice-option=--http-host=172.16.2.209:8081

Also do you know if vlc will do Rm files in this configuration assuming i have real alternative loaded on the server end?

I know this is a lot to go through but I have spent hours trying this on my own with absolutely no success at all.

Thanks for all your help

mvallevand
2009-01-08, 10:15 PM
Sorry, I don't support the vlc interface anymore from Windows, I wrote it but it's not worth the aggrevation given how well GBPVR integrates with ffmpeg and you have Zprocess for the fancy stuff. That being said I note a couple of things

- vob files aren't passed to vlc, mpvmc plays them nativelly.
- you shouldn't override the default http interface it is started by telnet
- rm file couldn't be transcoded to mpg via the http interface when I wrote this.
- if you want to use GBPVR, the dongle on sub's survival guide is better than the nightly, the vlc interface is the same
- you should experiment with the versions of vlc on your own
- my command line that still works has remained simply "vlc -I Telnet"

Martin