Hot answers tagged youtube
17
Use this Bash script to get a list with all temporarily saved Flash videos:
#!/usr/bin/env bash
for flashpid in $(pgrep -f flashplayer.so); do
cd "/proc/$flashpid/fd"
for video in $(file * | grep '/tmp/Flash' | sed 's/\(^[0-9]*\).*/\1/g'); do
echo "/proc/$flashpid/fd/$video"
done
done
Mark the script as executable and run, for example ...
14
$ ffmpeg -i source-file.foo -ss 0 -t 600 first-10-min.m4v
$ ffmpeg -i source-file.foo -ss 600 -t 600 second-10-min.m4v
$ ffmpeg -i source-file.foo -ss 1200 -t 600 third-10-min.m4v
...
Wrapping this up into a script to do it in a loop wouldn't be hard.
Beware that if you try to calculate the number of iterations based on the duration output from an ffprobe ...
12
I'm getting this with every video, even videos that have previously worked. The URL that youtube-dl attempts to download from is returning a 403 error, so I suspect Youtube changed something internally that broke the script (not for the first time).
There's been quite a bit of youtube-dl development activity today, and the latest version in github works, so ...
9
Wrapping the URL in single quotation marks should do the trick. Also, you will want to give a name to the downloaded file as well (otherwise it will have the weird name that wget guessed from the URL). So
wget ...
3
Check this fix:
sudo apt-get install git
git clone https://github.com/rg3/youtube-dl.git
sudo apt-get install zip
nano youtube_dl/InfoExtractors.py (modify line 405)
make compile
./youtube-dl
3
One method I've heard of is to use DNS servers (OpenDNS and Google DNS come to mind) outside the country, that way requests will direct to other youtube servers outside the country.
Bear in mind this may adversely affect some things, because your connections may have added network hops between you to what you're trying to reach.
Oh, another option:
You ...
3
Use youtube-dl for downloading Youtube videos. It's a epic python script. It req's Python. If you have Ubuntu, install with this command: sudo apt-get install youtube-dl otherwise you can directly download it from the website: http://rg3.github.com/youtube-dl/
3
Don't use wget for downloading individual pages. It is better suited for things like recursive downloads of whole sites. Try curl instead.
Also, make sure you quote your arguments on the command line so that you don't run into shell globing problems with characters like ?.
curl ...
2
It might depend on your window manager, but in KDE Flash maximizes to the display the browser is in. It may not work as expected if your browser window spans across two displays. What I do is move the browser window to say the left screen, then hit maximize, it will be maximized on that left screen.
I don't know of any way to leave the browser on the ...
2
You can use mencoder (in your distribution, it should come in the package mplayer). If you wanted to extract 3 minutes starting at 21:50, you would do
mencoder -ss 21:50 -endpos 3:00 your-video.mp4 -o output.mp4 -oac copy -ovc copy
It's not exact: the starting point will be adjusted to the beginning of a frame. It's possible to work around this, if it's a ...
1
If you wan't to use only a proxy server for specific sites you should look into PAC files. It is basically a JavaScript file which let's you specify which proxies should be used for which domains. If you have your own network at home you can combine this with wpad - web proxy autodiscovery and Chrome, Firefox, IE and probably Safari.
This is probably the ...
1
I agree with the comments saying youtube_dl is probably what you want, but you will also be interested to know:
YouTube's performance at downloading FLV is far slower than downloading the MP4 for whatever reason.
Therefore, avoiding Flash entirely may help more than a download accelerator.
1
I have a simple solution for YouTube videos: Chrome with Fedora 13 and above.
Just change USERNAME in the following command to your current username. Run the first and then the second command so that you will get a shortcut of your cached folder on your desktop.
cd /home/USERNAME/Desktop
ln -s /home/USERNAME/.cache/google-chrome/Default/Cache youtube
1
You can adapt the script found in Play YouTube Videos Without Flash [From /tmp, Works With Adobe Flash 10.2]. It works for me using Google Chrome on Debian.
1
To find proprietary driver for ATI card head to the ATI download page and check if a Linux driver is available for your model. Alternatively, you can use Ubuntu's driver finder by going to System -> Administration -> Hardware Drivers.
If installing the driver doesn't help try the newest version of Flash by getting it from Adobe.
1
Note the exact punctuation of the alternative format is -ss mm:ss.xxx. I struggled for hours trying to use the intuitive-but-wrong mm:ss:xx to no avail.
$ man ffmpeg | grep -C1 position
-ss position
Seek to given time position in seconds. "hh:mm:ss[.xxx]" syntax is also supported.
References here and here.
Only top voted, non community-wiki answers of a minimum length are eligible