Magic Lantern Forum

Using Magic Lantern => Raw Video => Raw Video Postprocessing => Topic started by: Toffifee on April 18, 2014, 09:31:23 PM

Title: DaVinci Resolve audio auto sync
Post by: Toffifee on April 18, 2014, 09:31:23 PM
Hey,


I'm just curious, has anybody found a way to have resolve auto-nest the audio into your .DNG sequences so that it reads it as one movie file and not 1 .DNG sequence and 1 audio file?
Title: Re: DaVinci Resolve audio auto sync
Post by: chmee on April 18, 2014, 09:44:00 PM
i said already, i need the filename-convention from bmcc to deal with it. do you have?

pathname
+--> dng filename
+--> audio filename

i assume its all about this, because "wav"-files cant carry tc-metadata in itself.
Title: Re: DaVinci Resolve audio auto sync
Post by: Toffifee on April 18, 2014, 09:46:03 PM
No, but that would be something Blackmagic would have right?
Don't you think we could just ask them?
Title: Re: DaVinci Resolve audio auto sync
Post by: chmee on April 18, 2014, 10:12:17 PM
hmm, instead of asking bm i hoped some of the users worked with bm already and could tell it - the simple way :)
Title: Re: DaVinci Resolve audio auto sync
Post by: ted ramasola on April 18, 2014, 10:19:20 PM
chmee,

I downloaded a footage from a pocket and here's how the first dng is named:
Blackmagic Pocket Cinema Camera_1_2014-01-31_0050_C0000_000000.dng
2nd is:
Blackmagic Pocket Cinema Camera_1_2014-01-31_0050_C0000_000001.dng

and so on.

The wav file is named:
Blackmagic Pocket Cinema Camera_1_2014-01-31_0050_C0000.wav
Title: Re: DaVinci Resolve audio auto sync
Post by: chmee on April 18, 2014, 10:22:48 PM
the path? or is the pathname negligible? this kind of filenaming can be rebuilt with the filenamegenerator in raw2cdng1.5.0beta2
will test it next minutes..
Title: Re: DaVinci Resolve audio auto sync
Post by: ted ramasola on April 18, 2014, 10:26:39 PM
Ok, the folder name is I think also important.
The folder name convention is:

Blackmagic Pocket Cinema Camera_1_2014-01-31_0050_C0000
Title: Re: DaVinci Resolve audio auto sync
Post by: chmee on April 18, 2014, 10:46:07 PM
the good news: if you put (virtual) scene- and clipnumber into the name, this path with filesequence will be recognised as film not as path with a sequence inside. (you can see directly in the mediabrowser)

the bad news: it works with files without audiofile. i tried to cut the audiofile to same length as video, did not helped. will look closer now on that. but i m a step forward, i know a little bit better now, how the mediabrowser in resolve works..

Example filename-Template for raw2cdng: [F]_[D]_010_C0000(_)
tested with resolve10

investigating..

regards chmee
Title: Re: DaVinci Resolve audio auto sync
Post by: ted ramasola on April 18, 2014, 10:55:50 PM
note that the wav file from BMPC is 24bit while the extracted wav from mlv via your converter is 16bit. maybe that's the cause?
Title: Re: DaVinci Resolve audio auto sync
Post by: chmee on April 18, 2014, 11:01:15 PM
just tested. nope. sorry. (but was a good hint)
Title: Re: DaVinci Resolve audio auto sync
Post by: chmee on April 19, 2014, 01:20:51 AM
ok :) blackmagic is putting a xml-stream into the wav-file, thats not gentle, but possible to realize. thnks btw to dyfid
http://www.magiclantern.fm/forum/index.php?topic=7122.msg104365#msg104365

thanks to ted. he sent me some data and i could overview the part :) its about JUNK and bext. most of it is not used, but i think, with timecode and production date/time it will work. (upper part with modellname)

