Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Error on 1920x1080 videos in mp4, Could not find codec parameters for stream 0 #69

Open
roiniti opened this issue Jun 28, 2021 · 2 comments

Comments

@roiniti
Copy link

roiniti commented Jun 28, 2021

I think this error only happens on mp4 videos 1080p or better quality, i don't know if anyone knows how to solve the problem but this is the error that i get:
AL lib: (EE) alc_cleanup: 1 device not closed [mov,mp4,m4a,3gp,3g2,mj2 @ 000001ba4cdce960] stream 0, offset 0x30: partial file [mov,mp4,m4a,3gp,3g2,mj2 @ 000001ba4cdce960] Could not find codec parameters for stream 0 (Video: h264 (avc1 / 0x31637661), 1920x1080, 295 kb/s): unspecified pixel format Consider increasing the value for the 'analyzeduration' and 'probesize' options Assertion desc failed at /gdx-video/gdx-video-desktop/FFmpeg/libswscale/swscale_internal.h:646

also i get this error on other mp4 video
java.lang.Exception: Could not find stream info! at com.badlogic.gdx.video.VideoDecoder.loadStream(Native Method) at com.badlogic.gdx.video.CommonVideoPlayerDesktop.play(CommonVideoPlayerDesktop.java:89) at com.roiniti.jams.testP.GdxVideoTest.updateButtons(GdxVideoTest.java:83) at com.roiniti.jams.testP.GdxVideoTest.render(GdxVideoTest.java:73) at com.badlogic.gdx.Game.render(Game.java:46) at com.roiniti.jams.JAMS.render(JAMS.java:175) at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Window.update(Lwjgl3Window.java:403) at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.loop(Lwjgl3Application.java:143) at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.<init>(Lwjgl3Application.java:116) at com.roiniti.jams.desktop.AplicationThread$2.<init>(AplicationThread.java:47) at com.roiniti.jams.desktop.AplicationThread.run(AplicationThread.java:47)

any ideas?

@SimonIT
Copy link
Member

SimonIT commented Jun 28, 2021

That's probably the location where the error happens:

if (avformat_find_stream_info(formatContext, NULL) < 0) {
logError("[VideoPlayer::loadFile] Could not find stream info!\n");
throw std::runtime_error("Could not find stream info!");
}

@roiniti
Copy link
Author

roiniti commented Jun 28, 2021

For the stream info i think its some decoder missing problem, I examinated the file and its audio its TWOS, I think its a format but i don't know exactly normally the audio its in mp4a format.
For the other error do you know what's happening?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants