Results 1 to 2 of 2

Thread: Must sepcify output file... FFMPEG ERROR

  1. #1
    Join Date
    Jun 2008
    Posts
    12

    Default Must sepcify output file... FFMPEG ERROR

    If youll look in the /include/classes/class.video_duration.php.. theres this lil tid-bit:

    class video_duration {

    function find_video_duration_ffmpeg($duration_arr) {
    global $config;
    $video = $duration_arr['src'];
    $debug = isset($duration_arr['debug']) ? $duration_arr['debug'] : 0;
    $cmd = $config['ffmpeg'] . " -i " . $video; //THIS NEEDS TO BE CHANGED..
    @exec("$cmd 2>&1", $output);
    $output_all = implode("\n",$output);

    if ($debug) {
    echo "

    $cmd</p>";
    echo "<pre>"; print_r($output_all);
    echo "</pre>";
    }
    --

    right noe this:
    $cmd = $config['ffmpeg'] . " -i " . $video;

    is NOT specifying the proper output file (the flv file name) so all we have to do is put in the flv file path and it will be sucesfull. I tried it manually. but i have NO idea what var to use for the output file. anyone care to finish this off?

  2. #2
    Join Date
    Jun 2008
    Posts
    12

    Default Re: Must sepcify output file... FFMPEG ERROR

    $cmd = $config['ffmpeg'] . " -i " . $video;

    should be something like... but idk what $path_to_flv_video is...

    cmd = $config['ffmpeg'] . " -i " . $video . " " . $path_to_flv_video;

Similar Threads

  1. ERROR : Progress Bar Error: Failed to find flength file
    By afa in forum Installation Support
    Replies: 1
    Last Post: 03-25-2008, 04:23 AM
  2. Replies: 1
    Last Post: 03-15-2008, 05:19 AM
  3. ffmpeg-php error
    By Haz in forum Installation Support
    Replies: 1
    Last Post: 12-27-2007, 11:53 PM
  4. Fatal Error ffmpeg and ffmpeg-php
    By zebz in forum Installation Support
    Replies: 5
    Last Post: 08-07-2007, 08:09 PM
  5. Help me, vshare error [ERROR: 3] The uploaded file was only?
    By joako30 in forum General Discussions
    Replies: 1
    Last Post: 08-02-2007, 08:12 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •