Advertisement
rajhlinux

Untitled

Aug 2nd, 2022
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.77 KB | None | 0 0
  1. $ ffmpeg \
  2. -init_hw_device cuda=decdev:/dev/dri/renderD129 \
  3. -init_hw_device vaapi=encdev:/dev/dri/renderD128 \
  4. -hwaccel cuda \
  5. -hwaccel_device decdev \
  6. -hwaccel_output_format cuda \
  7. -c:v mjpeg_cuvid \
  8. -f v4l2 -framerate 30 -video_size 1920x1080 \
  9. -i /dev/video0 \
  10. -filter_hw_device encdev \
  11. -filter_complex \
  12. "[0:v]hwdownload, drawtext=fontfile=/usr/share/fonts/TTF/Verdana.ttf:text='Hello World', split=2[v_1][v_2];\
  13. [v_1]format=nv12, hwupload[out1];\
  14. [v_2]select='gt(scene,0.04)' -vsync 0[out2]" \
  15. -map '[out1]' -c:v hevc_vaapi output.mp4 \
  16. -map '[out2]' -f image2 image%03d.jpg
  17.  
  18.  
  19. ffmpeg version n5.0.1 Copyright (c) 2000-2022 the FFmpeg developers
  20. built with gcc 12.1.0 (GCC)
  21. configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-amf --enable-avisynth --enable-cuda-llvm --enable-lto --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libmfx --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librav1e --enable-librsvg --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-libzimg --enable-nvdec --enable-nvenc --enable-shared --enable-version3
  22. libavutil 57. 17.100 / 57. 17.100
  23. libavcodec 59. 18.100 / 59. 18.100
  24. libavformat 59. 16.100 / 59. 16.100
  25. libavdevice 59. 4.100 / 59. 4.100
  26. libavfilter 8. 24.100 / 8. 24.100
  27. libswscale 6. 4.100 / 6. 4.100
  28. libswresample 4. 3.100 / 4. 3.100
  29. libpostproc 56. 3.100 / 56. 3.100
  30. Input #0, video4linux2,v4l2, from '/dev/video0':
  31. Duration: N/A, start: 12676.345392, bitrate: N/A
  32. Stream #0:0: Video: mjpeg (Baseline), yuvj422p(pc, bt470bg/unknown/unknown), 1920x1080 [SAR 1:1 DAR 16:9], 30 fps, 30 tbr, 1000k tbn
  33. [Parsed_drawtext_1 @ 0x563feb322180] Using "/usr/share/fonts/noto/NotoSans-Regular.ttf"
  34. [Parsed_select_5 @ 0x563feb371240] [Eval @ 0x7fff219cc370] Undefined constant or missing '(' in 'vsync0'
  35. [Parsed_select_5 @ 0x563feb371240] Error while parsing expression 'gt(scene,0.04) -vsync 0'
  36. [AVFilterGraph @ 0x563feb328540] Error initializing filter 'select' with args 'gt(scene,0.04) -vsync 0'
  37. Error initializing complex filters.
  38. Invalid argument
  39. [video4linux2,v4l2 @ 0x563feb34a400] Some buffers are still owned by the caller on close.
  40. ioctl(VIDIOC_QBUF): Bad file descriptor
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement