VideoHelp Forum




+ Reply to Thread
Results 1 to 9 of 9
  1. Member
    Join Date
    Jul 2009
    Location
    Switzerland
    Search Comp PM
    Hello,

    I'm a newbie with ffmpeg and I use Avanti GUI. I try to convert a video from my Canon IXUS to flv without success. The program tell me the following :

    Code:
    9:29:06 - Process started using FFmpeg 0.5 [ffmpeg].
    ======================================================================================
    
    Input #0, mov,mp4,m4a,3gp,3g2,mj2,
          from 'C:/Documents and Settings/CEG/Bureau/U2 Photos/2009-07-07 - U2 Milan/U2-Milan 140.MOV':
      Duration: 00:04:58.36, start: 0.000000, bitrate: 23829 kb/s
        Stream #0.0(eng): Video: h264, yuv420p, 1280x720, 30 tbr, 30 tbn,
          60 tbc
        Stream #0.1(eng): Audio: pcm_s16le, 44100 Hz, mono, s16, 705 kb/s
    --------------------------------------------------------------------------
    Output #0, flv, to 'nul.flv':
        Stream #0.0(eng): Video: mpeg4, yuv420p, 1280x720 [PAR 3:4 DAR 4:3],
          q=2-31, pass 1, 780 kb/s, 90k tbn, 25 tbc
        Stream #0.1(eng): Audio: libmp3lame, 44100 Hz, stereo, s16, 128 kb/s
    --------------------------------------------------------------------------
    Stream mapping:
      Stream #0.0 -> #0.0
      Stream #0.1 -> #0.1
    
    ======================================================================================
                                   +--------------------+
                                   |                    |
                    Source [1] --> |       FFmpeg       | --> Destination [1]
                                   |                    |
                                   +--------------------+
    ======================================================================================
    
    9:29:06 - Free space on destination disk at start 135,268 Mb.
    9:29:06 - Processing pass 1 (writing log file).
    
    FFmpeg messages/warnings:
    
    Seems stream 0 codec frame rate differs from container frame rate:
      ... 60.00 (60/1) -> 30.00 (30/1)
    
    [mpeg4 @ 0x1759810]video codec not compatible with flv
    
    Could not write header for output file #0 (incorrect codec parameters ?)
    
    9:29:07 - Process canceled by FFmpeg with messages/warnings.
    Can someone tell me what I do wrong and how can I do well ?

    Thanx.
    Quote Quote  
  2. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    [mpeg4 @ 0x1759810]video codec not compatible with flv
    Try change to h264/x264 codec and you might have to change to a mp4 container(mp4 also works in flash!).
    Quote Quote  
  3. Member
    Join Date
    Jul 2009
    Location
    Switzerland
    Search Comp PM
    Originally Posted by Baldrick
    Try change to h264/x264 codec and you might have to change to a mp4 container(mp4 also works in flash!).
    Thank you for your quick reply but I can't find h264/x264 codec for encoder. Avanti tell me the are only for decoding... Do you know where I can find them ?
    Quote Quote  
  4. Member
    Join Date
    Sep 2007
    Location
    Europe
    Search PM
    .
    Code:
    9:29:06 - Process started using FFmpeg 0.5 [ffmpeg].
    ======================================================================================
    
    Input #0, mov,mp4,m4a,3gp,3g2,mj2,
          from 'C:/Documents and Settings/CEG/Bureau/U2 Photos/2009-07-07 - U2 Milan/U2-Milan 140.MOV':
      Duration: 00:04:58.36, start: 0.000000, bitrate: 23829 kb/s
        Stream #0.0(eng): Video: h264, yuv420p, 1280x720, 30 tbr, 30 tbn,
          60 tbc
        Stream #0.1(eng): Audio: pcm_s16le, 44100 Hz, mono, s16, 705 kb/s
    --------------------------------------------------------------------------
    Output #0, flv, to 'nul.flv':
        Stream #0.0(eng): Video: mpeg4, yuv420p, 1280x720 [PAR 3:4 DAR 4:3],
          q=2-31, pass 1, 780 kb/s, 90k tbn, 25 tbc
        Stream #0.1(eng): Audio: libmp3lame, 44100 Hz, stereo, s16, 128 kb/s
    --------------------------------------------------------------------------
    Stream mapping:
      Stream #0.0 -> #0.0
      Stream #0.1 -> #0.1
    Your source is 30 fps but your destination is set to 25 fps. FFmpeg can't do such frame rate conversions.
    Your source is most likely also interlaced.

    You can load a template for x264 (top left button menu). "NTSC / H264 in AVI container" comes the most close.
    Then change the bitrate and frame size and set the container to flv (or mp4).

    But converting to 1280x720 with a bitrate setting of 780 kbps isn't very realistic.

    Your source is already h264 so depending on what you need it for, you can also remux it into another container.
    Quote Quote  
  5. Member
    Join Date
    Jul 2009
    Location
    Switzerland
    Search Comp PM
    Thanx Chris K,

    first of all I'm really sorry for this thread but I'm a really newbie in this domain. I tried with x264 with putting every parameter the same as the source except for the container where I put (mp4). It seems to convert well excepted for the sound if we look at the logs :

    Code:
     14:36:02 - Process started using FFmpeg 0.5 [ffmpeg].
    ======================================================================================
    
    Input #0, mov,mp4,m4a,3gp,3g2,mj2,
          from 'C:/Documents and Settings/CEG/Bureau/U2 Photos/2009-07-07 - U2 Milan/U2-Milan 140.MOV':
      Duration: 00:04:58.36, start: 0.000000, bitrate: 23829 kb/s
        Stream #0.0(eng): Video: h264, yuv420p, 1280x720, 30 tbr, 30 tbn,
          60 tbc
        Stream #0.1(eng): Audio: pcm_s16le, 44100 Hz, mono, s16, 705 kb/s
    --------------------------------------------------------------------------
    Output #0, mp4, to 'C:/Documents and Settings/CEG/Bureau/test.mp4':
        Stream #0.0(eng): Video: libx264, yuv420p, 1280x720, q=2-31, 200 kb/s,
          90k tbn, 30 tbc
        Stream #0.1(eng): Audio: libmp3lame, 44100 Hz, stereo, s16, 128 kb/s
    --------------------------------------------------------------------------
    Stream mapping:
      Stream #0.0 -> #0.0
      Stream #0.1 -> #0.1
    
    ======================================================================================
                                   +--------------------+
                                   |                    |
                    Source [1] --> | FFmpeg + user opts | --> Destination [1]
                                   |                    |
                                   +--------------------+
    ======================================================================================
    
    14:36:03 - FFmpeg user VIDEO option(s) included.
    14:36:03 - Free space on destination disk at start 136,102 Mb.
    
    FFmpeg messages/warnings:
    
    Seems stream 0 codec frame rate differs from container frame rate:
      ... 60.00 (60/1) -> 30.00 (30/1)
    
    [libx264 @ 0x1759b80]
      ... using cpu capabilities: MMX2 SSE2Fast SSSE3 PHADD SSE4.1 Cache64
    [libx264 @ 0x1759b80]profile Main, level 3.1
    
    [libmp3lame @ 0x3ef780]
      ... lame: output buffer too small (buffer index: 9195, free bytes: 597)
      ... Audio encoding failed
    
    14:51:35 - bitrate: min 3290, max 4283, avg 3586 kbit/s
    14:51:35 - Q-scale: min 28.0, max 31.0, avg 31.0
    
    14:51:35 - Process finished after 00:15:32 hms with messages/warnings.
    
    ... Console processing <Ctrl><S> possibly shows more details.
    But if I try to watch it with VLC, Quicktime or even Mediaplayer Classic it won't show anything...

    Another question about what you say here :

    Your source is already h264 so depending on what you need it for, you can also remux it into another container.
    Can you tell me how to do this ???

    Thanx in advance
    Quote Quote  
  6. Member
    Join Date
    Sep 2007
    Location
    Europe
    Search PM
    Originally Posted by zigune
    I tried with x264 with putting every parameter the same as the source except for the container where I put (mp4). It seems to convert well excepted for the sound if we look at the logs :
    You probably mean this message...
    Code:
    [libmp3lame @ 0x3ef780]
      ... lame: output buffer too small (buffer index: 9195, free bytes: 597)
      ... Audio encoding failed
    It's kind of a "false positive" from FFmpeg. Everything should be fine with the audio. Current FFmpeg Win32 builds don't show it anymore. You can download a beta release from here http://videohelp.com/tools/ffmpeg

    BTW: It's more common for h264 in mp4 container to use AAC audio instead of mp3. If you want to try this with the latest beta release select the "aac" option at the audio codecs, not "aac (Lib)".

    But if I try to watch it with VLC, Quicktime or even Mediaplayer Classic it won't show anything...
    Are you able to play the original mov clip with one of the players you mention ?

    Another question about what you say here :

    Your source is already h264 so depending on what you need it for, you can also remux it into another container.
    Can you tell me how to do this ???
    Keep the audio codec settings as they are but set the video codec to "Copy Video".
    For me both re-encoding and re-muxing works but I use FFdshow as decoder for h264 playback.
    Quote Quote  
  7. Member
    Join Date
    Jul 2009
    Location
    Switzerland
    Search Comp PM
    Thanx again Chris K,

    Are you able to play the original mov clip with one of the players you mention ?
    Yes the original file plays with the 3 players...

    BTW: It's more common for h264 in mp4 container to use AAC audio instead of mp3. If you want to try this with the latest beta release select the "aac" option at the audio codecs, not "aac (Lib)".
    Thank you for your suggestion. It's now allright with aac audio (but "aac lib", aac doesn't work for encoding...) with h264 reeconding and with "copy video" option too.

    Thank you for your help, my videos plays very well !!!

    By the way, do you have an idea of an ideal bitrate to put to have a descent video for streaming ???
    Quote Quote  
  8. Member
    Join Date
    Sep 2007
    Location
    Europe
    Search PM
    Originally Posted by zigune
    By the way, do you have an idea of an ideal bitrate to put to have a descent video for streaming ???
    Not really! I would take a look at youtube which bitrates are in general used for HD clips.
    Quote Quote  
  9. Member
    Join Date
    Jul 2009
    Location
    Switzerland
    Search Comp PM
    Ok, thanx anyway.
    Quote Quote  



Similar Threads

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