1 (edited by smithinger44 2017-04-17 03:06:14)

Topic: "Subtitle file is 0Bytes" Crash with multiple sources

I'm attempting to convert my video library all into NVENC-h265 in matroska container.

When importing all of the wanted mkv's that already have h.264 video, DTS or AC3 audio in many formats and attached subtitles, the program gives up when extracting subs for a second and later files.

Debug attached.

2

Re: "Subtitle file is 0Bytes" Crash with multiple sources

Seems like mkvextract doesn't return the subtitles as it should. sad
What happens if you call:

"C:\Program Files\Hybrid\mkvextract.exe" tracks "D:\Movies\DTS\Dirty Grandpa 2016.mkv" 2:"F:\Video\Movies\Conversion\Dirty Grandpa 2016_id_2_lang_en_default.srt"

inside a Windows command prompt?

Cu Selur

3 (edited by smithinger44 2017-04-17 10:17:25)

Re: "Subtitle file is 0Bytes" Crash with multiple sources

I was writing this so late in the night that I was unable to give you anything concrete.
I've been able to work around this issue by first Selecting every file separately with "Select Input" and after all of them exported subtitles one by one, I was able to add them all together at once (by selecting multiple of them with "Select Input" option).
Then it all works fine, but doing all this and waiting for mkvextract for every file is quite tedious and I still get errors. I'll add second Debug file if I can.

https://drive.google.com/file/d/0B2eqI3 … sp=sharing

4

Re: "Subtitle file is 0Bytes" Crash with multiple sources

I don't need a second debug output file. Problem is I somehow need to reproduce the issue here.
I tried it by:

  • starting Hybrid

  • enabling Config->Automation->Passthrough streams->Subtitle

  • loading multiple source with srt subtitles

-> subtitles were all properly extracted as they should.
Thus I'm not sure what is causing the problem on your system. My guess is that it is somehow related to the extraction call which is why I asked for you to see whether calling that call causes any problems Hybrid missed. A new debug output wouldn't help there.

Cu Selur

5 (edited by smithinger44 2017-04-17 10:27:21)

Re: "Subtitle file is 0Bytes" Crash with multiple sources

You need a second debug, because my workaround has flaws that cause issues with mkvmerge. tongue
Could it be related to the fact my F:/ drive is a network drive?

Do you want me to pass you my "Global Profile"?

6

Re: "Subtitle file is 0Bytes" Crash with multiple sources

Could it be related to the fact my F:/ drive is a network drive?

I doubt it.

Do you want me to pass you my "Global Profile"?

no.

The second debug output doesn't help at all since it contains tons of stuff that doesn't seem related to the problem.
Since it also shows that the call I posted before ran through without a problem, I'm even more confused an doesn't know what works and what doesn't.

=> If you can write down a step-by-step guide on what you do to run into the problem and a separate  step-by-step guide on what you do to avoid the problem, I can look into it.
Atm. I don't see why the call would one time work and another time not and can't reproduce thus fix the issue.

Cu Selur

7 (edited by smithinger44 2017-04-17 10:44:31)

Re: "Subtitle file is 0Bytes" Crash with multiple sources

1. Everything works fine if I select a single file with "Select Input", subtitles extract, no errors occur.
2. If I add multiple files the first one extracts properly then (the program) skips X of next files exporting them with size 0(the files appear in Default Output Directory), throws the "0byte" error for one of them and Crashes.

X - Random number

P.S. If the subtitles were already exported to the Default Output Path then all the files add completely fine, so yes. In the second one everything worked because of that Workaround I did.
1.Adding all the files one by one
2.Waiting for them to MKVextract
3.Closing the program
4.Opening it
5.Loading my Global Profile
6.Adding ALL FILES at once with "Select Input".
7.Adding ALL FILES to jobs at once.
8.Profit with some files returning "State: Crashed, Call:Finished" at mkvmerge.

8

Re: "Subtitle file is 0Bytes" Crash with multiple sources

If I add multiple files the first one extracts properly then skips X of next files exporting them with size 0, throws the "0byte" error for one of them and Crashes.

Problem is I can't reproduce this here. sad
My guess is that you are doing something different then I and I got no clue what, which is why I asked for a step-by-step guide.

=> if it works if you do the same steps I do (so no loading any global profiles) or if it doesn't work then either. In case it does work when you don't use your global profile and only crashes when you do, we know that it is somehow related to the global profile. In case it crashes in both cases I got no clue what could cause the problem.

.Profit with some files returning "State: Crashed, Call:Finished" at mkvmerge.

Profit?

9 (edited by smithinger44 2017-04-17 10:59:04)

Re: "Subtitle file is 0Bytes" Crash with multiple sources

Okay. So what I do.
1. Open Hybrid
2. Select Generate
3. Open Config->Automation->Passthrough Streams->Subtitle
4. Open all of my files with "Select Input".
5. No problems occur.

Loading up the global profile and changing the path to local one also throws out errors yikes

10

Re: "Subtitle file is 0Bytes" Crash with multiple sources

Not enough details.
Does the output and/or the input folder lie on a network share?
I need details to try to reproduce the issue,...

11

Re: "Subtitle file is 0Bytes" Crash with multiple sources

I'll go step by step, changing all the settings to match my global profile until I'll get back the error.
Give me a minute.

12

Re: "Subtitle file is 0Bytes" Crash with multiple sources

No problem, I'll wait.
In the mean time I tried the following:

  • started Hybrid

  • set output and temp path to a different network mount (Config->Paths)

  • enabled Config->Automation->Passthrough streams->Subtitle

  • loaded multiple source with srt subtitles

-> no problem, either subtitles got all extracted without a problem

Cu Selur

13 (edited by smithinger44 2017-04-17 11:52:35)

