{"action":"created","issue":{"url":"https://api.github.com/repos/pascalbaljetmedia/laravel-ffmpeg/issues/61","repository_url":"https://api.github.com/repos/pascalbaljetmedia/laravel-ffmpeg","labels_url":"https://api.github.com/repos/pascalbaljetmedia/laravel-ffmpeg/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/pascalbaljetmedia/laravel-ffmpeg/issues/61/comments","events_url":"https://api.github.com/repos/pascalbaljetmedia/laravel-ffmpeg/issues/61/events","html_url":"https://github.com/pascalbaljetmedia/laravel-ffmpeg/issues/61","id":284388044,"node_id":"MDU6SXNzdWUyODQzODgwNDQ=","number":61,"title":"Encoding Failed","user":{"login":"rohitpotato","id":30090495,"node_id":"MDQ6VXNlcjMwMDkwNDk1","avatar_url":"https://avatars0.githubusercontent.com/u/30090495?v=4","gravatar_id":"","url":"https://api.github.com/users/rohitpotato","html_url":"https://github.com/rohitpotato","followers_url":"https://api.github.com/users/rohitpotato/followers","following_url":"https://api.github.com/users/rohitpotato/following{/other_user}","gists_url":"https://api.github.com/users/rohitpotato/gists{/gist_id}","starred_url":"https://api.github.com/users/rohitpotato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rohitpotato/subscriptions","organizations_url":"https://api.github.com/users/rohitpotato/orgs","repos_url":"https://api.github.com/users/rohitpotato/repos","events_url":"https://api.github.com/users/rohitpotato/events{/privacy}","received_events_url":"https://api.github.com/users/rohitpotato/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-12-25T00:22:45Z","updated_at":"2018-12-22T15:07:13Z","closed_at":"2017-12-27T13:28:45Z","author_association":"NONE","body":"I am using Laravel 5.4 on localhost using xampp on Windows 10.\r\n\r\nI am trying to convert a file to x264 (nothing is working btw),\r\nHere's my controller:\r\n\r\n`   \r\n     <?php\r\n\r\n\r\n    public function store(Request $request)\r\n    {\r\n        $channel = $request->user()->channel()->first();\r\n\r\n        $video = $channel->videos()->where('uid', $request->uid)->firstOrFail();\r\n\r\n        $request->file('video')->move(storage_path() . '/app/uploads', $video->video_filename);\r\n\r\n        FFMpeg::open('uploads'. '\\\\' . $video->video_filename)->addFilter(function ($filters) {\r\n           \r\n            $filters->resize(new \\FFMpeg\\Coordinate\\Dimension(640, 480));\r\n        })->export()->toDisk('local') ->inFormat(new \\FFMpeg\\Format\\Video\\X264)->save('small_steve.mkv');\r\n\r\n        //$enc = FFMpeg::open('uploads'. '\\\\' . $video->video_filename)->export()->todisk('local')->inFormat(new \\FFMpeg\\Format\\Video\\X264)->save(\"{$video->video_filename}\");\r\n\r\n        //$this->dispatch(new UploadVideo($video));\r\n\r\n        return response()->json(null, 200);\r\n    }\r\n\r\n`\r\n\r\nI am getting the following error:\r\n\r\n`ffmpeg failed to execute command \"C:/FFmpeg/bin/ffmpeg.exe\" -y -i C:\\xampp\\htdocs\\codetube\\storage\\app\\uploads\\15a40296629413.mp4 -threads 12 -vcodec libx264 -acodec libfaac -b:v 1000k -refs 6 -coder 1 -sc_threshold 40 -flags +loop -me_range 16 -subq 7 -i_qfactor 0.71 -qcomp 0.6 -qdiff 4 -trellis 1 -b:a 128k -vf \"[in]scale=640:480 [out]\" -pass 1 -passlogfile \"C:\\Users\\Rohit\\AppData\\Local\\Temp\\ffmpeg-passes5a4042ad8cd3ewsp9v/pass-5a4042ad8d8e9\" C:\\xampp\\htdocs\\codetube\\storage\\app\\15a40296629413.mkv`\r\n\r\nAnd also,\r\n    ` (2/2) RuntimeException\r\n\r\n     Encoding failed`\r\n\r\nNote that the commented code isn't working as well.\r\n\r\nMy main aim is to encode the videos and export them to s3 on the fly. I have tried a lot please help!\r\n"},"comment":{"url":"https://api.github.com/repos/pascalbaljetmedia/laravel-ffmpeg/issues/comments/449576613","html_url":"https://github.com/pascalbaljetmedia/laravel-ffmpeg/issues/61#issuecomment-449576613","issue_url":"https://api.github.com/repos/pascalbaljetmedia/laravel-ffmpeg/issues/61","id":449576613,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0OTU3NjYxMw==","user":{"login":"boz14676","id":26241677,"node_id":"MDQ6VXNlcjI2MjQxNjc3","avatar_url":"https://avatars1.githubusercontent.com/u/26241677?v=4","gravatar_id":"","url":"https://api.github.com/users/boz14676","html_url":"https://github.com/boz14676","followers_url":"https://api.github.com/users/boz14676/followers","following_url":"https://api.github.com/users/boz14676/following{/other_user}","gists_url":"https://api.github.com/users/boz14676/gists{/gist_id}","starred_url":"https://api.github.com/users/boz14676/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boz14676/subscriptions","organizations_url":"https://api.github.com/users/boz14676/orgs","repos_url":"https://api.github.com/users/boz14676/repos","events_url":"https://api.github.com/users/boz14676/events{/privacy}","received_events_url":"https://api.github.com/users/boz14676/received_events","type":"User","site_admin":false},"created_at":"2018-12-22T15:07:13Z","updated_at":"2018-12-22T15:07:13Z","author_association":"NONE","body":"Thanks @rohitpotato"}}
{"actor":{"display_login":"boz14676"}}