-
Notifications
You must be signed in to change notification settings - Fork 103
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
4K @ 60 FPS audio crackling #91
Comments
Thanks @JonasZieker, first of all it would help if you can provide a video with the issue. Generally, Flyleaf will push audio frames only at exact timestamps to ensure audio/video sync. You can try the following to identify the issue:
|
Okay seems like my Laptop just havn't had enough processing Power for the Player. Sorry for the false Alarm and thank you for the quick response! |
Hallo, sorry for asking again but i now have better Hardware but got still Problems. I have tryed your suggestions with following result:
|
Hey @JonasZieker, does 1) mean that it works fine with the latest version? Can you provide a log file? |
Hey @SuRGeoNix i have updated to 3.5.6 and now it is better but still not as good as i could be. with 1 i mean that i cannot find such a setting. What Logfile do you need? The first run log? |
Here is the First Run Log
09.28.30.533 | Info | [FlyleafEngine] Audio Devices 09.28.31.476 | Info | [FlyleafEngine] Plugin loaded (OpenDefault - 3.5.6.0) 09.28.31.978 | Debug | [#1] [Renderer ] D3D11 Video ProcessorMaxInputStreams 5 [Video Processor Device Caps] [Video Processor Feature Caps] [Video Processor Stereo Caps] [Video Processor Input Format Caps] [Video Processor Filter Caps] [Video Processor Input Format Caps] [Video Processor Rate Conversion Caps #0]
09.28.31.979 | Info | [#1] [Renderer ] D3D11 Video Processor Initialized (Rate Caps #0) |
I will need to a log when the issue happens. Set a log file from settings and set Log Level to Debug (set FFmpeg log to Info). Then open the video that causes the audio issue until it happens (few seconds are enough). Please attach the file instead of copy paste it here so I can ready it easily. (By the way, there is no latency settings anymore as it plays on zero latency) |
Hallo again. Thats a very cool Logwriter. Here the File. The Original Movie goes 15 minutes and i only played 2 mins. At Timestamp 00:32 was a big crack in audio. |
I see that the problem is that it cannot handle to play 4K @ 60 fps. You said others players can handle this? |
Yes the normal windows media Player that comes with windows 11 plays it fluently. Would it encounter the Problem if i reduce the Framerate to 30Hz? |
You can try to edit the Flyleaf.Config.xml and change the MaxVideoFrames to something bigger (maybe 20). Requires restarting the application. |
I guess it will play at 30Hz. This is not an issue with Flyleaf as I can play 4K @ 60 fps without any issues. I guess you having this issue only with these formats? You might be able to resolve it by changing MaxVideoFrames (try also smaller eg. 2). |
Thank you for youre Help. I realy appreciate it. With the now gatthered information i will make some further testing and will reply later. |
No problem, let me know how it goes when you test it. If you can play it without issues on Windows Media Player then I will have to see how I can allow more not accurate framerate to be able to play it without audio crackling. |
Hallo, so i Player with the settings and it good a small bit better setting the Max framerate to 35 but it still Gold issues. I tried other 4k60 Videos and they run perfekt. So i Konverted by problematic Movie from HEVC to H264 Codec and reduced framrate to 30Hz. I also changed the Resolution from WQUXGA to WUXGA and now it also runs nice and smooth. For now my Issue is solved but it would still be nice to know if theres another way than going down in res. (or maybe my movie is just poorly made :D) Thank you again For your time |
I will review also my code. As this does not seem to be a hardware issue. Just not easy for me to fix it as I cannot reproduce it. I have just remembered a part of the code for exact this issue that I have a note. I will use also a config property for the rendering buffers so you can increase those as well. This is promising as you said by reducing your display's resolution it works better. It means that the problem was with the rendering time rather than decoding (which is still happens at 4K). Can you provide also a dxdiag (Save All Information to a file)? I want to check your display's pixel output format etc. Edit: I see from your log that the issue was with 1920x1080 output display (not 4K) and with h264 not h265 (hevc). Additionally, the video is not 3840x2160 but 3840x2400 (which is higher than 4K). Generally, there is no point or it is even worse when you play higher resolution videos from what your display supports. |
* Introduces Config.Video.Swap10Bit to use 10-bit instead of 8-bit swap chain * Introduces Config.Video.SwapBuffers to manually set render's swap chain buffers
@JonasZieker after your great support with your feedback I think you can have a smooth playback with the new configuration that I have exposed. Use Swap10bit (set to true) and about 7 SwapBuffers. I've notice that you didn't use the latest version from your log? It was compiled for ffmpeg v5 and you used ffmpeg v4. Make sure you have ffmpeg 5 libraries (download if required from releases) and then I've created a compiled version from the master if you can't do it yourself easily and you can get it here. Is just the executable not the libraries. (Delete old configs xml files, run the application to create them, close it, edit the config and then test it) |
@JonasZieker I'm closing this as others not having issues even with 2 buffers. Feel free to re-open it if you still have issues. |
I realy love the Player but on some videos the sound has some crackling noises which dont come from the video itself. unfortunatly i wasn't able to find the issue. Am i the only one having this problem?
The text was updated successfully, but these errors were encountered: