Opened 4 years ago

Closed 4 years ago

#4645 closed defect (invalid)

PHP variable concatenate into FFMPEG

Reported by: kunal Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

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?

Change History (1)

comment:1 Changed 4 years ago by cehoyos

  • Keywords ffmpeg removed
  • Priority changed from important to normal
  • Resolution set to invalid
  • Status changed from new to closed

Sorry, this is a bug tracker, not a support forum.

Note: See TracTickets for help on using tickets.