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

RTMP INPUT/OUTPOT ERROR FROM FFMPEG #309

Open
OlexTratisky opened this issue Jun 16, 2020 · 12 comments
Open

RTMP INPUT/OUTPOT ERROR FROM FFMPEG #309

OlexTratisky opened this issue Jun 16, 2020 · 12 comments

Comments

@OlexTratisky
Copy link

hello,
I configured rtmp nginx module git with latest nginx 1.19 ffmpeg-git and i am having some intermittent random ffmpeg errors when trying to read with ffmpeg -i rtmp://..

I can see that in the ffmpeg debug log. So my question is what versions are you using for nginx/ffmpeg/rtmpmodule that would be stable? I am pretty sure it is a bug somewhere

Thanks

@winkmichael
Copy link

Why don't you post the ffmpeg debug log, and the nginx log in debug mode?

@OlexTratisky
Copy link
Author

The Problem is that it got logrotated. Which nginx version/ ffmpeg version are you using ? Do you mind sharing? I will post as soon as i see the bug again, it just happens randomly sometimes after days..

@OlexTratisky
Copy link
Author

Hello,
When decoding the stream encoded using OBS in nginx i am getting these errors:
h264 @ 0x6a09fc0] concealing 2224 DC, 2224 AC, 2224 MV errors in P frame
concealing 4379 DC, 4379 AC, 4379 MV errors in P frame
[h264 @ 0x6707ec0] concealing 4379 DC, 4379 AC, 4379 MV errors in P frame
[h264 @ 0x6973ec0] concealing 4379 DC, 4379 AC, 4379 MV errors in P frame
[h264 @ 0x6709800] error while decoding MB 102 47, bytestream -6
[h264 @ 0x6709800] concealing 2467 DC, 2467 AC, 2467 MV errors in P frame
[h264 @ 0x6630900] error while decoding MB 0 57, bytestream 11414
[h264 @ 0x6630900] concealing 1369 DC, 1369 AC, 1369 MV errors in P frame
[h264 @ 0x6801800] error while decoding MB 102 47, bytestream -6
concealing 2467 DC, 2467 AC, 2467 MV errors in P frame
[h264 @ 0x6728900] error while decoding MB 0 57, bytestream 11414
[h264 @ 0x6728900] concealing 1369 DC, 1369 AC, 1369 MV errors in P frame
[h264 @ 0x6a6d800] error while decoding MB 102 47, bytestream -6
[h264 @ 0x6a6d800] concealing 2467 DC, 2467 AC, 2467 MV errors in P frame
[h264 @ 0x6994900] error while decoding MB 0 57, bytestream 11414
[h264 @ 0x6994900] concealing 1369 DC, 1369 AC, 1369 MV errors in P frame
[h264 @ 0x6742200] error while decoding MB 0 58, bytestream 11955
[h264 @ 0x6742200] concealing 1249 DC, 1249 AC, 1249 MV errors in P frame
[h264 @ 0x6725d00] error while decoding MB 17 67, bytestream -6
[h264 @ 0x6725d00] concealing 152 DC, 152 AC, 152 MV errors in P frame
[h264 @ 0x683a200] error while decoding MB 0 58, bytestream 11955
[h264 @ 0x683a200] concealing 1249 DC, 1249 AC, 1249 MV errors in P frame
[h264 @ 0x681dd00] error while decoding MB 17 67, bytestream -6
[h264 @ 0x681dd00] concealing 152 DC, 152 AC, 152 MV errors in P frame
[h264 @ 0x6aa6200] error while decoding MB 0 58, bytestream 11955
[h264 @ 0x6a89d00] error while decoding MB 17 67, bytestream -6
[h264 @ 0x6aa6200] concealing 1249 DC, 1249 AC, 1249 MV errors in P frame
[h264 @ 0x6a89d00] concealing 152 DC, 152 AC, 152 MV errors in P frame
[h264 @ 0x675e740] error while decoding MB 9 64, bytestream -8

Any ideas please? Appreciate if you can point me what is a good stack to use : nginx version / OS / ffmpeg version that you are using in production

Thank you

@winkmichael
Copy link

The errors are fairly normal from ffmpeg, try turning down the log verbosity. This has nothing to do with nginx.

@OlexTratisky
Copy link
Author

How can i optimize nginx rtmp to handle a user broadcasting with bad connections? Can you please advise if there are some parameters that can help to handle such cases?
Thanks

@ctaity
Copy link

ctaity commented Jun 24, 2020 via email

@OlexTratisky
Copy link
Author

IS that SRT compatible with nginx rtmp module? do you use softwares like OBS to stream ? is that compatible?

@ctaity
Copy link

ctaity commented Jun 24, 2020 via email

@Fenrirthviti
Copy link

As a note here, using SRT with the ffmpeg listener is currently bugged. If the SRT stream disconnects, the socket gets hung and will cause issues, and ffmpeg needs to be restarted. Make sure this is not what is affecting you first.

@ctaity
Copy link

ctaity commented Jun 24, 2020 via email

@ctaity
Copy link

ctaity commented Jun 25, 2020 via email

@OlexTratisky
Copy link
Author

am still facing lot of issues with ffmpeg and nginx, at some point in time after few days i get this:
Please note that i am only using server side ffmpeg to isolate problems from network.

