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

High resolutions don't work #40

Open
DarkoGNU opened this issue Apr 29, 2020 · 1 comment
Open

High resolutions don't work #40

DarkoGNU opened this issue Apr 29, 2020 · 1 comment

Comments

@DarkoGNU
Copy link

My phone is Galaxy S7, Android 8.0.0 stock. 352x288, 30 FPS seems to be the best I can get.

Here's what I get when the preview in VLC works, but FPS and resolution don't match:
[darkognu@DarkoGNU ~]$ vlc "rtsp://192.168.0.104:8086?h264=5000-60-480-360"
VLC media player 3.0.9.2 Vetinari (revision 3.0.9.2-0-gd4c1aefe4d)
[0000555cb84e65b0] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
Created new TCP socket 26 for connection
[00007f279000b6b0] avcodec decoder: Using NVIDIA VDPAU Driver Shared Library 440.82 Wed Apr 1 19:39:06 UTC 2020 for hardware decoding
[00007f279000b6b0] main decoder error: buffer deadlock prevented

Here's what I get when it doesn't work at all:
[darkognu@DarkoGNU ~]$ vlc "rtsp://192.168.0.104:8086?h264=5000-60-1920-1080"
VLC media player 3.0.9.2 Vetinari (revision 3.0.9.2-0-gd4c1aefe4d)
[0000561997f515b0] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
Created new TCP socket 26 for connection
[00007f08ec001140] live555 demux error: SETUP of'video/H264' failed 500 Internal Server Error
[00007f08ec001140] live555 demux error: Nothing to play for rtsp://192.168.0.104:8086?h264=5000-60-1920-1080
[00007f08ec002f50] satip stream error: Failed to setup RTSP session
Created new TCP socket 27 for connection
[00007f08ec009710] live555 demux error: SETUP of'video/H264' failed 500 Internal Server Error

And it repeats. Any ideas?

@javaing
Copy link

javaing commented May 4, 2023

maybe try to mark the mMode =, that line:
if (mQuality.resX>=640) {
// Using the MediaCodec API with the buffer method for high resolutions is too slow
Log.e(TAG,"Using the MediaCodec API with the buffer method for high resolutions is too slow");
//mMode = MODE_MEDIARECORDER_API;
}

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

No branches or pull requests

2 participants