nschlia / ffmpegfs

FUSE-based transcoding filesystem with video support from many formats to FLAC, MP4, TS, WebM, OGG, MP3, HLS, and others.
https://nschlia.github.io/ffmpegfs/
GNU General Public License v3.0
198 stars 14 forks source link

JPG frame sets: Timeout reading some files #61

Closed nschlia closed 4 years ago

nschlia commented 4 years ago

When accessing files in arbitrary order some reads fail. Works for BMP and PNG, but not JPG.

For example, run with desttype=jpg and try to copy these images:

000204.jpg
000004.jpg
000104.jpg
000207.jpg
000007.jpg
000107.jpg

Result:

'frame_test_pal.mp4/000204.jpg' -> './000204.jpg'
'frame_test_pal.mp4/000004.jpg' -> './000004.jpg'
cp: Error reading 'frame_test_pal.mp4/000004.jpg': Timeout
'frame_test_pal.mp4/000104.jpg' -> './000104.jpg'
'frame_test_pal.mp4/000207.jpg' -> './000207.jpg'
'frame_test_pal.mp4/000007.jpg' -> './000007.jpg'
cp: Error reading 'frame_test_pal.mp4/000007.jpg': Timeout
'frame_test_pal.mp4/000107.jpg' -> './000107.jpg'

FFmpegfs log snippet:

2020-05-02 17:17:22 INFO   : [frame_test_pal.mp4.cache.jpg] Opening cache file read/write.
2020-05-02 17:17:22 DEBUG  : [frame_test_pal.mp4] Decoder thread is running.
2020-05-02 17:17:23 ERROR  : [mjpeg @ 0x7ffb50048d80] Invalid pts (0) <= last (107520)
2020-05-02 17:17:23 ERROR  : [frame_test_pal.jpg] Could not encode image frame (error 'Operation not permitted').
2020-05-02 17:17:52 ERROR  : [frame_test_pal.jpg] Timeout reading image frame no. 4: (110) Connection timed out