Last active
January 30, 2017 19:52
-
-
Save pedropapa/2a6030ad4f5e63a9f205dcc80b00bd4c to your computer and use it in GitHub Desktop.
Xys - AVCONV
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Installing avconv with all dependencies for video conversion/encoding: | |
(macOS) brew reinstall libav --with-vpx --with-vorbis --with-libvorbis --with-vpx --with-vorbis --with-theora --with-libogg --with-libvorbis --with-gpl --with-version3 --with-nonfree --with-postproc --with-libaacplus --with-libass --with-libcelt --with-libfaac --with-libfdk-aac --with-libfreetype --with-libmp3lame --with-libopencore-amrnb --with-libopencore-amrwb --with-libopenjpeg --with-openssl --with-libopus --with-libschroedinger --with-libspeex --with-libtheora --with-libvo-aacenc --with-libvorbis --with-libvpx --with-libx264 --with-libxvid | |
Start encoding worker: | |
php app/console gearman:worker:run src/Core/VideoBundle/Worker/EncodeVideoWorker.php | |
Example of manually encoding an uploaded video: | |
avconv -i /usr/local/var/www/htdocs/Xys/xcorp/web/upload/video/encoded/e6/e0/e6e0082c-a38b-4984-93f6-15bc895f057c -acodec libvorbis -y /usr/local/var/www/htdocs/Xys/xcorp/web/upload/video/encoded/e6/e0/e6e0082c-a38b-4984-93f6-15bc895f057c.webm | |
For some weird reason I had to add the following line to the uploadVideo function inside VideoUploader class right after "$this->videoActions->preSave...": | |
$this->videoActions->postSave($video); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment