LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 02-18-2011, 10:45 AM   #1
ssvirdi
Member
 
Registered: Apr 2009
Location: Ludhiana, Punjab, India.
Distribution: Ubuntu
Posts: 47

Rep: Reputation: 15
YouTube and /tmp folder


Dear Friends,

I normally download videos from YouTube, DailyMotion etc sites for late viewing or for students. For this I had never used any software. I simply play the on-line video and when buffering completes the video appears in the /tmp folder and then I just have to copy it on another location.

But now I have a problem when I play the video and after buffering completes, the video file not comes in /tmp folder. I am failed to solve the problem. Please, help me to solve this problem. Really I need the solution.

Thanks in advance.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 02-18-2011, 10:52 AM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Try checking within all of the sub-directories within /tmp. Either using the find command, or maybe if you feel brave, cd and ls to every directory within
 
Old 02-18-2011, 12:00 PM   #3
silvyus_06
Member
 
Registered: Oct 2010
Distribution: Ubuntu 10.04 , Linux Mint Debian Edition , Microsoft Windows 7
Posts: 390

Rep: Reputation: 50
Quote:
Originally Posted by ssvirdi View Post
Dear Friends,

I normally download videos from YouTube, DailyMotion etc sites for late viewing or for students. For this I had never used any software. I simply play the on-line video and when buffering completes the video appears in the /tmp folder and then I just have to copy it on another location.

But now I have a problem when I play the video and after buffering completes, the video file not comes in /tmp folder. I am failed to solve the problem. Please, help me to solve this problem. Really I need the solution.

Thanks in advance.
with google chrome/chromium in /home/(your user)/.cache/chromium-cache/google-chrome-cache or something like that videos should appear again if you use google chrome or chromium to view the videos... for me i download video like this

there also are online services that let you download in avi , mp4 etc
 
Old 02-18-2011, 12:02 PM   #4
ssvirdi
Member
 
Registered: Apr 2009
Location: Ludhiana, Punjab, India.
Distribution: Ubuntu
Posts: 47

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by corp769 View Post
Try checking within all of the sub-directories within /tmp. Either using the find command, or maybe if you feel brave, cd and ls to every directory within
Thanks for your reply. But I had already looked into all subdirectories of tmp folder and the required file was not there.

Thanks again for reply.
 
Old 02-18-2011, 12:38 PM   #5
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
What browser are you using?
 
Old 02-19-2011, 12:01 AM   #6
ssvirdi
Member
 
Registered: Apr 2009
Location: Ludhiana, Punjab, India.
Distribution: Ubuntu
Posts: 47

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by corp769 View Post
What browser are you using?
I am using firefox on Ubuntu10.10. Please friends help me.
 
Old 02-19-2011, 01:23 AM   #7
silvyus_06
Member
 
Registered: Oct 2010
Distribution: Ubuntu 10.04 , Linux Mint Debian Edition , Microsoft Windows 7
Posts: 390

Rep: Reputation: 50
there are addons for firefox to download youtube videos just search the addons from firefox for youtube downoad and you'll find plenty
 
Old 02-19-2011, 02:30 AM   #8
ssvirdi
Member
 
Registered: Apr 2009
Location: Ludhiana, Punjab, India.
Distribution: Ubuntu
Posts: 47

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by silvyus_06 View Post
there are addons for firefox to download youtube videos just search the addons from firefox for youtube downoad and you'll find plenty
I know about them also there are many on-line services for this job. But I wondered why this happens.

Also I know that when we play any on-line video then during buffering it stores in a folder. And the browser plays the video from that folder. Thus I want to know that folder where the on-line content appears before execution.

Thanks for reply
Please help me to find the solution.
 
Old 02-19-2011, 07:29 AM   #9
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
http://qt-apps.org/content/show.php/...content=128368
 
Old 02-19-2011, 08:16 AM   #10
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
The following discussion in Arch forum might give a clue: https://bbs.archlinux.org/viewtopic.php?pid=856780. I would start by looking at the browser cache by typing the following URL in the address bar:
Code:
about:cache?device=disk
There is also a Firefox add-on to view the content of the cache through a GUI application. Hope this helps.
 
