Forum > Beginners

Problem solving with Tprocess

(1/1)

clintonb:
I have spent the better part of 2 hours trying to execute ffmpeg with no luck.  I have now reduced it to a simple input and output file and execture but havent been able to get any output.  Is there anyway i could actually see the command that it is executing?

runme:=Tprocess.create(nil);
     runme.executable:='/usr/bin/ffmpeg';
     runme.options:=runme.options+[powaitonexit];

     runme.parameters.add(' -i '+opendialog1.filename);

     runme.parameters.add(' /home/[name]/Desktop/output.mp4');
     runme.parameters.add(' -y');

     runme.execute;
     
I have read the previous posts but as far as i can see its identical but still no output.

marcov:

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---     runme.parameters.add(' -i '+opendialog1.filename);

Those are two parameters.  -i and  the filename. Treat them with seperate .adds

Leledumbo:

--- Quote from: marcov on March 13, 2023, 08:10:47 pm ---
--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---     runme.parameters.add(' -i '+opendialog1.filename);

Those are two parameters.  -i and  the filename. Treat them with seperate .adds

--- End quote ---
And no need for manually added space, it will be internally taken care of.

Navigation

[0] Message Index

Go to full version