LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices

Old

downloading videos from youtube via online java websites

Posted 07-25-2013 at 09:59 AM by sumeet inani

I keep a collection of videos available at http://www.youtube.com/show/pavitrar...ag_id=&sort=dd and http://www.youtube.com/show/badeacch...view=8&sort=dd

You can catch the videos from catchvideo.net or keepvid.net
Then I use this script for continuous downloading
Code:
#!/bin/sh
while true
do
	echo 'enter URL (q to quit):'
	read   downloadlink
	if [ "$downloadlink"
...
Member
Posted in Uncategorized
Views 300 Comments 0 sumeet inani is offline
Old

base 64 encoding via c

Posted 07-25-2013 at 09:04 AM by sumeet inani

I came across some anti-virus in windows that detect programs like cmdow , fgdump etc. as threat & quarantine/remove it without asking.

So I wrote this c program that takes a byte from input-binary & writes it to ascii-hex-text-file while encoding .
In decoding takes two alphanumeric characters from input-text & writes it as single char to output-binary.

Compile it in your distro using
gcc program-file-name.c

Here is the code...
Member
Posted in Uncategorized
Views 262 Comments 0 sumeet inani is offline
Old

calculating write speed

Posted 07-05-2013 at 08:22 AM by sumeet inani
Updated 07-05-2013 at 08:23 AM by sumeet inani (clarity)

Hi ,
I wrote this script for any normal distro
This calculates data written in 10 seconds to get average.
Also monitors copying process , if possible , to know when to stop monitoring
Code:
#!/usr/bin/bash
monitor_drive=sdb1
number_of_argument=$#
echo PID is $processid
if [ "$1" = "--help" ]
	then
	echo USAGE
	echo ./general \<device_name\> \<PID\>
	echo mention PID as \'no\' \(without
...
Member
Posted in Uncategorized
Views 3617 Comments 4 sumeet inani is offline
Old

restart process if killed improperly

Posted 06-27-2013 at 10:00 AM by sumeet inani

Hi , i am using qbittorrent in fedora 17
It frequently happens that
Code:
Catching SIGSEGV, please report a bug at http://bug.qbittorrent.org
and provide the following backtrace:
qBittorrent version: v3.0.9
stack trace:
[4]+  Segmentation fault      (core dumped) qbittorrent  (wd: ~/sumeet)
So I ran this script which works well
Code:
until qbittorrent; do
    echo "Server 'qbittorrent' crashed with exit code $?.  Respawning.."
...
Member
Posted in Uncategorized
Views 301 Comments 0 sumeet inani is offline
Old

grabbing videos from youtube

Posted 12-09-2011 at 09:20 PM by sumeet inani
Updated 12-09-2011 at 09:34 PM by sumeet inani (explanation)

There are lots of full length movies (http://www.youtube.com/movies) on youtube . You cannot grab that video as it is drm encrypted . So I decided to use ffmpeg
I took a screenshot of web browser (opera) then opened jpg file in kolourpaint to find out top left & bottom right of video frame in browser . They were found out to be
24,129 & 669,524
which indicated 645x395 video dimension
So , I ran
Code:
ffmpeg -f x11grab -s 646x396  -r 30 -i :0.0+24,129 -sameq out.mpg
...
Member
Posted in Uncategorized
Views 3524 Comments 1 sumeet inani is offline

  



All times are GMT -5. The time now is 11:07 AM.

Main Menu
Advertisement

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration