You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got another error, the conditions are the same as #36
The error:
(base) fco@X99:~$ video-diet folder "/media/fco/STORAGE1/VIDEOS LYF_HDD/PELICULAS/"
Processing: /media/fco/STORAGE1/VIDEOS LYF_HDD/PELICULAS/Point Break [2015] [HD]/Point Break [2015] [HD].mp4
Traceback (most recent call last):
File "/home/fco/miniconda3/bin/video-diet", line 8, in <module>
sys.exit(app())
File "/home/fco/miniconda3/lib/python3.7/site-packages/typer/main.py", line 214, in __call__
return get_command(self)(*args, **kwargs)
File "/home/fco/miniconda3/lib/python3.7/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/home/fco/miniconda3/lib/python3.7/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/home/fco/miniconda3/lib/python3.7/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/fco/miniconda3/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/fco/miniconda3/lib/python3.7/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/home/fco/miniconda3/lib/python3.7/site-packages/typer/main.py", line 497, in wrapper
return callback(**use_params) # type: ignore
File "/home/fco/miniconda3/lib/python3.7/site-packages/video_diet/main.py", line 71, in folder
if get_codec(str(video)) != 'hevc':
File "/home/fco/miniconda3/lib/python3.7/site-packages/video_diet/utils.py", line 48, in get_codec
return metadata.audio[0].codec()
IndexError: list index out of range
The text was updated successfully, but these errors were encountered:
I have been checking this error and one of the causes is due to some video files that have errors and can't be opened whit VLC. A proposed way to solve it could be:
1- Capturing the error and saving the file name (it can ve created an error log in the folder where the video is)
2- Then jump to another file and continues the conversion
I got another error, the conditions are the same as #36
The error:
The text was updated successfully, but these errors were encountered: