VideoHelp Forum
+ Reply to Thread
Results 1 to 13 of 13
Thread
  1. Hi ....iam trying to do one pass and two pass encoding using FFMPEG......Can anyone pl send me the one pass and two pass encoding command for newer version FFMPEG........


    Thanks in Advance
    Vijay123
    Quote Quote  
  2. @baldrik:yes i read that document ......but two pass command is not working.....can u send me the working command.....
    Quote Quote  
  3. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    What is the error message?
    Quote Quote  
  4. this is my output
    G:\ffmpeg-20130605-git-3289670-win32-static\bin>ffmpeg -y -i D:\MOV\TheFruitSale
    sman.mov -c:v libx264 -preset medium -b:v 3589k -pass 1 -an -f mp4/dev/null
    ffmpeg version N-53834-g3289670 Copyright (c) 2000-2013 the FFmpeg developers
    built on Jun 5 2013 00:29:25 with gcc 4.7.3 (GCC)
    configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
    isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
    le-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetyp
    e --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --ena
    ble-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-l
    ibopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libsp
    eex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-
    amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --
    enable-libxvid --enable-zlib
    libavutil 52. 34.100 / 52. 34.100
    libavcodec 55. 15.100 / 55. 15.100
    libavformat 55. 8.102 / 55. 8.102
    libavdevice 55. 2.100 / 55. 2.100
    libavfilter 3. 75.101 / 3. 75.101
    libswscale 2. 3.100 / 2. 3.100
    libswresample 0. 17.102 / 0. 17.102
    libpostproc 52. 3.100 / 52. 3.100
    Trailing options were found on the commandline.
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'D:\MOV\TheFruitSalesman.mov':
    Metadata:
    major_brand : qt
    minor_version : 537199360
    compatible_brands: qt
    creation_time : 2011-11-01 21:29:20
    Duration: 00:00:49.73, start: 0.000000, bitrate: 3679 kb/s
    Stream #0:0(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 90
    kb/s
    Metadata:
    creation_time : 2011-11-01 21:29:20
    handler_name : Apple Alias Data Handler
    Stream #0:1(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 720x450,
    3584 kb/s, 30 fps, 30 tbr, 3k tbn, 6k tbc
    Metadata:
    creation_time : 2011-11-01 21:29:20
    handler_name : Apple Alias Data Handler
    At least one output file must be specified

    G:\ffmpeg-20130605-git-3289670-win32-static\bin>ffmpeg -i D:\MOV\TheFruitSalesma
    n.mov -c:v libx264 -preset medium -b:v 3589k -pass 2 -c:a libfdk_aac -b:a 90k D:
    \MOV\TheFruit2pass.mp4
    ffmpeg version N-53834-g3289670 Copyright (c) 2000-2013 the FFmpeg developers
    built on Jun 5 2013 00:29:25 with gcc 4.7.3 (GCC)
    configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
    isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
    le-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetyp
    e --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --ena
    ble-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-l
    ibopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libsp
    eex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-
    amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --
    enable-libxvid --enable-zlib
    libavutil 52. 34.100 / 52. 34.100
    libavcodec 55. 15.100 / 55. 15.100
    libavformat 55. 8.102 / 55. 8.102
    libavdevice 55. 2.100 / 55. 2.100
    libavfilter 3. 75.101 / 3. 75.101
    libswscale 2. 3.100 / 2. 3.100
    libswresample 0. 17.102 / 0. 17.102
    libpostproc 52. 3.100 / 52. 3.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'D:\MOV\TheFruitSalesman.mov':
    Metadata:
    major_brand : qt
    minor_version : 537199360
    compatible_brands: qt
    creation_time : 2011-11-01 21:29:20
    Duration: 00:00:49.73, start: 0.000000, bitrate: 3679 kb/s
    Stream #0:0(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 90
    kb/s
    Metadata:
    creation_time : 2011-11-01 21:29:20
    handler_name : Apple Alias Data Handler
    Stream #0:1(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 720x450,
    3584 kb/s, 30 fps, 30 tbr, 3k tbn, 6k tbc
    Metadata:
    creation_time : 2011-11-01 21:29:20
    handler_name : Apple Alias Data Handler
    Unknown encoder 'libfdk_aac'
    Image Attached Files
    Quote Quote  
  5. whether the above command is it rite?.........
    Quote Quote  
  6. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    Unknown encoder 'libfdk_aac'

    Try use libvo_aacenc instead.
    Quote Quote  
  7. Hi i tried using libvo_aacenc....error which is displays
    Error while opening encoder for output stream #0:0 - maybe incorrect parameters
    such as bit_rate, rate, width or height

    can you pl send me the entire command for one pass and two pass.....
    Quote Quote  
  8. @baldrik: Iam never have knowledge about this.....Can you Pl send me the command line.....Further am analyzing about the encoding.....either one pass or two pass will be better for my encoding....
    Is it one pass encoding means setting an value for CRF(Constant Rate Factor) is it so?......
    Quote Quote  
  9. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    Does onepass work?
    Quote Quote  
  10. This command works good for one pass......
    ffmpeg -i input -c:v libx264 -preset slow -crf 22 -c:a copy output.mkv

    I tried 2 pass encoding below this....
    ffmpeg -y -i input -c:v libx264 -preset medium -b:v 555k -pass 1 -an -f mp4 /dev/null ....
    it seems error like
    [NULL @ 02b0faa0] Unable to find a suitable output format for 'medium'
    medium: Invalid argument....
    I have been frustrated.......can you pl send me the working command.........
    Quote Quote  
  11. @baldrik:Hi can you pl send me the command line for one pass and two pass.....
    Quote Quote  
  12. Hi finally i got a command.......
    G:\ffmpeg-20130605-git-3289670-win32-static\bin>ffmpeg -i D:\MOV\originalfile\Th
    eFruitSalesman.mov -threads 0 -c:v libx264 -preset medium -b:v 3589k -pass 1 D:\
    MOV\originalfile\TheFru.mp4

    G:\ffmpeg-20130605-git-3289670-win32-static\bin>ffmpeg -i D:\MOV\originalfile\Th
    eFruitSalesman.mov -c:v libx264 -b:v 3589k -preset medium -pass 2 -c:a aac -stri
    ct experimental -b:a 90k D:\MOV\originalfile\foutpass2.mp4
    Quote Quote  



Similar Threads

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