[FFmpeg-user] Question about 2 pass encoding
Aditya Dandavate
adityadandavate04 at gmail.com
Mon Apr 8 07:41:30 EEST 2024
Okay, thank you sir 🙏.
On Mon, 8 Apr, 2024, 7:23 am Syehoon Kim, <gregfeynman at gmail.com> wrote:
> 2024년 4월 8일 (월) 오전 10:38, Aditya Dandavate <adityadandavate04 at gmail.com>님이
> 작성:
> >
> > Even after waiting like 5 mins, I saw the same status as the output of
> the
> > command, so what's the bug that is causing the first pass to not progress
> > ahead ?
> >
> > On Sun, 7 Apr, 2024, 1:16 pm Aditya Dandavate, <
> adityadandavate04 at gmail.com>
> > wrote:
> >
> > >
> > > ffmpeg -i Map11.mp4 -c:v libvpx -quality good -cpu-used 2 -pass 1 -b:v
> 12000k -fps_mode cfr -pix_fmt yuv420p -f matroska NULL
> > >
> > > ffmpeg -i Map11.mp4 -c:v libvpx -quality good -cpu-used 2 -pass 2 -b:v
> 12000k -c:a copy -pix_fmt yuv420p pass1.mkv
> > >
> > > pause
> > >
> > >
> > > Output:
> > >
> > >
> > > F:\New folder\PrBoomX>ffmpeg -i Map11.mp4 -c:v libvpx -quality good
> -cpu-used 2 -pass 1 -b:v 12000k -fps_mode cfr -pix_fmt yuv420p -f matroska
> NULL
> > >
> > > ffmpeg version 7.0-full_build-www.gyan.dev Copyright (c) 2000-2024
> the FFmpeg developers
> > >
> > > built with gcc 13.2.0 (Rev5, Built by MSYS2 project)
> > >
> > > configuration: --enable-gpl --enable-version3 --enable-static
> --disable-w32threads --disable-autodetect --enable-fontconfig
> --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib
> --enable-lzma --enable-libsnappy --enable-zlib --enable-librist
> --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth
> --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libaribb24
> --enable-libaribcaption --enable-libdav1d --enable-libdavs2
> --enable-libuavs3d --enable-libxevd --enable-libzvbi --enable-librav1e
> --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265
> --enable-libxavs2 --enable-libxeve --enable-libxvid --enable-libaom
> --enable-libjxl --enable-libopenjpeg --enable-libvpx
> --enable-mediafoundation --enable-libass --enable-frei0r
> --enable-libfreetype --enable-libfribidi --enable-libharfbuzz
> --enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg
> --enable-amf --enable-cuda-llvm --enable-cuvid --enable-dxva2
> --enable-d3d11va --enable-d3d12va --enable-ffnvcodec --enable-libvpl
> --enable-nvdec --enable-nvenc --enable-vaapi --enable-libshaderc
> --enable-vulkan --enable-libplacebo --enable-opencl --enable-libcdio
> --enable-libgme --enable-libmodplug --enable-libopenmpt
> --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine
> --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc
> --enable-libcodec2 --enable-libilbc --enable-libgsm
> --enable-libopencore-amrnb --enable-libopus --enable-libspeex
> --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite
> --enable-libmysofa --enable-librubberband --enable-libsoxr
> --enable-chromaprint
> > >
> > > libavutil 59. 8.100 / 59. 8.100
> > >
> > > libavcodec 61. 3.100 / 61. 3.100
> > >
> > > libavformat 61. 1.100 / 61. 1.100
> > >
> > > libavdevice 61. 1.100 / 61. 1.100
> > >
> > > libavfilter 10. 1.100 / 10. 1.100
> > >
> > > libswscale 8. 1.100 / 8. 1.100
> > >
> > > libswresample 5. 1.100 / 5. 1.100
> > >
> > > libpostproc 58. 1.100 / 58. 1.100
> > >
> > > Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Map11.mp4':
> > >
> > > Metadata:
> > >
> > > major_brand : isom
> > >
> > > minor_version : 512
> > >
> > > compatible_brands: isomiso2avc1mp41
> > >
> > > encoder : Lavf61.3.100
> > >
> > > Duration: 00:13:24.65, start: 0.000000, bitrate: 12243 kb/s
> > >
> > > Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661),
> yuv420p(progressive), 1920x1080, 11999 kb/s, 60 fps, 60 tbr, 15360 tbn
> (default)
> > >
> > > Metadata:
> > >
> > > handler_name : VideoHandler
> > >
> > > vendor_id : [0][0][0][0]
> > >
> > > encoder : Lavc61.5.101 libx264
> > >
> > > Stream #0:1[0x2](und): Audio: mp3 (mp3float) (mp4a / 0x6134706D),
> 48000 Hz, stereo, fltp, 233 kb/s (default)
> > >
> > > Metadata:
> > >
> > > handler_name : SoundHandler
> > >
> > > vendor_id : [0][0][0][0]
> > >
> > > Stream mapping:
> > >
> > > Stream #0:0 -> #0:0 (h264 (native) -> vp8 (libvpx))
> > >
> > > Stream #0:1 -> #0:1 (mp3 (mp3float) -> vorbis (libvorbis))
> > >
> > > Press [q] to stop, [?] for help
> > >
> > > [libvpx @ 00000220b95c6c00] v1.14.0-226-g43d12d507
> > >
> > > Output #0, matroska, to 'NULL':
> > >
> > > Metadata:
> > >
> > > major_brand : isom
> > >
> > > minor_version : 512
> > >
> > > compatible_brands: isomiso2avc1mp41
> > >
> > > encoder : Lavf61.1.100
> > >
> > > Stream #0:0(und): Video: vp8 (VP80 / 0x30385056),
> yuv420p(progressive), 1920x1080, q=2-31, 12000 kb/s, 60 fps, 1k tbn
> (default)
> > >
> > > Metadata:
> > >
> > > handler_name : VideoHandler
> > >
> > > vendor_id : [0][0][0][0]
> > >
> > > encoder : Lavc61.3.100 libvpx
> > >
> > > Side data:
> > >
> > > cpb: bitrate max/min/avg: 0/0/12000000 buffer size: 0
> vbv_delay: N/A
> > >
> > > Stream #0:1(und): Audio: vorbis (oV[0][0] / 0x566F), 48000 Hz,
> stereo, fltp (default)
> > >
> > > Metadata:
> > >
> > > handler_name : SoundHandler
> > >
> > > vendor_id : [0][0][0][0]
> > >
> > > encoder : Lavc61.3.100 libvorbis
> > >
> > > frame= 0 fps=0.0 q=0.0 size= 5KiB time=N/A bitrate=N/A
> speed=N/A
> > >
> > >
> > > So, as you can see, that no progress is seen when encoding with 2 pass
> with VP8.
> > >
> > >
> > > Same is the case for libvpx-vp9 as well.
> > >
> > >
> > > Are there some faults in my command so the progress is stopped or is
> there a bug in vpx ?
> > >
> > >
> > > Please help me!
> > >
> > > Also, congrats for the new release. 🙏💯
> > >
> > >
> I tried with a video which duration is 36 seconds. FFmpeg seemed to be
> stopped, but after about 36 seconds, output file was created
> correctly.
> I think for pass 1, there is no video frame, and that's why FFmpeg
> doesn't show progress. No frame, so frame =0, fps=0.
> I guess you should wait about the duration, in this case 13 minutes,
> since FFmpeg processes it about 1x.
> > _______________________________________________
> > ffmpeg-user mailing list
> > ffmpeg-user at ffmpeg.org
> > https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> >
> > To unsubscribe, visit link above, or email
> > ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
>
More information about the ffmpeg-user
mailing list