lisamelton / other_video_transcoding

Other tools to transcode videos.
MIT License
555 stars 26 forks source link

batch.rb not transcoding #204

Closed ramiltonii closed 4 months ago

ramiltonii commented 4 months ago

Hello & thanks for this great tool. I had been using this for a while on another computer & recently got a new computer. I was installing this & trying to re-create my process with the batch.rb. When i run a convert with other-transcode, it works fine. If i run the batch.rb it just skips down to the next line & doesn't convert anything.

even when i put the batch.rb & queue.txt file in the same folder.

Has anyone seen this before?

Screenshot 2024-05-18 224323

lisamelton commented 4 months ago

@ramiltonii You are very welcome and I'm sorry you're having this problem.

The queue.txt file actually needs to be in the current working directory for batch.rb to find it. Usually that means batch.rb is placed in that same directory. Is that where batch.rb is located?

ramiltonii commented 4 months ago

It is in the same directory. I actually added it in the /bin folder also. Put the file I want to convert in the same folder and everything. My old computer works fine, just the new install is acting weird! 😊 thanks for responding.

lisamelton commented 4 months ago

@ramiltonii Remove the batch.rb file from your \bin directory. Just execute it from the working directory, i.e. invoking it via .\batch.rb. That could be the problem.

ramiltonii commented 4 months ago

@lisamelton Thank you for responding to me. I was able to resolve. when i started trying to set up on my new machine, i started with other projects not seeing the other transcoding. They suggest to use WSL to install the tools. I re-read over your instructions & saw not to use the WSL. I uninstalled WSL & the batch.rb started working. Thanks for helping me!!!

lisamelton commented 4 months ago

@ramiltonii You are very welcome!

OK, I will close this now because the issue has been resolved.

Kerbrer commented 2 months ago

Can you explain what you did here? I think I have the same problem.

lisamelton commented 2 months ago

@Kerbrer Did you install other-transcode.rb in WSL? If so, don't use it in that environment. Use it within Windows itself via PowerShell.

Kerbrer commented 2 months ago

@Kerbrer Did you install other-transcode.rb in WSL? If so, don't use it in that environment. Use it within Windows itself via PowerShell.

So I've made progress, now I get this error message, with [Path to file] subbing for my directories because I'm paranoid:

C:/Ruby32-x64/bin/other-transcode: scanning media failed: [Path to file]\batch.rb

I've tried it both ways as such: [Path to file]>other-transcode --add-audio all --add-subtitle all --copy-track-names [Path to file]\batch.rb [Path to file]>other-transcode [Path to file]\batch.rb --add-audio all --add-subtitle all --copy-track-names

Before this I'd just get a blank line. I started getting this after moving the files I want to batch process into the same folder as the script.

For what it's worth I didn't use WSL at all while installing Ruby, which is why I'm confused.

lisamelton commented 2 months ago

@Kerbrer OK, this is a separate problem. Can you open a new issue, please? I don't want to diagnose this in an issue that's already closed. Thanks.