SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2012-06-06 07:25:09

TeoBigusGeekus
#! Junkie
From: /Greece/Kastoria
Registered: 2012-04-28
Posts: 448

How to: Find your lost video file...

...that you've uploaded to YouTube and can no longer find it.

#!/bin/bash

wget -O $HOME/Desktop/video_addresses $1
sed -i '/var swf =/,/<\/script>/!d' $HOME/Desktop/video_addresses
sed -i -e 's/http/\nhttp/g' -e 's/%25/%/g' -e 's/%3A/:/g' -e 's/%2F/\//g' $HOME/Desktop/video_addresses
sed -i '/o-o/!d' $HOME/Desktop/video_addresses
sed -i -e 's/%3F/?/g' -e 's/%3D/=/g' -e 's/%26/\&/g' -e 's/%25/%/g' $HOME/Desktop/video_addresses
sed -i -e 's/\&type=.*\&sig/\&signature/g' -e 's/\&quality=.*$//g' $HOME/Desktop/video_addresses

Save as find_my_lost_video and make the script executable:

chmod +x /path/where/you/saved/the/script/find_my_lost_video

Execute as

/path/to/script/find_my_lost_video "youtubeaddress"

for example

~/find_my_lost_video "http://www.youtube.com/watch?v=oHg5SJYRHA0"

A text file will be created on your Desktop named video_addresses

http://o-o---preferred---sn-4vguioxu-n3be---v14---lscache4.c.youtube.com/videoplayback?upn=bhLHngwCAxc&sparams=cp%2Cgcr%2Cid%2Cip%2Cipbits%2Citag%2Cratebypass%2Csource%2Cupn%2Cexpire&fexp=909711%2C925104%2C922401%2C920704%2C912806%2C913419%2C913546%2C913556%2C919349%2C919351%2C925109%2C919003%2C920201%2C912706&ms=au&expire=1349319125&itag=43&ipbits=8&gcr=gr&sver=3&ratebypass=yes&mt=1349295252&ip=79.103.160.166&mv=m&source=youtube&key=yt1&cp=U0hTTlNMV19HT0NOM19LRkFCOnM0MnFWVEdHSVRw&id=a1ce81cf5b38744c&signature=5EF9980D50D8AEE4ADEED51D36DF658F721FF0EF.610451ECC1CAD34DA4ADAB96FA1035F0E82C0326
http://o-o---preferred---sn-4vguioxu-n3be---v14---lscache4.c.youtube.com/videoplayback?upn=bhLHngwCAxc&sparams=algorithm%2Cburst%2Ccp%2Cfactor%2Cgcr%2Cid%2Cip%2Cipbits%2Citag%2Csource%2Cupn%2Cexpire&fexp=909711%2C925104%2C922401%2C920704%2C912806%2C913419%2C913546%2C913556%2C919349%2C919351%2C925109%2C919003%2C920201%2C912706&ms=au&algorithm=throttle-factor&burst=40&ip=79.103.160.166&itag=34&gcr=gr&sver=3&mt=1349295252&mv=m&source=youtube&key=yt1&ipbits=8&factor=1.25&cp=U0hTTlNMV19HT0NOM19LRkFCOnM0MnFWVEdHSVRw&expire=1349319125&id=a1ce81cf5b38744c&signature=41CBD6601B7B4B9E099197C4BF38105BE5C66847.2DCEC909BFCAF33F7868F2C81E3857E8D6E4209C
http://o-o---preferred---sn-4vguioxu-n3be---v20---lscache2.c.youtube.com/videoplayback?upn=bhLHngwCAxc&sparams=cp%2Cgcr%2Cid%2Cip%2Cipbits%2Citag%2Cratebypass%2Csource%2Cupn%2Cexpire&fexp=909711%2C925104%2C922401%2C920704%2C912806%2C913419%2C913546%2C913556%2C919349%2C919351%2C925109%2C919003%2C920201%2C912706&ms=au&expire=1349319125&itag=18&ipbits=8&gcr=gr&sver=3&ratebypass=yes&mt=1349295252&ip=79.103.160.166&mv=m&source=youtube&key=yt1&cp=U0hTTlNMV19HT0NOM19LRkFCOnM0MnFWVEdHSVRw&id=a1ce81cf5b38744c&signature=B45EF0A1D82544EFF5C118E10F380095C0383CBE.0D9B3207316B706CCC8DC3BB7297A0476503673F
http://o-o---preferred---sn-4vguioxu-n3be---v2---lscache4.c.youtube.com/videoplayback?upn=bhLHngwCAxc&sparams=algorithm%2Cburst%2Ccp%2Cfactor%2Cgcr%2Cid%2Cip%2Cipbits%2Citag%2Csource%2Cupn%2Cexpire&fexp=909711%2C925104%2C922401%2C920704%2C912806%2C913419%2C913546%2C913556%2C919349%2C919351%2C925109%2C919003%2C920201%2C912706&ms=au&algorithm=throttle-factor&burst=40&ip=79.103.160.166&itag=5&gcr=gr&sver=3&mt=1349295252&mv=m&source=youtube&key=yt1&ipbits=8&factor=1.25&cp=U0hTTlNMV19HT0NOM19LRkFCOnM0MnFWVEdHSVRw&expire=1349319125&id=a1ce81cf5b38744c&signature=4E076626B4B7C62AE27C921F82AC913EC0753DD2.40A833B37676A3484C0E85C655D71FF6D9F31F4D
http://o-o---preferred---sn-4vguioxu-n3be---v14---lscache5.c.youtube.com/videoplayback?upn=bhLHngwCAxc&sparams=algorithm%2Cburst%2Ccp%2Cfactor%2Cgcr%2Cid%2Cip%2Cipbits%2Citag%2Csource%2Cupn%2Cexpire&fexp=909711%2C925104%2C922401%2C920704%2C912806%2C913419%2C913546%2C913556%2C919349%2C919351%2C925109%2C919003%2C920201%2C912706&ms=au&algorithm=throttle-factor&burst=40&ip=79.103.160.166&itag=36&gcr=gr&sver=3&mt=1349295252&mv=m&source=youtube&key=yt1&ipbits=8&factor=1.25&cp=U0hTTlNMV19HT0NOM19LRkFCOnM0MnFWVEdHSVRw&expire=1349319125&id=a1ce81cf5b38744c&signature=0BFBB6A6AA5E46CC392DDA12700709718FAC426B.8DB18154CE1AA29981149BC090350AB6154A4E38
http://o-o---preferred---sn-4vguioxu-n3be---v20---lscache7.c.youtube.com/videoplayback?upn=bhLHngwCAxc&sparams=algorithm%2Cburst%2Ccp%2Cfactor%2Cgcr%2Cid%2Cip%2Cipbits%2Citag%2Csource%2Cupn%2Cexpire&fexp=909711%2C925104%2C922401%2C920704%2C912806%2C913419%2C913546%2C913556%2C919349%2C919351%2C925109%2C919003%2C920201%2C912706&ms=au&algorithm=throttle-factor&burst=40&ip=79.103.160.166&itag=17&gcr=gr&sver=3&mt=1349295252&mv=m&source=youtube&key=yt1&ipbits=8&factor=1.25&cp=U0hTTlNMV19HT0NOM19LRkFCOnM0MnFWVEdHSVRw&expire=1349319125&id=a1ce81cf5b38744c&signature=086D63F9AAB90B0DB4970C25AEA1492226E78637.CECC96A1E93906B272097A12E4F3F6A7D96A8F72

These are the links to the videos contained in the youtube page (mp4, flv, high quality, medium quality, etc.)
You can now copy and paste them in your web browser and download the video you like - afterwards, you can sort things out with ffmpeg (or avidemux if you're a gui guy).

I understand that this could be done with all these FlashRetriever, YouTubeDownloader, etc. thingamabobs, but the script way
1) is the linux way
2) will not bloat your web browser even more than it already is.

DISCLAIMER: Do this only if you own the video (remember the thread's title?). We wouldn't want all these hardworking rock stars and hollywood actors to starve, would we? After all, piracy kills music, cinema, the ozone layer, etc. Right? Right...

Last edited by TeoBigusGeekus (2012-10-03 20:19:10)


Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!

Offline

Help fund CrunchBang, donate to the project!

#2 2012-06-06 08:26:25

sunfizz98
Carbonated Orange Juice
From: su terminal
Registered: 2011-05-12
Posts: 1,872
Website

Re: How to: Find your lost video file...

You win a cookie from me for the reasons you stated.  Also, never thought people would rip youtube for music videos...


WP | G+ | Bear no grudges for they tax the mind and body.

Offline

#3 2012-06-06 08:29:55

TeoBigusGeekus
#! Junkie
From: /Greece/Kastoria
Registered: 2012-04-28
Posts: 448

Re: How to: Find your lost video file...

sunfizz98 wrote:

You win a cookie from me for the reasons you stated.

Thanks mate.

sunfizz98 wrote:

Also, never thought people would rip youtube for music videos...

The bastards... mad


Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!

Offline

#4 2012-06-06 15:42:18

rhowaldt
#!*$%:)
Registered: 2011-03-09
Posts: 4,396

Re: How to: Find your lost video file...

nice one Teo, that looks really good. if there's a way to do it through the terminal, do it through the terminal! smile

Offline

#5 2012-06-06 18:09:34

TeoBigusGeekus
#! Junkie
From: /Greece/Kastoria
Registered: 2012-04-28
Posts: 448

Re: How to: Find your lost video file...

rhowaldt wrote:

nice one Teo, that looks really good. if there's a way to do it through the terminal, do it through the terminal! smile

Yup, definitely.
Also, all these extensions, widgets, or whatever they're called, search for media files on every site you visit, thus increasing your browser's load.


Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!

Offline

#6 2012-10-03 20:20:01

TeoBigusGeekus
#! Junkie
From: /Greece/Kastoria
Registered: 2012-04-28
Posts: 448

Re: How to: Find your lost video file...

Updated because of youtube changes.


Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo