Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

As I moved to newer version of firefox-8.0 I lost the location firefox use to store flash videos
previously it used to be in /tmp/FLASH****, but now it's not there
even in .mozilla/firefox/profile-name/Cache they have changed the storage scheme. So is there any way to know where these videos/flash are stored ? moreover if it get changed again then how can we locate the location of video being buffered.

Edit : Also about:cache and locating video didn't help.

share|improve this question

3 Answers 3

Edit dated 20130204: What I'm using currently is this:

find /home/username/.mozilla/firefox/random.default/Cache/*/ -type f -size +1M -printf "%p\n" | tee ~/Desktop/zlist.txt && xargs -a ~/Desktop/zlist.txt mv -t /home/username/Downloads/fcache

I've made an alias for this in .bash_aliases.

Notes:
username and random.default will vary per user. An inspection of each file in the file manager should identify file types. I'm currently using Firefox 19.0 (beta).
1M can be increased to whatever one wishes.
It requires a folder, fcache, to exist in ~/Downloads.
It creates a file, zlist.txt, which can be deleted.
It doesn't work with some YouTube videos. I don't know why.
I'm sure someone better at this will have something more elegant.

share|improve this answer
    
worked. I though it's not inside cache –  Peeyush Feb 3 '12 at 15:23
    
For version 4, Firefox capped the size of files in cache to 5 MB. Now, it's 50 MB or 1/8th of your total cache size, whichever is smaller according to comment #19 in bug 647391. –  user25656 Feb 3 '12 at 17:32

Answering your immediate need: I don't know about /tmp/FLASH, but throughout my browsing experience flash videos are stored in the normal cache.

You should be able to find them using (the resource intensive search):

 find .mozilla/firefox -type f -exec mimetype {} \; | grep "shockwave"

Change the path to something other than mozilla/firefox for a more broad/specific search. The code searches for all files (-type f) in the folder, and executes "mimetype" on it. Then it filters out results that don't have "shockwave" in the results.

However, if you're trying to save bandwidth by not re-downloading the same youtube video, perhaps you want to use youtube-dl?

share|improve this answer
    
fyi: vasa1's results return in... 0 seconds. mine: ~ 2 minutes. Checking the mimetype of all those files takes a while. –  isaaclw Feb 3 '12 at 15:30
    
generally I want to save video after watching them. so youtube-dl doesnt make sense in that case. Does it pick from firefox cache too ? –  Peeyush Feb 3 '12 at 17:57
1  
youtube-dl does not pick from the firefox cache. And your response is reasonable, but realise that you can't watch until you download/save. So you might as well save them once... (again, if it's a bandwidth issue). Though I could see how you wouldn't want to switch to the terminal after every youtube video... –  isaaclw Feb 3 '12 at 19:21
    
x% of videos are rejected after watching 10% on youtube. So if x is > 30 then also youtube-dl does not make sense. There should be some plugin on firefox which does this job (pick it from cache if available otherwise download ). –  Peeyush May 16 '12 at 16:49
    
That reason makes sense. I wonder if you can preview them while you're downloading them (using youtube-dl). –  isaaclw May 17 '12 at 17:46

Add these scripts in your .bashrc and try from console.

yt(){
    # HTML 5
    find ~/.mozilla/firefox/*.default/Cache -type f -size +100k -ls|awk '{printf $11 "\n"}'|xargs file|grep -i webm|awk -F: '{printf $1 "\n"}'
    # Flash Video
    find ~/.mozilla/firefox/*.default/Cache -type f -size +100k -ls|awk '{printf $11 "\n"}'|xargs file|grep -i 'Flash Video'|awk -F: '{printf $1 "\n"}'

}

yt2(){

    # This shows mozilla-media-cache/media_cache (deleted) which is cache of HTML5
    FX=`ps -ef|grep '/usr/lib/firefox/firefox'|grep -v grep|head -1|awk '{printf $2}'`
    if [ $FX -ne 0 ] ; then {
        echo /proc/$FX/fd/;
        ll /proc/$FX/fd/|grep media_cache
    }
    else echo 'No running firefox';return 0; 
    fi;
}
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.