occivink / mpv-scripts

Various scripts for mpv
The Unlicense
417 stars 38 forks source link

Issues with encode.lua to record clips of anime streamed with ani-cli #60

Open AreaOfZero opened 2 years ago

AreaOfZero commented 2 years ago

I like to use a tool called ani-cli to watch anime, and an issue I've had with the encode.lua script is that it fails to encode video streamed using this tool. the encode script works just fine for videos already downloaded onto my computer, however. I know this isn't a problem with ani-cli itself, as recording a clip using VLC media player's built-in record tool works just fine.

Interestingly, the error message Failed to encode, check log only appears when using my own script option I created, encode_mp4.txt (this is a .conf file in my script-opts folder, I just had to make a copy as a .txt file because GitHub won't let me upload .conf files), and not with encode_slice.conf or encode_webm.conf, even if detached is set to no; those two options will just say Encoding from <start time> to <end time>, and will not give the fail message, giving the impression that the encoding was successful, but the file is nowhere to be found in the output directory I have set, which means they are also failing, but it is not getting picked up by the script.

this is an issue on both Linux (I use Manjaro, if that matters) as well as Windows (Windows 10). Any help with resolving this issue would be greatly appreciated.