[flv @ 0x6c21580] Packet mismatch -1918848269 293580 924917207 [341/1612]
[flv @ 0x6c21580] Packet mismatch -2076003105 2560460 927477667
[flv @ 0x6c21580] Packet mismatch 1974594297 2070732 929548399
[flv @ 0x6c21580] Packet mismatch -1671945510 1111245 930659644
[flv @ 0x6c21580] Packet mismatch 158161671 297933 930957577
[flv @ 0x6c21580] Packet mismatch 885028740 798157 931755734
[flv @ 0x6c21580] Packet mismatch -72029355 2627533 934383267
[flv @ 0x6c21580] Packet mismatch -806552797 269517 934652784
[flv @ 0x6c21580] Packet mismatch -1533041720 1262541 935915325
[flv @ 0x6c21580] Packet mismatch -447672196 2002125 937917450
[flv @ 0x6c21580] Packet mismatch 1770265403 1466317 939383767
[flv @ 0x6c21580] Packet mismatch 511175632 2868173 942251940
[flv @ 0x6c21580] Packet mismatch -772796860 2314701 944566641
[flv @ 0x6c21580] Packet mismatch 685209519 1023693 945590334
[flv @ 0x6c21580] Unable to seek to the next packet
rtmp://localhost:1935/mediaengine/test123: Invalid data found when processing input frame=4583263 fps= 56 q=18.0 size=N/A time=21:13:06.70 bitrate=N/A dup=320 drop=0 speed=rtmp://localhost:1935/mediaengine/test123: Input/output error frame=4583264 fps= 28 q=17.0 size=N/A time=21:13:06.71 bitrate=N/A dup=320 drop=0 speed=rtmp://localhost:1935/mediaengine/test123: Input/output error
frame=4583265 fps= 28 q=16.0 size=N/A time=21:13:06.73 bitrate=N/A dup=320 drop=0 speed=rtmp://localhost:1935/mediaengine/test123: Input/output error
frame=4583266 fps= 28 q=15.0 size=N/A time=21:13:06.75 bitrate=N/A dup=320 drop=0 speed=[flv @ 0x6c21580] Packet mismatch 687524163 4286628 956159554 [flv @ 0x6c21580] Packet mismatch 1760235882 303566 956463120 [flv @ 0x6c21580] Unable to seek to the next packet
rtmp://localhost:1935/mediaengine/test123: Invalid data found when processing input
frame=4583267 fps= 28 q=18.0 size=N/A time=21:13:06.76 bitrate=N/A dup=320 drop=0 speed=rtmp://localhost:1935/mediaengine/test123: Input/output error frame=4583268 fps= 28 q=18.0 size=N/A time=21:13:06.78 bitrate=N/A dup=320 drop=0 speed=rtmp://localhost:1935/mediaengine/test123: Input/output error frame=4583269 fps= 28 q=18.0 size=N/A time=21:13:06.80 bitrate=N/A dup=320 drop=0 speed=rtmp://localhost:1935/mediaengine/test123: Input/output error
frame=4583270 fps= 28 q=18.0 size=N/A time=21:13:06.81 bitrate=N/A dup=320 drop=0 speed=rtmp://localhost:1935/mediaengine/test123: Input/output error
frame=4583271 fps= 28 q=17.0 size=N/A time=21:13:06.83 bitrate=N/A dup=320 drop=0 speed=rtmp://localhost:1935/mediaengine/test123: Input/output error frame=4583272 fps= 28 q=17.0 size=N/A time=21:13:06.85 bitrate=N/A dup=320 drop=0 speed=rtmp://localhost:1935/mediaengine/test123: Input/output error frame=4583273 fps= 28 q=18.0 size=N/A time=21:13:06.86 bitrate=N/A dup=320 drop=0 speed=rtmp://localhost:1935/mediaengine/test123: Input/output error
frame=4583274 fps= 28 q=17.0 size=N/A time=21:13:06.88 bitrate=N/A dup=320 drop=0 speed=[flv @ 0x6c21580] Packet mismatch -2113339392 14 977962230
[flv @ 0x6c21580] Packet mismatch 779709932 942798 978905028 [flv @ 0x6c21580] Packet mismatch -1335681402 278734 979183762 [flv @ 0x6c21580] Packet mismatch 1996382819 2190542 981374304
[flv @ 0x6c21580] Packet mismatch -1665973512 282574 981656878
[flv @ 0x6c21580] Packet mismatch 488647310 693454 982350332 [flv @ 0x6c21580] Unable to seek to the next packet rtmp://localhost:1935/mediaengine/test123: Invalid data found when processing input
frame=4583275 fps= 28 q=16.0 size=N/A time=21:13:06.90 bitrate=N/A dup=320 drop=0 speed=[flv @ 0x6c21580] invalid timestamps 163790983 168024208
[flv @ 0x6c21580] Packet mismatch -372841963 504 984075202
[flv @ 0x6c21580] Packet mismatch -1647360104 2405838 986481040
[flv @ 0x6c21580] Packet mismatch -434622757 6400718 992881758
[flv @ 0x6c21580] Packet mismatch -786489619 2307278 995189036

I am using ubuntu 20, nginx 1.17.2 / ffmpeg 4.1.2 system build

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

4 participants