Official BS.Player forums

Official BS.Player forums (http://forum.bsplayer.com/index.php)
-   Bug Reports And Codecs (http://forum.bsplayer.com/forumdisplay.php?f=10)
-   -   Start from command line (http://forum.bsplayer.com/showthread.php?t=8700)

Bro 18th January 2008 08:45 AM

Start from command line
 
Hi

When running
Code:

path-to.bsplayer "media file1" "media file 2"
on the command line, bsplayer only plays the first file.
Whats the point with that?
Any sensible media player would play all the files on the command line...

Bro

Tizio 18th January 2008 01:17 PM

Moved to bugs report sections, but left a copy in the features request (if it's a bug it will be fixed, if it isn't intended to work like this now, it will be implemented) :)

BSPeter 18th January 2008 01:25 PM

You did read file "cmdline.txt" in the (sub)folder "doc" of BS.Player's installation folder I suppose. Anyhow, I think you could use BS.Player's feature to run a playlist for your purposes. This feature has been around since the very early days of BS.Player. I hereunder copy the info of BSPlayer version 0.86
Code:

Command line:

bplay "my file.avi" ["my subtitles.txt"] [options]
or
bplay "my playlist.bsl" [options]
or
bplay "inifile.ini" [options]

File name must always be the first and subtitle file second
argument.

Options are:
-fs                Start in full screen
-asx                Start with x audio stream
                x=1-> 1st audio stream
                x=2-> 2nd audio stream
                x=n-> n audio stream
                x=0-> Semi's Directsound 3D
-stime=x                Start movie at x seconds
-nsub                Don't show subtitles even if subtitle file exists
-skin=s                s=skin name
-lang=l                l=language file without extension
-eend                Exit when movie is finished
-pan                Use Pan-scan
-res=WxHxD        Start in specified resolution
                W=width, H=height, D=color depth
                Ex.: -res=1024x768x16
-ar=x:y                Aspect ratio, Ex.: -ar=16:9


Ex.: bplay "my movie.avi" "my subtitles.txt" -fs
    bplay "my movie.avi" "my subtitles.txt" -fs -as2
    bplay "my movie.avi" "my subtitles.txt" -as3 -lang=English


Subtitles:

Subtitles must be in the same directory as movie
Ex.: The Matrix.avi -> The Matrix.srt (.txt, .sub)
you can load them from the menu or you can supply them in
command line
Supported subtitle formats: MicroDVD, SubRip, Subviewer,
TMPlayer...


Playlist:

Just a simple text file with .bsl extension.

Ex.:

--
c:\movies\The Matrix.avi
c:\movies\somefile.avi
d:\videos\myvideo.mpg
--

Note, that at that time the executable was bplay.exe instead of bsplayer.exe!
So at present the commandline instruction to run a playlist would be (didn't try whether it still works!):
bsplayer.exe "playlist.bsl" [options]
(depending from where you start it "bsplayer" could have to be full path and name of bsplayer.exe; this is also valid for the playlistfile)
In fact also simply "running" the playlist.bsl file should do the trick as well (on the understanding that the file-extension .bsl is properly associated with BSPlayer).
Suppose you know how to create a playlist?
Perhaps also read these posts:
http://www.bsplayer.com/forum/viewtopic.php?t=6131
http://www.bsplayer.com/forum/viewtopic.php?t=2672
:wink:

BSPeter 18th January 2008 01:39 PM

Meanwhile did some very quick testing.
Seems that there is something wrong with the possibility to save (not using notepad-method, but from within BS.Player's "old-style" playlist) correct playlist-files in txt format (seems OK in "internal" format), though loading txt format playlist-files seems to be OK.
Have to run now (late already).
:wink:
(PS: The error when just opening old-style playlist already previously reported!)

adicoto 18th January 2008 04:40 PM

In the installation folder you will find more executables (for compatibility with older ini files) such as: bplay.exe, bsplay.exe and bsplayer.exe Doesn't matter wich one you use to launch, the result it's the same.

Bro 18th January 2008 05:43 PM

Hi

I'm aware of the play-list feature, but that doesn't do it.
I need to execute media players with file names as arguments (in Java), and creating a play-list for every movie is hopeless.

It works fine in vlc, and should work on every media player in my opinion.

brother 19th January 2009 07:15 PM

Hi,

I know this post is quite old, but I have similar issues with v 2.34 under XP Pro SP3.

This is my command line:

prompt>bsplayer.exe "my-video.avi" -fs

what happens next is that player starts playing the file, but not in fullscreen. In fact, I can't get any parameter to work; It just plays, no matter what I specify after hte video filename.

BTW, only "bsplayer" work. I tried botth "bplay" and "bsplay" and nothing happens.

What am I doing wrong?

Regards,

©bROTHER

Tizio 20th January 2009 06:45 PM

Hi, I just tried to start BSplayer by commandline and with hide and fs parameters it worked without problems..
Operating system (mine is WinXP)?
Have you tried to pass the entire BSplayer path to the command line prompt?
Ex.: prompt>C:\Programs\Webteh\BSplayer\bsplayer.exe "MOVIE_PATH\movie_name.MovieExtension" -fs

Anyway I can confirm that both bsplay.exe and bplay.exe are borken :evil:

brother 22nd January 2009 08:01 PM

Hi,

Mine's XP Pro SP3.

I just copied the video file to the BSPlayer folder and opened there the command prompt, so its the same thing.

But ... trying today again I noted a blink when using the -fs and after some tries I found out that the setting "remenber zoom" was preventing me from having the -fs effect. I guess the same happens with the remaining paramenters.

So, it was just a question about overriding parameters (something that BSP should take care of, as I have more trheads opened with related items), but I wouldn`t found out if you shouldn't noted me that it was working for you, so..

Thank you!!

Regards,

bROTHER

Ico-man 23rd January 2009 03:33 PM

BS.Player playback of multiple media files
 
prompt>bsplayer.exe "my-video.avi" -fs

what happens next is that player starts playing the file, but not in fullscreen. In fact, I can't get any parameter to work; It just plays, no matter what I specify after hte video filename.

BTW, only "bsplayer" work


We have tested this and both with and without.exe works ok.

To play multiple files create a playlist in .m3u or .bsl format and run it with BS.Player like shown by BSPeter above.

brother 26th January 2009 12:24 PM

Hi,

You misundertood me.

What I was trying to tell is that only "bsplayer.exe" works, but not "bsplay.exe" or "bplay.exe" as confirmed by tizio. Maybe these are for an unknown task I'm not aware of, I dunno.

I do not want to use the playlist feature, but just get bsplayer working throught parameters passing (as a external player on MediaPortal), and I think that parameters should override program settings for that instance externally called, as many other sw does. This is a general behaviour I find very often in BSP and is really annoying.

Regards,

©bROTHER

Tizio 26th January 2009 08:29 PM

FYI: bplay.exe and bsplay.exe are available for compatibility with programs made for BSplayer v0.xx
Once BSplayer v1 had been released the main exe has been changed to bsplayer.exe, and Boris added the bplay.exe and bsplay.exe to make BSplayer old users happy.
I doubt that ATM someone still uses applications meant to qork with old BSP versions that require to start BSplayer v2.xx through commandline. Maybe with BSplayer v3 this compatibility support will be removed, but this is a thing that only Boris or other BSP devs can tell :roll:


Anyway in my opinion brother is right, the command line parameters should override BSplayer settings

rst 11th October 2016 03:32 PM

and how to add another media file, and / or youtube video url to the player list by command line, while bsplayer is working with other video ?

i have tried

bsplayer.exe -ADD "https://www.youtube.com/watch?v=jIDKPuQjd0Q"

it didnt work, it is no added to the player list.

thx in advance

rakdffmskta 5th November 2016 10:24 AM

There are good information on you tube.


picnic spots


All times are GMT +1. The time now is 09:30 PM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
Ad Management plugin by RedTyger


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20