Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
xuwx1
LightX2V
Commits
835ca96b
Unverified
Commit
835ca96b
authored
Oct 15, 2025
by
LiangLiu
Committed by
GitHub
Oct 15, 2025
Browse files
support env FFMPEG_LOG_LEVEL (#366)
parent
321c31c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
lightx2v/deploy/common/va_recorder.py
lightx2v/deploy/common/va_recorder.py
+6
-4
No files found.
lightx2v/deploy/common/va_recorder.py
View file @
835ca96b
import
os
import
queue
import
signal
import
socket
...
...
@@ -30,7 +31,8 @@ class VARecorder:
self
.
sample_rate
=
sample_rate
self
.
audio_port
=
pseudo_random
(
32000
,
40000
)
self
.
video_port
=
self
.
audio_port
+
1
logger
.
info
(
f
"VARecorder audio port:
{
self
.
audio_port
}
, video port:
{
self
.
video_port
}
"
)
self
.
ffmpeg_log_level
=
os
.
getenv
(
"FFMPEG_LOG_LEVEL"
,
"error"
)
logger
.
info
(
f
"VARecorder audio port:
{
self
.
audio_port
}
, video port:
{
self
.
video_port
}
, ffmpeg_log_level:
{
self
.
ffmpeg_log_level
}
"
)
self
.
width
=
None
self
.
height
=
None
...
...
@@ -173,7 +175,7 @@ class VARecorder:
self
.
livestream_url
,
"-y"
,
"-loglevel"
,
"info"
,
self
.
ffmpeg_log_level
,
]
try
:
self
.
ffmpeg_process
=
subprocess
.
Popen
(
ffmpeg_cmd
)
...
...
@@ -225,7 +227,7 @@ class VARecorder:
self
.
livestream_url
,
"-y"
,
"-loglevel"
,
"info"
,
self
.
ffmpeg_log_level
,
]
try
:
self
.
ffmpeg_process
=
subprocess
.
Popen
(
ffmpeg_cmd
)
...
...
@@ -295,7 +297,7 @@ class VARecorder:
self
.
livestream_url
,
"-y"
,
"-loglevel"
,
"info"
,
self
.
ffmpeg_log_level
,
]
try
:
self
.
ffmpeg_process
=
subprocess
.
Popen
(
ffmpeg_cmd
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment