Modify VLC launch command and fullscreen detection

- Add VLC_VERBOSE=-1 to suppress verbose logging in VLC launch commands across multiple example files
- Update is_vlc_fullscreen function to handle cases where screen size or window size is None
- Improve robustness of VLC-related metrics and example configurations
This commit is contained in:
Timothyxxx
2025-03-06 22:11:42 +08:00
parent 13127de01e
commit d373817edb
17 changed files with 22 additions and 13 deletions

View File

@@ -77,6 +77,10 @@ def is_vlc_recordings_folder(actual_config_path: str, rule: Dict[str, str]) -> f
def is_vlc_fullscreen(actual_window_size, screen_size):
if screen_size is None or actual_window_size is None:
# if the screen size is not available, means that the window is not fullscreen
return 0
if actual_window_size['width'] == screen_size['width'] and actual_window_size['height'] == screen_size['height']:
return 1
else:

View File

@@ -7,7 +7,7 @@
{
"type": "launch",
"parameters": {
"command": "vlc"
"command": "VLC_VERBOSE=-1 vlc"
}
},
{

View File

@@ -30,6 +30,7 @@
"type": "launch",
"parameters": {
"command": [
"VLC_VERBOSE=-1",
"vlc",
"--start-time=10",
"/home/user/Desktop/Colorful-Flowers.mp3"

View File

@@ -18,7 +18,7 @@
{
"type": "launch",
"parameters": {
"command": "vlc"
"command": "VLC_VERBOSE=-1 vlc"
}
},
{

View File

@@ -7,7 +7,7 @@
{
"type": "launch",
"parameters": {
"command": "vlc"
"command": "VLC_VERBOSE=-1 vlc"
}
}
],

View File

@@ -7,7 +7,7 @@
{
"type": "launch",
"parameters": {
"command": "vlc"
"command": "VLC_VERBOSE=-1 vlc"
}
},
{

View File

@@ -19,6 +19,7 @@
"type": "launch",
"parameters": {
"command": [
"VLC_VERBOSE=-1",
"vlc",
"--start-time=15",
"/home/user/Desktop/Gen 2.mp4"

View File

@@ -19,6 +19,7 @@
"type": "launch",
"parameters": {
"command": [
"VLC_VERBOSE=-1",
"vlc",
"--start-time=73",
"/home/user/Desktop/Baby Justin Bieber.mp4"

View File

@@ -7,7 +7,7 @@
{
"type": "launch",
"parameters": {
"command": "vlc"
"command": "VLC_VERBOSE=-1 vlc"
}
},
{

View File

@@ -7,7 +7,7 @@
{
"type": "launch",
"parameters": {
"command": "vlc"
"command": "VLC_VERBOSE=-1 vlc"
}
},
{

View File

@@ -17,9 +17,9 @@
},
{
"type": "launch",
"parameters": {
"command": ["vlc", "/home/user/Desktop/flipped_1984_Apple_Macintosh_Commercial.mp4"]
}
"parameters": {
"command": ["VLC_VERBOSE=-1", "vlc", "/home/user/Desktop/flipped_1984_Apple_Macintosh_Commercial.mp4"]
}
},
{
"type": "execute",

View File

@@ -7,7 +7,7 @@
{
"type": "launch",
"parameters": {
"command": "vlc"
"command": "VLC_VERBOSE=-1 vlc"
}
},
{

View File

@@ -7,7 +7,7 @@
{
"type": "launch",
"parameters": {
"command": "vlc"
"command": "VLC_VERBOSE=-1 vlc"
}
}
],

View File

@@ -7,7 +7,7 @@
{
"type": "launch",
"parameters": {
"command": "vlc"
"command": "VLC_VERBOSE=-1 vlc"
}
},
{

View File

@@ -19,6 +19,7 @@
"type": "launch",
"parameters": {
"command": [
"VLC_VERBOSE=-1",
"vlc",
"--start-time=120.5",
"--stop-time=121",

View File

@@ -7,7 +7,7 @@
{
"type": "launch",
"parameters": {
"command": "vlc"
"command": "VLC_VERBOSE=-1 vlc"
}
},
{

View File

@@ -19,6 +19,7 @@
"type": "launch",
"parameters": {
"command": [
"VLC_VERBOSE=-1",
"vlc",
"--start-time=120.5",
"--stop-time=121",