Jump to content

Close
Photo

Mac app to resample GH4 8 bit 4:2:0 to 10 bit 4:4:4

- - - - -

  • Please log in to reply

#1
Thomas Worth

Posted 09 April 2014 - 12:52 AM

Thomas Worth

    Member

  • Members
  • PipPip
  • 19 posts

Hey guys, I've written a really simple command line app for Mac that will resample GH4 footage from 4K 4:2:0 to 2K 4:4:4 using pixel summing. This will give you real 10 bit data in the luminance channel, so it's not just doing a brute-force bump from 8 bits to 10 bits. There actually is some interesting pixel finagling going on here:

 

http://www.mediafire...hrn9f/gh444.dmg

 

There's no GUI, so you'll need to run it from the terminal. Do this by copying the app into the directory that contains the GH4 MOV files and using the following command in a terminal:

./gh444 INPUTFILE.MOV

Make sure you cd to the current directory first if necessary. You can do this by typing "cd" into the terminal, add a space, and then drag the folder containing the MOV files into the terminal window. It will automatically add the path to the cd command. It'll look like this:

cd /path/to/gh4/files

The app will spit numbered DPX frames out in a folder named "dpx_out."

 

I'd love for you guys to give it a try and see if you find it useful!


  • Andrew Reid, johnnymossville, KarimNassar and 6 others like this

#2
jonpais

Posted 09 April 2014 - 03:19 PM

jonpais

    Advanced Member

  • Moderators
  • 389 posts
  • LocationVietnam
Sounds great. I'm sure I'll have questions for you once I actually have the camera in my hands. Any idea about the processing power required to handle 10 bit 4:4:4? Same as 4K?

#3
Thomas Worth

Posted 09 April 2014 - 07:27 PM

Thomas Worth

    Member

  • Members
  • PipPip
  • 19 posts

Sounds great. I'm sure I'll have questions for you once I actually have the camera in my hands. Any idea about the processing power required to handle 10 bit 4:4:4? Same as 4K?

 

It's typically easier for the CPU to process uncompressed data, but disk bandwidth is more of an issue. Since this app is designed mainly for testing, the DPX files will be large and require lots of storage bandwidth. If it makes sense, I can add the ability to save ProRes 4444 files at 2K. Generally speaking, ProRes footage is much easier to decompress and display than H.264 footage, even when it's 444/RGB. I haven't run into any problems with GH4 footage, though. The files are relatively small and any recent system should have enough CPU power to play them back in realtime.



#4
Richard Wait

Posted 09 April 2014 - 07:49 PM

Richard Wait

    Member

  • Members
  • PipPip
  • 18 posts

Not to look a gift horse in the mouth! Any thoughts on a GUI? 

 

How do you program something like this anyway! (I'm really impressed!) and what are DPX files?



#5
Julian

Posted 09 April 2014 - 08:40 PM

Julian

    Advanced Member

  • Members
  • PipPipPip
  • 1,306 posts
  • LocationNetherlands

Windows version? ;) I'd give that a try for sure. Getting my hands on a GH4 v 1.0 in a few days...



#6
Andrew Reid

Posted 09 April 2014 - 10:14 PM

Andrew Reid

    Andrew Reid - British Filmmaker - Editor EOSHD

  • Administrators
  • 4,222 posts

Great news. How are you finding the 2k images Thomas? Does it smooth the slight aliasing on the car windows in the Porsche shot?



#7
Thomas Worth

Posted 09 April 2014 - 11:18 PM

Thomas Worth

    Member

  • Members
  • PipPip
  • 19 posts

Here's a 16 bit PNG file, converted from a DPX file output by gh444:

 

http://www.mediafire...ywaq/gh4_2k.png


  • Andrew Reid likes this

#8
Sean Cunningham

Posted 09 April 2014 - 11:40 PM

Sean Cunningham

    Pixel Cowboy

  • Members
  • PipPipPip
  • 979 posts
  • LocationAustin, Texas

Forgive the re-post from Andrew's other thread on the subject but I wonder how hard would it be to, instead of summing, do a poisson disc sample to arrive at the 2K image?  



#9
Andrew Reid

Posted 10 April 2014 - 12:13 AM

Andrew Reid

    Andrew Reid - British Filmmaker - Editor EOSHD

  • Administrators
  • 4,222 posts

Here's a 16 bit PNG file, converted from a DPX file output by gh444:

 

http://www.mediafire...ywaq/gh4_2k.png

 

Impressive.



#10
KarimNassar

Posted 10 April 2014 - 08:42 AM

KarimNassar

    Advanced Member

  • Members
  • PipPipPip
  • 244 posts
  • LocationSwitzerland

very interesting thank you.

 