Re: "Subtitle file is 0Bytes" Crash with multiple sources

Input drive is local, Output drive is network (SMB)

1. Config->Automation->Passthrough streams->Subtitle'
2. Set Default Paths
3. Output -> Container Settings -> .mkv
--no errors (Close program, reload global save with last settings)
5. Main -> Video handling -> NVENC
6. Main -> Audio handling -> Auto Add(All)
7. NVENC -> Codec -> h265
--no errors (Close program, reload global save with last settings)
8. Filtering -> Filtering -> Enable Denoising -> hqdn3D -> Light Preset
9. Audio -> Format:aac Bitrate 754 -> Filtering -> Keep Sample Rate Don't downmix
--ERRORS OUT

I've added the denoising later so I think it's the Audio.
And nope. Removing audio re-encoding doesn't change anything.
Removing any option doesn't change anything.

Conclusion:
Something with the profile breaks the program.
I went from 1->9 without saves and it all works just fine.

14

Re: "Subtitle file is 0Bytes" Crash with multiple sources

1. Start from a Hybrid where you resetted the default settings.
2. Write down every single step you do, since atm. I can't do anything since you clearly do no list all the steps you do. sad
3. What does '--ERRORS OUT' mean? Last step you did before that is set "Audio -> Format:aac Bitrate 754 -> Filtering -> Keep Sample Rate Don't downmix", you didn't load any source so Hybrid produces some sort of error when you select those settings?
4. Be precise. "Automation -> Subtitle Generate" doesn't exist. "Config->Automation->Passthrough streams->Subtitle' does however. => If you don't tell me what you do exactly, I can't be sure I used the same steps you did.

Also I'm not sure whether you use a 'Global profile' (Config->Profiles->Global profile) or if you overwrite the Defaults (Config->Profiles->Defaults).
=> write down each step and start from reset defaults without any profiles so I have at least a chance to get the same settings you use there.

My guess is that something isn't properly updated when the 'Global Profile' is loaded, but I don't know for sure since the whole description lags details. sad

Cu Selur

15 (edited by smithinger44 2017-04-17 11:56:29)

Re: "Subtitle file is 0Bytes" Crash with multiple sources

"--" <= this means I'm trying to add the sources (after which I close the program, because why would I wait for 12 movies to extract when I know it's fine)

And everytime I save a global profile before adding sources, then reload that profile after reopening the program.

16

Re: "Subtitle file is 0Bytes" Crash with multiple sources

"--" <= this means I'm trying to add the sources (after which I close the program, because why would I wait for 12 movies to extract when I know it's fine)

And you thought I should have known that? neutral
Please to not use some strange abbreviation.

I went from 1->9 without saves and it all works just fine.

Does it work if you go from 1 to 9 and then save the settings, restart Hybrid, reload the settings and then load your sources?

Cu Selur

17

Re: "Subtitle file is 0Bytes" Crash with multiple sources

Save settings you mean to save a global profile, defaults or which one?
(I'm just messing with you tongue I know what you mean. brb with the results)

18

Re: "Subtitle file is 0Bytes" Crash with multiple sources

I went from 1->9
Saved the Global Profile
Closed the program
Opened the program
Loaded the global profile
--ERROR (0byte subtitles)

19

Re: "Subtitle file is 0Bytes" Crash with multiple sources

What I did:

  • start Hybrid

  • delete all 'Global  Profile's (Config->Profiles->Global->Profile)

  • reset all 'Defaults' (Config->Defaults->Reset (All)->Reset selected)

  • waited till Hybrid started again

  • enabled Subtitle passhthrough (Config->Automation->Passthrough streams->Subtitle)

  • set default paths

    • Config->Path->Default input path (to a local path)

    • Config->Path->Default output path (to a network path)

    • Config->Path->Default temp path (to a local path)

  • created a new 'Global Profile' I named 'Test' (Config->Profiles->Global profile->Save global profile)

  • closed Hybrid

  • started Hybrid

  • loaded the previously saved 'Global Profile' 'Test' (Config->Profiles->Global Profile->Apply global profile)

  • loaded a bunch of mkv files with srt subtitles (Main->File Input->selected multiple local files)

  • Hybrid crashed

=> I managed to reproduce the issue.
Looking into the problem will report back.

Cu Selur

20

Re: "Subtitle file is 0Bytes" Crash with multiple sources

Small update: I can reproduce the issue, problem is I got no clue why this is happening. For some reason Hybrid things the file isn't there, even if it is. -> not sure whether this is a Qt 5.9 bug. -> doing some further testing.

21 (edited by smithinger44 2017-04-17 16:00:46)

Re: "Subtitle file is 0Bytes" Crash with multiple sources

You are surely a great man Selur.

Could there be something wrong with global profiles?
Maybe some setting missing or too much that corrupts the process?

You probably know better, so that's just a reminder smile
Love ya <3

Edit:
I have no idea how defaults work, but maybe avoiding the global profile and using the defaults might omit that issue?

22

Re: "Subtitle file is 0Bytes" Crash with multiple sources

Don't think this is related to the global profile at all, I think this is some new problem with Qt an Windows 10.
Did you install the Windows 10 Creator Update ?
-> I'll create a dev version which will only check whether the file exists an not whether the file size is > 0 and send you a link in a bit for testing.

Cu Selur

23

Re: "Subtitle file is 0Bytes" Crash with multiple sources

Yes.
The Creators Edition just came in few days ago and I went with it.
And sure. I'd love to do some testing.

24

Re: "Subtitle file is 0Bytes" Crash with multiple sources

My guess is that they optimized some networking stuff with it which makes problems for Qt.

Cu Selur

25

Re: "Subtitle file is 0Bytes" Crash with multiple sources

I've got a laptop without the update.
Should I try it there?