Open zhixin601153 opened 1 month ago
Bot detected the issue body's language is not English, translate it automatically.
Title: 🐛[BUG] Videos (different resolutions) recorded by the anchor when switching resolutions are automatically spliced together
exe file to run directly
None
Windows 11
1.https://live.douyin.com/28355754114
None
虎牙也有这个问题
Bot detected the issue body's language is not English, translate it automatically.
Huya also has this problem
main.py 文件里把这行删了,保存时候就自动转码了,如果经常需要这么转。
"-c:v", "copy",
def converts_mp4(address: str, is_original_delete: bool = True) -> None:
_output = subprocess.check_output([
"ffmpeg", "-i", address,
"-c:v", "copy",
"-c:a", "copy",
"-f", "mp4", address.rsplit('.', maxsplit=1)[0] + ".mp4",
], stderr=subprocess.STDOUT, startupinfo=get_startup_info(os_type))
if is_original_delete:
time.sleep(1)
if os.path.exists(address):
os.remove(address)
偶尔的话ffmpeg -i input.mp4 output.mp4
转换一下就好了,input.mp4换成要转的视频名,output.mp4是输出的视频名
我没试过,感觉应该行,要是你说的自动分段chatgpt说还得ffprobe循环检测视频流的分辨率
Bot detected the issue body's language is not English, translate it automatically.
Delete this line in the main.py file and it will be automatically transcoded when saving. If you need to do this frequently.
"-c:v", "copy",
def converts_mp4(address: str, is_original_delete: bool = True) -> None:
_output = subprocess.check_output([
"ffmpeg", "-i", address,
"-c:v", "copy",
"-c:a", "copy",
"-f", "mp4", address.rsplit('.', maxsplit=1)[0] + ".mp4",
], stderr=subprocess.STDOUT, startupinfo=get_startup_info(os_type))
if is_original_delete:
time.sleep(1)
if os.path.exists(address):
os.remove(address)
Occasionally, just convert `ffmpeg -i input.mp4 output.mp4`. Input.mp4 is replaced by the name of the video to be converted, and output.mp4 is the name of the output video.
main.py 文件里把这行删了,保存时候就自动转码了,如果经常需要这么转。
"-c:v", "copy",
def converts_mp4(address: str, is_original_delete: bool = True) -> None: _output = subprocess.check_output([ "ffmpeg", "-i", address, "-c:v", "copy", "-c:a", "copy", "-f", "mp4", address.rsplit('.', maxsplit=1)[0] + ".mp4", ], stderr=subprocess.STDOUT, startupinfo=get_startup_info(os_type)) if is_original_delete: time.sleep(1) if os.path.exists(address): os.remove(address)
偶尔的话
ffmpeg -i input.mp4 output.mp4
转换一下就好了,input.mp4换成要转的视频名,output.mp4是输出的视频名我没试过,感觉应该行,要是你说的自动分段chatgpt说还得ffprobe循环检测视频流的分辨率
不转mp4,只录制ts的格式,也会有这个问题,主播修改分辨率后都是花屏
Bot detected the issue body's language is not English, translate it automatically.
Delete this line in the main.py file and it will be automatically transcoded when saving. If you need to do this frequently.
"-c:v", "copy",
def converts_mp4(address: str, is_original_delete: bool = True) -> None: _output = subprocess.check_output([ "ffmpeg", "-i", address, "-c:v", "copy", "-c:a", "copy", "-f", "mp4", address.rsplit('.', maxsplit=1)[0] + ".mp4", ], stderr=subprocess.STDOUT, startupinfo=get_startup_info(os_type)) if is_original_delete: time.sleep(1) if os.path.exists(address): os.remove(address)
Occasionally, just convert
ffmpeg -i input.mp4 output.mp4
. Input.mp4 is the name of the video to be converted, and output.mp4 is the name of the output video.I haven't tried it, but I think it should work. If you are talking about automatic segmentation, chatgpt says that you need to loop ffprobe to detect the resolution of the video stream.
If you do not convert to mp4, but only record in ts format, you will also have this problem. After the host changes the resolution, the screen will be blurry.
@ihmily 大佬这个问题有什么解决办法吗?
Bot detected the issue body's language is not English, translate it automatically.
@ihmily Boss, do you have any solution to this problem?
⚠️ 确认是否已存在类似问题
🔧 运行方式
直接运行的exe文件
🐍 如果是使用源代码运行,请选择你的Python环境版本
None
💻 请选择你的系统环境
Windows 11
⚠️ 确认是否已经重试多次
🕹 复现步骤
1.https://live.douyin.com/28355754114 2.默认 ts录制完成后自动转为mp4格式 3.分段时间10800秒 4.原画录制
😯 问题描述
1.主播一般直播不超过3小时 2.今日开播(10月29日)忘记开蓝光(720p),半小时后提醒其打开蓝光(1080p),录制结束自动拼接自动转为一个mp4格式文件(2.45G) 3.文件上传直百度网盘,在线可播至第30分钟,之后的部分无法继续播放,但本地文件用VLC播放器是可以正常播放的,不同分辨率拼接处有卡顿 4.通过百度网盘分享的文件:10月29日.mp4 链接:https://pan.baidu.com/s/1vIQ7OvUDVDmz4Ath04NUjw?pwd=9999 提取码:9999 5.希望达成的目标是,主播切换不同分辨率后,当前录制停止,转码保存,然后继续录制切换后的
📜 错误信息
无