Open Benjamin-Loison opened 8 months ago
Filter by nemo
Size
, then consider the biggest.
ffmpeg -i a.avi -vf mpdecimate,setpts=N/FRAME_RATE/TB a_.avi
Source: the Video Stack Exchange answer 20959
mediainfo --fullscan a_.avi | grep "Frame count"
Source: the Super User answer 1237621
ffmpeg -i a.avi a.flac
Can first filter videos with a first frame not being pure black.
ffmpeg -i video.mkv -vframes 1 first_frame.png
Source: the Super User answer 1682482
Source: the Stack Overflow answer 14041871
python3 -c 'from PIL import Image; exit(int(not Image.open("first_frame.png").getbbox()))'; echo $?
Pay attention to Python code injection.
I have 46 black videos.
So before flac
conversion:
ls -lh '2023-03-22 16-14-44.mkv'
-rw-rw-r-- 1 benjamin benjamin 50M Mar 22 2023 '2023-03-22 16-14-44.mkv'
ls -lh '2023-03-22 16-14-44_tmp.mkv'
-rw-rw-r-- 1 benjamin benjamin 22M Aug 28 21:16 '2023-03-22 16-14-44_tmp.mkv'
ls -lh '2023-03-22 16-14-44.flac'
-rw-rw-r-- 1 benjamin benjamin 119M Aug 28 21:19 '2023-03-22 16-14-44.flac'
So does not help here...
Maybe could sort by biggest file size per video duration and stop until it is no more worth it.
Maybe related to Benjamin_Loison/ffmpeg/issues/3.
To reduce OBS workload maybe can set Settings > Video > General:
Related to Benjamin_Loison/jitsi/issues/4.
Your idea
Previously used OBS with empty screen but does not look clean and potentially involves a heavier workload.
Alternatively to reduce workload can use phone but might not be synchronized and will only capture microphone input, if use a headset for the computer output.
If I remember correctly this is not very easy but doable.
https://support.audacityteam.org/basics/recording-desktop-audio
While usually easy I do not achieve to record my microphone this time.
https://support.audacityteam.org/basics/recording-your-voice-and-microphone
How to detect pure black video to convert them to audios? If I remember correctly I checked once but have not quickly found something interesting.
May be interesting to use OBS anyway to record screen suddenly, however some softwares such as RustDesk enable just recording it this also allows (even if OBS allows but need) to precise the window to record.
+18
Problem to be solved
Not read.
Prior art
No response
Additional context
No response