hwavesong / m3u8_To_MP4

Python downloader for saving m3u8 videos to local MP4 files.
MIT License
68 stars 25 forks source link

FileNotFoundError #22

Open isping opened 1 year ago

isping commented 1 year ago

File ~\AppData\Local\Programs\Python\Python311\Lib\site-packages\m3u8_To_MP4__init__.py:131 in multithread_download crawler.fetch_mp4_by_m3u8_uri(True)

File ~\AppData\Local\Programs\Python\Python311\Lib\site-packages\m3u8_To_MP4\v2_abstract_crawler_processor.py:229 in fetch_mp4_by_m3u8_uri self._merge_to_mp4_by_ffmpeg()

File ~\AppData\Local\Programs\Python\Python311\Lib\site-packages\m3u8_To_MP4\v2_abstract_crawler_processor.py:188 in _merge_to_mp4_by_ffmpeg if os.path.getsize(self.mp4_file_path) < 1:

File :50 in getsize

FileNotFoundError: [WinError 2] 系统找不到指定的文件。: 'e:\test.mp4'

isping commented 1 year ago

貌似不支持在中文路径运行^-^

CupKido commented 1 year ago

貌似不支持在中文路径运行^-^

Hey! not sure about that, at least it seems that when you use tmpdir (lets say ="tmpdir"), the path becomes "tmpdir/tmpdir/{filename}.ts even tho it doesnt exist... in order to fix, on file v2_abstract_crawler_processor.py replace line 162 with: segment_file_path = file_name worked for me : )

JD1099 commented 5 days ago

This error is still going on. image