Knowledgebase: Tips and tricks
Previews from R3D Raw files
Posted by Andre Kuehnemund on 02 August 2018 16:23
Red Digital Cinema (http://www.red.com/) makes cool cameras. Wouldn't it be great if P5 Archive could create previews of R3D Raw files? With Red's redline tool you can. Here's how:|
- Download and install the REDCINE-X PRO Software from here: https://www.red.com/downloads?category=Software&release=final- Use the code shown below to make a shell script and save the file as 'mkthumb_r3d.sh' where ever you like:
# use temp/pvconv_99999.png as outputfile to avoid
# collisions when multiple converters run in parallel.
REDline --i $1 --o $out --pad 0 --format 3 --frameCount 1 &> /dev/null
- Make sure the file is made executable ('chmod +x mkthumb_r3d.sh').
- In the preview settings pane of the P5 Archive plan, click on 'New' > 'Add a custom script'.
- Add '.r3d' and '.R3D' under file extensions and the path of the script under 'Preview converter script:' (e.g. '/Users/admin/mkthumb_r3d.sh'.
- Click on 'Apply' and 'Apply'.
That's it. Try to test archive a folder with one or more RED Raw files in it. Sample files can be found here: http://www.red.com/sample-r3d-files.
A list of all available Redline arguments can be found here:
The above sample script is just that - an example. Feel free to modify based on your needs. As written, this script creates a single still image ('--frameCount 1') from the beginning of a .R3D clip.
If you want to create one from, say, frame 4000 - there's a redline argument for that ('--start <int>').
The argument '--format 3' creates a JPG output file. Other formats are possible, e.g. '1' would generate a TIFF file instead.
An important thing to note is that in order for the script to work, it cannot generate any standard or error output. Redirecting any output to the null device ('&> /dev/null') takes care of that.
Final note: We do not offer support for help with custom scripts. Again, the above script is a very basic example that is meant to help you get started with writing your own scripts.