{"action":"created","issue":{"url":"https://api.github.com/repos/buggedcom/phpvideotoolkit-v2/issues/50","labels_url":"https://api.github.com/repos/buggedcom/phpvideotoolkit-v2/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/buggedcom/phpvideotoolkit-v2/issues/50/comments","events_url":"https://api.github.com/repos/buggedcom/phpvideotoolkit-v2/issues/50/events","html_url":"https://github.com/buggedcom/phpvideotoolkit-v2/issues/50","id":65529686,"number":50,"title":"Generate command without create file","user":{"login":"cassianotartari","id":3017642,"avatar_url":"https://avatars.githubusercontent.com/u/3017642?v=3","gravatar_id":"","url":"https://api.github.com/users/cassianotartari","html_url":"https://github.com/cassianotartari","followers_url":"https://api.github.com/users/cassianotartari/followers","following_url":"https://api.github.com/users/cassianotartari/following{/other_user}","gists_url":"https://api.github.com/users/cassianotartari/gists{/gist_id}","starred_url":"https://api.github.com/users/cassianotartari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cassianotartari/subscriptions","organizations_url":"https://api.github.com/users/cassianotartari/orgs","repos_url":"https://api.github.com/users/cassianotartari/repos","events_url":"https://api.github.com/users/cassianotartari/events{/privacy}","received_events_url":"https://api.github.com/users/cassianotartari/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-31T19:38:17Z","updated_at":"2015-04-01T06:10:26Z","closed_at":null,"body":"Hello!\r\n\r\nIs there a way to get the ``ffmpeg`` command that will be executed without run any ``save`` method?\r\n\r\nMy idea is to store in a database these commands to a service consume them.\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/buggedcom/phpvideotoolkit-v2/issues/comments/88364502","html_url":"https://github.com/buggedcom/phpvideotoolkit-v2/issues/50#issuecomment-88364502","issue_url":"https://api.github.com/repos/buggedcom/phpvideotoolkit-v2/issues/50","id":88364502,"user":{"login":"kemar-and","id":8045149,"avatar_url":"https://avatars.githubusercontent.com/u/8045149?v=3","gravatar_id":"","url":"https://api.github.com/users/kemar-and","html_url":"https://github.com/kemar-and","followers_url":"https://api.github.com/users/kemar-and/followers","following_url":"https://api.github.com/users/kemar-and/following{/other_user}","gists_url":"https://api.github.com/users/kemar-and/gists{/gist_id}","starred_url":"https://api.github.com/users/kemar-and/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kemar-and/subscriptions","organizations_url":"https://api.github.com/users/kemar-and/orgs","repos_url":"https://api.github.com/users/kemar-and/repos","events_url":"https://api.github.com/users/kemar-and/events{/privacy}","received_events_url":"https://api.github.com/users/kemar-and/received_events","type":"User","site_admin":false},"created_at":"2015-04-01T06:10:26Z","updated_at":"2015-04-01T06:10:26Z","body":"I've been working those day with PVT v2 and I don't know. I think you would use the \r\n$process->getExecutedCommand();\r\nBut in all cases I used this after a:\r\n$process->saveNonBlocking($out_path,$out_fmt,Video::OVERWRITE_EXISTING);\r\n\r\nI would also be interested by your need to log the command before any exception to be catched by the save procedure.\r\n\r\nWhat I would do, but not the good way for sure... but might be a way...\r\nI would try to save with a dummy path, that could be replaced later, a false and undifined path and id\r\nexemple: /where/to/output/id_123456789.mp4\r\n\r\nThen some exception will be catched, and you might be able to retrieve the command at this time, because the output path will not be fine.\r\n\r\nNot sure if it will be thrown by PVT or FFMPEG, I think PVT might check if the outputpath exists before sending the command to FFMPEG.\r\n\r\nOf course, I repeat, NOT the right way, just an idea until some expert answer will be made ;)\r\n\r\nHave a nice day!"}}