Giter Site home page Giter Site logo

avspeech-downloader's People

Contributors

changil avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

avspeech-downloader's Issues

Getting lots of repeative error, not sure how to fix these. I am using google's train.csv to download the data

(standard_in) 2: syntax error ERROR: Unable to download webpage: (caused by URLError(u'unknown url type: opacity',)) [2019/08/21 21:05:52] <style>_000.000000-000.000000: ERROR: failed to get video url (standard_in) 2: syntax error ERROR: u'<style>' is not a valid URL. Set --default-search "ytsearch" (or run youtube-dl "ytsearch:<style>" ) to search YouTube [2019/08/21 21:05:52] }_000.000000-000.000000: ERROR: failed to get video url (standard_in) 2: syntax error ERROR: u'}' is not a valid URL. Set --default-search "ytsearch" (or run youtube-dl "ytsearch:}" ) to search YouTube [2019/08/21 21:05:52] html_000.000000-000.000000: ERROR: failed to get video url /bin/bash: line 0: printf: body {: invalid number (standard_in) 1: syntax error ERROR: u'html' is not a valid URL. Set --default-search "ytsearch" (or run youtube-dl "ytsearch:html" ) to search YouTube [2019/08/21 21:05:52] background: #fff;_000.000000-000.000000: ERROR: failed to get video url (standard_in) 2: syntax error ERROR: Unable to download webpage: (caused by URLError(u'unknown url type: background',)) [2019/08/21 21:05:52] margin: 0;_000.000000-000.000000: ERROR: failed to get video url (standard_in) 2: syntax error ERROR: Unable to download webpage: (caused by URLError(u'unknown url type: margin',)) [2019/08/21 21:05:52] padding: 0;_000.000000-000.000000: ERROR: failed to get video url (standard_in) 2: syntax error ERROR: Unable to download webpage: (caused by URLError(u'unknown url type: padding',)) [2019/08/21 21:05:52] font-family: Arial_000.000000-000.000000: ERROR: failed to get video url /bin/bash: line 0: printf: sans-serif;: invalid number ERROR: Unable to download webpage: (caused by URLError(u'unknown url type: font-family',)) [2019/08/21 21:05:52] position: absolute;_000.000000-000.000000: ERROR: failed to get video url (standard_in) 2: syntax error ERROR: Unable to download webpage: (caused by URLError(u'unknown url type: position',)) [2019/08/21 21:05:52] </style>_000.000000-000.000000: ERROR: failed to get video url (standard_in) 2: syntax error ERROR: Unable to download webpage: <urlopen error [Errno -2] Name or service not known> (caused by URLError(gaierro

ERROR: failed to rename temporary video

Can you please tell what might be causing this error and how to download the dataset? I'm running Ubuntu 18.04.1 LTS. Let me know if any more information is needed.

Terminal command:

njobs=4 ./download.sh avspeech_train.csv train

Output:

[2019/03/12 21:42:28] *** download starts ***
[2019/03/12 21:43:45] CJoOwXcjhds_233.266000-239.367000: ERROR: failed to rename temporary video
mv: cannot stat 'train/CJoOwXcjhds_233.266000-239.367000.mp4.inprogress.1.mp4': No such file or directory
[2019/03/12 21:44:35] Y8HMIm8mdns_171.607767-174.607767: ERROR: failed to rename temporary video
mv: cannot stat 'train/Y8HMIm8mdns_171.607767-174.607767.mp4.inprogress.1.mp4': No such file or directory

The train directory looks like this:
image

ffmpeg keyframe seeking issue

ffmpeg uses keyframe seeking when stream copying. Consequently, when a cut boundary doesn't fall at a keyframe (which happens most of the time) it cuts from the previous keyframe and sets a negative start time to compensate it. So any subsequent tools that take the cut video clips should take the start time into account. Most video players do, but if you programatically process video clips, you should do it yourself and discard first part of both audio and video accordingly. A fix would be to transcode video when cutting, at the cost of extended processing time. I will push a patch soon.

Affected lines of code:

$ffmpeg -ss "$start" -i "$outdir/$filename.inprogress.1" -t "$duration" -c:v copy -c:a copy -f mp4 -threads 1 "$outdir/$filename.inprogress.2" < /dev/null || { show_msg "$id" "ERROR: failed to cut video"; return; }

$ffmpeg -ss "$start" -i "$url" -t "$duration" -c:v copy -c:a copy -f mp4 -threads 1 "$outdir/$filename.inprogress" < /dev/null || { show_msg "$id" "ERROR: failed to download video"; return; }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.