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 stream not working in landscape orientation #39

Closed
rituraj22 opened this issue Mar 11, 2018 · 3 comments
Closed

Video stream not working in landscape orientation #39

rituraj22 opened this issue Mar 11, 2018 · 3 comments
Labels

Comments

@rituraj22
Copy link

Whenever, i rotate my phone to landscape, the video stream gets corrupt, but the keyboard input still functions, and when i turn phone back to potrait mode, video stream resumes.

My phone model and android version are:

Micromax Canvas A1 (AQ4501)
sprout4
Android 6.0.1

Following is the terminal output:

INFO: Initial texture: 480x854
[h264 @ 0x7fb0c80008c0] Reinit context to 848x480, pix_fmt: yuv420p
[h264 @ 0x7fb0c80008c0] left block unavailable for requested intra mode at 0 1
[h264 @ 0x7fb0c80008c0] error while decoding MB 0 1
[h264 @ 0x7fb0c80008c0] concealing 1586 DC, 1586 AC, 1586 MV errors in I frame
[h264 @ 0x7fb0c80008c0] mb_type 218 in P slice too large at 14 7
[h264 @ 0x7fb0c80008c0] error while decoding MB 14 7
[h264 @ 0x7fb0c80008c0] concealing 1254 DC, 1254 AC, 1254 MV errors in P frame
[h264 @ 0x7fb0c80008c0] P sub_mb_type 4 out of range at 38 1
[h264 @ 0x7fb0c80008c0] error while decoding MB 38 1
[h264 @ 0x7fb0c80008c0] concealing 1548 DC, 1548 AC, 1548 MV errors in P frame
[h264 @ 0x7fb0c80008c0] P sub_mb_type 4 out of range at 7 6
[h264 @ 0x7fb0c80008c0] error while decoding MB 7 6
[h264 @ 0x7fb0c80008c0] concealing 1314 DC, 1314 AC, 1314 MV errors in P frame
[h264 @ 0x7fb0c80008c0] dquant out of range (-59) at 33 2
[h264 @ 0x7fb0c80008c0] error while decoding MB 33 2
[h264 @ 0x7fb0c80008c0] concealing 1500 DC, 1500 AC, 1500 MV errors in P frame
[h264 @ 0x7fb0c80008c0] cbp too large (51) at 31 5
[h264 @ 0x7fb0c80008c0] error while decoding MB 31 5
[h264 @ 0x7fb0c80008c0] concealing 1343 DC, 1343 AC, 1343 MV errors in P frame
[h264 @ 0x7fb0c80008c0] left block unavailable for requested intra mode at 0 1
[h264 @ 0x7fb0c80008c0] error while decoding MB 0 1
[h264 @ 0x7fb0c80008c0] concealing 1586 DC, 1586 AC, 1586 MV errors in P frame
[h264 @ 0x7fb0c80008c0] cbp too large (112) at 50 1
[h264 @ 0x7fb0c80008c0] error while decoding MB 50 1
[h264 @ 0x7fb0c80008c0] concealing 1536 DC, 1536 AC, 1536 MV errors in P frame
[h264 @ 0x7fb0c80008c0] mb_type 241 in P slice too large at 43 1
[h264 @ 0x7fb0c80008c0] error while decoding MB 43 1
[h264 @ 0x7fb0c80008c0] concealing 1543 DC, 1543 AC, 1543 MV errors in P frame
[h264 @ 0x7fb0c80008c0] mb_type 167 in P slice too large at 26 1
[h264 @ 0x7fb0c80008c0] error while decoding MB 26 1
[h264 @ 0x7fb0c80008c0] concealing 1560 DC, 1560 AC, 1560 MV errors in P frame
[h264 @ 0x7fb0c80008c0] out of range intra chroma pred mode at 29 1
[h264 @ 0x7fb0c80008c0] error while decoding MB 29 1
[h264 @ 0x7fb0c80008c0] concealing 1557 DC, 1557 AC, 1557 MV errors in P frame
[h264 @ 0x7fb0c80008c0] P sub_mb_type 32 out of range at 19 2
[h264 @ 0x7fb0c80008c0] error while decoding MB 19 2
[h264 @ 0x7fb0c80008c0] concealing 1514 DC, 1514 AC, 1514 MV errors in P frame
[h264 @ 0x7fb0c80008c0] mb_type 34 in P slice too large at 27 1
[h264 @ 0x7fb0c80008c0] error while decoding MB 27 1
[h264 @ 0x7fb0c80008c0] concealing 1559 DC, 1559 AC, 1559 MV errors in P frame
[h264 @ 0x7fb0c80008c0] mb_type 220 in P slice too large at 42 1
[h264 @ 0x7fb0c80008c0] error while decoding MB 42 1
[h264 @ 0x7fb0c80008c0] concealing 1544 DC, 1544 AC, 1544 MV errors in P frame
[h264 @ 0x7fb0c80008c0] negative number of zero coeffs at 24 1
[h264 @ 0x7fb0c80008c0] error while decoding MB 24 1
[h264 @ 0x7fb0c80008c0] concealing 1562 DC, 1562 AC, 1562 MV errors in P frame
[h264 @ 0x7fb0c80008c0] out of range intra chroma pred mode at 31 1
[h264 @ 0x7fb0c80008c0] error while decoding MB 31 1
[h264 @ 0x7fb0c80008c0] concealing 1555 DC, 1555 AC, 1555 MV errors in P frame
[h264 @ 0x7fb0c80008c0] dquant out of range (1522) at 46 1
[h264 @ 0x7fb0c80008c0] error while decoding MB 46 1
[h264 @ 0x7fb0c80008c0] concealing 1540 DC, 1540 AC, 1540 MV errors in P frame
[h264 @ 0x7fb0c80008c0] mb_type 1619 in P slice too large at 33 1
[h264 @ 0x7fb0c80008c0] error while decoding MB 33 1
[h264 @ 0x7fb0c80008c0] concealing 1553 DC, 1553 AC, 1553 MV errors in P frame
[h264 @ 0x7fb0c80008c0] corrupted macroblock 26 1 (total_coeff=-1)
[h264 @ 0x7fb0c80008c0] error while decoding MB 26 1
[h264 @ 0x7fb0c80008c0] concealing 1560 DC, 1560 AC, 1560 MV errors in P frame
[h264 @ 0x7fb0c80008c0] mb_type 47 in P slice too large at 52 2
[h264 @ 0x7fb0c80008c0] error while decoding MB 52 2
[h264 @ 0x7fb0c80008c0] concealing 1481 DC, 1481 AC, 1481 MV errors in P frame
[h264 @ 0x7fb0c80008c0] cbp too large (119) at 36 1
[h264 @ 0x7fb0c80008c0] error while decoding MB 36 1
[h264 @ 0x7fb0c80008c0] concealing 1550 DC, 1550 AC, 1550 MV errors in P frame
[h264 @ 0x7fb0c80008c0] out of range intra chroma pred mode at 28 15
[h264 @ 0x7fb0c80008c0] error while decoding MB 28 15
[h264 @ 0x7fb0c80008c0] concealing 816 DC, 816 AC, 816 MV errors in P frame
[h264 @ 0x7fb0c80008c0] P sub_mb_type 17 out of range at 45 11
[h264 @ 0x7fb0c80008c0] error while decoding MB 45 11
[h264 @ 0x7fb0c80008c0] concealing 1011 DC, 1011 AC, 1011 MV errors in P frame
[h264 @ 0x7fb0c80008c0] out of range intra chroma pred mode at 29 16
[h264 @ 0x7fb0c80008c0] error while decoding MB 29 16
[h264 @ 0x7fb0c80008c0] concealing 762 DC, 762 AC, 762 MV errors in P frame
[h264 @ 0x7fb0c80008c0] mb_type 142 in P slice too large at 31 1
[h264 @ 0x7fb0c80008c0] error while decoding MB 31 1
[h264 @ 0x7fb0c80008c0] concealing 1555 DC, 1555 AC, 1555 MV errors in P frame
[h264 @ 0x7fb0c80008c0] cbp too large (69) at 10 15
[h264 @ 0x7fb0c80008c0] error while decoding MB 10 15
[h264 @ 0x7fb0c80008c0] concealing 834 DC, 834 AC, 834 MV errors in P frame
[h264 @ 0x7fb0c80008c0] left block unavailable for requested intra mode at 0 1
[h264 @ 0x7fb0c80008c0] error while decoding MB 0 1
[h264 @ 0x7fb0c80008c0] concealing 1586 DC, 1586 AC, 1586 MV errors in I frame
[h264 @ 0x7fb0c80008c0] cbp too large (239) at 51 1
[h264 @ 0x7fb0c80008c0] error while decoding MB 51 1
[h264 @ 0x7fb0c80008c0] concealing 1535 DC, 1535 AC, 1535 MV errors in P frame
[h264 @ 0x7fb0c80008c0] cbp too large (435) at 44 1
[h264 @ 0x7fb0c80008c0] error while decoding MB 44 1
[h264 @ 0x7fb0c80008c0] concealing 1542 DC, 1542 AC, 1542 MV errors in P frame
[h264 @ 0x7fb0c80008c0] corrupted macroblock 39 1 (total_coeff=-1)
[h264 @ 0x7fb0c80008c0] error while decoding MB 39 1
[h264 @ 0x7fb0c80008c0] concealing 1547 DC, 1547 AC, 1547 MV errors in P frame
[h264 @ 0x7fb0c80008c0] left block unavailable for requested intra mode at 0 1
[h264 @ 0x7fb0c80008c0] error while decoding MB 0 1
[h264 @ 0x7fb0c80008c0] concealing 1586 DC, 1586 AC, 1586 MV errors in I frame
[h264 @ 0x7fb0c80008c0] concealing 4 DC, 4 AC, 4 MV errors in P frame
[h264 @ 0x7fb0c80008c0] concealing 2 DC, 2 AC, 2 MV errors in P frame
[h264 @ 0x7fb0c80008c0] left block unavailable for requested intra mode at 0 1
[h264 @ 0x7fb0c80008c0] error while decoding MB 0 1
[h264 @ 0x7fb0c80008c0] concealing 1586 DC, 1586 AC, 1586 MV errors in I frame
[h264 @ 0x7fb0c80008c0] dquant out of range (-8229) at 40 1
[h264 @ 0x7fb0c80008c0] error while decoding MB 40 1
[h264 @ 0x7fb0c80008c0] concealing 1546 DC, 1546 AC, 1546 MV errors in P frame
[h264 @ 0x7fb0c80008c0] negative number of zero coeffs at 33 1
[h264 @ 0x7fb0c80008c0] error while decoding MB 33 1
[h264 @ 0x7fb0c80008c0] concealing 1553 DC, 1553 AC, 1553 MV errors in P frame
[h264 @ 0x7fb0c80008c0] negative number of zero coeffs at 38 1
[h264 @ 0x7fb0c80008c0] error while decoding MB 38 1
[h264 @ 0x7fb0c80008c0] concealing 1548 DC, 1548 AC, 1548 MV errors in P frame
[h264 @ 0x7fb0c80008c0] left block unavailable for requested intra mode at 0 1
[h264 @ 0x7fb0c80008c0] error while decoding MB 0 1
[h264 @ 0x7fb0c80008c0] concealing 1586 DC, 1586 AC, 1586 MV errors in I frame
[h264 @ 0x7fb0c80008c0] corrupted macroblock 39 1 (total_coeff=-1)
[h264 @ 0x7fb0c80008c0] error while decoding MB 39 1
[h264 @ 0x7fb0c80008c0] concealing 1547 DC, 1547 AC, 1547 MV errors in P frame
[h264 @ 0x7fb0c80008c0] corrupted macroblock 39 1 (total_coeff=-1)
[h264 @ 0x7fb0c80008c0] error while decoding MB 39 1
[h264 @ 0x7fb0c80008c0] concealing 1547 DC, 1547 AC, 1547 MV errors in P frame
[h264 @ 0x7fb0c80008c0] concealing 1 DC, 1 AC, 1 MV errors in P frame
[h264 @ 0x7fb0c80008c0] left block unavailable for requested intra mode at 0 1
[h264 @ 0x7fb0c80008c0] error while decoding MB 0 1
[h264 @ 0x7fb0c80008c0] concealing 1586 DC, 1586 AC, 1586 MV errors in I frame
[h264 @ 0x7fb0c80008c0] left block unavailable for requested intra mode at 0 1
[h264 @ 0x7fb0c80008c0] error while decoding MB 0 1
@rom1v rom1v added the bug label Mar 11, 2018
@rom1v
Copy link
Collaborator

rom1v commented Mar 11, 2018

Thank you for the report.

Could you test whether this server fixes the problem, please:

issue-39/scrcpy-server.jar
sha256: 077b4231a131c33a3c901b8a8962b5392071ac18e8610ca25ee10c43e2d39279

@rituraj22
Copy link
Author

@rom1v Yeah it works now!

rom1v added a commit that referenced this issue Mar 11, 2018
The codec only supports dimensions which are multiple of 8.

Thus, when --max-size is specified, the value is always rounded down to
the nearest multiple of 8.

However, it was wrongly assumed that the physical size is always a
multiple of 8. To support such devices, also round down the physical
screen dimensions.

Fixes <#39>.
@rom1v
Copy link
Collaborator

rom1v commented Mar 11, 2018

Fixed in dev branch.

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

No branches or pull requests

2 participants