VOD, stream alias and streaming over HTTP problems
Here is what I have:
- mp4 files in media folder
- in configuration I have set the following parameters to true
- hasStreamAliases (config.lua)
- hasIngestPoints (config.lua)
- hasGroupNameAliases (webconfig.json)
- the reason is I don’t want to have direct links toward media sources in webpages/devices
- and I want that each session gets it’s own alias and cannot share media link to the other session/user
- pullstream uri=rtmp://…/vod/xxx.mp4 localname=test
- use VLC to play video at URI: http://localhost:9999/test
- pullstream command reports success
- addstreamalias also reports success (addStreamAlias localStreamName=test aliasName=123 )
- use VLC URI: http://localhost:9999/123 seems not to be working
- why I’m missing few seconds of video start (aliases disabled)?
- how to support VOD/mp4 without doing pullstream and is it possible? (HTML5 browsers now can stream mp4 directly if I’m not wrong)?
- how to setup EVO to support aliases on VOD, over HTTP(S) and what is the right command flow (in docs this is not covered properly)?
- do VOD files by default have some “localname” value or there is command I missed to issue to setup local name for VOD?
6 Answers
Hi keiser!
Apologies for the editor. 😀
First, can we ask for your use case to better understand your needs?
Regards,
User case (simplified and focused to just streaming):
- user requests mp4 (or live stream) video, on desktop browser or mobile device
- each request for the same video reproduction is unique per each user and device (by request id) and only usable once (the same video url cannot be used more then once)
- mp4 files are uploaded to media folder and can be reproduced without aliases over HTTP
- mp4 HLS works but here I don’t want to have processing of the files for reproduction on every request
- For desktop users I would like to use “video over HTTP” with above described rules
- For mobile device I would like to use HLS, prepared upon video (mp4 file) upload through administration.
- for each user request I can/already doing API calls towards EVO services to issue commands to prepare aliases but here I’m not sure for the sequence of commands that need to be issued to get wanted behavior
- do I need aliasing at all?
- Windows 10 PRO, i9 CPU, 32GB RAM
Hello keiser!
Thank you for the use cases and we are sorry for the late response.
Question:
1. Is your source stream an mp4 file?
2. All URL playbacks for mobile and desktop can only be used once? Can you also send us the log files? Thank you!
1. Is your source stream an mp4 file?
2. All URL playbacks for mobile and desktop can only be used once? Can you also send us the log files? Thank you!
Hi Erika,
Peer 2: http://[EVO ADDRESS]/{guid2}
Peer 3: http://[EVO ADDRESS]/{guid3} and so on. I can share logs, but at the moment I’m not sure what to share as I’m not able to produce this behavior. So please let me know what would be proper course of action (commands) executed for FileOne.mp4 (located in media folder) to be able to cover my use case. I tried to use autoHLS option, but it seems this is constantly creating over and over files. Tell what cases you wish me to cover in logs, so I can filter out logs you need to speed up analysis on your side. KR,
K.
- yes, for now source is mp4 file.
- maybe I wasn’t clear enough and I will try to explain. So lets say I have “FileOne.mp4” that I want to be shared among numerous peers.
Peer 2: http://[EVO ADDRESS]/{guid2}
Peer 3: http://[EVO ADDRESS]/{guid3} and so on. I can share logs, but at the moment I’m not sure what to share as I’m not able to produce this behavior. So please let me know what would be proper course of action (commands) executed for FileOne.mp4 (located in media folder) to be able to cover my use case. I tried to use autoHLS option, but it seems this is constantly creating over and over files. Tell what cases you wish me to cover in logs, so I can filter out logs you need to speed up analysis on your side. KR,
K.
Hi keiser,
If you will use playback over HTTP, we cannot use the direct aliasing to VOD since the playback of VOD is not yet supported using HTTP (9999).
We will, however, use the pullstream and addstreamalias to the VOD file.
-
Pull stream the VOD source file (pullStream uri=rtsp://<Server_Address>:5544/vod/<filename.mp4> localStreamname=<localStreamName>)
-
Add alias name (addStreamAlias localStreamName=<localStreamName> aliasName=<aliasName> expirePeriod=-600)
-
Playback via HTTP (http://<Server_Address:9999/aliasName)
autoHLS=For the HLS aliasing:
{
targetFolder=”C:\\EvoStream\\evo-webroot”,
groupName=”groupA”,
playlistType=”rolling”, },
-
Pull stream the VOD source file (pullStream uri=rtsp://<Server_Address>:5544/vod/<filename.mp4> localStreamname=<localStreamName>)
-
Create HLS file (createHLSStream localStreamname=<localStreamName> targetfolder=<webrootFolder> groupname=<groupName>)
-
Issue a group name alias (addGroupNameAlias groupName=<groupName> aliasName=<groupAliasName>)
-
Playback (http://<Server_Address>:<Web_Server_Port>/<Alias>)