This commit is contained in:
jens1o 2017-09-19 19:29:07 +02:00
commit 40f41a6130
No known key found for this signature in database
GPG key ID: C7437FC1B445CC49

View file

@ -178,8 +178,8 @@ $video = $ffmpeg->open( 'video.mp4' );
// Set an audio format
$audio_format = new FFMpeg\Format\Audio\Mp3();
// Extract the audio into a new file
$video->save('audio.mp3');
// Extract the audio into a new file as mp3
$video->save($audio_format, 'audio.mp3');
// Set the audio file
$audio = $ffmpeg->open( 'audio.mp3' );