Results 1 to 8 of 8

Thread: after install, flvideo is 0 bytes

  1. #1
    Join Date
    May 2007
    Posts
    3

    Default after install, flvideo is 0 bytes

    When we upload a video, the filesize of video in /flvideo is 0 bytes. Obviously nothing plays when we click the video thumbnails to try and play the video... I have uploaded a .flv video and it plays correctly, so something must be wrong with convertor? ffmpeg is showing in phpinfo.php...

    Any suggestions? Thx

  2. #2
    Join Date
    Apr 2007
    Posts
    2,202

    Default

    It seems problem with the ffmpeg or mencoder, do you have the correct path in config.php ? What is site url ?

  3. #3
    Join Date
    May 2007
    Posts
    3

    Default

    Our site is internal and not live on the internet yet...

    Here is the contents of config.php

    <?

    error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING);
    session_start();

    $db_host = "localhost";
    $db_user = "vshare";
    $db_pass = "vshare";
    $db_name = "vshare";

    $config = array();

    $config['ffmpeg'] = "/usr/bin/ffmpeg";
    $config['mplayer'] = "/usr/local/bin/mplayer";
    $config['mencoder'] = "/usr/local/bin/mencoder";
    $config['flvtool'] = "/usr/bin/flvtool2";
    $config['basedir'] = "/var/www/html/pro";
    $config['baseurl'] = "http://ae/pro";


    include("vshare.php");
    ?>

    I checked the locations of the tools and all are correct. I am manually able to use ffmpeg to convert to .flv video via command line, and I can use mplayer to play videos. I am unsure of the correct syntax of mencoder, so I have not tested it to see if it converts properly. All files above are in the path, and if i type mencoder it executes and asks for input file etc...

    EDIT: I figured out the command syntax for mencoder and it worked from command line as well...

    I appreciate more assistance, thanks again.

  4. #4
    Join Date
    Apr 2007
    Posts
    2,202

    Default

    Enable debug in admin area, upload a video, then check the templates_c/debug.txt

    Check if the convert command in that works on command line.

  5. #5
    Join Date
    May 2007
    Posts
    3

    Default

    [root@sta840 mplayer]# ffmpeg -i /var/www/html/pro/video/9.avi -acodec mp3 -ar 22050 -ab 32 -f flv /var/www/html/pro/flvideo/9.flv

    FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
    configuration: --enable-libmp3lame --enable-libogg --enable-libvorbis --disable-mmx --enable-shared
    libavutil version: 49.4.0
    libavcodec version: 51.40.4
    libavformat version: 51.12.1
    built on May 15 2007 11:52:47, gcc: 3.4.6 20060404 (Red Hat 3.4.6-3)
    Input #0, avi, from '/var/www/html/pro/video/9.avi':
    Duration: 00:00:19.5, start: 0.000000, bitrate: 2210 kb/s
    Stream #0.0: Video: mjpeg, yuvj422p, 320x240, 15.00 fps(r)
    Stream #0.1: Audio: pcm_u8, 11024 Hz, mono, 88 kb/s
    File '/var/www/html/pro/flvideo/9.flv' already exists. Overwrite ? [y/N] y
    Output #0, flv, to '/var/www/html/pro/flvideo/9.flv':
    Stream #0.0: Video: flv, yuv420p, 320x240, q=2-31, 200 kb/s, 15.00 fps(c)
    Stream #0.1: Audio: 0x0000, 22050 Hz, mono, 0 kb/s
    Stream mapping:
    Stream #0.0 -> #0.0
    Stream #0.1 -> #0.1
    [flv @ 0x453928]removing common factors from framerate
    Unsupported codec for output stream #0.1


    Codec problem?

  6. #6
    Join Date
    Apr 2007
    Posts
    2,202

    Default

    yes, you need to reinstall ffmpeg with more codec support.

    Install with following configuration support most formats

    ./configure --enable-shared --enable-xvid --enable-libvorbis --enable-libogg --enable-libmp3lame --enable-gpl --enable-libfaac --enable-libfaad --enable-liba52

  7. #7
    Join Date
    May 2007
    Posts
    686

    Default

    Enable debug in admin is this able to be turned off once the server is live? Or should it be left on?

  8. #8
    Join Date
    Apr 2007
    Posts
    2,202

    Default

    You can keep it on if you wish, it won't make any difference in performance.

Similar Threads

  1. Fatal error: Unable to read 3986 bytes in install.php
    By ryans in forum Installation Support
    Replies: 1
    Last Post: 09-26-2008, 04:44 AM
  2. video & flvideo folders
    By wvchannel in forum General Discussions
    Replies: 2
    Last Post: 10-06-2007, 03:27 PM
  3. flvideo and video folder
    By karlmay in forum Installation Support
    Replies: 8
    Last Post: 08-21-2007, 07:32 PM
  4. video get NOT converted to flv format in flvideo folder
    By winkler in forum Installation Support
    Replies: 1
    Last Post: 07-17-2007, 03:25 PM
  5. avi not converted to the flvideo directory
    By manel in forum Fixed Bugs
    Replies: 4
    Last Post: 07-11-2007, 10:08 AM

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
  •