Giter VIP home page Giter VIP logo

yt-trimmer's Introduction

Hi , I'm Mayk Brito

Profile views

  • 🔥 Sênior Web Developer & Instructor focused on helping people start programming

  • 🔭 I’m currently working at Rocketseat

  • ▶️ I regularly post videos on youtube.com/maykbrito

  • 💬 Ask me about JavaScript, HTML, CSS, SQL, Node.JS

  • ⚡ Fun fact Oneye 😜

  • 👨‍💻 More at maykbrito.dev



Contact

codepen twitter linkedin instagram youtube

yt-trimmer's People

Contributors

maykbrito 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

Watchers

 avatar  avatar  avatar  avatar  avatar

yt-trimmer's Issues

'sh' is not recognized as an internal or external command,

Error: Command failed: sh ./scripts/videourl.sh https://www.youtube.com/watch?v=XjAxqeAMEo8
'sh' is not recognized as an internal or external command,
operable program or batch file.

at ChildProcess.exithandler (child_process.js:308:12)
at ChildProcess.emit (events.js:315:20)
at maybeClose (internal/child_process.js:1048:16)
at Socket.<anonymous> (internal/child_process.js:439:11)
at Socket.emit (events.js:315:20)
at Pipe.<anonymous> (net.js:673:12) {

killed: false,
code: 1,
signal: null,
cmd: 'sh ./scripts/videourl.sh https://www.youtube.com/watch?v=XjAxqeAMEo8',
stdout: '',
stderr: "'sh' is not recognized as an internal or external command,\r\n" +
'operable program or batch file.\r\n'
}

"Error: Error: command failed"

Sample URL: https://www.youtube.com/watch?v=p86ZOmxiTx4

Lenovo:yt-trimmer lenovo$ node index.js
Youtube url: https://www.youtube.com/watch?v=p86ZOmxiTx4
Video starts in (00:00:00.00): 00:00:00.01
Video ends in (00:00:00.00): 00:00:10.00
Nome do arquivo: (padrao: part.mp4): 
> Starting dowload and convert
===================================
start (00:00:00.01) - end (00:00:10.00): toSeconds: 10
Error waiting for robots:

  Error: Error: Command failed: ffmpeg -ss 00:00:00.01 -i "https://r5---sn-vgqsrnee.googlevideo.com/videoplayback?expire=1604900886&ei=toOoX--zHKGN2_gPssih-Ak&ip=2601%3A410%3A4301%3Ae2b0%3A2046%3A58f4%3A1b5%3Ae0f2&id=o-ABeVz7HyvVyxTz4vSlKcSAFjrE28RpVWaRtXa-CdxZn3&itag=22&source=youtube&requiressl=yes&mh=RR&mm=31%2C26&mn=sn-vgqsrnee%2Csn-p5qs7ned&ms=au%2Conr&mv=m&mvi=5&pl=26&initcwndbps=2075000&vprv=1&mime=video%2Fmp4&ratebypass=yes&dur=308.337&lmt=1604859520453096&mt=1604879199&fvip=5&c=WEB&txp=3416222&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cratebypass%2Cdur%2Clmt&sig=AOq0QJ8wRgIhAKOmTZtanq3wB0ntbZ7ICUq9XjI7sscXRcUwpkhjT1DcAiEAqRcvFNv5an4aRiVpT53O9G1EkEfDNzeQz7OHY7zuvwk%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRAIgUl8YfL79d3CW9tUARHsiyGKpY5_KLAEMH92PwFYxAFACIEzI4ZAbVraazgyZzwMBGfwfbLdYBXppIhobDV2T98In" -t 10.-1 -c copy part.mp4
ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
  built with Apple clang version 11.0.0 (clang-1100.0.33.17)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/4.3.1_2 --enable-shared --enable-pthreads --enable-version3 --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libsoxr --enable-videotoolbox --disable-libjack --disable-indev=jack
  libavutil      56. 51.100 / 56. 51.100
  libavcodec     58. 91.100 / 58. 91.100
  libavformat    58. 45.100 / 58. 45.100
  libavdevice    58. 10.100 / 58. 10.100
  libavfilter     7. 85.100 /  7. 85.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
  libpostproc    55.  7.100 / 55.  7.100

    at downloadPart (/Users/Lenovo/Documents/yt-trimmer/robots/trim.js:34:15)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async Object.module.exports [as trim] (/Users/Lenovo/Documents/yt-trimmer/robots/trim.js:40:5)
    at async start (/Users/Lenovo/Documents/yt-trimmer/index.js:7:5)

python not found? WTF?

Mint 20.1
node 14, npm 6.14

npm start

[email protected] start /home/stepan7/projects/yt-trimmer
node src/index.js

Youtube url: https://youtu.be/zcKuJOYAxSs
Video starts in (00:00:00.00): 00:24:08.03
Video ends in (00:00:00.00): 00:24:38.03
Nome do arquivo: (padrao: part.mp4):
Error waiting for robots:

Error: Command failed: sh ./scripts/videourl.sh https://youtu.be/zcKuJOYAxSs
/usr/bin/env: «python»: Нет такого файла или каталога

at ChildProcess.exithandler (child_process.js:308:12)
at ChildProcess.emit (events.js:315:20)
at maybeClose (internal/child_process.js:1048:16)
at Socket.<anonymous> (internal/child_process.js:439:11)
at Socket.emit (events.js:315:20)
at Pipe.<anonymous> (net.js:673:12) {

killed: false,
code: 127,
signal: null,
cmd: 'sh ./scripts/videourl.sh https://youtu.be/zcKuJOYAxSs',
stdout: '',
stderr: '/usr/bin/env: «python»: Нет такого файла или каталога\n'
}

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.