[MEncoder-users] Calling mencoder via PHP script

elfumata elfumata at iespana.es
Tue Nov 30 16:32:55 CET 2004


Put in your php script...

  putenv("HOME=$newhome")

Apache mencoder execution will get the codecs.conf file OK

That's all folks

> -----Mensaje original-----
> De: mencoder-users-bounces at mplayerhq.hu 
> [mailto:mencoder-users-bounces at mplayerhq.hu] En nombre de elfumata
> Enviado el: viernes, 26 de noviembre de 2004 9:50
> Para: mencoder-users at mplayerhq.hu
> Asunto: [MEncoder-users] Calling mencoder via PHP script
> 
> Hi all,
> 
> I get the following error in apache error log file, when run 
> a script in PHP that call 'mencoder'. The script is... 
> 
> shell_exec("/usr/local/MPlayer-1.0pre5/bin/mencoder 
> -audiofile sound.mp3 -ofps 25 -o sound.avi -oac mp3lame -ovc 
> xvid -xvidencopts bitrate=300
> sound.3gp")
> 
> If I execute the same command
> /usr/local/MPlayer-1.0pre5/bin/mencoder -audiofile sound.mp3 
> -ofps 25 -o sound.avi -oac mp3lame -ovc xvid -xvidencopts 
> bitrate=300 sound.3gp out of PHP, apache... in other words 
> 'in shell/commands line' It runs OK, It create my avi file
> 
> /----------------------------------
> The error is .....
> 
> get_path("config") problem
> Cannot find codec matching selected -vo and video format 0x33363273
> /----------------------------------
> 
> 
> I have the file 'codecs.conf' properly located because when 
> run the command via shell I get...
>    Reading /lolo/.mplayer/codecs.conf: 73 audio & 180 video 
> codecs 'lolo' is the same user which apache runs
> 
> I modified codecs.conf with ... 'format 0x33363273'.... in 
> order to create avi files
> /--------------------------------
> videocodec ffh263
>   info "FFmpeg H263+ decoder"
>   status working
>   fourcc H263,U263,h263,X263
>   fourcc viv1 h263
>   driver ffmpeg
>   dll h263
>   out YV12,I420,IYUV
>   format 0x33363273
> /--------------------------------
> 
> 
> /---------------------------------------------------------------------
> All mencoder output in apache error log file is ......
> 
> File not found: 'frameno.avi'
> Failed to open frameno.avi
> get_path("config") problem
> MOV: unable to determine audio samplerate, assuming 44.1kHz (got 50)
> mpg123: Can't rewind stream by 229 bits!
> Cannot find codec matching selected -vo and video format 0x33363273
> /---------------------------------------------------------------------
> 
> 
> I use:
> - PHP4
> - apache-1.3.29-1
> - Mandrake 10
> 
> 
> Thank you very much in advance
> 
> 
> 
> ---Publicidad--------------------------------------------------------
> Nuevo Messenger Multimedia de Yahoo ¡ Descárgalas  Gratis !
> http://tracker.tradedoubler.com/click?p=21420&a=1038692
> 
> _______________________________________________
> MEncoder-users mailing list
> MEncoder-users at mplayerhq.hu
> http://mplayerhq.hu/mailman/listinfo/mencoder-users
> 
> ---Publicidad--------------------------------------------------------
> Haz tu apuesta Online y gana 20 Euros ¡ Apuesta ya con UNIBET !
> http://tracker.tradedoubler.com/click?p=21232&a=1037797
> 



---Publicidad--------------------------------------------------------
Alquila tu vehículo al mejor precio con HERTZ  
¡ 60 euros por el fin de semana !
http://tracker.tradedoubler.com/click?p 846&a37797




More information about the MEncoder-users mailing list