PixelSorting icon indicating copy to clipboard operation
PixelSorting copied to clipboard

Inputted videos lose their audio tracks once outputted

Open Papacci20 opened this issue 3 years ago • 1 comments

This is more of a suggestion rather than an actual issue but I'd think it would be a nice option to add a function to select whether the user wants the outputted video with the original audio or not tho for this to be implemented it would first require to fix the other issue with added frames in the output.

Papacci20 avatar Dec 09 '21 18:12 Papacci20

This is a good suggestion. OpenCV is used for the video writing and unfortunately OpenCV does not work with audio at all (from what I can tell).

It seems that it would be possible to use FFMPEG to take the audio from the original video and attach it to the new sorted video file. FFMPEG works on Windows, Mac, and Linux but this will be a bigger change since it will require adding a new dependency and figuring out how to use it and include it with executable. I don't want users to have to download and compile the library themselves since I want this application to remain accessible to anyone without programming knowledge.

Stack Overflow post for future reference.

DavidMcLaughlin208 avatar Dec 10 '21 04:12 DavidMcLaughlin208