[FFmpeg-trac] #4645(undetermined:new): PHP variable concatenate into FFMPEG

FFmpeg trac at avcodec.org
Sat Jun 20 05:42:10 CEST 2015


#4645: PHP variable concatenate into FFMPEG
-------------------------------------+-------------------------------------
             Reporter:  kunal        |                     Type:  defect
               Status:  new          |                 Priority:  important
            Component:               |                  Version:
  undetermined                       |  unspecified
             Keywords:  ffmpeg,      |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Hi there,

 i am gonna need some help regarding to ffmpeg,i really have done enough
 research about this topic and so far didnt get any clue to solve it.

 my question is, I have a group of file on the server and i want  create a
 web page from file is searched after passing through web page and then i
 want this Output as a Inout in my ffmpeg code, which i trying to also run
 through PHP.

 {{{

 '''TO FIND THE FILE PATH'''

 {{{
 $command ='find /mnt/'.$year.' -name'.$MXF.'
 if (!($stream = ssh2_exec($con, $command))) {
                 echo "fail: unable to execute command\n";
             } else {

                                 stream_set_blocking($stream, true);
                                 $stream_out =
 ssh2_fetch_stream($stream,SSH2_STREAM_STDIO);
                                 $file = stream_get_contents($stream_out);

 }}}
 $ff = '/usr/bin/ffmpeg -i  "'.$file.'" -vcodec libx264 -[...]
 }}}

 But i get the error message and It say the file and directrory doesn't
 exist! but actually file exists !!

 can someone please help me?

--
Ticket URL: <https://trac.ffmpeg.org/ticket/4645>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list