Registered Member
|
Hi all,
First of all, sorry if this is not the appropriate forum - I am interested in melt in command line mode; I could see some related posts on the Internet coming up here, so I thought I'd ask here... Please let me know if another forum is more appropriate.
To begin with, I had a problem finding some basic examples of working in command line mode - so I ended up posting this (sort of) "tutorial": Command-line video editing in Linux (cut, join and preview) - Super User I wanted to post that at the same wiki as http://mltframework.org/twiki/bin/view/MLT/MltMelt (maybe as a MltMeltUsage page), but it looks like "registration has been temporarily disabled" there. Anyways, I (or whoever else may want to) can copy that content to the wiki if that is desired.
I have these questions about melt in command line mode:
Many thanks in advance for any answers, Cheers! |
Registered Member
|
From what I understand from the documentation, Melt is only useful as a player for files in the MLT framework format. It doesn't transcode.
You can use it, for example, to play Kdenlive project files: melt xml:myproject.kdenlive -consumer sdl But in the few short experiments that I did, it doesn't seem to work very well the other way around at producing usable XML files. For example melt myfile1.mov in=150 out=250 myfile2.mov in=300 out=350 -consumer xml:myproject.kdenlive can't be opened by Kdenlive, and it doesn't even seem to do a good job at "guessing" the properties of the video clips. I don't think this particular tool was meant to work like that, although it would be interesting if it did. For simple cutting, joining, exporting separate audio and video, PNGs etc., I find that FFMpeg and MEncoder from the command line are more than sufficient. The only slightly annoying thing about them is that you can only seek in seconds, not in frames. |
Registered Member
|
http://www.mltframework.org/twiki/bin/view/MLT/ExtremeMakeover says:
- inigo was renamed "melt" - westley was renamed "xml" So something like the following bash script might serve as a basic EDL and encoder. The encoding options are through FFmpeg, and you can change them to suit your needs. (Note: the audio stuttered at cuts in my test output, perhaps because of my encoding options. Sorry, don't know how to fix that.) ================================== #!/bin/bash melt \ YourVideo1.avi in=150 out=250 \ YourVideo2.avi in=450 out=550 \ YourVideo3.avi in=50 out=200 \ YourVideo4.avi in=0 out=500 \ -consumer xml:project.xml melt project.xml -consumer avformat:output.avi f=avi acodec=pcm_s16le vcodec=libxvid s=640x360 b=6000k exit |
Registered users: Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]