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

error none type #17

Open
yolanda123a opened this issue Mar 16, 2021 · 6 comments
Open

error none type #17

yolanda123a opened this issue Mar 16, 2021 · 6 comments

Comments

@yolanda123a
Copy link

i have this error
have pyhton pip dependences installed
what more should install for this program work like should be work WITHOUT errors
thanks

python ./dashproxy.py https://------.mpd -o. -d
Running dash proxy for stream https://-------.mpd. Output goes in .
mpd=[<Element '{urn:mpeg:dash:schema:mpd:2011}Period' at 0x0000023B3BC46310>]
Starting a downloader for Representation (period=0 adaptation-set=0 representation=0)
Traceback (most recent call last):
File "D:\Jonathan\Programas\Video_Encriptado\cmder_mini\dashproxy.py", line 289, in
main()
File "D:\Jonathan\Programas\Video_Encriptado\cmder_mini\dashproxy.py", line 286, in main
run(args)
File "D:\Jonathan\Programas\Video_Encriptado\cmder_mini\dashproxy.py", line 275, in run
return proxy.run()
File "D:\Jonathan\Programas\Video_Encriptado\cmder_mini\dashproxy.py", line 115, in run
self.refresh_mpd()
File "D:\Jonathan\Programas\Video_Encriptado\cmder_mini\dashproxy.py", line 129, in refresh_mpd
self.handle_mpd(mpd)
File "D:\Jonathan\Programas\Video_Encriptado\cmder_mini\dashproxy.py", line 155, in handle_mpd
self.ensure_downloader(mpd, rep_addr)
File "D:\Jonathan\Programas\Video_Encriptado\cmder_mini\dashproxy.py", line 173, in ensure_downloader
downloader.handle_mpd(mpd, self.get_base_url(mpd))
File "D:\Jonathan\Programas\Video_Encriptado\cmder_mini\dashproxy.py", line 204, in handle_mpd
segment_timeline = self.mpd.segment_timeline(self.rep_addr)
File "D:\Jonathan\Programas\Video_Encriptado\cmder_mini\dashproxy.py", line 77, in segment_timeline
return self.segment_template(rep_addr).find('mpd:SegmentTimeline', ns)
AttributeError: 'NoneType' object has no attribute 'find'

@yolanda123a
Copy link
Author

why noone answer???????????????????????????????????

@przemyslaw-gorszkowski-red

Can you provide a manifest for which you tried to run the dashproxy? It looks that dashproxy can't find "SegmentTemplate" in Adaptation or Representation.

@przemyslaw-gorszkowski-red

For this manifest I get different error:
Running dash proxy for stream https://cdn-videos.flowlikemusic.com/files/videos/e125e3ef-912b-44ab-9a56-69593ab4d1cd/master.mpd. Output goes in .
mpd=[<Element '{urn:mpeg:dash:schema:mpd:2011}Period' at 0x7f041f1054a8>]
Starting a downloader for Representation (period=0 adaptation-set=0 representation=0)
requesting master_hdinit.cmfv from https://cdn-videos.flowlikemusic.com/files/videos/e125e3ef-912b-44ab-9a56-69593ab4d1cd/master_hdinit.cmfv
Traceback (most recent call last):
File "dashproxy.py", line 289, in
main()
File "dashproxy.py", line 286, in main
run(args)
File "dashproxy.py", line 275, in run
return proxy.run()
File "dashproxy.py", line 115, in run
self.refresh_mpd()
File "dashproxy.py", line 129, in refresh_mpd
self.handle_mpd(mpd)
File "dashproxy.py", line 155, in handle_mpd
self.ensure_downloader(mpd, rep_addr)
File "dashproxy.py", line 173, in ensure_downloader
downloader.handle_mpd(mpd, self.get_base_url(mpd))
File "dashproxy.py", line 211, in handle_mpd
segments = copy.deepcopy(segment_timeline.findall('mpd:S', ns))
AttributeError: 'NoneType' object has no attribute 'findall'

Unfortunately it seems that dash-proxy does not support such SegmentTemplate (without SegmentTimeline) which is used in this manifest.

I will try to fix that.

@przemyslaw-gorszkowski-red

@kevan1 : I provided a fix for your manifest on my branch: https://github.com/przemyslaw-gorszkowski-red/dash-proxy/tree/master_branch, please try to download your content with my modification

@przemyslaw-gorszkowski-red
Copy link

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

3 participants