ffmpeg fails with user-agent on rtmp stream

Issue #708 resolved
Former user created an issue

When userAgent is added to ContentURLContainer, when thumbnail retrieval requires a UserAgent, and the stream URL protocol is rtmp, the resulting ffmpeg command will fail with -user-agent unknown.

ffmpeg.exe -analyzeduration 10000000 -user-agent "Mozilla/5.0 (Windows NT 6.1)" -i "rtmp://141.8.244.56/base playpath=pt2 pageUrl=http://sportsembed.com swfUrl=http://141.8.244.56/player/player.swf live=1"

the command needs to be:

ffmpeg.exe -analyzeduration 10000000 -i "rtmp://141.8.244.56/base playpath=pt2 pageUrl=http://sportsembed.com swfUrl=http://141.8.244.56/player/player.swf live=1"

-user-agent should only be added to the ffmpeg command when the url protocol is http.

Comments (4)

  1. Former user Account Deleted

    Same failure occurs with 1.4beta1 if protocol is rtsp -user-agent should only be added to the ffmpeg command when the url protocol is http.

  2. Log in to comment