NextPVR Forums

Full Version: config VLC?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
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
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
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
jasjol Wrote:"- 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)

jasjol Wrote:"- 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.


jasjol Wrote:"- 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:
jasjol Wrote:## 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.

jasjol Wrote: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.

jasjol Wrote:* 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.
natewin Wrote: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.
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):
Quote:vlc.exe -I ntservice --ntservice-install --ntservice-extraintf=http,Telnet --ntservice-option=--http-host=0.0.0.0:8081
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? Tongue
Zato Wrote: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
Quote: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.
Zato Wrote: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.
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.
Pages: 1 2