pitch-visualizer
pitch-visualizer copied to clipboard
ffmpeg returen non-zero exit status 218
up主您好,我尝试用您的代码,但发现ffmpeg 报错显示如下:
python gen_pitch.py --audio 1_ganbei_(Vocals).mp3 -t F ganbei.mp4 --ffmpeg /histor/sun/huangjunsong/software/ffmpeg-6.1/ffmpeg Generating pitch video 0%| | 3/3264 [00:01<24:40, 2.20frame/s]MovieWriter stderr: Impossible to convert between the formats supported by the filter 'Parsed_null_0' and the filter 'auto_scale_0' [vf#0:0 @ 0x3481e40] Error reinitializing filters! Failed to inject frame into filter network: Function not implemented Error while filtering: Function not implemented [out#0/mp4 @ 0x347c540] Nothing was written into output file, because at least one of its streams received no packets.
0%| | 3/3264 [00:01<28:21, 1.92frame/s]
Traceback (most recent call last):
File "/histor/sun/huangjunsong/anaconda3/lib/python3.8/site-packages/matplotlib/animation.py", line 231, in saving
yield self
File "/histor/sun/huangjunsong/anaconda3/lib/python3.8/site-packages/matplotlib/animation.py", line 1085, in save
writer.grab_frame(**savefig_kwargs)
File "/histor/sun/huangjunsong/anaconda3/lib/python3.8/site-packages/matplotlib/animation.py", line 357, in grab_frame
self.fig.savefig(self._proc.stdin, format=self.frame_format,
File "/histor/sun/huangjunsong/anaconda3/lib/python3.8/site-packages/matplotlib/figure.py", line 3274, in savefig
self.canvas.print_figure(fname, **kwargs)
File "/histor/sun/huangjunsong/anaconda3/lib/python3.8/site-packages/matplotlib/backends/backend_qtagg.py", line 81, in print_figure
super().print_figure(*args, **kwargs)
File "/histor/sun/huangjunsong/anaconda3/lib/python3.8/site-packages/matplotlib/backend_bases.py", line 2338, in print_figure
result = print_method(
File "/histor/sun/huangjunsong/anaconda3/lib/python3.8/site-packages/matplotlib/backend_bases.py", line 2204, in
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "gen_pitch.py", line 202, in
请问这是ffmpeg 处理视频的问题吗?这该如何解决呢?
I think that it requires proper encoding parameters like -vf format=nv12,hwupload
I think that it requires proper encoding parameters like
-vf format=nv12,hwupload
that mean I should add -vf format=nv12,hwupload
in subprocess.CalledProcess command to use ffmpeg?
这我还真不确定是什么情况,没遇到过……我对ffmpeg其实没有那么熟悉,看起来是在做pitch那个视频的时候出的错。
哎,你的matplotlib version是多少?是最新的么?
老师您好,我想请问下我按照您的代码做到最后一步PS D:\five\pitch-visualizer> python gen_pitch.py --audio vocal.mp3 -t F ganbei.MP4 时,它并没有生成一个音频文件,而是出现一下提示:
Generating pitch video
3805frame [01:56, 32.64frame/s]
Combining video
Traceback (most recent call last):
File "D:\five\pitch-visualizer\gen_pitch.py", line 235, in
看起来是因为你ffprobe那一步出问题了。你在command line里做ffprobe -v error -select_streams v:0 -show_entries stream=width,height -of csv=s=x:p=0 GANBEI.mp4
结果是啥
老师您好,我的结果是这个:ffprobe -v error -select_streams v:0 -show_entries stream=width,height -of csv=s=x:p=0 ganbei.MP4
1920x1080x
看起来是你ffprobe的bug,输出不应该有最后的那个x才对……试着更新一下ffmpeg?