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

Older movie files from harddrive faile immediately to process #1320

Closed
Pete4K opened this issue Feb 1, 2025 · 15 comments
Closed

Older movie files from harddrive faile immediately to process #1320

Pete4K opened this issue Feb 1, 2025 · 15 comments
Labels
state:Done This issue has been resolved/dismissed type:Bug Something isn't working

Comments

@Pete4K
Copy link

Pete4K commented Feb 1, 2025

I tested to process a 720p anime file to 4K, which is longer on a harddrive. To play this file works without a problem, but when I try to start a process it fails immediately. When I try to download this file again, the process runs and works. What can this problem be? I think I saw this before with some other files, too.

@Pete4K Pete4K added the type:Bug Something isn't working label Feb 1, 2025
@github-actions github-actions bot added the state:Backlog This issue will be worked on in the future label Feb 1, 2025
@k4yt3x
Copy link
Owner

k4yt3x commented Feb 2, 2025

After reading the steps you took I'm still a bit confused with what you have tried exactly. Can you provide the logs for when the processing fails?

@Pete4K
Copy link
Author

Pete4K commented Feb 2, 2025

The logs:

[2025-02-01 18:59:50] [warning] [FFmpeg] [mov,mp4,m4a,3gp,3g2,mj2 @ 0000020ee8196800] stream 0, timescale not set
[2025-02-01 18:59:50] [warning] Skipping unsupported stream type at index: 6
[2025-02-01 18:59:50] [error] [FFmpeg] [matroska @ 0000020ee8196ac0] Subtitle codec 94213 is not supported.
[2025-02-01 18:59:50] [error] Error writing output file header
[2025-02-01 18:59:50] [critical] Failed to initialize encoder: Function not implemented
[2025-02-01 19:01:43] [warning] [FFmpeg] [mov,mp4,m4a,3gp,3g2,mj2 @ 0000020e33349600] stream 0, timescale not set
[2025-02-01 19:01:43] [warning] Skipping unsupported stream type at index: 6
[2025-02-01 19:01:43] [error] [FFmpeg] [matroska @ 0000020e33348000] Subtitle codec 94213 is not supported.
[2025-02-01 19:01:43] [error] Error writing output file header
[2025-02-01 19:01:43] [critical] Failed to initialize encoder: Function not implemented
[2025-02-01 19:02:23] [warning] Skipping unsupported stream type at index: 6
[2025-02-01 19:02:23] [warning] Skipping unsupported stream type at index: 7
[2025-02-01 19:02:23] [warning] Skipping unsupported stream type at index: 8
[2025-02-01 19:02:23] [warning] Skipping unsupported stream type at index: 9
[2025-02-01 19:02:23] [warning] Skipping unsupported stream type at index: 10
[2025-02-01 19:02:23] [warning] Skipping unsupported stream type at index: 11
[2025-02-01 19:02:23] [warning] Skipping unsupported stream type at index: 12
[2025-02-01 19:02:23] [warning] Skipping unsupported stream type at index: 13
[2025-02-01 19:02:23] [warning] Estimating the total number of frames using duration * fps

That resulted in failing the process immediately.
The file was an mkv 720p file, but like I said, when I try to redownload the file from the web, it works. And the file itself works.

But for every file ever I still get these errors, but the process works. What does that mean?

[2025-02-02 01:43:15] [warning] Skipping unsupported stream type at index: 11
[2025-02-02 01:43:15] [warning] Estimating the total number of frames using duration * fps
[2025-02-02 04:14:47] [warning] Skipping unsupported stream type at index: 6
[2025-02-02 04:14:47] [warning] Skipping unsupported stream type at index: 7
[2025-02-02 04:14:47] [warning] Skipping unsupported stream type at index: 8
[2025-02-02 04:14:47] [warning] Skipping unsupported stream type at index: 9
[2025-02-02 04:14:47] [warning] Skipping unsupported stream type at index: 10
[2025-02-02 04:14:47] [warning] Skipping unsupported stream type at index: 11
[2025-02-02 04:14:47] [warning] Estimating the total number of frames using duration * fps
[2025-02-02 06:39:18] [warning] Skipping unsupported stream type at index: 3
[2025-02-02 06:39:18] [warning] Skipping unsupported stream type at index: 4
[2025-02-02 06:39:18] [warning] Estimating the total number of frames using duration * fps

I used the 10-Bit option of libx265 and the crf values 23-25 for a Real ESRGAN process. These 3 files were processed successful.

@k4yt3x
Copy link
Owner

k4yt3x commented Feb 4, 2025

[2025-02-01 19:01:43] [error] [FFmpeg] [matroska @ 0000020e33348000] Subtitle codec 94213 is not supported.

Seems like the output container format doesn't support your subtitle format. You can ffprobe the old one and the new one to see which formats they are using, respectively.

@Pete4K
Copy link
Author

Pete4K commented Feb 6, 2025

That is the same file (mp4-file named "One.Piece.0003.Morgan.gegen.Ruffy.German.AC3.ML.720p.WEBRip.x265-FuN" from the harddrive with two critical errors, one for the file in crf 23, 10-Bit and one for the same file in crf 23, 8-Bit (Auto):

[2025-02-06 10:06:07] [warning] [FFmpeg] [mov,mp4,m4a,3gp,3g2,mj2 @ 0000020e39e8c640] stream 0, timescale not set
[2025-02-06 10:06:07] [warning] Skipping unsupported stream type at index: 6
[2025-02-06 10:06:07] [error] [FFmpeg] [matroska @ 0000020e39e8c380] Subtitle codec 94213 is not supported.
[2025-02-06 10:06:07] [error] Error writing output file header
[2025-02-06 10:06:07] [critical] Failed to initialize encoder: Function not implemented
[2025-02-06 10:06:07] [warning] [FFmpeg] [mov,mp4,m4a,3gp,3g2,mj2 @ 0000020e11df6c80] stream 0, timescale not set
[2025-02-06 10:06:07] [warning] Skipping unsupported stream type at index: 6
[2025-02-06 10:06:07] [error] [FFmpeg] [matroska @ 0000020e11df69c0] Subtitle codec 94213 is not supported.
[2025-02-06 10:06:07] [error] Error writing output file header
[2025-02-06 10:06:07] [critical] Failed to initialize encoder: Function not implemented

Later I will write the logs for the same file as a new downloaded one. The problem shouldn't be the subtitle format or does it change the codec when the video remains a longer time on the harddrive? The old file is not broken, too, because I'm able to play it fully.

@Pete4K
Copy link
Author

Pete4K commented Feb 6, 2025

I see now that the new loaded file is a MKV file. Ist IT possible that it failed, because it was an MP4 file before.

@k4yt3x
Copy link
Owner

k4yt3x commented Feb 6, 2025

I would guess that the subtitles are of different formats in the two files. Can you run ffprobe against the two of them and paste it here?

Here's a template you can use:

ffprobe -v quiet -count_frames -print_format json -show_format -show_streams -i video.mp4

@Pete4K
Copy link
Author

Pete4K commented Feb 6, 2025

Can I write this as commands in the Programme?

@k4yt3x
Copy link
Owner

k4yt3x commented Feb 6, 2025

No you'll need to have FFmpeg installed. You can also just send me the video. Upload it to google drive or https://wormhole.app or something and paste the link here or email it to me. I can take a direct look at the two videos.

@Pete4K
Copy link
Author

Pete4K commented Feb 7, 2025

Ok I'll send it per Wormhole in a few hours.

@Pete4K
Copy link
Author

Pete4K commented Feb 7, 2025

Here are both files zipped: https://wormhole.app/rMQRZl#sEiZkKfcd3l64ZHj_eKmuQ
They are named, which file is failing and the one which works.

@k4yt3x
Copy link
Owner

k4yt3x commented Feb 7, 2025

Image

Seems like upload is incomplete?

@Pete4K
Copy link
Author

Pete4K commented Feb 7, 2025 via email

@Pete4K
Copy link
Author

Pete4K commented Feb 7, 2025

New link: https://wormhole.app/1zyq64#8hd901OYjFUlRE_kJaxH7w

@k4yt3x
Copy link
Owner

k4yt3x commented Feb 8, 2025

I took a look at it. Here's what's happening:

  • The failing one (MP4): Subtitles are in MOV text format. MOV text is not supported in MKV.
  • The working one (MKV): Subtitles are in ASS (Advanced SSA) format. ASS is not supported in MP4.

Basically, set the suffix in encoder option to be the same as your input if it fails with a similar message. Your subtitle stream was just not supported in the output container format.

So, if you use the original failing one and set the suffix to mp4, it should have worked.

@k4yt3x k4yt3x closed this as completed Feb 8, 2025
@github-actions github-actions bot added state:Done This issue has been resolved/dismissed and removed state:Backlog This issue will be worked on in the future labels Feb 8, 2025
@Pete4K
Copy link
Author

Pete4K commented Feb 8, 2025

Ok. Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state:Done This issue has been resolved/dismissed type:Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants