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:
@@ -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):
|
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']:
|
if actual_window_size['width'] == screen_size['width'] and actual_window_size['height'] == screen_size['height']:
|
||||||
return 1
|
return 1
|
||||||
else:
|
else:
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
{
|
{
|
||||||
"type": "launch",
|
"type": "launch",
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"command": "vlc"
|
"command": "VLC_VERBOSE=-1 vlc"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -30,6 +30,7 @@
|
|||||||
"type": "launch",
|
"type": "launch",
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"command": [
|
"command": [
|
||||||
|
"VLC_VERBOSE=-1",
|
||||||
"vlc",
|
"vlc",
|
||||||
"--start-time=10",
|
"--start-time=10",
|
||||||
"/home/user/Desktop/Colorful-Flowers.mp3"
|
"/home/user/Desktop/Colorful-Flowers.mp3"
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
{
|
{
|
||||||
"type": "launch",
|
"type": "launch",
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"command": "vlc"
|
"command": "VLC_VERBOSE=-1 vlc"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
{
|
{
|
||||||
"type": "launch",
|
"type": "launch",
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"command": "vlc"
|
"command": "VLC_VERBOSE=-1 vlc"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
{
|
{
|
||||||
"type": "launch",
|
"type": "launch",
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"command": "vlc"
|
"command": "VLC_VERBOSE=-1 vlc"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
"type": "launch",
|
"type": "launch",
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"command": [
|
"command": [
|
||||||
|
"VLC_VERBOSE=-1",
|
||||||
"vlc",
|
"vlc",
|
||||||
"--start-time=15",
|
"--start-time=15",
|
||||||
"/home/user/Desktop/Gen 2.mp4"
|
"/home/user/Desktop/Gen 2.mp4"
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
"type": "launch",
|
"type": "launch",
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"command": [
|
"command": [
|
||||||
|
"VLC_VERBOSE=-1",
|
||||||
"vlc",
|
"vlc",
|
||||||
"--start-time=73",
|
"--start-time=73",
|
||||||
"/home/user/Desktop/Baby Justin Bieber.mp4"
|
"/home/user/Desktop/Baby Justin Bieber.mp4"
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
{
|
{
|
||||||
"type": "launch",
|
"type": "launch",
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"command": "vlc"
|
"command": "VLC_VERBOSE=-1 vlc"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
{
|
{
|
||||||
"type": "launch",
|
"type": "launch",
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"command": "vlc"
|
"command": "VLC_VERBOSE=-1 vlc"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -17,9 +17,9 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "launch",
|
"type": "launch",
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"command": ["vlc", "/home/user/Desktop/flipped_1984_Apple_Macintosh_Commercial.mp4"]
|
"command": ["VLC_VERBOSE=-1", "vlc", "/home/user/Desktop/flipped_1984_Apple_Macintosh_Commercial.mp4"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "execute",
|
"type": "execute",
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
{
|
{
|
||||||
"type": "launch",
|
"type": "launch",
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"command": "vlc"
|
"command": "VLC_VERBOSE=-1 vlc"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
{
|
{
|
||||||
"type": "launch",
|
"type": "launch",
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"command": "vlc"
|
"command": "VLC_VERBOSE=-1 vlc"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
{
|
{
|
||||||
"type": "launch",
|
"type": "launch",
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"command": "vlc"
|
"command": "VLC_VERBOSE=-1 vlc"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
"type": "launch",
|
"type": "launch",
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"command": [
|
"command": [
|
||||||
|
"VLC_VERBOSE=-1",
|
||||||
"vlc",
|
"vlc",
|
||||||
"--start-time=120.5",
|
"--start-time=120.5",
|
||||||
"--stop-time=121",
|
"--stop-time=121",
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
{
|
{
|
||||||
"type": "launch",
|
"type": "launch",
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"command": "vlc"
|
"command": "VLC_VERBOSE=-1 vlc"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
"type": "launch",
|
"type": "launch",
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"command": [
|
"command": [
|
||||||
|
"VLC_VERBOSE=-1",
|
||||||
"vlc",
|
"vlc",
|
||||||
"--start-time=120.5",
|
"--start-time=120.5",
|
||||||
"--stop-time=121",
|
"--stop-time=121",
|
||||||
|
|||||||
Reference in New Issue
Block a user