VideoHelp Forum




+ Reply to Thread
Results 1 to 9 of 9
  1. Member
    Join Date
    Nov 2007
    Location
    Europe
    Search Comp PM
    Hello,

    I'm trying to encode file to FLV file format for YouTube with mencoder. When I encode with -nosound option, I get no errors. I get normal FLV video file:

    mencoder -vf scale=448:-3,expand=448:336 -sws 9 -of lavf -ovc lavc -lavcopts vcodec=flv:vbitrate=400 -frames 200 -ofps 15 -nosound -o test2.flv logo1.avi
    I get this output:

    MEncoder dev-SVN-r24986-4.1.2 (C) 2000-2007 MPlayer Team
    CPU: Intel(R) Celeron(R) D CPU 3.20GHz (Family: 15, Model: 6, Stepping: 5)
    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

    success: format: 0 data: 0x0 - 0x872968
    AVI file format detected.
    [aviheader] Video stream found, -vid 0
    [aviheader] Audio stream found, -aid 1
    VIDEO: [HFYU] 448x336 24bpp 15.000 fps 22257.1 kbps (2716.9 kbyte/s)
    [V] filefmt:3 fourcc:0x55594648 size:448x336 fps:15.00 ftime:=0.0667
    ** MUXER_LAVF ************************************************** ***************
    REMEMBER: MEncoder's libavformat muxing is presently broken and can generate
    INCORRECT files in the presence of B frames. Moreover, due to bugs MPlayer
    will play these INCORRECT files as if nothing were wrong!
    ************************************************** *****************************
    OK, exit
    Opening video filter: [expand osd=1]
    Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
    Opening video filter: [expand w=448 h=336]
    Expand: 448 x 336, -1 ; -1, osd: 0, aspect: 0.000000, round: 1
    Opening video filter: [scale w=448 h=-3]
    ================================================== ========================
    Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
    Selected video codec: [ffhuffyuv] vfm: ffmpeg (FFmpeg HuffYUV)
    ================================================== ========================
    VDec: vo config request - 448 x 336 (preferred colorspace: BGRA)
    VDec: using BGRA as output csp (no 3)
    Movie-Aspect is undefined - no prescaling applied.
    SwScaler: reducing / aligning filtersize 1 -> 4
    SwScaler: reducing / aligning filtersize 1 -> 4
    SwScaler: reducing / aligning filtersize 1 -> 1
    SwScaler: reducing / aligning filtersize 13 -> 12
    [swscaler @ 0xd87530]SwScaler: Lanczos scaler, from rgb32 to yuv420p using MMX2
    [swscaler @ 0xd87530]SwScaler: using 4-tap MMX scaler for horizontal luminance scaling
    [swscaler @ 0xd87530]SwScaler: using 4-tap MMX scaler for horizontal chrominance scaling
    [swscaler @ 0xd87530]SwScaler: using 1-tap MMX "scaler" for vertical scaling (YV12 like)
    [swscaler @ 0xd87530]SwScaler: 448x336 -> 448x336
    videocodec: libavcodec (448x336 fourcc=31564c46 [FLV1])
    New_Face failed. Maybe the font path is wrong.
    Please supply the text font file (~/.mplayer/subfont.ttf).
    subtitle font: load_sub_face failed.
    VIDEO CODEC ID: 22
    Writing header...
    Pos: 3.1s 46f (97%) 0.00fps Trem: 0min 0mb A-V:0.000 [50:0]]
    Flushing video frames.
    Writing index...

    Video stream: 50.802 kbit/s (6350 B/s) size: 19474 bytes 3.067 secs 46 frames



    But when I try to encode video with sound, I get error. The command line I use:

    mencoder -vf scale=448:-3,expand=448:336 -sws 9 -of lavf -ovc lavc -lavcopts vcodec=flv:vbitrate=400 -frames 200 -ofps 15 -oac mp3lame -lameopts abr:br=80:mode=3 -af resample=22050:0:0 -channels 1 -o test2.flv logo1.avi
    The error:

    MEncoder dev-SVN-r24986-4.1.2 (C) 2000-2007 MPlayer Team
    CPU: Intel(R) Celeron(R) D CPU 3.20GHz (Family: 15, Model: 6, Stepping: 5)
    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

    success: format: 0 data: 0x0 - 0x872968
    AVI file format detected.
    [aviheader] Video stream found, -vid 0
    [aviheader] Audio stream found, -aid 1
    VIDEO: [HFYU] 448x336 24bpp 15.000 fps 22257.1 kbps (2716.9 kbyte/s)
    [V] filefmt:3 fourcc:0x55594648 size:448x336 fps:15.00 ftime:=0.0667
    ================================================== ========================
    Opening audio decoder: [pcm] Uncompressed PCM audio decoder
    AUDIO: 44100 Hz, 1 ch, s16le, 705.6 kbit/100.00% (ratio: 88200->88200)
    Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
    ================================================== ========================
    ** MUXER_LAVF ************************************************** ***************
    REMEMBER: MEncoder's libavformat muxing is presently broken and can generate
    INCORRECT files in the presence of B frames. Moreover, due to bugs MPlayer
    will play these INCORRECT files as if nothing were wrong!
    ************************************************** *****************************
    OK, exit
    Opening video filter: [expand osd=1]
    Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
    Opening video filter: [expand w=448 h=336]
    Expand: 448 x 336, -1 ; -1, osd: 0, aspect: 0.000000, round: 1
    Opening video filter: [scale w=448 h=-3]
    ================================================== ========================
    Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
    Selected video codec: [ffhuffyuv] vfm: ffmpeg (FFmpeg HuffYUV)
    ================================================== ========================

    Exiting...


    I wonder how can I fix this?
    Quote Quote  
  2. Member
    Join Date
    Feb 2008
    Location
    United States
    Search Comp PM
    I'm having the same issue- .flv's encode fine without sound, but will not encode when lame enters the mix.

    Did you (or has anyone) resolved this problem?
    Quote Quote  
  3. Member Soopafresh's Avatar
    Join Date
    Jan 2004
    Location
    United States
    Search Comp PM
    Try this version of mencoder

    http://tirnanog.fate.jp/mirror/mplayer/mplayer2007.05.23.7z

    Download PthreadGC2.dll if you don't have it already

    ftp://sourceware.org/pub/pthreads-win32/dll-latest/lib/pthreadGC2.dll

    Look at the syntax in this cmd file

    youtube_emulate.cmd
    Quote Quote  
  4. Member
    Join Date
    Feb 2008
    Location
    United States
    Search Comp PM
    Thanks Soopafresh- I am going to study & try these asap!
    Quote Quote  
  5. Member
    Join Date
    Feb 2008
    Location
    United States
    Search Comp PM
    Thanks again for your help,

    I'm running a (centos-based) linux server with mencoder, so I don't think the .dll will do me much good.

    I checked out the mencoder options in youtube_emulate.cmd, but unfortunately they are using a switch that has caused my installation to fail ("-lavfopts i_certify_that_my_video_stream_does_not_use_b_fram es"). When I relpace the -lavfopts option with "-ofps 13" and it works- unless I try to add sound.

    Thanks again for trying to help.
    Quote Quote  
  6. Member Soopafresh's Avatar
    Join Date
    Jan 2004
    Location
    United States
    Search Comp PM
    Ah, I did not know you were running on Linux.
    Quote Quote  
  7. Member
    Join Date
    Feb 2008
    Location
    United States
    Search Comp PM
    Sorry, I should have mentioned that.

    It seems like a lot of folks are using mencoder, no doubt for good reason (it's working for a lot of people). I'm pretty new to this, would you happen to know if there are any alternatives to mencoder?

    My first plan is to get mencoder working somehow, but I'm curious to know if there are other options folks may have heard of for server-based video encoding.
    Quote Quote  
  8. Member Soopafresh's Avatar
    Join Date
    Jan 2004
    Location
    United States
    Search Comp PM
    Well, You can try the mencoder I pointed to under WINE

    http://www.winehq.org/

    You can try ffmpeg, although I'm not certain of the syntax to convert to flv. It's a bit of work to find an ffmpeg with lamemp3 encoding features for some reason as well.


    But, bottom line, Youtube is going to re-convert whatever video format you feed it - even flv. If you goal is to submit a video to youtube, you might as well just give them a high bitrate Xvid or Mpeg2 source file - just as long as it is under 100MB in size or is less than 10 minutes long.
    Quote Quote  
  9. Member
    Join Date
    Dec 2004
    Location
    Triptonia
    Search Comp PM
    mplayer is a linux tool...

    can't help with linux issues,
    but on windows it works just fine

    happens with any file?
    the original post doesn't point to any error.
    could be a miscompiled version crashing...

    plenty of builds to try from.
    if you think it's version related you could always revert to older.
    and better yet you can compile yourself


    Originally Posted by Soopafresh
    But, bottom line, Youtube is going to re-convert whatever video format you feed it - even flv.
    not is you follow the 'legal' parameters outlined here:
    https://forum.videohelp.com/topic336882.html

    Originally Posted by Soopafresh
    You can try ffmpeg, although I'm not certain of the syntax to convert to flv.
    available in the guide liked to above

    Originally Posted by Soopafresh
    It's a bit of work to find an ffmpeg with lamemp3 encoding features for some reason as well.
    all precompiled versions i've found are compiled with lame.

    gl
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!