INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: MPD (MPEG DASH Streaming) support?  (Read 751 times)

jmone

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 14379
  • I won! I won!
MPD (MPEG DASH Streaming) support?
« on: September 19, 2024, 05:53:41 am »

BBC World news has been pulled off our PayTV service as they want everyone to use their "app" but.... I thought it would be easier to use MC, but can't get it to work. 

I can see that the URL for their live stream for me here in Oz is:
Code: [Select]
https://vs-cmaf-pushb-apac-gcomm.live.cf.md.bbci.co.uk/x=4/i=urn:bbc:pips:service:bbc_world_news_africa/pc_hd_abr_v2.mpd
Any thoughts?

Thanks
Nathan

FWIW, I can use the following script for ffmpeg and that works fine, so it's not that the link is blocked or unavailable to me.

Code: [Select]
ffmpeg -user_agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36" -referer "https://www.bbc.com/watch-live-news" -i "https://vs-cmaf-pushb-apac-gcomm.live.cf.md.bbci.co.uk/x=4/i=urn:bbc:pips:service:bbc_world_news_africa/pc_hd_abr_v2.mpd" -c copy "pc_hd_abr_v2.ts"
Logged
JRiver CEO Elect

Graham849

  • Recent member
  • *
  • Posts: 31
Re: BBC World News - Can't get the live video stream to play in MC
« Reply #1 on: September 19, 2024, 07:09:21 am »

i watch/listen https://www.bbc.com/watch-live-news, not sure why africa is in your urls
Logged

leezer3

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1584
Re: BBC World News - Can't get the live video stream to play in MC
« Reply #2 on: September 19, 2024, 01:49:46 pm »

It's probably expecting the referrer to be set- That's the main difference between the two.
Logged

jmone

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 14379
  • I won! I won!
Re: BBC World News - Can't get the live video stream to play in MC
« Reply #3 on: September 19, 2024, 03:26:41 pm »

i watch/listen https://www.bbc.com/watch-live-news, not sure why africa is in your urls

Yeah, that's the link to the Web Page.  When I click on "Watch Live" then the URL I posted is what is used to stream the actual video.  I want to just watch the actual live video stream directly from Theaterview, but I have to get that link working first (and for ffmpeg can grab it).
Logged
JRiver CEO Elect

jmone

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 14379
  • I won! I won!
Re: BBC World News - Can't get the live video stream to play in MC
« Reply #4 on: September 22, 2024, 04:14:55 am »

Any ideas on how to get that link to play in MC?
Logged
JRiver CEO Elect

Graham849

  • Recent member
  • *
  • Posts: 31
Re: BBC World News - Can't get the live video stream to play in MC
« Reply #5 on: September 24, 2024, 06:14:02 am »

