Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SAMPLE OUTPUT vid-capture.sh --- just accept the defaults by pressing ENTER
- [root@v3pikvm ~]# ./vid-capture.sh
- ./vid-capture.sh <filename> creates /mnt/DROPBOX/filename.mp4 video capture file
- [root@v3pikvm ~]# ./vid-capture.sh $(hostname)
- which: no ffmpeg in (/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/opt/vc/bin)
- Missing package dependency [ ffmpeg ]. Installing ffmpeg and required dependencies
- resolving dependencies...
- :: There are 2 providers available for libbluray.so=2-32:
- :: Repository extra
- 1) libbluray
- :: Repository alarm
- 2) libbluray-kodi-rbp
- Enter a number (default=1):
- :: There are 5 providers available for libgl:
- :: Repository extra
- 1) libglvnd
- :: Repository alarm
- 2) imx-gpu-viv-dfb 3) imx-gpu-viv-fb 4) imx-gpu-viv-wl 5) imx-gpu-viv-x11
- Enter a number (default=1):
- looking for conflicting packages...
- warning: dependency cycle detected:
- warning: mesa will be installed before its libglvnd dependency
- Packages (66) alsa-lib-1.2.4-3 alsa-topology-conf-1.2.4-2 alsa-ucm-conf-1.2.4-2 dav1d-0.8.2-1 flac-1.3.3-2 fontconfig-2:2.13.93-4 fribidi-1.0.10-1 giflib-5.2.1-2
- gsm-1.0.19-1 jack-0.125.0-9 l-smash-2.14.5-2 lame-3.100-3 libass-0.15.0-2 libasyncns-0.8+3+g68cd5af-3 libavc1394-0.5.4-4 libbluray-1.2.1-1 libdrm-2.4.104-1
- libglvnd-1.3.2-1 libibus-1.5.24-1 libice-1.0.10-3 libiec61883-1.2.0-6 libmodplug-0.8.9.0-3 libogg-1.3.4-2 libomxil-bellagio-0.9.3-3 libpciaccess-0.16-2
- libpulse-14.2-3 libraw1394-2.1.2-3 libsamplerate-0.2.1-1 libsm-1.2.3-2 libsndfile-1.0.31-1 libsoxr-0.1.3-2 libtheora-1.1.1-5 libva-2.11.0-1 libvdpau-1.4-1
- libvorbis-1.3.7-2 libvpx-1.10.0-1 libwebp-1.2.0-1 libx11-1.7.0-4 libxcursor-1.2.0-2 libxdamage-1.1.5-3 libxext-1.3.4-3 libxfixes-5.0.3-4 libxrender-0.9.10-4
- libxshmfence-1.3-2 libxv-1.0.11-4 libxxf86vm-1.1.4-4 llvm-libs-11.1.0-1 lm_sensors-1:3.6.0.r41.g31d1f125-1 mesa-21.0.1-1 opencore-amr-0.1.5-5 opus-1.3.1-2
- sdl2-2.0.14-1 speex-1.2.0-3 speexdsp-1.2.0-2 srt-1.4.2-1 vid.stab-1.1-3 vulkan-icd-loader-1.2.172-1 wayland-1.19.0-1 x264-3:0.161.r3039.544c61f-1 x265-3.5-1
- xorgproto-2021.3-1 xvidcore-1.3.7-2 zimg-3.0.1-2 zita-alsa-pcmi-0.3.2-3 zita-resampler-1.6.2-3 ffmpeg-2:4.3.2-5
- Total Download Size: 60.77 MiB
- Total Installed Size: 305.89 MiB
- :: Proceed with installation? [Y/n]
- :: Retrieving packages...
- alsa-topology-conf-1.2.4-2-any
- ...
- ...
- ...
- (65/66) installing srt [################################################################] 100%
- (66/66) installing ffmpeg [################################################################] 100%
- Optional dependencies for ffmpeg
- avisynthplus: AviSynthPlus support
- ladspa: LADSPA filters
- :: Running post-transaction hooks...
- (1/4) Reloading system manager configuration...
- (2/4) Arming ConditionNeedsUpdate...
- (3/4) Updating fontconfig configuration...
- (4/4) Updating fontconfig cache...
- /boot/config.txt needs to be updated to reflect gpu_mem=256, and reboot required
- Updated gpu_mem=256 in /boot/config.txt. Please reboot and then retry this script again.
- *** AFTER REBOOT ***
- [root@v3pikvm ~]# ./vid-capture.sh test
- Press CTRL+C to stop capturing video to /mnt/DROPBOX/test.mp4.
- -- INFO [411.180 main] -- Using output: <stdout>
- -- INFO [411.180 main] -- Using input-sink: kvmd::ustreamer::h264
- ^C-- INFO [427.537 main] -- ===== Stopping by SIGINT =====
- -- INFO [427.537 main] -- Bye-bye
- Captured video is in /mnt/DROPBOX/test.mp4
Add Comment
Please, Sign In to add comment