This forum has been archived. All content is frozen. Please use KDE Discuss instead.

SOLVED: How to render only a part of a project direct with melt?

Tags: None
(comma "," separated)
lxvidcut
Registered Member
Posts
54
Karma
0
Hi together,

how is it possible to render only a part of a project, when I am using melt direct from command line or script?
(Same as the "Selected zone" option in kdenlive)
I have played around with the "in=" and "out=" option like kdenlive is using to call kdenlive_render, but with no success.
I need this for testing.

Here is my script.sh
SOURCE="/path/to/myproject.kdenlive"
TARGET="/path/to/output.mkv"

MLTOPT="-verbose -profile atsc_1080i_50"
AVOPTGEN="threads=2 hq=1 aspect=@16/9 progress=1"
AVOPTCON="f=matroska"
AVOPTVID="some x264 options here"
AVOPTAUD="acodec=ac3 ab=384k ac=2"

AVOPTP1="pass=1"
AVOPTP2="pass=2"

#pass 1
melt $SOURCE $MLTOPT -consumer avformat:$TARGET $AVOPTGEN $AVOPTCON $AVOPTVID $AVOPTAUD $AVOPTP1
#pass 2
melt $SOURCE $MLTOPT -consumer avformat:$TARGET $AVOPTGEN $AVOPTCON $AVOPTVID $AVOPTAUD $AVOPTP2

Thanks,
Christian
hobbsilla
Registered Member
Posts
32
Karma
0
Its possible to render part of your project using the GUI within kdenlive.
What I do is cut the segment where I want it to end, either delete or drag the section of the project not being rendered away from the selected section, drag the green Zone duration bar so it reaches a little bit past the end of the selected clip and click on the clip. Then go to Render and choose selected clip and choose your rendering preferences and Render to File.
You should be able to configure all of these settings and be able to save them under your favorites and export them for other users to use.
ubuntuaddicted
Registered Member
Posts
206
Karma
0
you drag the green "zone" i have circled in red to only be of the area you want rendered, then when in the render option box, you chose to to render only the zone. DONE.

http://lh4.ggpht.com/_Iufa0NM_vIQ/TLurSg-aoqI/AAAAAAAAAj4/BSIDplFR6Hs/s720/Screenshot-21.png
lxvidcut
Registered Member
Posts
54
Karma
0
No, I mean to do it without the Kdenlive GUI (and theoretically without Kdenlive installed!)
To render only a part with the GUI is not the problem.
Have you seen my script?

MLT is melting a kdenlive generated project file/script. I did not find a solution to instruct melt to do it only from frame x till frame y.

Background:
I'm creating my projects very comfortable on a quite silent pc. Huge project's will transferred to a server with multiple cpu sockets/cores in the basement. Projects will picked up there from a simple job scheduler and processed. There is also a NFS filer, GBit LAN and so on available. No, I'm not an animation studio employee :)
To find good codec settings or to perform tests, it would be fine to instruct the renderer node to process only a part.
ttill
Registered Member
Posts
372
Karma
0
Maybe "in" and "out" are at the wrong position?
lxvidcut
Registered Member
Posts
54
Karma
0
Hmm, I've tried to set "in" and "out" on several positions. Direct behind melt and as a part of consumer avoptions.
The key question is: Is melt supporting such an option? Or is this only an option of the kdenlive_render?

Maybe kdenlive_render can do equivalent the same for that I'm using this melt script from my first post? But how?
It seems that kdenlive_render is parsing the options, e.g if there is a pass=2 present and hence calling melt twice?
I don't know what happens with the "in" and "out" options, so that I can do the same with melt?

Here once again a summary of requirements:
* I want to render a full or a part of a kdenlive project file via script.
* I want to set -verbose options to see more details if render crashes.
* I need this to export render task to another server.
* It would be fine when this could work without kdenlive installed and theoretical without X.
lxvidcut
Registered Member
Posts
54
Karma
0
@ttill
Now it works!
I've tried now all positions to set "in" and "out".
Direct behind the "Source" is the right place!
Also "=" must be used on this position. "-in 2090 -out 2690" didn't work!
My opinion was to use "=" only for the consumer avformat options. This is a little bit strange.

MLTOPT="in=2090 out=2690 -verbose -profile atsc_1080i_50"

Thanks for this tip!
Christian


Bookmarks



Who is online

Registered users: Bing [Bot], blue_bullet, Google [Bot], Yahoo [Bot]