I click on google button in MC and put the link in search bar, but the stream does not appear accessible in theater view :(
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72295
  • Where did I put my teeth?
Re: BBC World News - Can't get the live video stream to play in MC
« Reply #6 on: September 24, 2024, 07:01:44 am »

You can add a link to a playlist and play it from that in Theater View.  I've forgotten how I did that, but start by playing the link in standard view, then right click on Playing Now.
Logged

jmone

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 14379
  • I won! I won!
Re: BBC World News - Can't get the live video stream to play in MC
« Reply #7 on: September 24, 2024, 03:34:42 pm »

Sorry, I should have said... I can't get the link to play at all in MC (the end goal is from Theaterview).  I get a msg saying "There is nothing to play" when using "Open URL".  The following is the relevant part of the Log.  It looks like MC is gets the stream info but does not get any or play and of the actual data.  I'm not sure what is "special" about this stream?

Code: [Select]
510019238: 21356: General: JRFilename::SetFileTypeFromURLMimeType: Content-Type: application/dash+xml
510019238: 21356: Reader: CWinINetReader::Close: Start
510019239: 21356: Reader: CWinINetReader::Close: Finish (0 ms)
510019239: 21356: Reader: CWinINetReader::Open: Start
510019239: 21356: Reader: CWinINetReader::Open: Opening https://vs-cmaf-pushb-apac-gcomm.live.cf.md.bbci.co.uk/x=4/i=urn:bbc:pips:service:bbc_world_news_africa/pc_hd_abr_v2.mpd
510019239: 36504: Reader: CWinINetReader::Thread: Start
510019239: 36504: Reader: CWinINetReader::Thread: url: https://vs-cmaf-pushb-apac-gcomm.live.cf.md.bbci.co.uk/x=4/i=urn:bbc:pips:service:bbc_world_news_africa/pc_hd_abr_v2.mpd
510019239: 36504: Reader: CWinINetReader::Connect: Start
510019239: 36504: Reader: CWinINetReader::Connect: Finish (0 ms)
510019239: 36504: Reader: CWinINetReader::DownloadFromHTTPURL: Start
510019239: 36504: Reader: CWinINetReader::DownloadFromHTTPURL: HttpOpenRequest successful
510019248: 36504: Reader: CWinINetReader::DownloadFromHTTPURL: HttpSendRequest successful
510019248: 36504: Reader: CWinINetReader::DownloadFromHTTPURL: Success
510019248: 36504: Reader: CWinINetReader::DownloadFromHTTPURL: Finish (8 ms)
510019248: 36504: Reader: CWinINetReader::Thread: Finish (8 ms)
510019248: 21356: Reader: CWinINetReader::Open: Finish (9 ms)
510019248: 21356: General: JRFilename::SetFileTypeFromURLMimeType: Content-Type: application/dash+xml
510019248: 21356: Reader: CWinINetReader::Close: Start
510019249: 21356: Reader: CWinINetReader::Close: Finish (0 ms)
510019249: 21356: Import: JRAnalyzer::AddFile: Start
510019249: 21356: Import: JRAnalyzer::AddFile: Filename: https://vs-cmaf-pushb-apac-gcomm.live.cf.md.bbci.co.uk/x=4/i=urn:bbc:pips:service:bbc_world_news_africa/pc_hd_abr_v2.mpd
510019249: 21356: Import: JRAnalyzer::AddFileData: Start
510019249: 21356: Reader: CWinINetReader::Open: Start
510019249: 21356: Reader: CWinINetReader::Open: Opening https://vs-cmaf-pushb-apac-gcomm.live.cf.md.bbci.co.uk/x=4/i=urn:bbc:pips:service:bbc_world_news_africa/pc_hd_abr_v2.mpd
510019249: 13240: Reader: CWinINetReader::Thread: Start
510019249: 13240: Reader: CWinINetReader::Thread: url: https://vs-cmaf-pushb-apac-gcomm.live.cf.md.bbci.co.uk/x=4/i=urn:bbc:pips:service:bbc_world_news_africa/pc_hd_abr_v2.mpd
510019249: 13240: Reader: CWinINetReader::Connect: Start
510019249: 13240: Reader: CWinINetReader::Connect: Finish (0 ms)
510019249: 13240: Reader: CWinINetReader::DownloadFromHTTPURL: Start
510019249: 13240: Reader: CWinINetReader::DownloadFromHTTPURL: HttpOpenRequest successful
510019556: 13240: Reader: CWinINetReader::DownloadFromHTTPURL: HttpSendRequest successful
510019557: 13240: Reader: CWinINetReader::DownloadFromHTTPURL: Success
510019557: 13240: Reader: CWinINetReader::DownloadFromHTTPURL: Finish (307 ms)
510019557: 13240: Reader: CWinINetReader::Thread: Finish (307 ms)
510019557: 21356: Reader: CWinINetReader::Open: Finish (308 ms)
510019557: 21356: Reader: CWinINetReader::Read: InternetReadFile returned true with zero bytes read: EOF
Logged
JRiver CEO Elect

terrym@tassie

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 501
Re: BBC World News - Can't get the live video stream to play in MC
« Reply #8 on: September 24, 2024, 05:56:26 pm »

VLC can play this stream OK, so as a work-around you can install VLC and then use it from Theater View:

Add external program to Theater View:
Name: VLC BBC World news
Program: C:\Program Files (x86)\VideoLAN\VLC\vlc.exe
Command Line Arguments: https://vs-cmaf-pushb-apac-gcomm.live.cf.md.bbci.co.uk/x=4/i=urn:bbc:pips:service:bbc_world_news_africa/pc_hd_abr_v2.mpd --fullscreen

I think this ought to play natively in MC, strange that it doesn't.

EDIT:
A neater work-around is to use ffplay and select the hd stream:
Name: ffplay BBC World news
Program: path_to_ffmpeg\bin\ffplay.exe
Command Line Arguments:-i https://vs-cmaf-pushb-apac-gcomm.live.cf.md.bbci.co.uk/x=4/i=urn:bbc:pips:service:bbc_world_news_africa/pc_hd_abr_v2.mpd  -vst v:5 -fs
Logged
Good manners cost nothing.
Bad manners can cost you your reputation
― B.D.Hawkey

jmone

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 14379
  • I won! I won!
Re: BBC World News - Can't get the live video stream to play in MC
« Reply #9 on: September 24, 2024, 10:43:44 pm »

Thanks - I knew it works with ffmpeg, and the idea of using ffplay is neat (and it works perfectly), but it should work in MC.  odd it does not.  Maybe Hendrik has an insight?
Logged
JRiver CEO Elect

jmone

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 14379
  • I won! I won!
MPD (MPEG DASH Streaming) support?
« Reply #10 on: September 30, 2024, 05:57:11 pm »

Does MC support MPD (Media Presentation Description) aka a manifest file for MPEG DASH streaming?

The contents for the MPD I posted is listed below:

Code: [Select]
<MPD xmlns="urn:mpeg:dash:schema:mpd:2011" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:mpeg:dash:schema:mpd:2011 http://standards.iso.org/ittf/PubliclyAvailableStandards/MPEG-DASH_schema_files/DASH-MPD.xsd" profiles="urn:dvb:dash:profile:dvb-dash:2014,urn:dvb:dash:profile:dvb-dash:isoff-ext-live:2014" type="dynamic" availabilityStartTime="1970-01-01T00:00:30Z" publishTime="2024-07-15T10:06:41.944Z" minimumUpdatePeriod="PT8H" minBufferTime="PT10S" timeShiftBufferDepth="PT1M" maxSegmentDuration="PT4S">
  <Period id="1" start="PT0S">
    <AdaptationSet id="1" contentType="audio" mimeType="audio/mp4" segmentAlignment="true" audioSamplingRate="48000" codecs="mp4a.40.5" startWithSAP="1" group="1" lang="en">
      <AudioChannelConfiguration schemeIdUri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="2"/>
      <Role schemeIdUri="urn:mpeg:dash:role:2011" value="main"/>
      <Representation id="pa3" bandwidth="96000">
        <SegmentTemplate initialization="a=pa3/al=en-GB/ap=main/b=96000/segment.init" media="t=3840/a=pa3/al=en-GB/ap=main/b=96000/$Number$.m4s" timescale="48000" duration="184320"/>
      </Representation>
    </AdaptationSet>
    <AdaptationSet id="2" contentType="video" mimeType="video/mp4" segmentAlignment="true" sar="1:1" startWithSAP="1" group="2" par="16:9">
      <Role schemeIdUri="urn:mpeg:dash:role:2011" value="main"/>
      <Representation id="pv4" bandwidth="281024" width="384" height="216" codecs="avc3.42C015" frameRate="25" scanType="progressive">
        <SegmentTemplate initialization="v=pv4/b=281024/segment.init" media="t=3840/v=pv4/b=281024/$Number$.m4s" timescale="25" duration="96"/>
      </Representation>
      <Representation id="pv5" bandwidth="437056" width="512" height="288" codecs="avc3.4D4015" frameRate="25" scanType="progressive">
        <SegmentTemplate initialization="v=pv5/b=437056/segment.init" media="t=3840/v=pv5/b=437056/$Number$.m4s" timescale="25" duration="96"/>
      </Representation>
      <Representation id="pv8" bandwidth="827008" width="704" height="396" codecs="avc3.4D401E" frameRate="25" scanType="progressive">
        <SegmentTemplate initialization="v=pv8/b=827008/segment.init" media="t=3840/v=pv8/b=827008/$Number$.m4s" timescale="25" duration="96"/>
      </Representation>
      <Representation id="pv10" bandwidth="1604032" width="960" height="540" codecs="avc3.4D401F" frameRate="25" scanType="progressive">
        <SegmentTemplate initialization="v=pv10/b=1604032/segment.init" media="t=3840/v=pv10/b=1604032/$Number$.m4s" timescale="25" duration="96"/>
      </Representation>
      <Representation id="pv13" bandwidth="2812032" width="960" height="540" codecs="avc3.64001F" frameRate="50" scanType="progressive">
        <SegmentTemplate initialization="v=pv13/b=2812032/segment.init" media="t=3840/v=pv13/b=2812032/$Number$.m4s" timescale="50" duration="192"/>
      </Representation>
      <Representation id="pv14" bandwidth="5070016" width="1280" height="720" codecs="avc3.640020" frameRate="50" scanType="progressive">
        <SegmentTemplate initialization="v=pv14/b=5070016/segment.init" media="t=3840/v=pv14/b=5070016/$Number$.m4s" timescale="50" duration="192"/>
      </Representation>
    </AdaptationSet>
  </Period>
  <UTCTiming schemeIdUri="urn:mpeg:dash:utc:http-xsdate:2014" value="https://time.akamai.com/?iso"/>
</MPD>
Logged
JRiver CEO Elect
Pages: [1]   Go Up