Video files may have been accidentally removed, but still can be played. How to save that?

In my instance I have some videos which the files under storage/videos may have been accidentally removed, and hence a « transcode fail » message is under the video. However the video can still be played. For example this one:

When I tried to transcode it, an error box with a lengthy command was shown. I found it in the error log:

error[2022/4/3 下午6:48:52] Error in controller.

« err »: « Error: ffprobe exited with code 1\nffprobe version 4.3.3-0+deb11u1 Copyright (c) 2007-2021 the FFmpeg developers\n built with gcc 10 (Debian 10.2.1-6)\n configuration: --prefix=/usr --extra-version=0+deb11u1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared\n libavutil 56. 51.100 / 56. 51.100\n libavcodec 58. 91.100 / 58. 91.100\n libavformat 58. 45.100 / 58. 45.100\n libavdevice 58. 10.100 / 58. 10.100\n libavfilter 7. 85.100 / 7. 85.100\n libavresample 4. 0. 0 / 4. 0. 0\n libswscale 5. 7.100 / 5. 7.100\n libswresample 3. 7.100 / 3. 7.100\n libpostproc 55. 7.100 / 55. 7.100\n/var/www/peertube/storage/videos/c0d95074-0a23-4ec3-a5b9-5baafa43e247-1080.mp4: No such file or directory\n\n at ChildProcess. (/var/www/peertube/versions/peertube-v4.1.0/node_modules/fluent-ffmpeg/lib/ffprobe.js:233:22)\n at ChildProcess.emit (node:events:520:28)\n at ChildProcess.emit (node:domain:475:12)\n at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12) »

Since I could still play it on PeerTube I think there this video file must be somewhere in the system. However I couldn’t find it and didn’t know where to find it. I’d like to save those video files back.

Any suggestion? Thanks a lot.

When peertube was created, videos were stored in /var/www/peertube/storage/videos. But since 1 or 2 years, there is a new video format called HLS. These files are in /var/www/peertube/storage/streaming-playlists/hls.
You should find these files in this folder.