Can you share just 1 frame of the original 4k and the same frame downsample to 2k 10bit?

 

Just to experiment in post to test the difference 


  • HurtinMinorKey, Julian and Richard Wait like this

vimeo / vimeo channel

- karimnassar.ch / homepage


#11
thementalist

Posted 10 April 2014 - 09:16 AM

thementalist

    Member

  • Members
  • PipPip
  • 20 posts
+1 for windows version

It's not about gh4, it's how we say fuck to firmware limits on panasonic, canon, Nikon, etc

#12
JLemos

Posted 10 April 2014 - 11:58 AM

JLemos

    Member

  • Members
  • PipPip
  • 20 posts

What could be the resulting file converted to 2.5K?

I think that in terms of size it could be of general interest, or at least of my general interest.  :)



#13
Jack Danini

Posted 10 April 2014 - 02:45 PM

Jack Danini

    Newbie

  • Members FB Twitter
  • Pip
  • 1 posts

+1 for Windows Please! :) Thanks



#14
etidona

Posted 10 April 2014 - 03:39 PM

etidona

    Advanced Member

  • Members FB Twitter
  • PipPipPip
  • 85 posts

Too much numbers for my tastes: someone could please verify if the downscaled version grades better than the original?


  • Julian likes this

#15
Ebrahim Saadawi

Posted 10 April 2014 - 03:49 PM

Ebrahim Saadawi

    Advanced Member

  • Members
  • PipPipPip
  • 688 posts
  • LocationEgypt
Please show us examples. Proof. That is awesome and well done Thomas if true
  • Julian likes this

Account used by:
-Ebrahim Saadawi- A 61 year-old filmmaker bewildered by modern filmmaking. 
-Ebrahim Ebrahim Saadawi- A 19 year-old beginner/noob :)
 

"Filmmaking really began with technology, not through telling stories, because my 8mm movie camera was the way into whatever I decided to do. -Steven Spielberg"

 


#16
James_H

Posted 10 April 2014 - 05:38 PM

James_H

    Advanced Member

  • Members
  • PipPipPip
  • 42 posts
  • LocationOttawa, ON

Here's a GUI I quickly put together:

 

http://www.mediafire...l/GH444_GUI.dmg

 

You still need to download the original gh444 file.  Let me know if it's broken.  It's super basic.  It doesn't provide any info on progress, but it'll let you know when it's done.

 

Edit:

A little explanation:

  • Download the file, mount it and copy "GH444 GUI" to your computer somewhere (e.g. Applications).
  • Open the app, click "Browse" to specify which file you want to convert.  The output will be in a folder called dpx_output in the same folder as the 4K file.
  • Click "Start"
  • Select the gh444 file that Thomas Worth provided
  • Wait.  A popup with the word "Done" will been shown when it's done.

Known issues:

  • It doesn't show progress.
  • If you cancel it, it will still say "Done"
  • Not sure if it works with OS X 10.7 or earlier, I haven't tested.
  • No way to set the output directory

  • Richard Wait likes this

#17
Andrew Reid

Posted 10 April 2014 - 05:39 PM

Andrew Reid

    Andrew Reid - British Filmmaker - Editor EOSHD

  • Administrators
  • 4,222 posts

Here's a GUI I quickly put together:

 

http://www.mediafire...l/GH444_GUI.dmg

 

You still need to download the original gh444 file.  Let me know if it's broken.  It's super basic.  It doesn't provide any info on progress, but it'll let you know when it's done.

 

Great stuff!! Thanks a million James.


  • James_H likes this

#18
Julian

Posted 10 April 2014 - 09:13 PM

Julian

    Advanced Member

  • Members
  • PipPipPip
  • 1,306 posts
  • LocationNetherlands

Here's a 16 bit PNG file, converted from a DPX file output by gh444:

 

http://www.mediafire...ywaq/gh4_2k.png

 

Can someone (Andrew?) grab the exact same frame from the 4K source file and post it as a 16 bit PNG file?



#19
morsafr

Posted 13 April 2014 - 04:51 PM

morsafr

    Newbie

  • Members
  • Pip
  • 1 posts

Hi all,

 

I experimented with this piece of software but I get inconsistent results with some bad frames.

 

I tried both with and without the GUI.

 

My setup : Mac Pro 2013 with Mavericks, using Resolve 10.1.4 for grading the DPX files.

 

Thanks for your feedback.



#20
dash__dot

Posted 13 April 2014 - 11:40 PM

dash__dot

    Newbie

  • Members
  • Pip
  • 5 posts

I can post some 10 bit and 8bit 4k files that can be downsampled and the grade compared if it would help the discussion about how much it helps? I am on PC so I can't do the comparison myself unfortunately.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users