RandomEngy / VidCoder

A Blu-ray, DVD and video file transcoder for Windows.
http://vidcoder.net
GNU General Public License v2.0
687 stars 42 forks source link

Videos with "~" cause problems ( #1299

Open zakimimit opened 2 weeks ago

zakimimit commented 2 weeks ago

Problem Description

Hello

Videos with "~" cause problems

1- The filenames if it looks like "abc~1.mp4" it will be converted, but when the software tries to save it it can't ,

I hope you can add a way to clean up the names, like in Piker:

image

You can add "~" to remove it, so that files with this pattern are converted automatically, rather than having to change it manually.

Because the "~" is the problem.

My best regards,

What version of VidCoder are you running?

11.6

Encode Log

No response

RandomEngy commented 1 week ago

abc~1 is a Windows alias for "the first file that starts with abc", and is sometimes used to shorten very long file paths. Is that where you encountered this, in a long file path? In some cases you can't "expand" out these shortened names, since it would cause the full file path to go over with max file path length in Windows.

There might be something I can do depending on in what case you're running into this.

zakimimit commented 3 days ago

If the path is too long, the windows will make an alias "~" and some files with "~" names will confuse VidCoder.

So it is better to clean up "~" so that files with this pattern are converted automatically.

You can add this functionality to Source name cleanup

RandomEngy commented 2 days ago

I'm sorry, I'm not sure what you mean by "clean up" here. Can you give an example of some paths it should be handling and what you'd want it to do? I wouldn't be able to preserve the full file names for output in all cases if it's longer than the max path.

zakimimit commented 2 days ago

Untitled

Path example

"D:\Downloads\1Compressed\invoice\Software Development Processes and Methodologies .mp4"

This file is read as "D:\Downloads\1Compressed\invoice\SDPM~.mp4"

so the convert is done but the software not save it

so if you add this option to "remove ~" from the name the output will be saved

see the picture

Thank you

RandomEngy commented 18 hours ago

What would cause "D:\Downloads\1Compressed\invoice\Software Development Processes and Methodologies .mp4" to be read as "D:\Downloads\1Compressed\invoice\SDPM~.mp4" ?

Are you trying to refer to the automatic shortening? It could change something like this:

C:\Saved Games\CD Projekt Red\Cyberpunk 2077\AutoSave-3\screenshot.png

into

C:\SAVEDG~1\CDPROJ~1\CYBERP~1\AUTOSA~4\SCREEN~1.PNG

In this case just removing the ~ is going to result in some really weird behavior, as it will create new, truncated folders all across the path.