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 stream hangs after a day of playback #615

Open
lukasmican opened this issue Mar 12, 2018 · 3 comments
Open

RTMP stream hangs after a day of playback #615

lukasmican opened this issue Mar 12, 2018 · 3 comments

Comments

@lukasmican
Copy link

lukasmican commented Mar 12, 2018

Hello,
I am using omxplayer to play RTMP stream to HDMI TV. It is supposed to play the stream for weeks or even months without stopping, but after a day the playback stopped and the image on screen looked like the video was paused. Values in stats were strange too. Normaly stats look like this:
M:233595403 V: 0.62s 0k/ 4800k A: 0.62 0.43s/ 6.07s Cv: 0k Ca: 0k
But after the playback stopped, the stats looked like this:
M:15673529318 V:4196039.50s 4800k/ 4800k A:4196037.00 4196036.50s/ 6.07s Cv: 10236k Ca: 1607k M:15673699136 V:4196039.00s 4800k/ 4800k A:4196037.00 4196036.50s/ 6.07s Cv: 10236k Ca: 1607k M:15673870192 V:4196039.00s 4800k/ 4800k A:4196036.50 4196036.50s/ 6.07s Cv: 10236k Ca: 1607k M:15674038372 V:4196038.50s 4800k/ 4800k A:4196036.50 4196036.00s/ 6.07s Cv: 10236k Ca: 1607k M:15674207351 V:4196038.50s 4800k/ 4800k A:4196036.50 4196036.00s/ 6.07s Cv: 10236k Ca: 1607k M:15674378944 V:4196038.50s 4800k/ 4800k A:4196036.00 4196036.00s/ 6.07s Cv: 10236k Ca: 1607k M:15674549517 V:4196038.00s 4800k/ 4800k A:4196036.00 4196035.50s/ 6.07s Cv: 10236k Ca: 1607k M:15674719479 V:4196038.00s 4800k/ 4800k A:4196036.00 4196035.50s/ 6.07s Cv: 10236k Ca: 1607k M:15674888066 V:4196038.00s 4800k/ 4800k A:4196035.50 4196035.50s/ 6.07s Cv: 10236k Ca: 1607k M:15675057536 V:4196037.50s 4800k/ 4800k A:4196035.50 4196035.00s/ 6.07s Cv: 10236k Ca: 1607k M:15675227744 V:4196037.50s 4800k/ 4800k A:4196035.50 4196035.00s/ 6.07s Cv: 10236k Ca: 1607k M:15675396418 V:4196037.50s 4800k/ 4800k A:4196035.00 4196035.00s/ 6.07s Cv: 10236k Ca: 1607k M:15675565314 V:4196037.00s 4800k/ 4800k A:4196035.00 4196034.50s/ 6.07s Cv: 10236k Ca: 1607k
How can I play the stream for weeks without stopping?
My version of omxplayer:
omxplayer - Commandline multimedia player for the Raspberry Pi
Build date: Sun, 11 Mar 2018 11:37:45 +0000
Version : 2ee17b2 [master]
Repository: https://github.com/popcornmix/omxplayer.git
Kernel version is 4.9.59-v7+
Omxplayer command: omxplayer --adev hdmi --nodeinterlace --stats --no-osd --no-keys --live --timeout 5s rtmp://......

Thank you

@lukasmican lukasmican changed the title RTMP stream hangs after RTMP stream hangs after a day of playback Mar 12, 2018
@StCyr
Copy link

StCyr commented Mar 19, 2018

as a workaround: Can't you setup a cron job to restart omxplayer periodically?

Additionaly: Does it hang or does it crash?

Br,

@lukasmican
Copy link
Author

I have set up a simple watchdog that restarts the player process if network activity is low. This is just a temporary solution, because the restart results in 10 sec of black screen. The playback is publicly visible, so any black screens or lags are not desired.

When the playback hangs, the video on screen freezes, but stats on command line continue normally, except for the strange values (as posted in my inital post).

@StCyr
Copy link

StCyr commented Apr 20, 2018

I think the stats you see after the screen freezes mean that your buffers are full.

So, it seems there's something wrong at the end of the chain (bmc driver bug?)

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