DNxHR

Questions and answers on how to get the most out of FFAStrans
Post Reply
Da_K
Posts: 12
Joined: Thu Dec 14, 2017 3:08 pm

DNxHR

Post by Da_K »

I can see that FFMPEG supports DNxHR but as i understand it, the unique MXF ATOM option with project names etc that FFA provides is done via 3rd party tools. Is it possible to create a Custom FFMPEG workflow with the 3rd party tools?

Or even better, will there be DNxHR support?
emcodem
Posts: 1749
Joined: Wed Sep 19, 2018 8:11 am

Re: DNxHR

Post by emcodem »

Hi Da_K,

until someone that has more experience with the Avid stuff answers, you can attempt to get out what exactly is done by ffastrans by following this thread:
viewtopic.php?f=5&t=849#p3641

I'd insert a special project name and attepmt to find it in the log in order to see how ffastrans creates the project structure.
After that, you can copy the commands from the logs and use them in a batch executor node.
emcodem, wrapping since 2009 you got the rhyme?
momocampo
Posts: 594
Joined: Thu Jun 08, 2017 12:36 pm
Location: France-Paris

Re: DNxHR

Post by momocampo »

Hello Da,
Well, if you want to convert your video file to avid op1 atom, it's quite easy.
Create your workflow monitor folder->encoder dnxhd-> delivery folder.
- set your dnxhd encoder with check "create avid project structure" and let other cases by default.
- set your delivery folder to deliver into your Avid Workspace fodler/ Avid MediaFiles/ MXF/ 1(or the workstation name if your are on ISIS or NEXIS)
That's it.
Like me, you can add a command executor to delete the database files (.pmr and .mdb).
Then, mount your avid workspace and launch Avid Mediacomposer. The database will be create. Finally, use mediatool to find your new files and drag them into a bin.
Hope it helps.
Cheers.

Benjamin
emcodem
Posts: 1749
Joined: Wed Sep 19, 2018 8:11 am

Re: DNxHR

Post by emcodem »

Hey Benjamin,
i fear the question wa more mor dnxHR, any clue aboit rhat?
emcodem, wrapping since 2009 you got the rhyme?
momocampo
Posts: 594
Joined: Thu Jun 08, 2017 12:36 pm
Location: France-Paris

Re: DNxHR

Post by momocampo »

Hey,
Damn !! You're right emcodem... Sorry the question is for HR so I have to find how use HR with custom ffmpeg node.
I found this :
http://macilatthefront.blogspot.com/201 ... r.html?m=1

It's very interesting and pretty well explain.
Hope it helps.
Cheers.
B.
Da_K
Posts: 12
Joined: Thu Dec 14, 2017 3:08 pm

Re: DNxHR

Post by Da_K »

Thanks for the feedback, as my first post suggested, i already knew about FFMPEG support for DNxHR, i was curious about getting it working with FFA and the unique option to create a AVID File structure.

Thanks to the tips here i got a bit more insight into the workings of FFA,the log shows something interesting, i was convinced that a secondary tool was used to create the "split" MXF files. As most here knows, AVID keeps MXF files separated in AUDIO and VIDEO files but it seems that this is done with FFMPEG as well. Only problem is that i can not really understand what happens, it looks like plenty of work is done that isn't logged in details.
emcodem
Posts: 1749
Joined: Wed Sep 19, 2018 8:11 am

Re: DNxHR

Post by emcodem »

Hi Da_K,

damned, i was hoping that Benjamin already knows about how the wrapping part for Avid is done. It is not "a lot of stuff" that is done without logging, but the part you are missing (the one with another tool than ffmpeg) is in deed unfortunately not written to the log file. Most internal logic that you don't see goes to calculating the ffmpeg audio/video filter settings (see huge filter below).
The part that you are missing looks like that:

Code: Select all

"ffastrans_installdir\mxf_tools\bmxtranswrap.exe" -p -t avid --project "AVID_PROJECT" --clip "AVID_CLIP" --tape "AVID_TAPE" -o "OUTPUTDIRECTORY" "%s_source%" 		
So in order to rebuild the dnxhd node with dnxhr, you take one custom ffmpeg command and copy the stuff you already found i the logs but you omit the ffmpeg.exe and the -i "%Sourcefile%" part -- and omit also the output at the end.
After that, you use a batch processor node and insert the bmxtranswrap command from above (change the output directory!).

An example for the custom ffmpeg node copied from my job log and stripped the input and output part:

Code: Select all

-f lavfi -i aevalsrc=0 -f lavfi -i color=color=black:size=1920x1080 -shortest -map_metadata -1  -map 0:0  -filter_complex "[0:1]pan=1|c0=c0[a1],[0:2]pan=1|c0=c0[a2],[0:3]pan=1|c0=c0[a3],[0:4]pan=1|c0=c0[a4],[a1]amerge=1[astr1],[a2]amerge=1[astr2],[a3]amerge=1[astr3],[a4]amerge=1[astr4]" -map "[astr1]"  -c:a pcm_s16le -ar 48000 -map "[astr2]"  -c:a pcm_s16le -ar 48000 -map "[astr3]"  -c:a pcm_s16le -ar 48000 -map "[astr4]"  -c:a pcm_s16le -ar 48000  -vf copy,il=l=d:c=d,colorspace=fast=1:all=bt709:format=yuv422p:ispace=bt470bg:itrc=bt470bg:iprimaries=bt470bg,il=l=i:c=i,bwdif=1:1,scale=1920:1080:flags=lanczos:sws_dither=ed:in_range=full:out_range=full,framerate=50,setfield=tff,separatefields,select='not(mod(n\,4))+not(mod(n+1\,4))',weave=t,setfield=tff,setdar=dar=16/9,setsar=sar=1 -timecode 05:48:19:01 -c:v dnxhd -strict -1 -b:v 185000000  -r 25 -pix_fmt yuv422p -aspect 16:9 -field_order tt -top 1 -flags +ilme+ildct -color_range 1 -color_primaries 1 -color_trc 1 -colorspace 1 -chroma_sample_location topleft -signal_standard 4 -f mxf -max_muxing_queue_size 125 -metadata creation_time=now
By the way, steinar was already working on a version for DNXHR, anyway if you don't find evidence of it in this forum, feel free to open a feature request in the corresponding section for it please!
emcodem, wrapping since 2009 you got the rhyme?
momocampo
Posts: 594
Joined: Thu Jun 08, 2017 12:36 pm
Location: France-Paris

Re: DNxHR

Post by momocampo »

Hello guys,
I'm really sorry but I was in holidays these last days and I didn't have much time...
Anyway, I must admit the HR is not very use around me, we work easily with HD and conform with original 2K or 4K if necessary. I noticed working with ONLINE HR in AVID even high bit-rate create a lower quality than create an editing list or a aaf and conform with originals medias. That's why I don't use HR from now.
I hope you found a way Da_k.
Cheers.
Post Reply