{"id":5045,"date":"2014-03-30T18:22:17","date_gmt":"2014-03-30T18:22:17","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/use-java-ffmpeg-wrapper-or-simply-use-java-runtime-to-execute-ffmpeg-collection-of-common-programming-errors\/"},"modified":"2014-03-30T18:22:17","modified_gmt":"2014-03-30T18:22:17","slug":"use-java-ffmpeg-wrapper-or-simply-use-java-runtime-to-execute-ffmpeg-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/use-java-ffmpeg-wrapper-or-simply-use-java-runtime-to-execute-ffmpeg-collection-of-common-programming-errors\/","title":{"rendered":"use java-ffmpeg wrapper, or simply use java runtime to execute ffmpeg?-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;m pretty new to Java, need to write a program that listen to video conversion instructions and convert the video once an new instruction arrives (instructions is stored in Amazon SQS, but it&#8217;s irrelevant to my question)<\/p>\n<p>I&#8217;m facing a choice, either use Java RunTime to exec &#8216;ffmpeg&#8217; conversion (like from command line), or I can use a ffmpeg wrapper written inJava http:\/\/fmj-sf.net\/ffmpeg-java\/getting%5Fstarted.php<\/p>\n<p>I&#8217;d much prefer using Java Runtime to exec ffmpeg directly, and avoid using java-ffmpeg wrapper as I have to learn the library. so my question is are there any benefits using java-ffmpeg wrapper over exec ffmpeg directly using Runtime? I don&#8217;t need ffmpeg to play videos, just convert videos<\/p>\n<p>Thanks<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m pretty new to Java, need to write a program that listen to video conversion instructions and convert the video once an new instruction arrives (instructions is stored in Amazon SQS, but it&#8217;s irrelevant to my question) I&#8217;m facing a choice, either use Java RunTime to exec &#8216;ffmpeg&#8217; conversion (like from command line), or I [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5045","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5045","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=5045"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5045\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5045"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5045"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5045"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}