ruediger / VobSub2SRT

Converts VobSub subtitles (.idx/.srt format) into .srt subtitles.
GNU General Public License v3.0
294 stars 66 forks source link

VobSub2SRT output 0KB probably problem finding out languages id? #28

Closed capiscuas closed 10 years ago

capiscuas commented 10 years ago

I'm using the PPA latest .deb packages,

when I run vobsub2srt gxp-spirit.45.xvid --dump-images it returns Wrote Subtitles to 'gxp-spirit.45.xvid.srt'

with a 0KB gxp-spirit.45.xvid.srt file.

I realized it may have to do with vobsub2srt not being able to decode the list of languages, it also shows "0:\n" when I use --langlist parameter.

here are the VobSub subtitle for you to try if you want, with smplayer, the subtitles are correctly displayed and the language EN shows up. https://dl.dropboxusercontent.com/u/1599184/others/gxp-spirit.45.xvid.sub https://dl.dropboxusercontent.com/u/1599184/others/gxp-spirit.45.xvid.idx

Thanks a lot to take a look.

capiscuas commented 10 years ago

after doing some research I tried the parameter "--lang en" , and it worked fine so I guess the issue is just something related to recognize the languages in the .idx/sub file.

ruediger commented 10 years ago

Thanks for your bug report. It seems that your subtitle file contains two subtitle streams. The first one (0) is empty and the second one (1) is English. When you set no language vobsub2srt tries to decode the first stream which is empty. Setting the stream explicitly should work: vobsub2srt gxp-spriit.45.xvid --lang en.

--langlist seems to crash because it doesn't properly handle the id being NULL. I'll fix that. Thanks for your bug report!

ruediger commented 10 years ago

0122ce7efc3e9dc1e519e39c766bc72158f8f49f fixes the --langlist issue.