Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added image sequence tutorial #514

Merged
merged 6 commits into from
Jun 19, 2020
Merged

Added image sequence tutorial #514

merged 6 commits into from
Jun 19, 2020

Conversation

hellocatfood
Copy link
Contributor

Please read the contribution guidelines.

Description

Added tutorial on working with image sequences (converting video to images and images back to video)

Full instructions on how to use the Blender VSE can be found here https://docs.blender.org/manual/en/latest/video_editing/index.html


Adobe Media Encoder

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please point out this one is not free.

Comment on lines +161 to +162
DaVinci Resolve, Adobe Premiere etc
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For Davinci Resolve, please use the Transcode method mentioned in the comment above.

Copy link

@lehuan5062 lehuan5062 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added tutorial for Davinci Resolve.

@magdesign
Copy link
Contributor

magdesign commented Jun 19, 2020

On line: 116 - 125, its the same process as in adobe premiere, so maybe move premiere up and take all NLE together.

I viewed it with https://remarkableapp.github.io/ or with http://rst.ninjs.org/ and I think there are some formatting issues. Would you add me to your fork so I could fix them....

@lehuan5062
Copy link

On line: 116 - 125, its the same process as in adobe premiere, so maybe move premiere up and take all NLE together.

Yes, but please take in account that Davinci Resolve also has Media Management which allow us to transcode the video without adding it to a timeline. It's the same as Adobe Prelude.

@magdesign
Copy link
Contributor

Just learned something from you:

mediamanagement

In DaVinciResolve

  • Select your videoclip
  • Go to File => Media Management
  • Select Clips
  • Select Media Destination
  • Select Video format => TIFF or EXR
  • Click Start

@magdesign
Copy link
Contributor

Just played thru the Blender way:
- In Color management change view transform standard <= this is on by default, so we could remove this step?

blender_export

blender_view_transform

@magdesign
Copy link
Contributor

magdesign commented Jun 19, 2020

WinFF as mentioned under ffmpeg is not able to export image sequences as a simple gui selection operation...
I recommend to remove this

@magdesign
Copy link
Contributor

magdesign commented Jun 19, 2020

FF Multi Converter
official link: https://sites.google.com/site/ffmulticonverter/download

ff_multi_converter

Maybe someone can help here, tried to extract image sequences, but it did not work at all.....openend an issue: ilstam/FF-Multi-Converter#64

so I will not write a "how to" for this...

@hellocatfood: if it does not work on your side, lets remove this as well since other people might have the same problem....

Copy link
Member

@devernay devernay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will fix:

  • proper link to the tutorial in getstarted-troubleshooting
  • link from the main TOC

@devernay devernay merged commit 0a1f08e into NatronGitHub:RB-2.3 Jun 19, 2020
@devernay
Copy link
Member

@lehuan5062 @hellocatfood @magdesign do you want your name to appear in the list of Natron doc contibutors? If yes, tell me how you want it to appear.

devernay added a commit that referenced this pull request Jun 19, 2020
@devernay
Copy link
Member

Merges, should be available soon in https://natron.readthedocs.io/en/rb-2.3/guide/tutorials.html

Feel free to propose further modifications.

I think @cgvirus had answers for the 10/12 bits question (using TIFF rather than PNG), can you incorporate these?

@devernay
Copy link
Member

I think it would be great to also add a section on how to remux audio in the second part

@cgvirus
Copy link
Member

cgvirus commented Jun 19, 2020

Oh no! I have made a serious boo-boo.
@devernay please can you update this?

This commands should be here instead those.
https://natron.readthedocs.io/en/rb-2.3/guide/tutorials-imagesequence.html#ffmpeg

Usually we use no alpha for video as they don't contain any. Talked with ffmpeg folks and these are now the correct arguments.

PNG (with Alpha)
for 8 bit
ffmpeg -i input.mp4 -pix_fmt rgba output_%04d.png
for 16 bit
ffmpeg -i input.mp4 -pix_fmt rgba64be output_%04d.png

PNG (without Alpha)
for 8 bit
ffmpeg -i input.mp4 -pix_fmt rgb24 output_%04d.png
for 16 bit
ffmpeg -i input.mp4 -pix_fmt rgb48be output_%04d.png


TIFF (with Alpha)
for 8 bit
ffmpeg -i input.mp4 -compression_algo lzw -pix_fmt rgba output_%04d.tiff
for 16 bit
ffmpeg -i input.mp4 -compression_algo lzw -pix_fmt rgba64le output_%04d.tiff

TIFF (without Alpha)
for 8 bit
ffmpeg -i input.mp4 -compression_algo lzw -pix_fmt rgb24 output_%04d.tiff
for 16 bit
ffmpeg -i input.mp4 -compression_algo lzw -pix_fmt rgb48le output_%04d.tiff 

Only DPX supports 10/12 bit in ffmpeg image formats. There are hacks with YUV in TIFF but that is not supported perfectly in many software like Nuke and Premiere itself.
Instead going for 16 bit directly is safe.

