Simple videostacking like fuzzy
#1
hi, everyone. i'm xtg05 from korea.

i'd like to suggest some tags to provide "fuzzy like simple stacking" Smile

"fuzzy video stacking" has been removed from xbmc cvs since 050321.

instead, they provided <videostacking> tag into xboxmediacenter.xml as follows.

   <videostacking>
       <regexp>[ _\.-]+part[ \.]+([0-9a-d]+)</regexp>
       <regexp>[ _\.-]+cd[ \.]+([0-9a-d]+)</regexp>
       <regexp>[ _\.0-9-]([abcd])\....$</regexp>
       <regexp>[^ \.]([0-9])\....$</regexp>
   </videostacking>


i found that newer "simple stacking" with above tag can not cover some naming conventions such as,

   blabla-cd1-blabla.avi

i suggest a video stacking tag to cover such a naming as follows.

   <videostacking>
       <regexp>[ _\.-]*part[ _\.-]?([0-9a-d]+)</regexp>
       <regexp>[ _\.-]*cd[ _\.-]?([0-9a-d]+)</regexp>
<regexp>[ _\.-]*e[ _\.-]?([0-9]+).*</regexp>
       <regexp>[ _\.-]*([0-9a-d]+)\....$</regexp>
   </videostacking>

this tag is for stacking "part", "cd", "e"(for episodes of series).

the major differences from original tag are "*", "?" and ".*".

"*" is for the expression that 0 or mutiple times appears.

"?" is for the expression that 0 or just 1 times appears.

and, ".*"is for the sub titles of episodes.

thanks.

i'm expecting your feedbacks.

[email="[email protected]"][email protected][/email]
Reply
#2
edit: moved my post to a differnet area.
Reply
#3
hmmm - have you corrected these since originally posted?

in any case, they're better now.

first 2 are great - will make these the new defaults i think.

the 3rd one doesn't need the .* at the end - regexps will just match the first occurence, so anything after the episode number won't matter anyway.

the 4th i'm not so sure about - seems to match any filename ending in a, b, c or d?

