Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: video not converting

  1. #1
    Join Date
    May 2007
    Posts
    10

    Default video not converting

    hi,
    after i upload a wmv file i can only see the thumb image but the file is not converted to flv
    but it converts ok when i try
    ffmpeg -i 2.wmv -acodec mp3 -ar 22050 -ab 32 -f flv ../flvideo/2.flv
    in shell and am not getting any php errors
    so what to do ??

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

    Default

    This may be caused by php settings not allowing the convertion command to run. Also check permission of your flvideo folder.

    If you need us to check, PM me server login details.

  3. #3
    Join Date
    May 2007
    Posts
    98

    Default

    I'm in the same boat now.

    flv's uploads fine.
    All other formats upload nicely into video folder, but doesn't convert to fla and the flvideo folder.

    Converts nicely when done manually: ffmpeg -i 57.wmv -acodec mp3 -ar 22050 -ab 32 -f flv ../flvideo/57.flv

    phpinfo.php says:
    Code:
    ffmpeg support (ffmpeg-php)	enabled
    ffmpeg-php version 	0.5.0
    libavcodec version 	Lavc51.40.4
    libavformat version 	Lavf51.12.1
    
    Directive	Local Value	Master Value
    ffmpeg.allow_persistent	0	0

    Doing: php -r 'phpinfo();' | grep ffmpeg

    I get the following results:

    Code:
    ffmpeg
    ffmpeg support (ffmpeg-php) => enabled
    ffmpeg-php version => 0.5.0
    ffmpeg.allow_persistent => 0 => 0
    Still it doesn't convert...

    Debug.txt looks like this:

    Code:
    UID=1,
    title='Test wmv',
    description='This is a test to convert .wmv',
    keyword='test',
    channel='0|9|0',
    space = '7',
    addtime='1180032995',
    adddate='2007-05-24',
    vkey='1567478602',
    type='public',
    active=1,
    filehome=''
    
    -------------------------------------------------------------
    
    SQL EXECUTED
    
    LAST INSERT ID = 57
    VIDEO URL = http://www.MyDomain.com/view/57/test-wmv/
    VIDEO LOCATION = /var/www/vhosts/MyDomain.com/httpdocs/video/57.wmv
    Uploded File Moved to: /var/www/vhosts/MyDomain.com/httpdocs/video/57.wmv
    Initialize ffmpeg - Begin
    Initialize ffmpeg - END
    Create Thumbnail - START
    Create Thumbnail - END
    Get video duration - START
    Get video duration - END
    DURATION: 64.964
    
    CONVERT COMMAND:
    
    /usr/bin/local/ffmpeg -i /var/www/vhosts/MyDomain.com/httpdocs/video/57.wmv -acodec mp3 -ar 22050 -ab 32 -f flv /var/www/vhosts/MyDomain.com/httpdocs/flvideo/57.flv
    
    
    UPDATE VIDEO SQL:
    update video set
    vdoname='57.wmv',
    flvdoname='57.flv',
    duration='64.964' WHERE VID=57

    I just realised that the convert code that's run is wrong.
    My ffmpeg is at: /usr/local/bin/ffmpeg

    Where can I change this in the script ??

    If I manually run this command in shell, and change the path to ffmpeg to mine, it works like a charm.
    I would like the script to run this command:

    Code:
    /usr/local/bin/ffmpeg -i /var/www/vhosts/MyDomain.com/httpdocs/video/57.wmv -acodec mp3 -ar 22050 -ab 32 -f flv /var/www/vhosts/MyDomain.com/httpdocs/flvideo/57.flv
    Can this be changed somewhere ?
    I'd appreciate any help on this...

  4. #4
    Join Date
    May 2007
    Posts
    98

    Default

    Bman, have you solved your issue with this ?

  5. #5
    Join Date
    May 2007
    Posts
    10

    Default

    am getting some one to reinstall ffmpeg

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

    Default

    You can change ffmpeg path in

    include/config.php

    Make sure there is no space or newline character after the end of the file, that is ?>

  7. #7
    Join Date
    May 2007
    Posts
    98

    Default

    Quote Originally Posted by admin
    You can change ffmpeg path in

    include/config.php

    Make sure there is no space or newline character after the end of the file, that is ?>

    Yes, of course. How simple!

    I changed that and Voilá. IT WORKS!
    Super! Thanks for the help!

    Bman, have you checked your debug.txt ?

  8. #8
    Join Date
    Jun 2007
    Posts
    5

    Default video not converting

    hi i tried the solution shown in Video not getting converted to flv and fixed that problem, however i encountered another problem when i tried this

    Code:
    /usr/local/bin/ffmpeg -i /var/www/html/xxxx/video/4.wmv -acodec mp3 -ar 22050 -ab 32 -f flv /var/www/html/xxxx/flvideo/4.flv
    the result that i get:

    Code:
    FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
      configuration: --enable-shared
      libavutil version: 49.4.0
      libavcodec version: 51.40.4
      libavformat version: 51.12.1
      built on May 30 2007 00:30:06, gcc: 4.1.1 20070105 (Red Hat 4.1.1-51)
    /var/www/html/xxxx/video/4.wmv: no such file or directory
    says that it can't find the the file or directory. so i tried to remove all those folder paths and used this:


    Code:
    /usr/local/bin/ffmpeg -i video/4.wmv -acodec mp3 -ar 22050 -ab 32 -f flv flvideo/4.flv
    same result:

    Code:
    FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
      configuration: --enable-shared
      libavutil version: 49.4.0
      libavcodec version: 51.40.4
      libavformat version: 51.12.1
      built on May 30 2007 00:30:06, gcc: 4.1.1 20070105 (Red Hat 4.1.1-51)
    video/4.wmv: no such file or directory
    what is the problem here? everything else seems to be in order.

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

    Default

    Make sure you have the video in the path.

  10. #10
    Join Date
    Jun 2007
    Posts
    5

    Default

    Quote Originally Posted by admin
    Make sure you have the video in the path.
    yes, video is in the correct path.

Page 1 of 2 12 LastLast

Similar Threads

  1. video no converting properly
    By murffdurtt in forum Installation Support
    Replies: 2
    Last Post: 10-27-2008, 09:27 PM
  2. Video converting Failing
    By alex288288 in forum General Discussions
    Replies: 0
    Last Post: 10-01-2008, 02:43 AM
  3. WMV video not converting. Help Please
    By sullenest in forum Installation Support
    Replies: 6
    Last Post: 04-02-2008, 01:53 AM
  4. converting video.xxx > video.flv
    By jonny23 in forum Installation Support
    Replies: 2
    Last Post: 10-18-2007, 07:46 AM
  5. not converting to flv
    By fugasi in forum Installation Support
    Replies: 2
    Last Post: 06-07-2007, 12:51 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
  •