PDA

View Full Version : Setup videostacking?


jodiah
2005-04-01, 06:46
ok, i regularly used video stacking "fuzzy" up until this last week and am running into some trouble setting my files up to view.

here's the issue. i stack videos using a system of .a .b .c for multiple parts, when i entered this expression:

<regexp>[ _\.-]*[\.]*([a-d])*</regexp>

into xboxmediacenter.xml my movies don't stack properly, the (.a - .d's) do dissapear. admittedly i probably have the format all wrong ;)

any suggestions out there?

thanks!

jmarshall
2005-04-01, 08:59
if you have:

filename.a.avi
filename.b.avi
filename.c.avi

then you just need <regexp>\.([a-d])\.</regexp>

that will detect *.a.*, *.b.* and so on. i left the second period in due to the fact that you don't want it detecting *.avi

the ( and ) are needed, as this is what tells xbmc what to consider as the volume number to sort on.

the \. is needed instead of . as . is a special character in regexps (means any single character). the [] are used to say that you can have any of the contained characters in this position.

note that the rest of the string (ie the filename and avi portions) must also match.

cheers,
jonathan

jodiah
2005-04-02, 01:01
thanks jonathan!

that did the trick...

i noticed that using my original (erroneous) expression that the (.a.b.c) was hidden, presumably as part of the filetype. is it possible to make that behavior happen here?

thanks again!

MidKnight
2005-04-02, 01:09
what about a filename like this?

omi-stonecold.hra.avi
omi-stonecold.hrb.avi

kraqh3d
2005-04-02, 01:38
assuming its only hra and hrb:

<regexp>\.hr[ab]\.</regexp>

if its more, add them inside the square brackets.

jmarshall
2005-04-02, 11:07
jodiah: it should hide it. if it's not, it could be because i haven't taken care of all cases. will test the above example later today.

edit: found the reason. it's because it no longer matches once the extension has been removed. :fixed:

cheers,
jonathan

PaG
2005-04-29, 01:53
hi,

ok, i can't get this to work following your examples, its just probably me being a noob at this. :d

here is my filename:

21 grams (cd1) (alliance).avi
21 grams (cd2) (alliance).avi

all my movies are labled with the (cd1), (cd2) and so on...

what regexp syntax should i use ??

thanks for your help..

pag

XboxWare
2005-04-29, 06:10
i think <regexp>\(cd([0-9])\)</regexp> should work

PaG
2005-04-29, 10:09
thanks man, worked like a charm... :)

pag

hansie2
2005-05-03, 16:59
wow, guys, this is too difficult for me. why change something which worked ok?

how to stack videos like:

- film (1 of 2).avi
- film (2 of 2).avi

with regexp?

thanks for any help.

Solo0815
2005-05-03, 20:14
jodiah: it should hide it. if it's not, it could be because i haven't taken care of all cases. will test the above example later today.

edit: found the reason. it's because it no longer matches once the extension has been removed. :fixed:

cheers,
jonathan
i think itīs not fixed:
if i enable "hide file extensions" the file shows up as "the grudge.1" (stacking works)

if iīm not hiding file extensions the file is shown as it should "the grudge" (stacking works also)
the filenames are:
the grudge.1.bin
the grudge.2.bin
itīs the same with mpgs
pls fix this
thx

cvs 02.05.05 from x*i*s ;)

AIC
2005-05-07, 20:34
i'm totally stuck on this, i've had a play and got no-where with it.

if my films are for example:

star wars 1-cd1.avi
star wars 1-cd2.avi

how on earth do i do the regexp? also do i need to remove the other regexp entries or do they need to stay?

thanks

flybynite
2005-05-14, 22:40
i am having a hard time getting videos like such to stack. i have lots of videos in such a format that are not stacking.

am.aanch.svcd.cd1of2.mpg

am.aanch.svcd.cd2of2.mpg

also

am.black.svcd.1.of.2.karan.bin
am.black.svcd.2.of.2.karan.bin

any help would be appriciated

gglaze
2005-05-15, 04:12
aic:

i just posted about this somewhere else - i am going to update the default settings to handle this correctly. the change to make is this:

<regexp>[ _\.-]+cd[ _\.-]*([0-9a-d]+)</regexp>

(* instead of +)

flybynite:

i assume you also want to get rid of those svcd labels when the name gets cleaned up. in that case, you should use something like:

<regexp>svcd[ .-](cd)?([0-9]+)[ .-]?of[ .-]?([0-9]+)</regexp>

that's totally untested and off the top of my head, but maybe it will point you in the right direction.

flybynite
2005-05-15, 18:41
:bowdown: gglaze thanks that takes care of that issue. is there site that talks about regexp? so that i can learn about its format.

but this is not stacking

am.zeher.svcd.2005.dvdrip.cd.1.of.3.murgha.bin
am.zeher.svcd.2005.dvdrip.cd.2.of.3.murgha.bin
am.zeher.svcd.2005.dvdrip.cd.3.of.3.murgha.bin

also

hum.dum.svcd.2005.cd.1.of.2.murgha.bin
hum.dum.svcd.2005.cd.2.of.2.murgha.bin

and
am.agneepath(1990).xvid.1of2bh.avi
am.agneepath(1990).xvid.2of2bh.avi

and

am.bewafa.2005.dvdrip.svcd.cd.1.of.3.murghi.bin
am.bewafa.2005.dvdrip.svcd.cd.2.of.3.murghi.bin
am.bewafa.2005.dvdrip.svcd.cd.3.of.3.murghi.bin

and finally

am.bride.and.prejudice.svcd.cd1.rix.bin
am.bride.and.prejudice.svcd.cd2.rix.bin
am.bride.and.prejudice.svcd.cd3.rix.bin


thanks

AIC
2005-05-15, 18:42
thanks, i'll have a go at this.

gglaze
2005-05-15, 19:55
there is a ton of information about regex out there - search on google for "regular expressions".

here is one i've been using for reference...
http://www.amk.ca/python/howto/regex/

i'll try out some tests with the various formats you mentioned and get back to you with some working expressions...

flybynite
2005-05-15, 19:59
thanks gglaze that would be great.

gglaze
2005-05-16, 03:30
ok flybynite, because i can't resist a challenge...

here is a single regexp that should cover all the cases you've mentioned here:

<regexp>[ _\.-]*(svcd)?[ _\.-]*([\(\[]?[0-9]{4,4}[\)\]]?[ _\.-]*)?(dvdrip)?[ _\.-]*(xvid)?[ _\.-]+(cd)?[ _\.-]*[0-9]+[ _\.-]*(of[ _\.-]*[0-9]+[ _\.-]*)?(bh[ _\.-]*)?(rix[ _\.-]*)?</regexp>
but at this point, i would have to agree with the other devs here - you would be better off trying to do some cleanup of file names before putting them to the xbmc challenge - when you start to logically look at these complex regex expressions, you start to get an idea of where the tradeoff between complexity and extra time spent cleaning up file names lies.

fyi, in addition to the other site i posted, take a look at this one:
http://koralsoft.dir.bg/venimus/index.htm

it is an online regex tester - i'm sure there are plenty, but this one seemed to work well for me, because it gives you results instantly as you type! this is much easier than messing with your settings and rebooting your xbox - give it a try.

keep in mind - the xbmc code does everything in lower-case, so to use a tool like this, you need to first convert everything to lower-case if you want to simulate the results you're going to get with xbmc.

hansie2
2005-05-16, 09:23
hi, this is giving me headaches. my movies are all in the following format:

movie (1 of 2).avi
movie (2 of 2).avi
etc.

i have tried several of the advices above, but none worked. i have tried: http://koralsoft.dir.bg/venimus/index.htm, but no solution.

any help is appreciated.

thank you in advance.

hans

flybynite
2005-05-16, 10:54
gglaze, some of the files from my earlier post are not working.

am.zeher.svcd.2005.dvdrip.cd.1.of.3.murgha.bin
am.zeher.svcd.2005.dvdrip.cd.2.of.3.murgha.bin
am.zeher.svcd.2005.dvdrip.cd.3.of.3.murgha.bin

also

hum.dum.svcd.2005.cd.1.of.2.murgha.bin
hum.dum.svcd.2005.cd.2.of.2.murgha.bin

and

am.bewafa.2005.dvdrip.svcd.cd.1.of.3.murghi.bin
am.bewafa.2005.dvdrip.svcd.cd.2.of.3.murghi.bin
am.bewafa.2005.dvdrip.svcd.cd.3.of.3.murghi.bin


but these are stacking fine. the fuzzy stacking always seemed to work in the earlier builds. i know that fuzzy is not coming back.

these stacked fine from the earlier post;

am.agneepath(1990).xvid.1of2bh.avi
am.agneepath(1990).xvid.2of2bh.avi

and

am.bride.and.prejudice.svcd.cd1.rix.bin
am.bride.and.prejudice.svcd.cd2.rix.bin
am.bride.and.prejudice.svcd.cd3.rix.bin

thanks

gglaze
2005-05-17, 02:15
hansie2:

give this a try:

<regexp>[ ]\([0-9]+[ ]of[ ][0-9]+\)</regexp>

flybynite:

i was pretty sure i tested out all the examples you gave, but maybe my expression was too complex for xbmc...

here are 3 separate examples to handle the cases you just posted:

<regexp>\.svcd\.[0-9]{4,4}\.dvdrip\.cd\.[0-9]+\.of\.[0-9]+\.murgha</regexp>

<regexp>\.svcd\.[0-9]{4,4}\.cd\.[0-9]+\.of\.[0-9]+\.murgha</regexp>

<regexp>\.[0-9]{4,4}\.dvdrip\.svcd\.cd\.[0-9]+\.of\.[0-9]+\.murghi</regexp>
and here's a single combined version of those 3:

<regexp>(\.(svcd)?([0-9]{4,4})?(dvdrip)?)*\.cd\.[0-9]+\.of\.[0-9]+\.(murgha)?(murghi)?</regexp>

guys - it's really not that hard - please have a look at the links i posted.
:cool:

jmarshall
2005-05-17, 12:27
gglaze: the regexp engine is fairly simple - it doesn't handle {} for instance. also, we look for the first set of () to determine the volume string to sort on.

Livin
2005-05-17, 20:42
i'm as lazy as it gets but wholly cramolly...

clean up the file names people!

you are getting the darn things for free at least spend 30 seconds and rename the files... sheesh!

regex cannot cover all possible text options!!!

hansie2
2005-05-18, 07:45
gglaze, thanks for the help, but when using your suggested

<regexp>[ ]\([0-9]+[ ]of[ ][0-9]+\)</regexp>

for videos named:

movie (1 of 2).avi
movie (2 of 2).avi

gives me:

movie
movie

it is better already, but is there any possibility for getting:

movie

any further help much appreciated.

thanks a lot.

hans

gglaze
2005-05-18, 11:11
right, based on what jm just said, i guess it would have to be...
<regexp>[ ]\(([0-9]+)[ ]of[ ]([0-9]+)\)</regexp>

hansie2
2005-05-18, 20:36
gglaze, thanks a lot. that did the trick. it works great now. keep up the good work.....

hans