AVI to flv convertion thru ssh..need urgent help

Discussion in 'Site & Server Administration' started by muhabbatain, Sep 17, 2009.

  1. #1
    Hi,

    I am trying to convert ab avi to flv using command below

    ffmpeg -i video.avi -ar 44100 -ab 32 -f flv outputl.flv

    in return im getting this error

    FFmpeg version SVN-r19894, Copyright (c) 2000-2009 Fabrice Bellard, et al.
    configuration: --enable-libmp3lame --enable-libvorbis --disable-mmx --enable-shared
    libavutil 50. 3. 0 / 50. 3. 0
    libavcodec 52.35. 0 / 52.35. 0
    libavformat 52.38. 0 / 52.38. 0
    libavdevice 52. 2. 0 / 52. 2. 0
    libswscale 0. 7. 1 / 0. 7. 1
    built on Sep 17 2009 19:37:29, gcc: 4.1.2 20080704 (Red Hat 4.1.2-44)

    Seems stream 0 codec frame rate differs from container frame rate: 29.98 (65535/2186) -> 29.97 (30000/1001)
    Input #0, avi, from 'video.avi':
    Duration: 00:04:14.38, start: 0.000000, bitrate: 1419 kb/s
    Stream #0.0: Video: mpeg4, yuv420p, 672x288 [PAR 1:1 DAR 7:3], 29.97 tbr, 29.97 tbn, 29.98 tbc
    Stream #0.1: Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s
    Output #0, flv, to 'output.flv':
    Stream #0.0: Video: flv, yuv420p, 672x288 [PAR 1:1 DAR 7:3], q=2-31, 200 kb/s, 90k tbn, 29.97 tbc
    Stream #0.1: Audio: libmp3lame, 22050 Hz, 5.1, s16, 64 kb/s
    Stream mapping:
    Stream #0.0 -> #0.0
    Stream #0.1 -> #0.1
    Error while opening encoder for output stream #0.1 - maybe incorrect parameters such as bit_rate, rate, width or height

    Anyone help me with finding the correct command?
     
    muhabbatain, Sep 17, 2009 IP
  2. vasyl

    vasyl Peon

    Messages:
    138
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Try yuvfps, the part of mjpegtools.
     
    vasyl, Sep 17, 2009 IP
  3. muhabbatain

    muhabbatain Active Member

    Messages:
    195
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #3
    how to use it? what will be the command to run?
     
    muhabbatain, Sep 17, 2009 IP
  4. muhabbatain

    muhabbatain Active Member

    Messages:
    195
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #4
    ffmpeg -i Aare.avi -f yuv4mpegpipe - | yuvfps -s 50:1 -r 50:1 | ffmpeg -f yuv4mpegpipe -i - -b 28800k -y output.flv
    FFmpeg version SVN-r19894, Copyright (c) 2000-2009 Fabrice Bellard, et al.
    configuration: --enable-libmp3lame --enable-libvorbis --disable-mmx --enable-shared
    libavutil 50. 3. 0 / 50. 3. 0
    libavcodec 52.35. 0 / 52.35. 0
    libavformat 52.38. 0 / 52.38. 0
    libavdevice 52. 2. 0 / 52. 2. 0
    libswscale 0. 7. 1 / 0. 7. 1
    built on Sep 17 2009 19:37:29, gcc: 4.1.2 20080704 (Red Hat 4.1.2-44)
    FFmpeg version SVN-r19894, Copyright (c) 2000-2009 Fabrice Bellard, et al.
    configuration: --enable-libmp3lame --enable-libvorbis --disable-mmx --enable-shared
    libavutil 50. 3. 0 / 50. 3. 0
    libavcodec 52.35. 0 / 52.35. 0
    libavformat 52.38. 0 / 52.38. 0
    libavdevice 52. 2. 0 / 52. 2. 0
    libswscale 0. 7. 1 / 0. 7. 1
    built on Sep 17 2009 19:37:29, gcc: 4.1.2 20080704 (Red Hat 4.1.2-44)
    Input #0, avi, from 'Aare.avi':
    Duration: 00:02:36.65, start: 0.000000, bitrate: 2897 kb/s
    Stream #0.0: Video: mpeg4, yuv420p, 640x272 [PAR 1:1 DAR 40:17], 29.97 tbr, 29.97 tbn, 29.97 tbc
    Stream #0.1: Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s
    Output #0, yuv4mpegpipe, to 'pipe:':
    Stream #0.0: Video: rawvideo, yuv420p, 640x272 [PAR 1:1 DAR 40:17], q=2-31, 200 kb/s, 90k tbn, 29.97 tbc
    Stream mapping:
    Stream #0.0 -> #0.0
    Press [q] to stop encoding
    -bash: yuvfps: command not found
    pipe:: Error while opening file
     
    muhabbatain, Sep 17, 2009 IP
  5. vasyl

    vasyl Peon

    Messages:
    138
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #5
    vasyl, Sep 17, 2009 IP
  6. muhabbatain

    muhabbatain Active Member

    Messages:
    195
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #6
    Thanks a lot for you help..but what will be the force command? I have limited rights on the server and can not install new services :( ..
     
    muhabbatain, Sep 17, 2009 IP
  7. vasyl

    vasyl Peon

    Messages:
    138
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #7
    vasyl, Sep 17, 2009 IP
  8. muhabbatain

    muhabbatain Active Member

    Messages:
    195
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #8
    oki

    execute this command:

    ffmpeg -i Chupke_Se.avi -y -r 25 -f flv -vcodec flv -s qvga -ab 192 -f mp3 -an outerfile.flv

    FFmpeg version SVN-r19894, Copyright (c) 2000-2009 Fabrice Bellard, et al.
    configuration: --enable-libmp3lame --enable-libvorbis --disable-mmx --enable-shared
    libavutil 50. 3. 0 / 50. 3. 0
    libavcodec 52.35. 0 / 52.35. 0
    libavformat 52.38. 0 / 52.38. 0
    libavdevice 52. 2. 0 / 52. 2. 0
    libswscale 0. 7. 1 / 0. 7. 1
    built on Sep 17 2009 19:37:29, gcc: 4.1.2 20080704 (Red Hat 4.1.2-44)

    Seems stream 0 codec frame rate differs from container frame rate: 29.98 (65535/2186) -> 29.97 (30000/1001)
    Input #0, avi, from 'Chupke_Se.avi':
    Duration: 00:04:14.38, start: 0.000000, bitrate: 1419 kb/s
    Stream #0.0: Video: mpeg4, yuv420p, 672x288 [PAR 1:1 DAR 7:3], 29.97 tbr, 29.97 tbn, 29.98 tbc
    Stream #0.1: Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s
    WARNING: The bitrate parameter is set too low. It takes bits/s as argument, not kbits/s
    Output #0, mp3, to 'outerfile.flv':
    Stream #0.0: Video: flv, yuv420p, 320x240 [PAR 7:4 DAR 7:3], q=2-31, 200 kb/s, 90k tbn, 25 tbc
    Stream mapping:
    Stream #0.0 -> #0.0
    Press [q] to stop encoding
    frame= 6361 fps=123 q=17.1 Lsize= 6376kB time=254.44 bitrate= 205.3kbits/s
    video:6376kB audio:0kB global headers:0kB muxing overhead 0.000490%

    Everything is just fine but no sound :(.. what command will work for sound too
     
    muhabbatain, Sep 17, 2009 IP
  9. Shirley1874

    Shirley1874 Peon

    Messages:
    558
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Shirley1874, Sep 18, 2009 IP
  10. mada0o

    mada0o Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Intuitive and eay to use
     
    mada0o, Mar 4, 2012 IP