ffmpeg-kit icon indicating copy to clipboard operation
ffmpeg-kit copied to clipboard

Is it Possible to Use Absolute Paths in Concat Input.txt Returned from FFmpegKitConfig.getSafParameterForRead?

Open AdamMattas opened this issue 2 years ago • 1 comments

I am attempting to let Android users supply their own text file with a list of images using absolute file paths to FFmpeg for concat.

#Example file format for input.txt file '/storage/emulated/0/DCIM/img000.jpg' file '/storage/emulated/0/DCIM/img001.jpg' file '/storage/emulated/0/DCIM/img002.jpg'

I am able to use the Storage Access Framework to get the content uri of input.txt and successfully receive "saf:1.txt" from getSafParameterForRead. However, when I run the command I get an error saying "ffmpeg-kit Impossible to open saf:/storage/emulated/0/DCIM/img000.jpg".

Is the getSafParameterForRead method even intended to be used for the input.txt list file or is it only for media files?

AdamMattas avatar Jul 17 '22 21:07 AdamMattas

I haven't tested using saf protocol URLs with concat demuxer before. So, I'm not %100 sure whether that is possible or not.

Have you tried providing saf schema as well for the input files e.g. file saf:'1.txt' ?

tanersener avatar Jul 18 '22 09:07 tanersener

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Sep 17 '22 02:09 github-actions[bot]

This issue was closed because it has been stalled for 7 days with no activity.

github-actions[bot] avatar Sep 24 '22 02:09 github-actions[bot]