Results 1 to 8 of 8

Thread: MENCODER CHANGES!

  1. #1
    Join Date
    May 2007
    Posts
    394

    Default MENCODER CHANGES!

    Hi Admin,

    I've got Mencoder working, and the command seems to be issuing correctly:

    Code:
    /usr/local/bin/mencoder /home/thewall_net/public_html/video/163.wmv -o /home/thewall_net/public_html/flvideo/163.flv -of lavf -oac mp3lame -lameopts abr:br=56 -ovc lavc -lavcopts vcodec=flv:vbitrate=700:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 -srate 22050 -lavfopts i_certify_that_my_video_stream_does_not_use_b_frames
    But I get the following error running it on the command line:
    Code:
    Option lavfopts: Unknown suboption i_certify_that_my_video_stream_does_not_use_b_frames
    Error parsing option on the command line: -lavfopts
    When I run the command without the offending suboption, I get a video that plays all the video very sped up, but the audio plays normally. Basically the video disappears and the audio keeps playing.

    Any ideas? Thanks!

  2. #2
    Join Date
    May 2007
    Posts
    394

    Default

    I just received this on the mencoder list:

    > Diego recently committed some changes removing
    > i_certify_that_my_video_stream_does_not_use_b_fram es (
    > http://cia.vc/stats/author/diego/.message/248bd). My understanding is that
    > bframes are now supported when using lavf.
    > Not sure about number 2, but have you tried removing/changing some of the
    > command line options and seeing if you can narrow down the problem. I would
    > take a look at -ofps and -srate to start, but I'm no expert.


    Didn't really help my problem, because as I noted, removing the option only creates a high-speed video. But I thought I'd post it as a heads-up to you.

  3. #3
    Join Date
    May 2007
    Posts
    394

    Default

    Hey, I got the answer (at least for wmv files) from the mencoder maillist....

    > If you add the framerate options with wmv, the problem gets resolved.
    > -ofps 24
    > Also, as previously stated it is no longer necessary to dd the
    > -lavfopts i_certify_that_my_video_stream_does_not_use_b_fram es
    So here's the command I issued, and it created a perfect WMV file:
    Code:
    /usr/local/bin/mencoder /home/thewall_net/public_html/video/163.wmv -o /home/thewall_net/public_html/flvideo/003.flv -of lavf -oac mp3lame -lameopts abr:br=56 -ovc lavc -lavcopts vcodec=flv:vbitrate=700:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 -srate 22050 -ofps 24

  4. #4
    Join Date
    May 2007
    Posts
    588

    Default

    is this some very new version of mencoder?

    do all other file types convert ok though using that command?

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

    Default

    What version you are using ?

    I tried the command and got


    Code:
    # /usr/bin/mencoder 1.wmv -o 1.flv -of lavf -oac mp3lame -lameopts abr:br=56 -ovc lavc -lavcopts vcodec=flv:vbitrate=700:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 -srate 22050 -ofps 24
    MEncoder 1.0rc1-3.4.6 (C) 2000-2006 MPlayer Team
    CPU: Intel(R) Core(TM)2 CPU          6420  @ 2.13GHz (Family: 6, Model: 15, Stepping: 6)
    CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
    Compiled with runtime CPU detection.
    success: format: 0  data: 0x0 - 0xf49f0
    ASF file format detected.
    VIDEO:  [WMV1]  320x240  24bpp  30.000 fps    0.0 kbps ( 0.0 kbyte/s)
    [V] filefmt:6  fourcc:0x31564D57  size:320x240  fps:30.00  ftime:=0.0333
    ==========================================================================
    Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
    AUDIO: 32000 Hz, 2 ch, s16le, 32.0 kbit/3.12% (ratio: 4000->128000)
    Selected audio codec: [ffwmav2] afm: ffmpeg (DivX audio v2 (FFmpeg))
    ==========================================================================
    ** MUXER_LAVF *****************************************************************
    If you wish to use libavformat muxing, you must ensure that your video stream
    does not contain B frames (out of order decoding) and specify:
        -lavfopts i_certify_that_my_video_stream_does_not_use_b_frames
    on the command line.
    REMEMBER: MEncoder's libavformat muxing is presently broken and will generate
    INCORRECT files in the presence of B frames. Moreover, due to bugs MPlayer
    will play these INCORRECT files as if nothing were wrong!
    *******************************************************************************
    Cannot initialize muxer.
    Exiting...
    #

    I am using MEncoder 1.0rc1-3.4.6

  6. #6

    Default

    I had problems uploading videos and converting also.

    I changed the line
    $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";

    to

    $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 -ofps 24";

    in /includes/settings/video_conversion.php

    Now all seems to be working well.

    I am using
    MEncoder dev-SVN-r24115-3.4.6 (C) 2000-2007 MPlayer Team


    So if your having trouble uploading/converting check to see if you are using a newer version of mplayer and if so try this fix.

  7. #7
    Join Date
    Jul 2007
    Posts
    169

    Default

    I did this and got this ERROR:

    ERROR: Unable to execute query

    INSERT INTO `process_queue` SET
    file='x.wmv',
    title ='x Web Cam',
    description='Here a',
    keywords='web cam',
    channels='23',
    type='public',
    user='xE',
    user_ip='----',
    status=2

    You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'll', keywords='web cam', channels='23', type='public', user='xE' at line 4
    SPEED UP YOUR VSHARE SITE!
    Speed up your vshare site by "offloading" your images and video thumbs!
    Just visit http://offload.limbar.com for details.

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

    Default

    browniegirl, PM me your web site FTP, cpanel, vshare admin and a test user login details, i can check why you get this error. When you send PM, include url of this thread.

Similar Threads

  1. Converting Error MENCODER
    By umarsa in forum Installation Support
    Replies: 9
    Last Post: 10-24-2008, 02:12 PM
  2. Errors with Mencoder
    By ramius in forum Installation Support
    Replies: 2
    Last Post: 07-30-2008, 05:07 PM
  3. mencoder error
    By musictvblogger in forum Fixed Bugs
    Replies: 4
    Last Post: 10-18-2007, 04:08 PM
  4. FFmpeg, Mencoder, ect...
    By Killerbee in forum Installation Support
    Replies: 2
    Last Post: 08-18-2007, 02:08 PM
  5. mencoder not working? use FFMPEG INSTEAD! :)
    By mersh in forum Installation Support
    Replies: 10
    Last Post: 06-28-2007, 08:56 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
  •