Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • gst-plugins-bad gst-plugins-bad
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 973
    • Issues 973
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 104
    • Merge requests 104
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GStreamerGStreamer
  • gst-plugins-badgst-plugins-bad
  • Issues
  • #1547
Closed
Open
Issue created Mar 09, 2021 by vandana@vandana

dashsink mpd segment-list 404 error

My pipeline for dashsink is given below, but the mpd file it generates appends the baseurl and the absoluted path provided in the mpd-root-path property, into the segment list. Any suggestions?

gst-launch-1.0 -v --gst-debug-no-color=1 dashsink name=dashsink mpd-baseurl=http://localhost mpd-root-path=/var/www/localhost/media/kls2iesj mpd-filename=live.mpd target-duration=10 min-buffer-time=2 minimum-update-period=5 dynamic=false use-segment-list=true muxer=ts dvbsrc modulation=5 adapter=0 frequency=147000000 delsys=dvb-c-b ! queue ! tsdemux ! mpegvideoparse ! decodebin ! x264enc bitrate=1200 key-int-max=60 ! video/x-h264,stream-format=byte-stream,profile=main ! dashsink.video_0

The generated mpd file:

<?xml version="1.0"?>
<MPD xmlns="urn:mpeg:dash:schema:mpd:2011" profiles="urn:mpeg:dash:profile:isoff-main:2011" type="dynamic" availabilityStartTime="2021-03-09T06:57:33Z" publishTime="2021-03-09T06:57:33Z" mediaPresentationDuration="P0Y0M0DT0H0M0.10S" minimumUpdatePeriod="P0Y0M0DT0H0M0.5S" minBufferTime="P0Y0M0DT0H0M0.2S"><BaseURL>http://localhost</BaseURL><Period id="period_00" bitstreamSwitching="false"><AdaptationSet id="1" contentType="video" subsegmentStartsWithSAP="0" bitstreamSwitching="false"><Representation id="video_0" bandwidth="972977" width="720" height="480" mimeType="video/mp2t" codecs="avc1"><SegmentList duration="10"><SegmentURL media="/var/www/localhost/media/kls2iesj/video_0_00000.ts"/></SegmentList></Representation></AdaptationSet></Period></MPD>

When Play this file with mplayer, it gives 404 for the segment file since it appends the full absolute path baseurl.: mplayer file:///var/www/localhost/media/kls2iesj/live.mpd OR even mplayer http://localhost/media/kls2iesj/live.mpd.

[dash @ 0x7ff3e9f832a0]Opening 'http://localhost/var/www/localhost/media/kls2iesj/video_0_00000.ts' for reading

Edited Mar 09, 2021 by vandana
Assignee
Assign to
Time tracking