Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception: Invalid UrlPattern! #2

Open
i-akbari opened this issue Jul 10, 2018 · 2 comments
Open

Exception: Invalid UrlPattern! #2

i-akbari opened this issue Jul 10, 2018 · 2 comments

Comments

@i-akbari
Copy link

i-akbari commented Jul 10, 2018

I have a MSS stream created by Wowza streaming engine. When I run the below command on Ubuntu 14.04 I get Invalid UrlPattern! error.

./smoothget.exe http://172.30.110.26:1935/live/mp4:stream1/Manifest out/
or
./smoothget.exe http://172.30.110.26:1935/live/stream1/Manifest out/

With wget http://172.30.110.26:1935/live/mp4:stream1/Manifest
and
wget http://172.30.110.26:1935/live/stream1/Manifest
I get a file like this:

<?xml version="1.0" encoding="utf-8"?>
<SmoothStreamingMedia MajorVersion="2" MinorVersion="1" Duration="0" Timescale="10000000" LookAheadFragmentCount="2" DVRWindowLength="0" IsLive="TRUE">
<StreamIndex Type="audio" Chunks="0" Timescale="10000000" QualityLevels="1" Url="QualityLevels({bitrate})/Fragments(audio={start time})/WowzaSessions(183137527).isma">
<QualityLevel Index="0" Bitrate="160344" FourCC="AACL" SamplingRate="44100" Channels="2" BitsPerSample="16" PacketSize="4" AudioTag="255" CodecPrivateData="1210" />
<c t="15030472335"/>
<c t="15050673696"/>
<c t="15070875056"/>
<c t="15091076417"/>
<c t="15111277777"/>
<c t="15131479138"/>
<c t="15151680498"/>
<c t="15171881859"/>
<c t="15192083219"/>
<c t="15212284580"/>
<c t="15232485941"/>
<c t="15252687301"/>
<c t="15272888662" d="20201360"/>
</StreamIndex>
<StreamIndex Type="video" Chunks="0" Timescale="10000000" QualityLevels="1" MaxWidth="1280" MaxHeight="720" DisplayWidth="1280" DisplayHeight="720" Url="QualityLevels({bitrate})/Fragments(video={start time})/WowzaSessions(183137527).ismv">
<QualityLevel Index="0" Bitrate="2699910" FourCC="H264" MaxWidth="1280" MaxHeight="720" CodecPrivateData="000000016764001facd9405005ba10000003001000000303c8f18319600000000168efbcb0" />
<c t="15011660000"/>
<c t="15067660000"/>
<c t="15091990000"/>
<c t="15139660000"/>
<c t="15181320000"/>
<c t="15215660000" d="58330000"/>
</StreamIndex>
</SmoothStreamingMedia>

What is the problem?

@Milek7
Copy link
Owner

Milek7 commented Jul 10, 2018

Sorry, I haven't been maintaining this.
StreamIndex Url verification is rather hardcoded and doesn't expect WowzaSessions there. As this url is later used in simple {bitrate} and {start time} substitution you could try commenting out whole Url validation in src/Smooth.cs line 150. It should solve that problem. (though as evidently this haven't been used on Wowza stream there might be other problems later.

@i-akbari
Copy link
Author

i-akbari commented Jul 11, 2018

Thanks for your comment.

Just for other persons might see this. I tested your solution but I got another error.
Exception: Chunk count mismatch: c=14 chunks=0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants