Results 1 to 9 of 9

Thread: Error parsing option on the command line: -lavfopts

  1. #1
    Join Date
    Aug 2007
    Posts
    19

    Default Error parsing option on the command line: -lavfopts

    Hi, I looked at my debug file and then executed the following: (any suggestions?)



    /usr/local/bin/ffmpeg -i /var/www/vhosts/cubacabin.net/httpdocs/vshar
    e/video/Making-Music.avi -acodec libmp3lame -ar 22050 -ab 32 -f flv /var/www/vhosts/cubac
    abin.net/httpdocs/vshare/flvideo/Making-Music.flv
    FFmpeg version SVN-r10253, Copyright (c) 2000-2007 Fabrice Bellard, et al.
    configuration: --enable-libmp3lame --enable-libogg --enable-libvorbis --disable-mmx --e
    nable-shared
    libavutil version: 49.5.0
    libavcodec version: 51.42.0
    libavformat version: 51.12.2
    built on Aug 27 2007 21:03:28, gcc: 4.1.1 20070105 (Red Hat 4.1.1-52)
    [mpeg4 @ 0x2aaaab291110]frame skip 8

    Seems stream 0 codec frame rate differs from container frame rate: 30000.00 (30000/1) ->
    25.00 (25/1)
    Input #0, avi, from '/var/www/vhosts/cubacabin.net/httpdocs/vshare/video/Making-Music.avi
    ':
    Duration: 00:00:44.9, start: 0.000000, bitrate: 864 kb/s
    Stream #0.0: Video: mpeg4, yuv420p, 640x480, 25.00 fps(r)
    Stream #0.1: Audio: mp3, 22050 Hz, stereo, 56 kb/s
    Output #0, flv, to '/var/www/vhosts/cubacabin.net/httpdocs/vshare/flvideo/Making-Music.fl
    v':
    Stream #0.0: Video: flv, yuv420p, 640x480, q=2-31, 200 kb/s, 25.00 fps(c)
    Stream #0.1: Audio: libmp3lame, 22050 Hz, stereo, 0 kb/s
    Stream mapping:
    Stream #0.0 -> #0.0
    Stream #0.1 -> #0.1
    Press [q] to stop encoding
    [mpeg4 @ 0x2aaaab291110]frame skip 8
    frame= 1124 fps= 68 q=31.0 Lsize= 3437kB time=45.0 bitrate= 626.3kbits/s
    video:2999kB audio:351kB global headers:0kB muxing overhead 2.607373%

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

    Default

    Can you check if the file exists on your server ?

    Code:
    /var/www/vhosts/cubacabin.net/httpdocs/vshare/flvideo/Making-Music.flv
    Also post content of

    include/settings/video_conversion.php

  3. #3
    Join Date
    Aug 2007
    Posts
    19

    Default

    Yes, it exists.

    <?php

    $cmd_ffmpeg = "$config[ffmpeg] -i '$video_src' -y -acodec libmp3lame -ar 22050 -ab 32 -f flv $video_flv";
    $cmd_mencoder = "$config[mencoder] $video_src -o $video_flv -of lavf -oac mp3lame -lameopts abr:br=56 -ovc lavc -lavcopts vcodec=flv:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:l ast_pred=3 -srate 22050 -lavfopts i_certify_that_my_video_stream_does_not_use_b_fram es";

    $cmd_all = $cmd_mencoder;


    $convert_3gp = $cmd_all;
    $convert_mp4 = $cmd_all;
    $convert_mov = $cmd_all;
    $convert_asf = $cmd_all;
    $convert_mpg = $cmd_all;
    $convert_avi = $cmd_all;
    $convert_mpeg = $cmd_all;
    $convert_wmv = $cmd_all;
    $convert_rm = $cmd_all;
    $convert_dat = $cmd_all;

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

    Default

    Your video_conversion.php says you are using mencoder

    $cmd_all = $cmd_mencoder;

    Then how your debug.txt shows ffmpeg ?

    Code:
     /usr/local/bin/ffmpeg -i /var/www/vhosts/cubacabin.net/httpdocs/vshar
    e/video/Making-Music.avi -acodec libmp3lame -ar 22050 -ab 32 -f flv /var/www/vhosts/cubac
    abin.net/httpdocs/vshare/flvideo/Making-Music.flv

    The content you posted is the one you use on your server ?

  5. #5
    Join Date
    Aug 2007
    Posts
    19

    Default Rechecked debug

    I rechecked debug after attempting upload, and I don't know the ssh command to run for mencoder.

    2007-08-31 13:06:43 Video (20) Conversion starting...
    2007-08-31 13:06:43 File: /var/www/vhosts/cubacabin.net/httpdocs/vshare/video/DuckLanding.MOV_6.mov
    2007-08-31 13:06:43 -------------------------------------------------------------
    2007-08-31 13:06:43 INSERT INTO video SET
    UID='3',
    title='Testing6',
    description='testing6',
    keyword='testing6',
    channel='0|1|0',
    space = '3',
    addtime='1188583603',
    adddate='2007-08-31',
    vkey='615997146',
    type='public',
    active='0',
    approve='1'
    2007-08-31 13:06:43 -------------------------------------------------------------
    2007-08-31 13:06:43 Video id: 19
    2007-08-31 13:06:43 Calling ffmpeg-php -> ffmpeg_movie()
    2007-08-31 13:06:43 Get video duration - START
    2007-08-31 13:06:43 Get video duration - END
    2007-08-31 13:06:43 DURATION: 2.7999999523163
    2007-08-31 13:06:43 Create Thumbnail - START
    2007-08-31 13:06:44 Create Thumbnail - END
    2007-08-31 13:06:44 CONVERT COMMAND:

    /usr/bin/mencoder /var/www/vhosts/cubacabin.net/httpdocs/vshare/video/DuckLanding.MOV_6.mov -o /var/www/vhosts/cubacabin.net/httpdocs/vshare/flvideo/1188583604354811802.flv -of lavf -oac mp3lame -lameopts abr:br=56 -ovc lavc -lavcopts vcodec=flv:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:l ast_pred=3 -srate 22050 -lavfopts i_certify_that_my_video_stream_does_not_use_b_fram es


    2007-08-31 13:06:44 -------------------------------------------------------------
    2007-08-31 13:06:44
    2007-08-31 13:06:44 -------------------------------------------------------------
    2007-08-31 13:06:44 Return value:
    2007-08-31 13:06:44 Calling process_video[20,0]

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

    Default

    It seems PHP can't execute external commands like

    /usr/bin/mencoder /var/www/vhosts/cubacabin.net/httpdocs/vshare/video/DuckLanding.MOV_6.mov -o /var/www/vhosts/cubacabin.net/httpdocs/vshare/flvideo/1188583604354811802.flv -of lavf -oac mp3lame -lameopts abr:br=56 -ovc lavc -lavcopts vcodec=flv:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:l ast_pred=3 -srate 22050 -lavfopts i_certify_that_my_video_stream_does_not_use_b_fram es

    Just put in the convert.php and if it do not show anything ask your web host why php is not executing the command. Server may have some restrictions to run external commands.

  7. #7
    Join Date
    Aug 2007
    Posts
    19

    Default I tried the command

    Here is what I got:

    /usr/local/bin/mencoder /var/www/vhosts/cubacabin.net/httpdocs/vshare
    /video/DuckLanding.MOV_6.mov -o /var/www/vhosts/cubacabin.net/httpdocs/vshare/flvideo/118
    8583604354811802.flv -of lavf -oac mp3lame -lameopts abr:br=56 -ovc lavc -lavcopts vcodec
    =flv:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:last_pr ed=3 -srate 22050 -lavfopts i_certify_t
    hat_my_video_stream_does_not_use_b_frames
    MEncoder dev-SVN-r24303-4.1.1 (C) 2000-2007 MPlayer Team
    CPU: Intel(R) Pentium(R) 4 CPU 3.40GHz (Family: 15, Model: 4, Stepping: 1)
    CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
    Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

    Option lavfopts: Unknown suboption i_certify_that_my_video_stream_does_not_use_b_fram es
    Error parsing option on the command line: -lavfopts

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

    Default

    In include/settings/video_conversion.php

    Find

    Code:
     -lavfopts i_certify_that_my_video_stream_does_not_use_b_frames
    replace with

    Code:
     -ofps 24
    And try again.

  9. #9
    Join Date
    Aug 2007
    Posts
    19

    Default Works

    It works, thanks for you help. A great program!

Similar Threads

  1. error parsing command line
    By bcannon in forum Installation Support
    Replies: 4
    Last Post: 04-09-2009, 10:13 PM
  2. Change conversion command ffmpeg/mencoder
    By admin in forum Frequently Asked Questions
    Replies: 23
    Last Post: 07-10-2008, 09:15 PM
  3. Error in line 0
    By Keizer in forum Installation Support
    Replies: 1
    Last Post: 11-25-2007, 09:15 AM
  4. Error on line 177
    By George in forum Fixed Bugs
    Replies: 1
    Last Post: 10-01-2007, 06:22 PM
  5. increase video quaility with mencoder scale command.
    By leki in forum Template Modifications
    Replies: 2
    Last Post: 09-07-2007, 07:39 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
  •