(http://dl.phreekz.de/raw2cdng/wav_xml_junk_bext.jpg)

information on JUNK and the whole rest.
http://netghost.narod.ru/gff/vendspec/micriff/ms_riff.txt

regards chmee
Title: Re: DaVinci Resolve audio auto sync
Post by: ted ramasola on April 19, 2014, 01:28:36 AM
yipeee. I knew there was something hidden in there somewhere. Good luck and hope you crack that thing soon chmee!
Title: Re: DaVinci Resolve audio auto sync
Post by: QuickHitRecord on April 19, 2014, 04:00:48 AM
I believe that auto audio sync is the last big hurdle for raw shooters. Sounds like you may be close to cracking the code. Good luck!
Title: Re: DaVinci Resolve audio auto sync
Post by: dyfid on April 22, 2014, 12:24:30 AM
Quote from: chmee on April 19, 2014, 01:20:51 AM
ok :) blackmagic is putting a xml-stream into the wav-file, thats not gentle, but possible to realize. thnks btw to dyfid
http://www.magiclantern.fm/forum/index.php?topic=7122.msg104365#msg104365

Thanks for the shout out, my post got buried in that thread.

Really miffed about Magic Lantern DNG format, I can add Exif Metadata 'Timecodes' to Magic Lantern DNG's simple enough using Exif Time & Date but Resolve won't read the Timecodes entry, so Resolve won't sync MLV wav & DNG's by Timecode. BUT if I do the same with a Digital Bolex DNG, adding 'Timecodes' Exif data from Time & Date Resolve does read the Timecodes Exif entry for Digital Bolex DNG's. SubIFD vs IFD0 I think.

Hoping Resolve 11 brings some help.

For the <BLACKMAGIC> iXML entries really could do with a wav file from a BM camera with loads of metadata added via the camera to establish the mark up tags to run through BWFEdit as it'll extract an xml file with them all listed.

The iXML injection via BWFEdit also works with audio from or within h264 MOV's as well.
Title: Re: DaVinci Resolve audio auto sync
Post by: chmee on April 22, 2014, 01:14:04 AM
this nested xml is one thing, the other important part is the upper bext-part. (i'm changing both) There is the timecode. Right behind datetime there are 8bytes (long). you can read about it in

// ebu bext references
https://tech.ebu.ch/docs/tech/tech3285.pdf
// and
https://tech.ebu.ch/docs/r/r099.pdf

i'm nearly done. by now i could synchronize the timecodes, but i didnt found the key for the path/file behaviour in the mediabrowser.. so, the good news is also, with sync audio/video with tc works (it seems).

regards chmee
Title: Re: DaVinci Resolve audio auto sync
Post by: chmee on April 23, 2014, 02:20:30 PM
a beta3 of raw2cdng (http://www.phreekz.de/wordpress/2014/04/magiclantern-raw2cdng-1-5-0/) is out. the timecode is working (theoretical :) but i cant get as a file instead of path/dng+wav (when you erase wav, its a file). more hints appreciated.

of course you have to write a "functional" filename. for example

[C]_1_[D2]_C0000(_)

regards chmee
Title: Re: DaVinci Resolve audio auto sync
Post by: Jakobmen on April 23, 2014, 03:39:15 PM
still says its beta2  :o
Title: Re: DaVinci Resolve audio auto sync
Post by: chmee on April 23, 2014, 03:59:20 PM
 :o ok. forgot to change the versioning in sourcecode. (will  change in a few minutes.done)
look into tooltip of the filenamegenerator, theres now a [D2] variable.
Title: Re: DaVinci Resolve audio auto sync
Post by: chmee on April 24, 2014, 08:31:51 PM
if someone's got some more blackmagic audio samples (with path and at least one dng), please send it to me. (zip) [email protected]
Title: Re: DaVinci Resolve audio auto sync
Post by: Veerle on May 06, 2014, 02:15:06 PM
.
Title: Re: DaVinci Resolve audio auto sync
Post by: ted ramasola on May 06, 2014, 02:57:04 PM
Quote from: Veerle on May 06, 2014, 02:15:06 PM
I have the same problem. If I auto sync the audio the first audio file is used in every single clip. And even when I manually change the audio in the timeline, or in the mediapool it either has no audio or it still has that first audio file. Has anyone found a solution yet?

what version of Raw2Cdng are you using?
Title: Re: DaVinci Resolve audio auto sync
Post by: Veerle on May 06, 2014, 09:11:58 PM
.
Title: Re: DaVinci Resolve audio auto sync
Post by: chmee on May 06, 2014, 09:52:45 PM
drag/drop into the empty list.
Title: Re: DaVinci Resolve audio auto sync
Post by: Veerle on May 07, 2014, 02:11:59 AM
.