Need help for Pattern in reel extraction

Get answers to your questions about color grading, editing and finishing with DaVinci Resolve.
  • Author
  • Message
Offline

Michael Phillips

  • Posts: 220
  • Joined: Sun Aug 26, 2012 9:09 pm
  • Location: Boston

Need help for Pattern in reel extraction

PostSat May 16, 2015 9:44 pm

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. :D

Thanks -

Michael
Michael Phillips
Consultant
www.linkedin.com/in/phillipsm
Offline
User avatar

Nick Shaw

  • Posts: 238
  • Joined: Thu Sep 13, 2012 11:43 am
  • Location: London, UK

Re: Need help for Pattern in REEL extraction

PostSat May 16, 2015 11:33 pm

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
Workflow Consultant, London UK
LUTs and LUT plugins
www.antlerpost.com
Offline
User avatar

Nick Shaw

  • Posts: 238
  • Joined: Thu Sep 13, 2012 11:43 am
  • Location: London, UK

Re: Need help for Pattern in REEL extraction

PostSat May 16, 2015 11:44 pm

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.
Workflow Consultant, London UK
LUTs and LUT plugins
www.antlerpost.com
Offline

Michael Phillips

  • Posts: 220
  • Joined: Sun Aug 26, 2012 9:09 pm
  • Location: Boston

Re: Need help for Pattern in REEL extraction

PostSat May 16, 2015 11:44 pm

Thanks Nick - so maybe it isn't just me. I double down on the feature request then.

Michael
Michael Phillips
Consultant
www.linkedin.com/in/phillipsm
Offline
User avatar

waltervolpatto

  • Posts: 11058
  • Joined: Thu Feb 07, 2013 5:07 pm
  • Location: 6040 Sunset Blvd, Hollywood, CA 90028

Re: Need help for Pattern in REEL extraction

PostSun May 17, 2015 4:28 am

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
W10-19043.1645- Supermicro MB C9X299-PGF - RAM 128GB CPU i9-10980XE 16c 4.3GHz (Oc) Water cooled
Decklink Studio 4K (12.3)
Resolve 19.0 / fusion studio 19
GPU 3090ti drivers 512.59 studio
Offline
User avatar

Nick Shaw

  • Posts: 238
  • Joined: Thu Sep 13, 2012 11:43 am
  • Location: London, UK

Re: Need help for Pattern in REEL extraction

PostMon May 18, 2015 9:38 am

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?
Workflow Consultant, London UK
LUTs and LUT plugins
www.antlerpost.com
Offline
User avatar

waltervolpatto

  • Posts: 11058
  • Joined: Thu Feb 07, 2013 5:07 pm
  • Location: 6040 Sunset Blvd, Hollywood, CA 90028

Re: Need help for Pattern in REEL extraction

PostMon May 18, 2015 2:51 pm

Ah!.

I'm a donkey.
W10-19043.1645- Supermicro MB C9X299-PGF - RAM 128GB CPU i9-10980XE 16c 4.3GHz (Oc) Water cooled
Decklink Studio 4K (12.3)
Resolve 19.0 / fusion studio 19
GPU 3090ti drivers 512.59 studio
Offline
User avatar

waltervolpatto

  • Posts: 11058
  • Joined: Thu Feb 07, 2013 5:07 pm
  • Location: 6040 Sunset Blvd, Hollywood, CA 90028

Re: Need help for Pattern in REEL extraction

PostMon May 18, 2015 2:56 pm

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
W10-19043.1645- Supermicro MB C9X299-PGF - RAM 128GB CPU i9-10980XE 16c 4.3GHz (Oc) Water cooled
Decklink Studio 4K (12.3)
Resolve 19.0 / fusion studio 19
GPU 3090ti drivers 512.59 studio
Offline

Antonis Arapostathis

  • Posts: 47
  • Joined: Sun Nov 19, 2017 8:15 pm

Re: Need help for Pattern in REEL extraction

PostMon Jan 11, 2021 12:36 am

Sorry, another one.

How can I extract a reel name from the 8 rightmost characters of a filename?
Offline
User avatar

waltervolpatto

  • Posts: 11058
  • Joined: Thu Feb 07, 2013 5:07 pm
  • Location: 6040 Sunset Blvd, Hollywood, CA 90028

Re: Need help for Pattern in REEL extraction

PostMon Jan 11, 2021 9:08 pm

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.
W10-19043.1645- Supermicro MB C9X299-PGF - RAM 128GB CPU i9-10980XE 16c 4.3GHz (Oc) Water cooled
Decklink Studio 4K (12.3)
Resolve 19.0 / fusion studio 19
GPU 3090ti drivers 512.59 studio
Offline

Antonis Arapostathis

  • Posts: 47
  • Joined: Sun Nov 19, 2017 8:15 pm

Re: Need help for Pattern in reel extraction

PostWed Jan 20, 2021 10:49 pm

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.
Offline
User avatar

waltervolpatto

  • Posts: 11058
  • Joined: Thu Feb 07, 2013 5:07 pm
  • Location: 6040 Sunset Blvd, Hollywood, CA 90028

Re: Need help for Pattern in reel extraction

PostFri Jan 22, 2021 4:29 pm

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?
W10-19043.1645- Supermicro MB C9X299-PGF - RAM 128GB CPU i9-10980XE 16c 4.3GHz (Oc) Water cooled
Decklink Studio 4K (12.3)
Resolve 19.0 / fusion studio 19
GPU 3090ti drivers 512.59 studio
Offline

Antonis Arapostathis

  • Posts: 47
  • Joined: Sun Nov 19, 2017 8:15 pm

Re: Need help for Pattern in reel extraction

PostSat Jan 23, 2021 7:57 pm

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.
Offline

Peter Cave

  • Posts: 4306
  • Joined: Thu Aug 23, 2012 6:45 am
  • Location: Melbourne, Australia

Re: Need help for Pattern in reel extraction

PostSat Jan 23, 2021 11:03 pm

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
Resolve 19.1.2 Mac OSX 15.3 Sequoia, Monitor 3G, FSI SDI grading monitor.
Mac M1 Studio Max 32GB
Offline
User avatar

waltervolpatto

  • Posts: 11058
  • Joined: Thu Feb 07, 2013 5:07 pm
  • Location: 6040 Sunset Blvd, Hollywood, CA 90028

Re: Need help for Pattern in reel extraction

PostSun Jan 24, 2021 5:34 am

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.
W10-19043.1645- Supermicro MB C9X299-PGF - RAM 128GB CPU i9-10980XE 16c 4.3GHz (Oc) Water cooled
Decklink Studio 4K (12.3)
Resolve 19.0 / fusion studio 19
GPU 3090ti drivers 512.59 studio

Return to DaVinci Resolve

Who is online

Users browsing this forum: Bing [Bot], Mads Johansen, panos_mts, sjubussen and 317 guests