Jump to content

Archive:Kdenlive/Manual/Rendering: Difference between revisions

From KDE Wiki Sandbox
Yurchor (talk | contribs)
m chose->choose
Claus chr (talk | contribs)
m Claus chr moved page Kdenlive/Manual/Rendering to Archive:Kdenlive/Manual/Rendering without leaving a redirect: Part of translatable page "Kdenlive/Manual/Rendering"
 
(28 intermediate revisions by 8 users not shown)
Line 2: Line 2:
<translate>
<translate>


== Rendering == <!--T:1-->
== Rendering Using Guides and Rendering Scripts == <!--T:1-->


<!--T:2-->
{{:Kdenlive/Templates/ContentTodo|
* What does rendering mean at all? (Yes, there _are_ people which don't know)
* How to choose the correct output format and bit rate?
* What to do for rendering lossless, for an iPhone, or whatever? (Dropdown containing targets like lossless/HQ/player)
* What is the DVD wizard capable of, and how to operate it?
* Archiving a project. What does it do?
}}


== Generating and Using Rendering Scripts== <!--T:3-->  
 
=== Purpose === <!--T:3-->  


<!--T:4-->
<!--T:4-->
;Purpose
When editing video, time means everything. Especially how long it takes you to edit the clips, project, or footage you are working on. If you ever need to export sequences of your timeline separately, '''Kdenlive''' offers a great way to do this. You can set guides in your project that establish zones. You then can generate rendering scripts that will export these zones at a later date, during your sleep, or while you hunt and find food. Let's check out how to do this.  
:When editing video, time means everything. Especially how long it takes you to edit the clips, project, or footage you are working on. If you ever need to export sequences of your timeline separately, '''Kdenlive''' offers a great way to do this. You can set guides in your project that establish zones. You then can generate rendering scripts that will export these zones at a later date, during your sleep, or while you hunt and find food. Let's check out how to do this.  


== Picking Sections with Guides == <!--T:5-->
=== Picking Sections with Guides === <!--T:5-->


<!--T:6-->
<!--T:6-->
Line 25: Line 17:


<!--T:7-->
<!--T:7-->
[[File:kden-render-howto-9.png|center|500px]]
[[File:kden-render-howto-9.png|center|500px|frame|Figure 1]]


<!--T:8-->
<!--T:8-->
Line 31: Line 23:


<!--T:9-->
<!--T:9-->
[[File:Kden-render-howto-8.png|center|500px]]
[[File:Kden-render-howto-8.png|center|500px|frame|Figure 2]]


<!--T:10-->
<!--T:10-->
Line 37: Line 29:


<!--T:11-->
<!--T:11-->
[[File:Kden-render-howto-10.png|center|500px]]  
[[File:Kden-render-howto-10.png|center|500px|frame|Figure 3]]  


<!--T:12-->
<!--T:12-->
I'll add a few more guides and then we'll start rendering.   
I'll add a few more guides and then we'll start rendering.   
   
   
[[File:Kden-render-howto-11.png|center|500px]]  
[[File:Kden-render-howto-11.png|center|500px|frame|Figure 4]]  


<!--T:13-->
<!--T:13-->
Line 50: Line 42:


<!--T:15-->
<!--T:15-->
Start by clicking on the <menuchoice>Render</menuchoice> button in your toolbar ,the one with the red circle surrounded by a white and black ring. You can also select this by going to the <menuchoice>Menu -> Project -> Render</menuchoice> (<keycap>Ctrl+Return</keycap>).  
Start by clicking on the <menuchoice>Render</menuchoice> button in your toolbar, the one with the red circle surrounded by a white and black ring. You can also select this by going to the <menuchoice>Project -> Render</menuchoice> menu (<keycap>Ctrl + Return</keycap>).  


<!--T:16-->
<!--T:16-->
[[File:Kden-render-howto-1.png|center|500px]]  
[[File:Kden-render-howto-1.png|center|500px|frame|Figure 5]]  


<!--T:17-->
<!--T:17-->
The new window gives us many choices about how to render our video. Look at the bottom of the window. We need to select the button <menuchoice>Guide Zone</menuchoice>. Selecting this will allow us to render our project using the guides we made earlier. Be sure and name the output file to a unique name for each script we will create. Otherwise the scripts will overwrite the different guide zones and not do what you wanted.
The new window gives us many choices about how to render our video. Look at the bottom of the window. We need to select the <menuchoice>Guide Zone</menuchoice> option. Selecting this will allow us to render our project using the guides we made earlier. Be sure and name the output file to a unique name for each script we will create. Otherwise the scripts will overwrite the different guide zones and not do what you wanted.


<!--T:18-->
<!--T:18-->
[[File:Kden-render-howto-2.png|center|500px]]
[[File:Kden-render-howto-2.png|center|500px|frame|Figure 6]]


<!--T:19-->
<!--T:19-->
Line 65: Line 57:


<!--T:20-->
<!--T:20-->
[[File:Kden-render-howto-3.png|center|500px]]
[[File:Kden-render-howto-3.png|center|500px|frame|Figure 7]]


<!--T:21-->
<!--T:21-->
Now I can render this to a file or generate a script that will render this guide zone to a file. Click <menuchoice>Generate Script</menuchoice> and a menu appears asking you to name the script. '''Kdenlive''' stores the clips in <code>/yourhomedirectory/kdenlive/scripts</code>  
Now I can render this to a file or generate a script that will render this guide zone to a file. Click <menuchoice>Generate Script</menuchoice> and a dialog appears asking you to name the script. '''Kdenlive''' stores the clips in <tt>/yourhomedirectory/kdenlive/scripts</tt>  


<!--T:22-->
<!--T:22-->
[[File:Kden-render-howto-5.png|center|500px]]  
[[File:Kden-render-howto-5.png|center|500px|frame|Figure 8]]  


<!--T:23-->
<!--T:23-->
After saving the script, the top tab in the window switches to ''Scripts''. This lists all the scripts you have generated for the current project.  
After saving the script, the top tab in the window switches to <menuchoice>Scripts</menuchoice>. This lists all the scripts you have generated for the current project.  


<!--T:24-->
<!--T:24-->
[[File:Kden-render-howto-6.png|center|500px]]
[[File:Kden-render-howto-6.png|center|500px|frame|Figure 9]]


<!--T:25-->
<!--T:25-->
I went ahead and generated 3 scripts based on the guide zones I set up in my timeline. Be sure and keep the <code>.sh</code> extension otherwise the rendering script will not be generated.  
I went ahead and generated 3 scripts based on the guide zones I set up in my timeline. Be sure and keep the <tt>.sh</tt> extension otherwise the rendering script will not be generated.  


=== Starting Your Rendering Scripts === <!--T:26-->
=== Starting Your Rendering Scripts === <!--T:26-->


<!--T:27-->
<!--T:27-->
Once each script is generated, you need to start each one.You should be in the script tab and see your scripts listed. Start the process by selecting the script and clicking the <menuchoice>Start Script</menuchoice> button. Do this for each script.
Once each script is generated, you need to start each one. You should be in the script tab and see your scripts listed. Start the process by selecting the script and clicking the <menuchoice>Start Script</menuchoice> button. Do this for each script.


<!--T:28-->
<!--T:28-->
[[File:Kden-render-howto-7.png|center|500px]]
[[File:Kden-render-howto-7.png|center|500px|frame|Figure 10]]


<!--T:29-->
<!--T:29-->
After clicking each script, you are switched to the ''Job Queue'' tab. Here you will see what script is being run and how many more are waiting to be run. If you have a large queue, you can take advantage of the nifty checkbox in the bottom left: <menuchoice>Shutdown computer after renderings</menuchoice>.
After clicking each script, you are switched to the ''Job Queue'' tab. Here you will see what script is being run and how many more are waiting to be run. If you have a large queue, you can take advantage of the nifty checkbox in the bottom left: <menuchoice>Shutdown computer after renderings</menuchoice>.
=== Starting Your Rendering Scripts in a Command Line Terminal === <!--T:34-->
For troubleshooting purposes there could be times that you want to run the render script in a terminal prompt.  Rendering in the terminal can produce error logging information that can assist in debugging rendering issues.
<!--T:35-->
To render the video in the terminal ...
* Note the location where '''Kdenlive''' has saved the .sh script (see Figure 8)
* Open a terminal and change directories to the location of the .sh script
* execute the .sh script
<!--T:36-->
{{Input|$ cd /home/earl/kdenlive/scripts<br />
$ sh render_section_1.sh}}
<!--T:38-->
or
<!--T:39-->
{{Input|1=<nowiki>$ ./render_section_1.sh</nowiki>}}


=== Summary === <!--T:30-->
=== Summary === <!--T:30-->
Line 100: Line 111:
<!--T:32-->
<!--T:32-->
{{Prevnext2
{{Prevnext2
| prevpage=Special:MyLanguage/Kdenlive/Manual/Effects | nextpage=Special:MyLanguage/Kdenlive/Manual/ShootingHints
| prevpage=Special:MyLanguage/Kdenlive/Manual/Project_Menu/Render | nextpage=Special:MyLanguage/Kdenlive/Manual/Project_Menu/Render/Render_Profile_Parameters
| prevtext=Effects | nexttext=Shooting Hints
| prevtext=Rendering | nexttext=Render Profile Parameters
| index=Special:MyLanguage/Kdenlive/Manual | indextext=Back to menu
| index=Special:MyLanguage/Kdenlive/Manual | indextext=Back to menu
}}
}}

Latest revision as of 14:16, 11 August 2023

Rendering Using Guides and Rendering Scripts

Purpose

When editing video, time means everything. Especially how long it takes you to edit the clips, project, or footage you are working on. If you ever need to export sequences of your timeline separately, Kdenlive offers a great way to do this. You can set guides in your project that establish zones. You then can generate rendering scripts that will export these zones at a later date, during your sleep, or while you hunt and find food. Let's check out how to do this.

Picking Sections with Guides

Start by adding a clip into the timeline. I've added some retro footage about airplanes. Cool.

Figure 1

Next we want to add a guide for a specific section of the clip on the timeline. You can add a guide by selecting Timeline in the menu and then slide down to Guides and select Add Guide from the menu. Right clicking the top of the timeline also gives you the option Add Guide. If you want to, you can also edit the guides you have set by right clicking on the timeline.

Figure 2

After selecting this option, a window appears giving you the Position of the guide and a field to add a comment. Labeling the guide won't hurt anyone, so I'll name my first guide the extraordinary Section 1. A dark blue line appears vertically down through the tracks on your timeline.

Figure 3

I'll add a few more guides and then we'll start rendering.

Figure 4

The screenshot shows the 6 guides I have put in my project. They chop up the existing clip as I want for my project (that hopefully will become the first hit retro-experimental film...). Now we can export scripts that, when executed, will render these guide zones.

Generating Rendering Scripts

Start by clicking on the Render button in your toolbar, the one with the red circle surrounded by a white and black ring. You can also select this by going to the Project -> Render menu (Ctrl + Return).

Figure 5

The new window gives us many choices about how to render our video. Look at the bottom of the window. We need to select the Guide Zone option. Selecting this will allow us to render our project using the guides we made earlier. Be sure and name the output file to a unique name for each script we will create. Otherwise the scripts will overwrite the different guide zones and not do what you wanted.

Figure 6

We now can choose which guides will establish the regions of video we want to export using the pull down menus next to From and to. I'll cut out the Beginning and instead use section 1 to Section 1 End, the guide names I defined earlier.

Figure 7

Now I can render this to a file or generate a script that will render this guide zone to a file. Click Generate Script and a dialog appears asking you to name the script. Kdenlive stores the clips in /yourhomedirectory/kdenlive/scripts

Figure 8

After saving the script, the top tab in the window switches to Scripts. This lists all the scripts you have generated for the current project.

Figure 9

I went ahead and generated 3 scripts based on the guide zones I set up in my timeline. Be sure and keep the .sh extension otherwise the rendering script will not be generated.

Starting Your Rendering Scripts

Once each script is generated, you need to start each one. You should be in the script tab and see your scripts listed. Start the process by selecting the script and clicking the Start Script button. Do this for each script.

Figure 10

After clicking each script, you are switched to the Job Queue tab. Here you will see what script is being run and how many more are waiting to be run. If you have a large queue, you can take advantage of the nifty checkbox in the bottom left: Shutdown computer after renderings.

Starting Your Rendering Scripts in a Command Line Terminal

For troubleshooting purposes there could be times that you want to run the render script in a terminal prompt. Rendering in the terminal can produce error logging information that can assist in debugging rendering issues.

To render the video in the terminal ...

  • Note the location where Kdenlive has saved the .sh script (see Figure 8)
  • Open a terminal and change directories to the location of the .sh script
  • execute the .sh script
$ cd /home/earl/kdenlive/scripts
$ sh render_section_1.sh

or

$ ./render_section_1.sh

Summary

Creating guides can help organize your project while you work on it and when you share it with the world. You can use guides to keep track of areas or to generate rendering scripts that will do the mundane task for you. This feature makes exporting sections of your project quite easy. There are also other ways to take advantage of rendering sections and guide zones using guides. Have fun. Explore!