@cgvirus
Copy link
Member

cgvirus commented Jun 19, 2020

%04d specifies the position of the characters representing a sequential number in each filename matched by the pattern. Using the above example the output files will be called output_0001.png, output_0002.png, output_0002.png and so on. For longer videos one will need to use a higher number (%08d.png). start----->


Here are some more options:

PNG (with Alpha)
for 8 bit
ffmpeg -i input.mp4 -pix_fmt rgba output_%04d.png
for 16 bit
ffmpeg -i input.mp4 -pix_fmt rgba64be output_%04d.png

PNG (without Alpha)
for 8 bit
ffmpeg -i input.mp4 -pix_fmt rgb24 output_%04d.png
for 16 bit
ffmpeg -i input.mp4 -pix_fmt rgb48be output_%04d.png

To extract TIFF 16 bit image sequence:

TIFF (with Alpha)
for 8 bit
ffmpeg -i input.mp4 -compression_algo lzw -pix_fmt rgba output_%04d.tiff
for 16 bit
ffmpeg -i input.mp4 -compression_algo lzw -pix_fmt rgba64le output_%04d.tiff

TIFF (without Alpha)
for 8 bit
ffmpeg -i input.mp4 -compression_algo lzw -pix_fmt rgb24 output_%04d.tiff
for 16 bit
ffmpeg -i input.mp4 -compression_algo lzw -pix_fmt rgb48le output_%04d.tiff


<-----end Notes For TIFF

Copy link

@lehuan5062 lehuan5062 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a step need to be added to Davinci Resolve

Comment on lines +96 to +97
- Select Media Destination.
- Select Video format => TIFF or EXR.
Copy link

@lehuan5062 lehuan5062 Jun 20, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There must be one step before this so the Video format setting can be available:

  • Select "Transcode" mode.
    And that step should be placed before "Select Media Destination" in order of the interface.

The next step should be:
image
In case they may have used any media.

Should we include codec suggestion in our document?
image


Da Vinci Resolve
~~~~~~~~~~~~~~~~

Copy link

@lehuan5062 lehuan5062 Jun 20, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Ignore this suggestion if you prefer the general method for NLE).

  • When importing, select all the images to import it as a sequence.
  • In Resolve, select the image sequence(s).
  • Go to File => Media Management.
  • Select Clips.
  • Select "Transcode" mode.
  • Select Media Destination.
  • Select the desired Video Format.


DaVinci Resolve
~~~~~~~~~~~~~~~~
- In Resolve, select your videoclip.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we would want to replace the "your".

@magdesign
Copy link
Contributor

I think it would be great to also add a section on how to remux audio in the second part

Remux audio means adding audio to the outputed video?
So we would make an example for adding stereo and 5.1 with ffmpeg?
Does this really comes into the Natron doc, isn't this just a regular thing most users do in a NLE?

@magdesign
Copy link
Contributor

@lehuan5062 @hellocatfood @magdesign do you want your name to appear in the list of Natron doc contibutors? If yes, tell me how you want it to appear.

Thanks for accepting our work, I think we will keep on writing on the docs and therefore we could also add our names in the next pull request directly to the https://natron.readthedocs.io/en/rb-2.3/index.html section ...

@lehuan5062
Copy link

lehuan5062 commented Jun 20, 2020

I think it would be great to also add a section on how to remux audio in the second part

Remux audio means adding audio to the outputed video?
So we would make an example for adding stereo and 5.1 with ffmpeg?
Does this really comes into the Natron doc, isn't this just a regular thing most users do in a NLE?

Hey I had some experience with broadcasting and remux is slightly different than "adding audio to video". Normally, when we add it in a NLE, we render the final out. And that is "render" or "transcode", not "remux".

Remux is we add audio to the packaged/compressed/rendered video without them being rendered again. It's usually happen when you stream/record multiple audio sources when/after broadcasting. I'm not an expert and this is just my little knowledge.

@cgvirus
Copy link
Member

cgvirus commented Jun 20, 2020

Remuxing with audio re-encoding

ffmpeg -i video.mp4 -i audio.wav -c:v copy -c:a aac output.mp4

Remuxing without audio re-encoding. Make sure your movie container can accept the audio file format. MKV can take almost all audio format (ogg,flac,opus,wav,mp3)

ffmpeg -i video.mp4 -i audio.wav -c copy output.mkv

@devernay
Copy link
Member

@hellocatfood can you commit the changes suggested since this comment: #514 (comment) ?

@devernay
Copy link
Member

I think it would be great to also add a section on how to remux audio in the second part

Remux audio means adding audio to the outputed video?
So we would make an example for adding stereo and 5.1 with ffmpeg?
Does this really comes into the Natron doc, isn't this just a regular thing most users do in a NLE?

Yes, this involves an external tool, and I meant the ffmpeg commands @cgvirus mentionned above, but one could use a NLE such as Shotcut to do this as well. The doc should mention it

@cgvirus
Copy link
Member

cgvirus commented Jun 20, 2020

PR for the change.
#515

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants