hello ,
I use ffmpeg to download part of video files or streams .. and it works ..most of the time ..
Recently i wanted to download part of youtube video from time A to time B ..
tried with youtube-dl nothing worked.
searched a lot for any useful commands .. but could not find anything ... so is it possible to do this with youtube-dl?
. if not what other tools can help .
ty
Support our site by donate $5 directly to us Thanks!!!
Try StreamFab Downloader and download streaming video from Netflix, Amazon!
Try StreamFab Downloader and download streaming video from Netflix, Amazon!
+ Reply to Thread
Results 1 to 7 of 7
-
-
hi you can use both youtube-dl and ffmpeg
example
Code:youtube-dl -g "https://www.youtube.com/watch?v=64FrYGRrKVY"
Code:WARNING: Your copy of avconv is outdated and unable to properly mux separate video and audio files, youtube-dl will download single file media. Update avconv to version 10-0 or newer to fix this. https://r5---sn-4gxx-25gl.googlevideo.com/videoplayback?sparams=dur%2Cgcr%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cupn%2Cexpire&mime=video%2Fmp4&upn=ODWzSScb_lI&fexp=916630%2C9407141%2C9408142%2C9408420%2C9408710%2C9413503%2C9414764%2C9415304%2C9416126%2C9416456%2C952640&lmt=1426230809395467&dur=232.106&key=yt5&ip=88.186.138.92&itag=22&id=o-ACIySl_FZj5nbrjy1JK9ernyHW6lYG_KDqMNqv9q5BCa&mm=31&mn=sn-4gxx-25gl&ipbits=0&requiressl=yes&sver=3&expire=1434950756&mt=1434929081&mv=m&ms=au&source=youtube&pl=21&ratebypass=yes&initcwndbps=705000&gcr=fr&signature=49EDF3FBA235CA471ED31D7E79BD8B678138A620.B07ED167736462EE7EF532311E7CC8842F087908
Code:ffmpeg -i "https://r5---sn-4gxx-25gl.googlevideo.com/videoplayback?sparams=dur%2Cgcr%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cupn%2Cexpire&mime=video%2Fmp4&upn=ODWzSScb_lI&fexp=916630%2C9407141%2C9408142%2C9408420%2C9408710%2C9413503%2C9414764%2C9415304%2C9416126%2C9416456%2C952640&lmt=1426230809395467&dur=232.106&key=yt5&ip=88.186.138.92&itag=22&id=o-ACIySl_FZj5nbrjy1JK9ernyHW6lYG_KDqMNqv9q5BCa&mm=31&mn=sn-4gxx-25gl&ipbits=0&requiressl=yes&sver=3&expire=1434950756&mt=1434929081&mv=m&ms=au&source=youtube&pl=21&ratebypass=yes&initcwndbps=705000&gcr=fr&signature=49EDF3FBA235CA471ED31D7E79BD8B678138A620.B07ED167736462EE7EF532311E7CC8842F087908" -ss 00:01:32.00 -t 00:00:40.00 -c copy System-of-a-Down-Toxicity.mp4
-
thank you for the reply but i got two errors
1- HTTP error 403 Forbidden ...
2- "part of YouTube link " is not recognized as an internal or external command.
its seems that YouTube prevents the downloading command and the generated code using youtube-dl is too long for ffmpeg to recognize .. i don't know what i did wrong here. -
Hi BlueStone ,
!!! You'll have to find a new link "https..." !!!
1st in the commands-line "https..." : REPLACE
%2C by ,
%2F by /
My try :
I was able to find 24 links ( not using youtube-dl ) ; only 5 are good (!!!)
My batch file for EXAMPLE .
Code:@echo on ffmpeg -i "https://r17---sn-hgn7zn7l.googlevideo.com/videoplayback?dur=232.106&initcwndbps=2062500&sver=3&expire=1435121750&mn=sn-hgn7zn7l&mm=31&pl=18&mime=video/mp4&id=o-AAgPINwDa6Y_ECbQyBV2Z0fCW564CzVuAs9AlvDi7Rnu&gcr=fr&ipbits=0&requiressl=yes&ip=109.210.114.10&mv=m&mt=1435100120&ms=au&upn=JhFy8DmQ2gQ&ratebypass=yes&lmt=1426230809395467&key=yt5&itag=22&sparams=dur,gcr,id,initcwndbps,ip,ipbits,itag,lmt,mime,mm,mn,ms,mv,pl,ratebypass,requiressl,source,upn,expire&source=youtube&fexp=916655,9407141,9408142,9408420,9408710,9413503,9414764,9415304,9416126,9416456,952640&signature=DBC01B5351410E515AC03681D301324CB0F7FF8C.562FCF4E98D45FE4B8772F9BBE9D6A3C9EBAB25A" -c copy System-of-a-Down-Toxicity_L1.mp4 pause ffmpeg -i "https://r17---sn-hgn7zn7l.googlevideo.com/videoplayback?dur=232.106&initcwndbps=2062500&sver=3&expire=1435121750&mn=sn-hgn7zn7l&mm=31&pl=18&mime=video/mp4&id=o-AAgPINwDa6Y_ECbQyBV2Z0fCW564CzVuAs9AlvDi7Rnu&gcr=fr&ipbits=0&requiressl=yes&ip=109.210.114.10&mv=m&mt=1435100120&ms=au&upn=JhFy8DmQ2gQ&ratebypass=yes&lmt=1426230767757026&key=yt5&itag=18&sparams=dur,gcr,id,initcwndbps,ip,ipbits,itag,lmt,mime,mm,mn,ms,mv,pl,ratebypass,requiressl,source,upn,expire&source=youtube&fexp=916655,9407141,9408142,9408420,9408710,9413503,9414764,9415304,9416126,9416456,952640&signature=C04B7E56C13CEDFFBA83588923E5534D09E71B2F.980125E4BE769D5520440CA0932E58716E189BB7" -c copy System-of-a-Down-Toxicity_L3.mp4 pause ffmpeg -i "https://r17---sn-hgn7zn7l.googlevideo.com/videoplayback?dur=232.199&initcwndbps=2062500&sver=3&expire=1435121750&mn=sn-hgn7zn7l&mm=31&pl=18&mime=video/3gpp&id=o-AAgPINwDa6Y_ECbQyBV2Z0fCW564CzVuAs9AlvDi7Rnu&gcr=fr&ipbits=0&requiressl=yes&ip=109.210.114.10&mv=m&mt=1435100120&ms=au&upn=JhFy8DmQ2gQ&lmt=1394292083225947&key=yt5&itag=36&sparams=dur,gcr,id,initcwndbps,ip,ipbits,itag,lmt,mime,mm,mn,ms,mv,pl,requiressl,source,upn,expire&source=youtube&fexp=916655,9407141,9408142,9408420,9408710,9413503,9414764,9415304,9416126,9416456,952640&signature=7069E0A679AF78A06708EB233C4557DA697605D4.0B8AE5C64D88BF576C7251636BB06BA8DE8C8C2E" -c copy System-of-a-Down-Toxicity_L5.mp4 pause ffmpeg -i "https://r17---sn-hgn7zn7l.googlevideo.com/videoplayback?dur=232.385&initcwndbps=2062500&sver=3&expire=1435121750&mn=sn-hgn7zn7l&mm=31&pl=18&mime=video/3gpp&id=o-AAgPINwDa6Y_ECbQyBV2Z0fCW564CzVuAs9AlvDi7Rnu&gcr=fr&ipbits=0&requiressl=yes&ip=109.210.114.10&mv=m&mt=1435100120&ms=au&upn=JhFy8DmQ2gQ&lmt=1394291928338086&key=yt5&itag=17&sparams=dur,gcr,id,initcwndbps,ip,ipbits,itag,lmt,mime,mm,mn,ms,mv,pl,requiressl,source,upn,expire&source=youtube&fexp=916655,9407141,9408142,9408420,9408710,9413503,9414764,9415304,9416126,9416456,952640&signature=3D67B24B33110E354DF51D9FBD6AF82B821F145C.67CD47C3A29335B2240FC71CD6474FCB3C8B5716" -c copy System-of-a-Down-Toxicity_L6.mp4 pause ffmpeg -i "https://r17---sn-hgn7zn7l.googlevideo.com/videoplayback?dur=232.041&initcwndbps=2062500&sver=3&expire=1435121750&mn=sn-hgn7zn7l&mm=31&pl=18&mime=audio/webm&id=o-AAgPINwDa6Y_ECbQyBV2Z0fCW564CzVuAs9AlvDi7Rnu&gcr=fr&ipbits=0&requiressl=yes&ip=109.210.114.10&mv=m&mt=1435100120&ms=au&gir=yes&upn=JhFy8DmQ2gQ&lmt=1411469131217590&key=yt5&itag=171&keepalive=yes&sparams=clen,dur,gcr,gir,id,initcwndbps,ip,ipbits,itag,keepalive,lmt,mime,mm,mn,ms,mv,pl,requiressl,source,upn,expire&clen=3397421&source=youtube&fexp=916655,9407141,9408142,9408420,9408710,9413503,9414764,9415304,9416126,9416456,952640&signature=DAE0C6D2649C351C451D29F30921121E5D37B39A.18650BF31690E22DB604C6F1E911B77ED143307A" -c copy System-of-a-Down-Toxicity_L20.mp4 pause :fin
JE SUIS CHARLIE !!! -
thanks m8 ... the 2nd error is fixed .. it was my bad ..
i have 2 firefox add-ons that give me links ..tested multiple YouTube links .got them .. still I'm getting the " HTTP error 403 Forbidden" Server returned 403 Forbidden (access denied)
how did you get those links that worked with you . ? -
Hi BlueStone ,
TUTO_
!!!
Supposing you have php.exe installed in C:\PHP
Supposing you have ffmpeg.exe installed in C:\PHP
!!!
Code:Go at : http://darbycrash.altervista.org/PHP/api.php.txt --- As the actual version is $version = "6.6.4"; --- Save the file as 'api_664.php' in C:\PHP
Code:@echo on php api_664.php "https://www.youtube. ...." pause :fin
!!! SEE also VLC possibility ( below ) !!!
in C:\PHP you'll get a file 'history.txt' .
=====
Open it with a text editor . You'll get x streams in it .
---
REPLACE
%2C by ,
%2F by /
---
You can create a batch file ( including all lines ) : 'Try.bat' in C:\PHP
( at the end of each line modify L1 => Lx )
Code:@echo on ffmpeg -i "https://..." -c copy System-of-a-Down-Toxicity_L1.mp4 pause ... pause :fin
Launch 'Try.bat' in C:\PHP
( Note: while running 'Try.bat' if the process is blocked strike : <Ctrl C> , after 'N' , after <Enter> )
Before selecting the goodest link .
DL each stream for 10 Mo ( <Ctrl C> , after 'N' , after <Enter> ).
Use Mediainfo to read more about each file .
!!! VLC possibility !!!
Vlc will run the bestest stream .
To get the link :
Tools => Media's informations => in the case at the bottom of the window ( Emplacement in french )
Select completely the line to get the link
!!! PHP !!!
If you haven't PHP ; Dl the file
Code:http://www.mediafire.com/download/co1adcn1gre9kl4/Script+Loader.tar.gz
1) You use the previous process with the folder in witch is staying php.exe
or
2) you copy the folder \PHP in c:\PHP
OUF !!!
Cheers .JE SUIS CHARLIE !!! -
thanks a lot m8, awesome information , i used to do some php
I will try to follow your steps or use the script if i fail ... hope it works.
Similar Threads
-
Downloading youtube and youtube's quality
By Haopengyou in forum Newbie / General discussionsReplies: 12Last Post: 21st Oct 2021, 07:12 -
Downloading Purchased YouTube Video
By jramirez92 in forum Video Streaming DownloadingReplies: 4Last Post: 9th Mar 2015, 19:17 -
what section must i start a thread in to ask about youtube downloading ??
By oduodui in forum Newbie / General discussionsReplies: 1Last Post: 8th Nov 2014, 05:11 -
Trouble downloading 1 youtube video
By bluesspoon in forum Video Streaming DownloadingReplies: 7Last Post: 13th Mar 2014, 18:34 -
Why is this YouTube video resistant to downloading?
By brassplyer in forum Video Streaming DownloadingReplies: 26Last Post: 13th Jul 2013, 04:00