lxulxu / watermarkremover Goto Github PK
View Code? Open in Web Editor NEW批量去除视频中位置固定的水印
License: GNU General Public License v3.0
批量去除视频中位置固定的水印
License: GNU General Public License v3.0
请问大佬,我遇到了这个问题,该怎么解决啊?。谢谢
Moviepy - Building video output\莫迪_no_watermark.mp4.
MoviePy - Writing audio in 莫迪_no_watermarkTEMP_MPY_wvf_snd.mp3
chunk: 0%| | 0/1622 [00:00<?, ?it/s, now=None]Traceback (most recent call last):
File "D:/kaifa/PycharmWork/douyin/douyin_utils/video_util.py", line 208, in <module>
remover.remove_video_watermark()
File "D:/kaifa/PycharmWork/douyin/douyin_utils/video_util.py", line 160, in remove_video_watermark
self.merge_audio(name, output_path, TEMP_VIDEO)
File "D:/kaifa/PycharmWork/douyin/douyin_utils/video_util.py", line 123, in merge_audio
clip.write_videofile(output_path)
File "<decorator-gen-55>", line 2, in write_videofile
File "D:\kaifa\python\lib\site-packages\moviepy\decorators.py", line 54, in requires_duration
return f(clip, *a, **k)
File "<decorator-gen-54>", line 2, in write_videofile
File "D:\kaifa\python\lib\site-packages\moviepy\decorators.py", line 135, in use_clip_fps_by_default
return f(clip, *new_a, **new_kw)
File "<decorator-gen-53>", line 2, in write_videofile
File "D:\kaifa\python\lib\site-packages\moviepy\decorators.py", line 22, in convert_masks_to_RGB
return f(clip, *a, **k)
File "D:\kaifa\python\lib\site-packages\moviepy\video\VideoClip.py", line 293, in write_videofile
self.audio.write_audiofile(audiofile, audio_fps,
File "<decorator-gen-45>", line 2, in write_audiofile
File "D:\kaifa\python\lib\site-packages\moviepy\decorators.py", line 54, in requires_duration
return f(clip, *a, **k)
File "D:\kaifa\python\lib\site-packages\moviepy\audio\AudioClip.py", line 206, in write_audiofile
return ffmpeg_audiowrite(self, filename, fps, nbytes, buffersize,
File "<decorator-gen-9>", line 2, in ffmpeg_audiowrite
File "D:\kaifa\python\lib\site-packages\moviepy\decorators.py", line 54, in requires_duration
return f(clip, *a, **k)
File "D:\kaifa\python\lib\site-packages\moviepy\audio\io\ffmpeg_audiowriter.py", line 166, in ffmpeg_audiowrite
for chunk in clip.iter_chunks(chunksize=buffersize,
File "D:\kaifa\python\lib\site-packages\moviepy\audio\AudioClip.py", line 85, in iter_chunks
yield self.to_soundarray(tt, nbytes=nbytes, quantize=quantize,
File "<decorator-gen-44>", line 2, in to_soundarray
File "D:\kaifa\python\lib\site-packages\moviepy\decorators.py", line 54, in requires_duration
return f(clip, *a, **k)
File "D:\kaifa\python\lib\site-packages\moviepy\audio\AudioClip.py", line 127, in to_soundarray
snd_array = self.get_frame(tt)
File "<decorator-gen-11>", line 2, in get_frame
File "D:\kaifa\python\lib\site-packages\moviepy\decorators.py", line 89, in wrapper
return f(*new_a, **new_kw)
File "D:\kaifa\python\lib\site-packages\moviepy\Clip.py", line 93, in get_frame
return self.make_frame(t)
File "D:\kaifa\python\lib\site-packages\moviepy\audio\io\AudioFileClip.py", line 77, in <lambda>
self.make_frame = lambda t: self.reader.get_frame(t)
File "D:\kaifa\python\lib\site-packages\moviepy\audio\io\readers.py", line 177, in get_frame
fr_min, fr_max = frames.min(), frames.max()
File "D:\kaifa\python\lib\site-packages\numpy\core\_methods.py", line 43, in _amin
return umr_minimum(a, axis, None, out, keepdims, initial, where)
TypeError: int() argument must be a string, a bytes-like object or a number, not '_NoValueType'
Select a ROI and then press SPACE or ENTER button!
Cancel the selection process by pressing c button!
Process finished with exit code 1
处理长视频,一直卡在success, frame = video.read()。这部分CV的读取能否优化,或者是否有bug。因为一直没有输出,所以很容易担心问题
cv2.threshold 这个如何根据水印调整,
如果水印更白更亮 应该把threshold 是调小还是调大
还有kernel_size 如何调整 不太明白
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.