Youtube-dl error: invalid literal for int() with base 10: '7766645.83333'


Youtube-dl error: invalid literal for int() with base 10: '7766645.83333'



I am trying to download a video from an .mpd file and I'm getting the following error:



ValueError: invalid literal for int() with base 10: '7766645.83333'


ValueError: invalid literal for int() with base 10: '7766645.83333'



When I look in the .mpd file, it has these <S> elements, some of them containing the float.


<S>


<S t="636000000" d="6000000"/>
<S t="642000000" d="6000000"/>
<S t="648000000" d="7766645.83333"/>



The program seems to have a problem with d being a float. However if the segments are displayed like so:


d


<SegmentURL media="segment-1.m4s"/>
<SegmentURL media="segment-2.m4s"/>
<SegmentURL media="segment-3.m4s"/>



Then there is no issue. Is there a workaround for this? Is there a way I can convert this .mpd file to a format that youtube-dl can handle. I am currently using the 2018.06.25 version of youtube-dl.





Which URL are you downloading? This should just be fixed in youtube-dl, but neither I nor anybody else can realistically do so without being able to reproduce the problem.
– phihag
Jun 30 at 8:00









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Comments

Popular posts from this blog

paramiko-expect timeout is happening after executing the command

Export result set on Dbeaver to CSV

Opening a url is failing in Swift