Official BS.Player forums

Official BS.Player forums (http://forum.bsplayer.com/)
-   General Talk And Support (http://forum.bsplayer.com/general-talk-support/)
-   -   How to you create a .bsl which allows options to be used? (http://forum.bsplayer.com/general-talk-support/4169-how-you-create-bsl-allows-options-used.html)

darthnerd 8th March 2004 04:59 AM

How to you create a .bsl which allows options to be used?
 
Hi, i am a newbie in creating .bsl for Bsplayer... so i explain the situation..

Firstly, i created 2 simple .bsl files which can allow me to put to full screen and it starts at the 2 minutes. The first is called testing.bsl and it contains this :

C:\anime\GundamSeed.avi

While the 2nd one is testplaylist.bsl which contains this :

bsplay "c:\anime\testing.bsl" -fs -stime=120

It seems that i able unable to play it when i open "testplaylist.bsl" but i can play the avi file normally when i open testing.bsl...

And also, can i play a vcd format which is AVQ0001.DAT instead of GundamSeed.avi?

Many Thanks who read this :P

Note: All the files in placed in anime folder.

kaycea 8th March 2004 09:22 PM

Where did you find the list of command line options?

adicoto 8th March 2004 09:28 PM

On the doc folder of your installation folder.

kaycea 8th March 2004 09:37 PM

The only file in my doc folder is: ini_files.html

It lists what should go into .bsi files for versions >= 1.0

Any other place I can look?

darthnerd 9th March 2004 08:24 AM

you can look on here...


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

btw, i am using the 0.86 version one. however, what is the difference of coding other than the syntaxs only... it seems that 1.0 is more on dvd...

8)

kaycea 10th March 2004 04:51 PM

thanks a lot!

Quietseb 10th March 2004 11:38 PM

I doubt that you can use command line options in playlists.

As far as I know, bsplayer v0.xx support only the very simple format you describe in testing.bsl (= file names only)

bsplayer v1.0 supports this format plus an internal format able to remember some more infos (type, preferred aspect, full screen); this format is not editable with notepad or such, these playlists must be created with bsplayer

if you want to use your command line with only one file, I'd suggest you use a shortcut or a batch file

for instance create a new shorcut with target
Code:

bsplay "c:\anime\GundamSeed.avi" -fs -stime=120
or a batch file (.bat or .cmd file) which contains:
Code:

bsplay "c:\anime\GundamSeed.avi" -fs -stime=120
if you want that for several videos, maybe a batch file with something like:
Code:

bsplay "c:\anime\RurouniKenshin-01.avi" -fs -stime=120
bsplay "c:\anime\RurouniKenshin-02.avi" -fs -stime=120

(assuming you allow only one bsplayer instance; otherwise add the -eend switch)
I can't think of any other way to do that for every video :-/

darthnerd 11th March 2004 07:23 AM

O i see! :)
 
Thanks Quietseb! :D

let's say that i am playing 2 files as you had said as below. i presumed that the "-eend" command is placed at "bsplay "c:\anime\RurouniKenshin-02.avi" -fs -stime=120" line? do i stand correct?

if you want that for several videos, maybe a batch file with something like:
Code:

bsplay "c:\anime\RurouniKenshin-01.avi" -fs -stime=120
bsplay "c:\anime\RurouniKenshin-02.avi" -fs -stime=120

(assuming you allow only one bsplayer instance; otherwise add the -eend switch)
I can't think of any other way to do that for every video :-/[/quote]

Btw, it seems that it has a option of start time.. not finish time.. strange huh? anyway, thanks again!

Quietseb 11th March 2004 06:01 PM

actually I tested it today and whether or not you allow multiple instance, you have to add the -eend command on each line:
when a line of the batch file is executed, the next line won't be executed until bsplayer has exited => you have to close bsplayer at the end of each movie so it can start the next one.
[oh, and unless you have added bsplayer directory to your %PATH% or the bat is executed from the same directory as bsplayer.exe, you have to put the whole path to bsplayer, like "C:\Program Files\bsplay100.800\bsplay.exe" ("" needed if the path contains spaces)]

note: there are more subtle ways to launch an application from a batch file that would not require closing bsplayer between 2 videos (something like 'start /wait' I think) but I think that would complicate things more than needed


btw I'm sorry I didn't think of that yesterday, but you may achieve your goal more easily with a bsi/ini file. playlists (bsl) are limited, but bsi files allow you to control bsplayer
Check possible options in the doc folder of your install dir, as adicoto said (I'm not up to date to bsi options myself); for sequencing multiple videos using bsi files, have a look at this post.
hope it helps

note: bsi files support is incomplete in bsplayer 1.0 at the moment, so maybe this isn't the best idea. I haven't tested it myself recently.


All times are GMT +1. The time now is 06:23 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