I am trying to use OMXPlayer to request a stream from a URL, looking at the --cookie flag that is provided with OMXPlayer, I have tried doing something like this:

omxplayer -o hdmi --cookie "cookie information" http://stream-url.com/

It seems like the information after the cookie flag is a string, so I have tried entering the contents of a test cookie to see it shows up in the request made by OMXPlayer, but nothing is sent as a cookie in the request. Here is where I found the documentation on the different flags: https://www.raspberrypi.org/documentation/raspbian/applications/omxplayer.md

My question is if anyone has used the --cookie flag before in order to make a request like this successfully? Is there some kind of string formatting that I need to follow to get the cookie information to show up in the request made by OMXPlayer to the server?

  • run a test to see if any of the other parameters can be changed ... for example, try changing the --user-agent parameter
    – jsotola
    Jul 19, 2020 at 0:56
  • --user-agent doesn't seem to change anything either
    – Nexxus
    Jul 19, 2020 at 3:55

1 Answer 1


The value of omxplayer's cookie argument is passed on to ffmpeg. The format is based on http's Set-Cookie header, but appears to require a path attribute.

The following should work:

omxplayer --cookie "name=value; path=/" http://stream-url.com/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.