샤나에서 다음과 같은 옵션을 이용해서
-vf "shanatonemap,scale=1280:720:flags=bicubic,shanapad=Auto,setsar=1/1,shanasubtitle=1"
-f mp4
-c:v hevc_amf -profile:v main -level auto -global_quality:v 26 -quality speed
-c:a copy
-sn -map_metadata -1 -map_chapters -1
직접 ffmpeg를 이용해보려 했는데 압축이 안됩니다.
.\ffmpeg.exe -i "$item" -y -vf "scale='if(gt(iw\,ih),-2,$size)':'if(gt(iw\,ih),$size,-2)',setsar=1:1" -f mp4 -c:v hevc_amf -profile:v main -level:v 4.0 -global_quality:v 26 -quality:v 5 -preset:v 5 -sn -map_metadata -1 -map_chapters -1 -c:a copy "$directoryname\$BaseName-result.mp4"
1메가짜리가 샤나에선 1메가 미만짜리로 압축 되는데
직접 해본것만 200메가로 뻥튀기 됩니다
원인 아시는분?
참고 로그
Name Value
---- -----
width 1920
height 1080
r_frame_rate 0/0
720
ffmpeg version 2024-10-07-git-496b8d7a13-full_build-www.gyan.dev Copyright (c) 2000-2024 the FFmpeg developers
built with gcc 14.2.0 (Rev1, 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-libopenjpeg --enable-libquirc --enable-libuavs3d --enable-libxevd --enable-libzvbi --enable-libqrencode --enable-librav1e --enable-libsvtav1 --enable-libvvenc --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxeve --enable-libxvid --enable-libaom --enable-libjxl --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-liblc3 --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. 41.100 / 59. 41.100
libavcodec 61. 21.100 / 61. 21.100
libavformat 61. 9.100 / 61. 9.100
libavdevice 61. 4.100 / 61. 4.100
libavfilter 10. 6.100 / 10. 6.100
libswscale 8. 4.100 / 8. 4.100
libswresample 5. 4.100 / 5. 4.100
libpostproc 58. 4.100 / 58. 4.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'E:\ffmpeg-cmd\ .mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf58.65.100
Duration: 00:01:30.55, start: 0.000000, bitrate: 1333 kb/s
Chapters:
Chapter #0:0: start 0.000000, end 90.551000
Metadata:
title :
Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(progressive), 1920x1080 [SAR 8001:8000 DAR 889:500], 1267 kb/s, SAR 1:1 DAR 16:9, 29.97 fps, 29.97 tbr, 11988 tbn (default)
Metadata:
handler_name : VideoHandler
vendor_id : [0][0][0][0]
Stream #0:1[0x2](und): Audio: aac (HE-AAC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 62 kb/s (default)
Metadata:
handler_name : Sound Media Handler
vendor_id : [0][0][0][0]
Stream #0:2[0x3](eng): Data: bin_data (text / 0x74786574), 0 kb/s
Metadata:
handler_name : SubtitleHandler
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> hevc (hevc_amf))
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[hevc_amf @ 000001adec9e2680] rate control mode is PEAK_CONSTRAINED_VBR but rc_max_rate is not set
Output #0, mp4, to 'E:\ffmpeg-cmd\ -result.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf61.9.100
Chapters:
Chapter #0:0: start 0.000000, end 90.551000
Metadata:
title :
Stream #0:0(und): Video: hevc (hev1 / 0x31766568), yuv420p(tv, progressive), 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 29.97 fps, 11988 tbn (default)
Metadata:
encoder : Lavc61.21.100 hevc_amf
handler_name : VideoHandler
vendor_id : [0][0][0][0]
Stream #0:1(und): Audio: aac (HE-AAC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 62 kb/s (default)
Metadata:
handler_name : Sound Media Handler
vendor_id : [0][0][0][0]
[out#0/mp4 @ 000001aded456d80] video:204972KiB audio:690KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: 0.026135%