Old 02-19-2011, 10:53 AM   #11
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Quote:
Originally Posted by colucix View Post
The following discussion in Arch forum might give a clue: https://bbs.archlinux.org/viewtopic.php?pid=856780. I would start by looking at the browser cache by typing the following URL in the address bar:
Code:
about:cache?device=disk
There is also a Firefox add-on to view the content of the cache through a GUI application. Hope this helps.
You definitely beat me to it man. That was going to be the next thing I was going to say, using firefox.
 
Old 02-20-2011, 12:21 AM   #12
ssvirdi
Member
 
Registered: Apr 2009
Location: Ludhiana, Punjab, India.
Distribution: Ubuntu
Posts: 47

Original Poster
Rep: Reputation: 15
Dear Friends,
Thanks for your contribution. But my problem is not downloading on-line videos.

My question is that if the video is not coming into the tmp folder then where it goes ?

Through this /tmp folder one can easily download any video, audio, pdf etc files very easily, and thats a great idea without any brain storming on softwares and on-line services. Also many of the present softwares and on-line services can easily download videos but they squeezed the quality of video.

Thanks in advance.

Regards
Er. S.S.Virdi
 
Old 02-20-2011, 08:39 AM   #13
Algis
LQ Newbie
 
Registered: Nov 2010
Posts: 8

Rep: Reputation: 1
Code:
#!/bin/bash

PID=`ps x | grep libflashplayer.so | grep -v grep | awk '{print $1}'`
FD_FILE=`lsof -p $PID | grep '/tmp/Flash' | awk '{print $4, $9}' | sed 's/u//'`
echo "$FD_FILE" | while read line; do 
while [ ! -f $(echo $line | awk '{print $2}') ] || [ $(cat $(echo $line | awk '{print $2}') | wc -c) -lt $(cat /proc/$PID/fd/$(echo $line | awk '{print $1}') | wc -c) ]; do
cp /proc/$PID/fd/$line;
echo File not downloaded. Waiting.
sleep 5s
continue
done
done
Copies video to /tmp with original name.
 
1 members found this post helpful.
Old 02-20-2011, 10:48 AM   #14
ssvirdi
Member
 
Registered: Apr 2009
Location: Ludhiana, Punjab, India.
Distribution: Ubuntu
Posts: 47

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Algis View Post
Code:
#!/bin/bash

PID=`ps x | grep libflashplayer.so | grep -v grep | awk '{print $1}'`
FD_FILE=`lsof -p $PID | grep '/tmp/Flash' | awk '{print $4, $9}' | sed 's/u//'`
echo "$FD_FILE" | while read line; do 
while [ ! -f $(echo $line | awk '{print $2}') ] || [ $(cat $(echo $line | awk '{print $2}') | wc -c) -lt $(cat /proc/$PID/fd/$(echo $line | awk '{print $1}') | wc -c) ]; do
cp /proc/$PID/fd/$line;
echo File not downloaded. Waiting.
sleep 5s
continue
done
done
Copies video to /tmp with original name.
Thanks, please explain how to use it.
I can't understand what to do with it.
 
Old 02-20-2011, 12:30 PM   #15
slack-fu
Member
 
Registered: Feb 2006
Location: Norway
Distribution: Slackware Linux 13.37
Posts: 71

Rep: Reputation: 10
You say you could do it before, but not anymore.. did you change anything?
The Ubuntu you are using, is it a live cd or did you install it to hard drive?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] unable to play youtube videos frm tmp folder bipin0013 Linux - Software 17 10-12-2010 02:55 AM
TMP folder, is everything deletable in there? ginda Linux - Newbie 6 12-16-2006 01:43 PM
/tmp folder bytez Linux - Security 9 10-24-2006 01:10 AM
/var/tmp folder hardeep_ubhi Linux - General 4 10-02-2006 07:10 AM
tmp folder question synaptical Linux - General 8 08-31-2003 03:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 11:49 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
Open Source Consulting | Domain Registration