Page 1 of 1
Need help for Pattern in reel extraction

Posted:
Sat May 16, 2015 9:44 pm
by Michael Phillips
Hey all - I am not good with syntax to use for pattern in REEL ID extraction. I have a case where the embedded metadata is not what is expected and am looking for the proper pattern to use. the filename is:
B901C002_150515_R6QY.mov
The third party recorder in this case (offboard proxy recorder) embeds the following:
150515
And it really needs to be:
B901R6QY
Any help or guidance appreciated. I've read the manual, tried many times, but my head cannot get around it. Feature request: I want the UI that lets me do a multspan select of a file name and the computer figure out the pattern for me.
Thanks -
Michael
Re: Need help for Pattern in REEL extraction

Posted:
Sat May 16, 2015 11:33 pm
by Nick Shaw
Not sure if Resolve pattern matching lets you construct a reel name from two parts of the file name. I think it all needs to be there together somewhere in the path. If your clips are in folders which have the truncated file name as their name (like original ALEXA media does) you can easily extract the parent folder name as the reel name using */%R/%D
Re: Need help for Pattern in REEL extraction

Posted:
Sat May 16, 2015 11:44 pm
by Nick Shaw
Or use search and replace in a text editor to remove R6QY (which should be the same for every clip from that same camera) from the reel names in your EDL, leaving only B901 or whatever. Then */%RC*_*_* will match that.
Re: Need help for Pattern in REEL extraction

Posted:
Sat May 16, 2015 11:44 pm
by Michael Phillips
Thanks Nick - so maybe it isn't just me. I double down on the feature request then.
Michael
Re: Need help for Pattern in REEL extraction

Posted:
Sun May 17, 2015 4:28 am
by waltervolpatto
Most likely the first 9 char are always the same length, you can use ????????? For that.
so, you have B901C002_150515_R6QY.mov
First you need to go to the first dot, then the first _, then get the name and take the first 9 char out of it And the rest of the path is crap.
I will try with
*/?????????%R_*.*
Or even
*/?????????%R_*
should work
*/????????_%R_* could work
*/*_%R_* the last if works is a miracle but you can try
Leggasi: start from the right, skip all up to the first underscore, get the rest of the name and ignore the first 9 chars
W
Re: Need help for Pattern in REEL extraction

Posted:
Mon May 18, 2015 9:38 am
by Nick Shaw
Walter, your patterns all produce 150515, which is what he is already getting from the embedded reel name.
Unless I misunderstand, he wants to extract the proper ARRI truncated reel name, which is made up of the first four characters of the file name, followed by the last four (before the extension). I believe Resolve's pattern matching can only create a reel name from a single sequence of characters in the path name. He needs to concatenate two sequences.
Is that right Michael?
Re: Need help for Pattern in REEL extraction

Posted:
Mon May 18, 2015 2:51 pm
by waltervolpatto
Ah!.
I'm a donkey.
Re: Need help for Pattern in REEL extraction

Posted:
Mon May 18, 2015 2:56 pm
by waltervolpatto
Well i think i will do one of three things:
Re do the database in the editor
manually select the clip and force the tape id
manually cut them in
It also depend how many you have to cut in, 100 can be fine in one hour, all of them, i will go back to the nle
Re: Need help for Pattern in REEL extraction

Posted:
Mon Jan 11, 2021 12:36 am
by Antonis Arapostathis
Sorry, another one.
How can I extract a reel name from the 8 rightmost characters of a filename?
Re: Need help for Pattern in REEL extraction

Posted:
Mon Jan 11, 2021 9:08 pm
by waltervolpatto
Antonis Arapostathis wrote:Sorry, another one.
How can I extract a reel name from the 8 rightmost characters of a filename?
There is a small chapter in the manual that shows the options, i dint remember on top of my head.
Re: Need help for Pattern in reel extraction

Posted:
Wed Jan 20, 2021 10:49 pm
by Antonis Arapostathis
Thank you. I read it.
But I didn't manage to achieve this exact operation. For example, I managed to delete X characters from the beginning or the end of the filename using "?". But I couldn't figure out a way to keep X characters.
Re: Need help for Pattern in reel extraction

Posted:
Fri Jan 22, 2021 4:29 pm
by waltervolpatto
Antonis Arapostathis wrote:Thank you. I read it.
But I didn't manage to achieve this exact operation. For example, I managed to delete X characters from the beginning or the end of the filename using "?". But I couldn't figure out a way to keep X characters.
Do you mind to put the full path and the filename and the reel name you want?
Re: Need help for Pattern in reel extraction

Posted:
Sat Jan 23, 2021 7:57 pm
by Antonis Arapostathis
Thank you
I have files with and without a prefix:
For example
A1-0511_000413_0206S3.MP4
and
000413_0206S3.MP4
The part I want to keep in both cases is:
000413_0206S3
As prefixes may or may not exist, I cannot just delete the first 8 characters (the A1-0511_ part). I have to keep the last ones.
BTW I found a workaround to the actual challenge I was facing, but if you know the answer I think it would still be interesting to the forum.
Re: Need help for Pattern in reel extraction

Posted:
Sat Jan 23, 2021 11:03 pm
by Peter Cave
Antonis Arapostathis wrote:Thank you
I have files with and without a prefix:
For example
A1-0511_000413_0206S3.MP4
and
000413_0206S3.MP4
The part I want to keep in both cases is:
000413_0206S3
As prefixes may or may not exist, I cannot just delete the first 8 characters (the A1-0511_ part). I have to keep the last ones.
BTW I found a workaround to the actual challenge I was facing, but if you know the answer I think it would still be interesting to the forum.
This topic may be useful:
viewtopic.php?f=21&t=121431&hilit=reel
Re: Need help for Pattern in reel extraction

Posted:
Sun Jan 24, 2021 5:34 am
by waltervolpatto
Antonis Arapostathis wrote:Thank you
I have files with and without a prefix:
For example
A1-0511_000413_0206S3.MP4
and
000413_0206S3.MP4
The part I want to keep in both cases is:
000413_0206S3
As prefixes may or may not exist, I cannot just delete the first 8 characters (the A1-0511_ part). I have to keep the last ones.
BTW I found a workaround to the actual challenge I was facing, but if you know the answer I think it would still be interesting to the forum.
you cannot do it with only one string I think.
1) select all the clips that have the full name: A1-0511_000413_0206S3.MP4 clip attribute and in the reel use
*/????????%R.* --> this will extract 000413_0206S3
2) select all the clips that have only 000413_0206S3.MP4, clip attribute reel and use
*/%R.*that should work.