I'm trying to practice video editing with ffmpeg, I made a sample app which allows the users to either record a video then edit it or choose a video from gallery to edit.
When the user records videos with the application a temporary file is created then that file path is sent to ffmpeg to edit then save
"-i $videoPath -vf crop=ih/$screenR:ih $outPath"
I'm just cropping the video then saving it as a test, The above command works as intended without any problems.
When I try to edit videos from gallery it doesn't work, I understand that the storage system in new versions of android devices is different, the uri is just an address to the content not an actual path to the file
the video path from gallery is something like this
content://media/external/file/38625
ffmpeg can not access the video with that path so it can't edit it, what should I do? thank you in advance.