Overriding tcUrl and other options with ffplay

Published: 2018-07-09 11:15:57 +0000
Categories: BASH,




Various non-standard RTMP applications rely on the the values of attributes that are commonly passed in as part of a PLAY call, such as tcUrl, pageUrl etc. Sometimes this is for authentication (and content protection) purposes, sometimes it's to implement a DNS name based namespace so that different domains can share the same app. With ffmpeg and ffplay it's possible to override tcUrl and other variables with a command line option

Based On


# Command line options

-rtmp_flashver = The Flashversion to send to the server. default is LNX 9,0,124,2
-rtmp_pageurl = URL of the web page in which the media was embedded. By default no value will be sent. 
-rtmp_swfurl = The URL of the SWF player being used. By default not value is sent
-rtmp_tcurl = URL of the target stream's app. The default is rtmp://host[:port]/app

Usage Example

# Play back from a specific machine but include a tcUrl which acts as though you were using the domain
ffplay -rtmp_tcurl rtmp://rtmp.example.com/myapp rtmp://

# Include a pageurl for servers that do a sort of referrer check
ffplay -rtmp_pageurl http://rtmp.example.com/mywebpage rtmp://rtmp.example.com/myapp/mystream


ffplay, RTMP, playback, options, tcUrl, override,

Latest Posts

Urldecode string (LUA)
FFMPEG Convert YUV444p to YUV420p (BASH)
Forcing FFMPEG to honour segment length in HLS Stream Creator (BASH)
Force CURL to place request to a specific IP (BASH)
Set a variable only if it is undefined (Javascript)
Ignore query string with Nginx caching proxy (NGinx)
Get breakdown of UK and non-UK votes for a Parliamentary Petition (Python)
Decompress Mozilla Firefox jsonlz4 bookmark backup files (Python)
Setting Git author details for a single repo (Git)
Checking Virtual Machine Resource Allocations with Libvirt (BASH)

Copyright © 2019 Ben Tasker | Sitemap | Privacy Policy
Available at snippets.bentasker.co.uk and snippets.6zdgh5a5e6zpchdz.onion