argorar / WebMConverter

GUI for ffmpeg to convert videos to WebM and mp4.
https://argorar.github.io/WebMConverter/
MIT License
230 stars 10 forks source link

Fix for ffmpeg/ffprobe long paths not working #84

Closed DoTheSneedful closed 5 months ago

DoTheSneedful commented 5 months ago

My bad for not doing enough testing when I made the change earlier. Hopefully everything works nicely now.

In effect, ffprobe/mkvextract cannot read the long path to get the streams. For example, when trying to use the subtitle filter to burn internal subs.

Solution is use \\?\ or \\?\UNC\ prefix for programs that do not have a similar manifest for native longer path support. GetCompatiblePath does something similar for AviSynth already.

Testing: Trim/Crop/Subtitle/Resize filters on a long path in the typical format and UNC path format.

Z:\anime\WorldEnd - What are you doing at the end of the world! Are you busy! Will you save us! (2017) [tvdb-325208]\Season 01\WorldEnd - What are you doing at the end of the world! Are you busy! Will you save us! (2017) - S01E01 - Broken Chronograph [HDTV-1080p][AAC 2.0][x265].mkv

\\192.168.2.80\media\anime\WorldEnd - What are you doing at the end of the world! Are you busy! Will you save us! (2017) [tvdb-325208]\Season 01\WorldEnd - What are you doing at the end of the world! Are you busy! Will you save us! (2017) - S01E02 - Late Autumn Nights Dream [HDTV-1080p][AAC 2.0][x265].mkv