Advertisement
Guest User

Untitled

a guest
May 1st, 2024
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. Source video (excerpt from ffprobe):
  2.  
  3. Duration: 00:00:53.25, start: 0.000000, bitrate: 100135 kb/s
  4. Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 3840x2160 [SAR 1:1 DAR 16:9], 100113 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)
  5.  
  6. Intel i7-1185G7, Ubuntu 22.04:
  7. Recoding to scaled down video: 7 seconds (7.5x)
  8. Command used: ffmpeg -hide_banner -y -stats -v error -hwaccel vaapi -hwaccel_output_format vaapi -i DJI_0004.MP4 -vf 'scale_vaapi=w=640:h=-2,format=nv12|vaapi,hwupload' -codec:v h264_vaapi -g 1 -bf 0 -qp 26 -acodec ac3 -ab 128k -sn -dn -map 0 output-x264-vaapi-scale.mkv
  9.  
  10. Nvidia 1060 GTX (with Intel i7-4790K), Ubuntu 22.04, nvidia-driver-550.67
  11. Recoding to scaled down video: 10 seconds (5.1x)
  12. Command used: fmpeg -hide_banner -y -stats -v error -threads 8 -hwaccel cuda -hwaccel_output_format cuda -c:v h264_cuvid -resize 640x360 -i DJI_0004.MP4 -vcodec h264_nvenc -rc cbr -acodec aac -ab 192k -sn -dn -map 0 -ignore_unknown output-NVENC-h264.mp4
  13.  
  14. Alternate command: fmpeg -hide_banner -y -stats -v error -hwaccel cuda -hwaccel_output_format cuda -i DJI_0004.MP4 -vf scale_cuda=640:-2,hwupload -vcodec h264_nvenc -vb 30000k -rc cbr -acodec aac -ab 192k -sn -dn -map 0 -ignore_unknown output-NVENC-h264-scale_cuda.mp4
  15.  
  16. Both nvidia "encodings" complete within 10-11 secs, during which time GPU usage is around 11-12% (shown by nvtop)
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement