Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error creating thumbnails with 4k 10 bit movies #543

Open
swadomlic opened this issue Jan 28, 2024 · 3 comments
Open

error creating thumbnails with 4k 10 bit movies #543

swadomlic opened this issue Jan 28, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@swadomlic
Copy link

FastFlix Version:
5.6.0
Operating System:
Windows 11 Pro
Describe the bug
A clear and concise description of what the bug is.
when a load a source 4k 10 bit i get an error
Generazione di miniature: ['C:\Users\licdo\Videos\Bluray_Rip\ffmpeg_latest\ffmpeg.exe', '-ss', '761.0103', '-loglevel', 'warning', '-i', 'E:\JDownLoader\Z_Da_Rifare\Star Trek (2009) Blu-ray 2160p UHD HDR10 1_1 CTRL\Star Trek (2009) 2160p 10 bit HDR solo video cqp 10 .....mkv', '-init_hw_device', 'opencl=ocl', '-filter_hw_device', 'ocl', '-filter_complex', "[0:0]format=p010,hwupload,tonemap_opencl=tonemap=hable:desat=0:r=tv:p=bt709:t=bt709:m=bt709:format=nv12,hwdownload,format=nv12,scale='min(440\,iw):-8'[v]", '-map', '[v]', '-an', '-y', '-map_metadata', '-1', '-frames:v', '1', 'C:\Users\licdo\AppData\Roaming\FastFlix\thumbnail_preview.jpg']
2024-01-28 09:24:29 Core-I9-13900k fastflix[21224] ERROR Impossibile generare un'immagine in miniatura: b"[AVHWDeviceContext @ 000001cd72bd9580] More than one matching device found.\r\nDevice creation failed: -19.\r\nFailed to set value 'opencl=ocl' for option 'init_hw_device': No such device\r\nInvalid filter device ocl.\r\nFailed to set value 'ocl' for option 'filter_hw_device': Invalid argument\r\n[hwupload @ 000001cd0b25a7c0] A hardware device reference is required to upload frames to.\r\n[Parsed_hwupload_1 @ 000001cd0b25ee40] Query format failed for 'Parsed_hwupload_1': Invalid argument\r\n[fc#0 @ 000001cd72bee340] Error reinitializing filters!\r\n[fc#0 @ 000001cd72bee340] Task finished with error code: -22 (Invalid argument)\r\n[fc#0 @ 000001cd72bee340] Terminating thread with return code -22 (Invalid argument)\r\n[vost#0:0/mjpeg @ 000001cd7c09ac00] Could not open encoder before EOF\r\n[vost#0:0/mjpeg @ 000001cd7c09ac00] Task finished with error code: -22 (Invalid argument)\r\n[vost#0:0/mjpeg @ 000001cd7c09ac00] Terminating thread with return code -22 (Invalid argument)\r\n[out#0/image2 @ 000001cd72c389c0] Nothing was written into output file, because at least one of its streams received no packets.\r\n"
To Reproduce
Steps to reproduce the behavior
no problem, no error with source 8 bit
Screenshots
If applicable, add screenshots to help explain your problem.
https://ibb.co/RyKsWG8
Logs (If applicable) In FastFlix you can go to Help > Open Log Directory and sort by latest to find the newest log file to add here.

Please make sure to remove any personal information or video names in the screenshots and logs!

@swadomlic swadomlic added the bug Something isn't working label Jan 28, 2024
@swadomlic
Copy link
Author

i uninstalled and reinstalled fastflix and now no more problem creating thumbails with 4k

@Battlestar1965
Copy link

Having exactly the same problem as of yesterday or today
Edition Windows 10 Home
Version 22H2
Installiert am ‎30.‎04.‎2021
Betriebssystembuild 19045.3930

2024-02-12 19:13:27,201 - fastflix ERROR Could not generate thumbnail: b"[AVHWDeviceContext @ 000002a1eb1bdb00] More than one matching device found.\r\nDevice creation failed: -19.\r\nFailed to set value 'opencl=ocl' for option 'init_hw_device': No such device\r\nInvalid filter device ocl.\r\nFailed to set value 'ocl' for option 'filter_hw_device': Invalid argument\r\n[matroska,webm @ 000002a1eb2217c0] Could not find codec parameters for stream 4 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size\r\nConsider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options\r\n[matroska,webm @ 000002a1eb2217c0] Could not find codec parameters for stream 5 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size\r\nConsider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options\r\n[matroska,webm @ 000002a1eb2217c0] Could not find codec parameters for stream 6 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size\r\nConsider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options\r\n[hwupload @ 000002a1831aaf80] A hardware device reference is required to upload frames to.\r\n[Parsed_hwupload_1 @ 000002a1f48833c0] Query format failed for 'Parsed_hwupload_1': Invalid argument\r\n[fc#0 @ 000002a1ed0977c0] Error reinitializing filters!\r\n[fc#0 @ 000002a1ed0977c0] Task finished with error code: -22 (Invalid argument)\r\n[fc#0 @ 000002a1ed0977c0] Terminating thread with return code -22 (Invalid argument)\r\n[vost#0:0/mjpeg @ 000002a1f3f7abc0] Could not open encoder before EOF\r\n[vost#0:0/mjpeg @ 000002a1f3f7abc0] Task finished with error code: -22 (Invalid argument)\r\n[vost#0:0/mjpeg @ 000002a1f3f7abc0] Terminating thread with return code -22 (Invalid argument)\r\n[out#0/image2 @ 000002a1ed5976c0] Nothing was written into output file, because at least one of its streams received no packets.\r\n"

I don't dare to reinstall, because I'm afraid of losing all my created profiles

@cdgriffith
Copy link
Owner

This seems to be caused if you have more than one hardware device that is opencl capable. I will update FastFlix to just use first available (as ffmpeg doesn't have a clean way I know of to list them out)

@Battlestar1965 you can copy the fastflix.yaml file in %APPDATA%\FastFlix (can put that in top of the folder bar and hit enter) to a second location to ensure you don't lose those!

cdgriffith added a commit that referenced this issue Feb 23, 2024
…umbnails and some encodings (thanks to swadomlic)

* Fixing #505 (maybe) trying new methods to clean file paths for subtitles (thanks to Maddie Davis)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants