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

Video that should be supported are crashing #69

Open
SageSystems opened this issue Dec 6, 2023 · 7 comments
Open

Video that should be supported are crashing #69

SageSystems opened this issue Dec 6, 2023 · 7 comments
Labels
queue I'll try to fix/add it as soon as possible

Comments

@SageSystems
Copy link

Video encoded with ffmpeg -hwaccel auto -i "video" -c:v libx264 -tune animation -c:a libfdk_aac -vbr 3 -vf "scale=400:-2:flags=lanczos" -crf 18 -maxrate 500k -bufsize 300k -profile:v high -pix_fmt yuv420p -x264opts opencl -preset veryslow "video" is crashing upon playback

@SageSystems SageSystems changed the title Video that should be supported is crashing Video that should be supported are crashing Dec 6, 2023
@SageSystems
Copy link
Author

This is crashing mvd specifically

@Core-2-Extreme Core-2-Extreme added the queue I'll try to fix/add it as soon as possible label Dec 12, 2023
@moisespr123
Copy link

I can confirm. Using -preset medium works, but in previous versions, using -preset veryslow worked.

It seems using presets slow and slower are working. Only veryslow and potentially placebo is causing the crash.

@moisespr123
Copy link

I noticed that using slower presets with x264 makes the video start glitching around 25 to 30 minutes.

I currently am using Intel Quick Sync -h264_qsv with the -veryslow preset and that has been working nice. No glitches and the video plays smoothly.

@Core-2-Extreme
Copy link
Owner

Core-2-Extreme commented Apr 7, 2024

Video encoded with ffmpeg -hwaccel auto -i "video" -c:v libx264 -tune animation -c:a libfdk_aac -vbr 3 -vf "scale=400:-2:flags=lanczos" -crf 18 -maxrate 500k -bufsize 300k -profile:v high -pix_fmt yuv420p -x264opts opencl -preset veryslow "video" is crashing upon playback
This is crashing mvd specifically

I could reproduce the problem, increasing mvd buffer size solves the problem but current buffer size calculation is based on NEW 3DS Internet browser's mvd buffer size.

NEW3DS Internet browser uses MVD_DEFAULT_WORKBUF_SIZE(9438920 Bytes) and supports up to 854*480(864*480).
864*480*23 (9538560 Bytes) is greater than MVD_DEFAULT_WORKBUF_SIZE(9438920 Bytes), so I'm using width * height * 23 for buffer size calculation now.
To get your video working, I need to increase mvd buffer size from width * height * 23 (2060800 bytes) to width * height * 30 (2688000 bytes).

So I don't know how much buffer I should allocate based on video resolution.
(Allocating too much buffer for mvd can make video player itself out of memory)

@Core-2-Extreme
Copy link
Owner

I noticed that using slower presets with x264 makes the video start glitching around 25 to 30 minutes.

Does it occur only with hardware decoder (mvd)?
Does seek change the behavior?

@moisespr123
Copy link

I noticed that using slower presets with x264 makes the video start glitching around 25 to 30 minutes.

Does it occur only with hardware decoder (mvd)? Does seek change the behavior?

I noticed that using slower presets with x264 makes the video start glitching around 25 to 30 minutes.

Does it occur only with hardware decoder (mvd)? Does seek change the behavior?

I only tested on MVD. The solution is to stop the video and play it back again. Then it plays normally but glitches may still happen after another set of minutes.

Best solution is to just use x264 medium preset or use Intel Quick Sync which works at slower presets.

@Telicor
Copy link

Telicor commented Jul 10, 2024

The presets that I found out work correctly are h263p and mpeg4. These options seem to work the best with the 3DS hardware. Most Videos will play at a 20 to 25fps even if they are 24 minutes long. h264 crashes the system, hevc pauses but seeks well, av1 runs and pauses throughout the entire video.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
queue I'll try to fix/add it as soon as possible
Projects
None yet
Development

No branches or pull requests

4 participants