php ffmpeg converting to formats used by html5 video -


can post list here conversing commands ffmpeg make formats html5 video in php, here ones use now:

exec('ffmpeg -i ' .$tmpname. ' upload/' .$newname. '.mp4'); exec('ffmpeg -i ' .$tmpname. ' -acodec libvorbis -vcodec libvpx upload/' .$newname. '.webm'); exec('ffmpeg -i' .$tmpname. ' -acodec vorbis -vcodec libtheora  upload/' .$newname. '.ogv'); exec('ffmpeg -i ' .$tmpname. ' -acodec vorbis -aq 100 upload/' .$newname. '.ogg'); 

before doing converting mp4, ogv , ogg, , didn't webm, , ask them update ffmpeg on server, , update it, mp4 works...

if write:

exec('ffmpeg -i ' .$tmpname. ' upload/' .$newname. '.webm'); 

it creates new file 0 bytes size...

this info send me update:

[root@web ffmpeg]# ffmpeg -formats|awk '/mp4/||/ogg/||/ogv/||/webm/'  ffmpeg version git-n-29495-g749d16c, copyright (c) 2000-2011 ffmpeg developers  built on apr 29 2011 02:22:31 gcc 4.1.2 20080704 (red hat 4.1.2-50)  configuration: --prefix=/usr  libavutil    51.  1. 0 / 51.  1. 0  libavcodec   53.  1. 1 / 53.  1. 1  libavformat  53.  0. 3 / 53.  0. 3  libavdevice  53.  0. 0 / 53.  0. 0  libavfilter   2.  1. 0 /  2.  1. 0  libswscale    0. 14. 0 /  0. 14. 0  d  matroska,webm   matroska/webm file format  d  mov,mp4,m4a,3gp,3g2,mj2 quicktime/mpeg-4/motion jpeg 2000 format  e mp4             mp4 format  de ogg             ogg  e webm            webm file format 

i can't believe there no complete list of conversions online working... search through everywhere , can't find right one...

can make working?

thank you!


Comments