cheers,
jonathan
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#4
(xtg05 @ april 17 2005,17:06 Wrote:   <videostacking>
       <regexp>[ _\.-]*part[ _\.-]?([0-9a-d]+)</regexp>
       <regexp>[ _\.-]*cd[ _\.-]?([0-9a-d]+)</regexp>
       <regexp>[ _\.-]*e[ _\.-]?([0-9]+).*</regexp>
       <regexp>[ _\.-]*([0-9a-d]+)\....$</regexp>
   </videostacking>
if i could give some opinions, i'd like to say the first one, <regexp>[ _\.-]*part[ _\.-]?([0-9a-d]+)</regexp> , is optional, not neccessarily needed, without this regexp, all your video files named like "abc.part.1, abc.part.2" or "abc.part1, abc.part2" still could be stacked together.


using your regexp, some video files still cannot be stacked together, for example:

scenes.from.a.marriage.1973.tv.scene.1.dvdrip.xvid-fragment
scenes.from.a.marriage.1973.tv.scene.2.dvdrip.xvid-fragment
scenes.from.a.marriage.1973.tv.scene.3.dvdrip.xvid-fragment
scenes.from.a.marriage.1973.tv.scene.4.dvdrip.xvid-fragment
scenes.from.a.marriage.1973.tv.scene.5.dvdrip.xvid-fragment
scenes.from.a.marriage.1973.tv.scene.6.dvdrip.xvid-fragment

ep-01.avi
ep-02.avi
ep-03.avi
ep-04.avi
ep-05.avi
ep-06.avi
ep-07.avi
ep-08.avi

successful student.01.avi
successful student.02.avi
successful student.03.avi
successful student.04.avi
successful student.05.avi

the.aviator.a-bmf.avi
the.aviator.b-bmf.avi


my regexp is something like this:
 <videostacking>
       <regexp>[ _\.-]*cd[ _\.-]*([0-9a-d]+)</regexp>
      <regexp>[ _\.-]*([0-9a-d]+)\....$</regexp>
                <regexp>\-([a-z0-9]+)-</regexp>
                <regexp>\.([a-z0-9]+)-</regexp>
                <regexp>\-([a-z0-9]+)*</regexp>
                <regexp>\.([a-z0-9]+)*</regexp>
</videostacking>

all video files could be stacked together using these regexp.

the fourth one is for  video files like "the.aviator.a-bmf" , and the third one is for video files like "the.aviator-a-bmf".

the fifth one is for series like "ep-01......08.avi", the sixth one is for series like "successful student.01.....05.avi"


i'm thinking how to combine the 3th and 4th regexp into one single regexp, i tried <regexp>\(-|.)*([a-z0-9]+)-</regexp> , but to no avail, could anyone help with this?
Reply
#5
@xtg05:

what's the third one for? (the one with the "e" in it?) tv series in the s01e01 convention? and if it is for tv series, what about the 1x01 convention?


@xboxfan:

you can combine the lower four into two, like this:

<regexp>[-\.]([a-z0-9]+)-</regexp>
<regexp>[-\.]([a-z0-9]+)*</regexp>

the [-\.] means that character can be a dash or a period.

@jmarshall:

i know i'm not the only person who would prefer if tv series were not stacked by default. maybe put the regexps in the config but commented out with a note saying uncomment this to stack tv series, with an example to show the formatting.)

@all:

why do you all feel that xbmc has to do all the work to clean up *your* files? you should put some effort into this too. the supported filename conventions are very easy to understand. rename your files to fit them.

if you dont want to, then by all means please play with the regexps to match them. but dont go bitching that they should be added as new default regexps.



Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply
#6
(kraqh3d @ april 18 2005,15:15 Wrote:@xboxfan:

              <regexp>\-([a-z0-9]+)-</regexp>
               <regexp>\.([a-z0-9]+)-</regexp>
               <regexp>\-([a-z0-9]+)*</regexp>
               <regexp>\.([a-z0-9]+)*</regexp>


you can combine the lower four into two, like this:

<regexp>[-\.]([a-z0-9]+)-</regexp>
<regexp>[-\.]([a-z0-9]+)*</regexp>

the [-\.] means that character can be a dash or a period.  
this one: <regexp>[-\.]([a-z0-9]+)-</regexp> doesn't work for file like:

the.aviator.a-bmf.avi
the.aviator.b-bmf.avi

this one: <regexp>[-\.]([a-z0-9]+)*</regexp> works fine, thanks!
Reply
#7
i want fuzzy stacking back! Smile

it seems that you have to be a dev to make some new expressions in the .xml file..
My XBOX built into a Sony Hifi CD-Player Case
XBOX Hifi Media Center Picture Gallery

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#8
@scape:

fuzzy will not be put back.  we're trying to reduce unwanted stackings.

@xboxfan

i made no assumptions about what your regexps were for.  i was just showing you how to consolidate them.  if the intention of both of those was to accomodate files with the additional stuff on the end, like the group, you should really make it something like this:

<regexp>[-\.]([a-z0-9]+)[-\.]?.*</regexp>

its a seperator, followed by the volume descriptor, followed by another possible seperator, followed by all the other junk.  you can add additional seperators by adding those characters inside the sq brackets.  and if you have situations with more than one seperator character add a plus after the closing sq bracket.

actually, you can use any of these modifiers:
? = zero or one
* = zero or more
+ = one or more



Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply
#9
i tried, <regexp>[-\.]([a-z0-9]+)[-\.]?.*</regexp> didn't work,
i also tried <regexp>[-\.]([a-z0-9]+)[-\.]?</regexp> , didn't work as well.
Reply
#10
it works fine in perl. i guess the regexp engine we're using is a little off.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply
#11
(kraqh3d @ april 21 2005,14:39 Wrote:i guess the regexp engine we're using is a little off.
does it mean we'll use a better regexp engine in the coming xbmc release? :d
Reply
#12
how do you let things like
be.cool.dvdscr.xvid-done.1.avi
be.cool.dvdscr.xvid-done.2.avi
stack?
* Striker wants fuzzy back too :verysad:

but if its fixable with a bunch of regexp's i dont care Wink
i just dont understand how to make them
Reply
#13
striker,

try this:
<regexp>[ _\.-]([0-9a-d])\.....?$</regexp>

this should stack anything that has a seperator followed by a single character volume id just before the file extension. if you need to add more seperators, put them in the first set of square brackets.


i really urge you guys to put a little effort into this from your end and try renaming your files to something logical. it will greatly enhance your xbmc experience. files will stack correctly, and you'll get better results from the video scan.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply
#14
tnx kraqh3d

some guys (like me) are just too lazy to rename everything
i have to say i dont use the scan function either and i normally dont keep the movie if i dont like it or i need some room on the hd
Reply
#15
i am having a hell of a time trying to figure this out as well. i have gone through all the effort of renaming my movies... all 400gigs worth on my xbox! problem is, like the others, what worked with fuzzy no longer does and i cant for the life of me figure out the correct string. i use spaces at the end of the movie and hide the extensions so that the title displays correctly without having all the .1, .part1, etc at the end. here is how i rename my movies.

[s] = a space (forums dont like multiple spaces so i have to use something to show its a space). here are 2 examples, one for a 2 part movie, one for a 3 part. the 3 parters i had to put in an extra space in each name because even in fuzzy it would only stack 2/3 of the files if all 3 didnt have a space at the end. with 2 part movies that wasnt a problem.

the movie[s][s][s].bin
the movie[s][s].bin
the movie[s].bin

the video[s].bin
the video.bin

any clue on what the regexp might look like for my dilema?
Reply

Logout Mark Read Team Forum Stats Members Help
Simple videostacking like fuzzy0