# RTSP stream not working

**URL:** <https://forums.screenly.io/t/rtsp-stream-not-working/1192>\
**Category:** Anthias\
**Created:** [September 28, 2023, 10:12am UTC](https://forums.screenly.io/t/rtsp-stream-not-working/1192 "2023-09-28T10:12:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![robban](https://avatars.discourse-cdn.com/v4/letter/r/b782af/32.png) [@robban](https://forums.screenly.io/u/robban)\
**Post date:** [September 28, 2023, 10:12am UTC](https://forums.screenly.io/t/rtsp-stream-not-working/1192/1 "2023-09-28T10:12:00Z")

</div>

Im having problems adding rtsp streams to my anthias installation.  
When I click save on Add asset I get this error message:  
Server Error: name “mplayer” is not defined

The stream is working, I can watch on VLC.  
What can I do to get this working?

Thanks!

---

<div class="post-metadata">

**Author:** ![robban](https://avatars.discourse-cdn.com/v4/letter/r/b782af/32.png) [@robban](https://forums.screenly.io/u/robban)\
**Post date:** [October 2, 2023, 1:08pm UTC](https://forums.screenly.io/t/rtsp-stream-not-working/1192/2 "2023-10-02T13:08:40Z")

</div>

No ideas on what I could do?  
I would really like to view my rtsp feed on the anthias.

---

<div class="post-metadata">

**Author:** ![vpetersson](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.screenly.io/vpetersson/32/8_2.png) [@vpetersson](https://forums.screenly.io/u/vpetersson)\
**Post date:** [October 3, 2023, 3:52pm UTC](https://forums.screenly.io/t/rtsp-stream-not-working/1192/3 "2023-10-03T15:52:10Z")

</div>

This is a known issue:

> <https://github.com/Screenly/Anthias/issues/1638>
>
> \#### Overview of the Issue
> 
> \#### Web UI
> 
> Alert \`Server Error: global name 'm…player' is not defined\` appears when adding a RSTP URL asset. (See screenshot below for details.)
> 
> !\[image\](https://user-images.githubusercontent.com/10234135/197049278-56fe7606-c44e-4cad-afe4-41a40d98e4f3.png)
> 
> \#### Logs
> 
> From the \`srly-ose-server\` service...
> 
> \`\`\`
> screenly-srly-ose-server-1 | Traceback (most recent call last):
> screenly-srly-ose-server-1 | File "server.py", line 672, in api\_view
> screenly-srly-ose-server-1 | return view(\*args, \*\*kwargs)
> screenly-srly-ose-server-1 | File "/usr/local/lib/python2.7/dist-packages/flask\_restful\_swagger\_2/swagger.py", line 219, in inner
> screenly-srly-ose-server-1 | return f(self, \*args, \*\*kwargs)
> screenly-srly-ose-server-1 | File "server.py", line 1002, in post
> screenly-srly-ose-server-1 | if not asset\['skip\_asset\_check'\] and url\_fails(asset\['uri'\]):
> screenly-srly-ose-server-1 | File "/usr/src/app/lib/utils.py", line 228, in url\_fails
> screenly-srly-ose-server-1 | run\_mplayer = mplayer('-identify', '-frames', '0', '-nosound', url)
> screenly-srly-ose-server-1 | NameError: global name 'mplayer' is not defined
> \`\`\`
> 
> \#### Reproduction Steps
> 
> Steps to reproduce this issue, eg:
> 
> \* Press Add Asset
> \* Enter the Asset URL \`rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny\_115k.mp4\`.
> \* Leave "Skip asset check" unchecked.
> \* Click "Save".
> 
> \#### Environment
> 
> \* Raspberry Pi Hardware Version: Raspberry Pi 4 Model B
> \* Raspberry Pi Network Setup: Built-In Version
> \* Screenly OSE Version: \`master\`, \`c785f75ce39518b4680373756ef3bb176d256a33\`

---

<div class="post-metadata">

**Author:** ![robban](https://avatars.discourse-cdn.com/v4/letter/r/b782af/32.png) [@robban](https://forums.screenly.io/u/robban)\
**Post date:** [October 5, 2023, 11:35am UTC](https://forums.screenly.io/t/rtsp-stream-not-working/1192/4 "2023-10-05T11:35:22Z")

</div>

Didn´t find this thread before.  
The sollution in this thread to change viewer.py and /lib/utils.py does not work for me.  
Still does not play the RTSP stream.

If it has been a known issue for this long, are there a permanent fix for it coming soon?

---

<div class="post-metadata">

**Author:** ![vpetersson](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.screenly.io/vpetersson/32/8_2.png) [@vpetersson](https://forums.screenly.io/u/vpetersson)\
**Post date:** [October 5, 2023, 12:19pm UTC](https://forums.screenly.io/t/rtsp-stream-not-working/1192/5 "2023-10-05T12:19:18Z")

</div>

It’s not on the short term priority list. The efforts are spent on some tech debt at the moment. Having said that, contributions would be welcome.
