Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange file not found error #79

Open
brooklyn097 opened this issue May 30, 2020 · 2 comments
Open

Strange file not found error #79

brooklyn097 opened this issue May 30, 2020 · 2 comments

Comments

@brooklyn097
Copy link

brooklyn097 commented May 30, 2020

Hi,
This error caused if i do the conversion in any folder but not /root

  • Test 1:
    I run: cd /tmp;
    then run: vobsub2srt eng2
    it will throw error message like this:
VobSub: Can't open IDX file
fopen Vobsub file failed: No such file or directory
VobSub: Can't open SUB file
Couldn't open VobSub files 'eng2.idx/.sub'

And i'm sure that in /tmp folder, the file named eng2.idx and eng2.sub are existing.

  • Test 2:
    I cd back to /root by command: cd /root;
    then run vobsub2srt /tmp/eng2
    It will throw them same error above.

  • Test 3:
    I move eng2.idx and eng2.sub into /root folder
    then i run vobsub2srt /root/eng2 or cd /root; vobsub2srt eng2; the conversion will be processed without problem.

So i think it's only work if the .idx and .sub file placed in /root folder.
Is this a bug?

@meyersbs
Copy link

meyersbs commented Apr 13, 2021

I'm having the exact same problem. The following files exist:

video.idx
video.sub

Error message:

$ vobsub2srt --verbose video

    VobSub: Can't open IDX file
    fopen Vobsub file failed: No such file or directory
    VobSub: Can't open SUB file
    Couldn't open VobSub files 'video.idx/.sub'

My C++ is not great, but looking through the code:

  • /src/vobsub2srt.c++ calls the function vobsub_open, which exists in /mplayer/vobsub.c
  • Based on the first line of output, the code gets to this line, suggesting that the IDX file isn't getting read in properly, but I don't know why.
  • Then, based on the second line of output, we get to this line in /mplayer/vobsub.c
  • When the mpeg_open function gets called, we get some sort of error, but I'm not sure what.

But, even after tracking all of this down, I have no idea why we get errors when the IDX/SUB files exist anywhere but the /root/ directory. It makes no sense to me.

@djayor
Copy link

djayor commented Jan 19, 2023

Same problem here, running on a Raspberry Pi 4.
I didn't try to cp the files to /root to test it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants