mirror of
https://github.com/Arrowar/StreamingCommunity.git
synced 2025-06-07 20:15:24 +00:00
bypass mutex
This commit is contained in:
parent
98054e0471
commit
d92e8e2e7e
@ -340,10 +340,10 @@ class M3U8_Segments:
|
|||||||
|
|
||||||
console.log("[cyan]Joining all files...")
|
console.log("[cyan]Joining all files...")
|
||||||
try:
|
try:
|
||||||
ffmpeg.input(file_list_path, format='concat', safe=0).output(output_filename, c='copy', loglevel='error').run()
|
ffmpeg.input(file_list_path, format='concat', safe=0).output(output_filename, map_metadata='-1', c='copy', loglevel='error').run()
|
||||||
except ffmpeg.Error as e:
|
except ffmpeg.Error as e:
|
||||||
console.log(f"[red]Error saving MP4: {e.stdout}")
|
console.log(f"[red]Error saving MP4: {e.stdout}")
|
||||||
sys.exit(0)
|
#sys.exit(0)
|
||||||
|
|
||||||
console.log(f"[cyan]Clean ...")
|
console.log(f"[cyan]Clean ...")
|
||||||
os.remove(file_list_path)
|
os.remove(file_list_path)
|
||||||
@ -385,6 +385,7 @@ class M3U8_Downloader:
|
|||||||
|
|
||||||
def join_audio(self):
|
def join_audio(self):
|
||||||
"""Join audio with video and sync it"""
|
"""Join audio with video and sync it"""
|
||||||
|
console.log("[cyan]Join audio and video")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
video_stream = ffmpeg.input(self.video_path)
|
video_stream = ffmpeg.input(self.video_path)
|
||||||
@ -399,7 +400,11 @@ class M3U8_Downloader:
|
|||||||
acodec="copy",
|
acodec="copy",
|
||||||
loglevel='error'
|
loglevel='error'
|
||||||
)
|
)
|
||||||
.global_args('-map', '0:v:0', '-map', '1:a:0', '-shortest', '-strict', 'experimental')
|
.global_args(
|
||||||
|
'-map', '0:v:0',
|
||||||
|
'-map', '1:a:0',
|
||||||
|
'-shortest', '-strict',
|
||||||
|
'experimental')
|
||||||
.run()
|
.run()
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
__title__ = 'Streaming_community'
|
__title__ = 'Streaming_community'
|
||||||
__version__ = 'v0.8.9'
|
__version__ = 'v0.9.0'
|
||||||
__author__ = 'Ghost6446'
|
__author__ = 'Ghost6446'
|
||||||
__description__ = 'A command-line program to download film'
|
__description__ = 'A command-line program to download film'
|
||||||
__license__ = 'MIT License'
|
__license__ = 'MIT License'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user