[ Date Index ]
[ Thread Index ]
[ <= Previous by date /
[ Next by date /
thread => ]
[LUG] Online video stream playback problems: fixed
- To: "dclug.org.uk" <list@xxxxxxxxxxxx>
- Subject: [LUG] Online video stream playback problems: fixed
- From: Philip Hudson <phil.hudson@xxxxxxxxx>
- Date: Sat, 2 Nov 2013 15:17:19 +0000
- Delivered-to: dclug@xxxxxxxxxxxxxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:message-id:subject:to:content-type; bh=BQyL/306+P1UhiriWWLRxXfpu0KYFeCp7kMmrshwh4c=; b=a/gQxB5eK3jQc2LlyiI8vkfSy95UlV44RFljq55Rs7+us5Hr1j+kiv5x3+xXMtaKAm SEPOb2JGg78BJbg419+hfZeAccLyISeLwzerM8rxwg/ELNnaJ1TafPR2WHeE0wBcExli RNvEJ7Yckexj1UnSV5vvp19SLuZD+6GjSFrLo5NNJ1I1NxTcjGRvGmT4g8OX2tFnuUye ISYztMuYVMKDIST5d5nBp0MTuBFwuaLhKuK9+PUoJ/gZlyU4FNgRm3futon1vON3ZEsT RaWnc8mdiAEaQ4jcCuG/OYw+b6m4XtaSOIUZc7ckdtrRSzOiFPiWiBh9tZLZfmFMrv5e ab9g==
Rather than relying on your browser, its media playback plugin(s) and your internet connection all being on song together, try this. Takes longer to start but gives you smooth playback. Works for lots of sites, not just YouTube.
1. Use your package manager to install 'youtube-dl' and 'vlc'
2. Put this in a shell script in your PATH called something like ~/bin/ytdp:
# ... or ~/Downloads or ~/tmp or just ~
# Precompute the downloaded video file's name
dled_video_file=`youtube-dl --get-filename "$1"`
# Do the download
# Play the video
vlc --fullscreen --play-and-exit "$dled_video_file"
# Uncomment if you don't want to keep the download
# rm "$dled_video_file"
3. Copy your video's URL (eg http://youtube.com/?v=whatever
) and pass it in via a terminal command line, or xdotool, or your application menu's "Run..." item. NB Surround ("escape") the URL with single quotes to prevent characters like '?' from being expanded.
The Mailing List for the Devon & Cornwall LUG