Closed rajeshde closed 3 years ago
Use this base dir
const BASE_DIR =
${FileSystem.cacheDirectory}/;
or create your directory first using rnfs then try to create thumbnail
${FileSystem.cacheDirectory}/shreem-cache/
You may try this code
'-i '+videoUri+' -an -ss 00:00:00.00 -vframes 1 '+imageUri
Thanks @mrksohag. I wasn't creating the directory under cacheDirectory. I am closing this, as it was a mistake from my end.
Description Trying to create thumbnail from a video using this below syntax
Expected behavior It should create the .jpg file with a thumbnail from 0th frame. I have tested this syntax directly from ffmpeg and it worked.
Current behavior
Could not open file : file:///var/mobile/Containers/Data/Application/5757F2E2-A974-4C2D-BECE-7936272D623D/Library/Caches/shreem-cache/e705360a-56c6-4e1b-9c53-a3ff188a39e8.jpg
Logs Directly pasted the log, as https://ghostbin.co giving 502 bad gateway error.
Environment
Other I have tried executeWithArguments function too and also other compression ways. But in all cases it could not read the file