mardi 11 juillet 2017

Modify video with FFMPEG before uploading to S3

When a user uploads a video, I want to remove its audio. So in my Laravel code, I have something like this:

// The video from the HTML form
$video = $request->file('video');

// Strip the audio
exec('ffmpeg -y -i ' . <PATH TO FILE> . ' -an -c copy ' . <NEW FILE PATH>);

The problem is, I want to upload the final video (without audio) to Amazon's S3 without saving any part of the video on my local server.

Is there a way to use $video as the input for the ffmpeg command and then output the result directly to S3? How?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2ugYD7V
via IFTTT

Aucun commentaire:

Enregistrer un commentaire