How To Keep Videos Downloaded With Flash Player 10.2+
Posted: Wed 06 Apr 2011, 15:22
READ-ONLY Archive
https://oldforum.puppylinux.com/
Yep.nooby wrote:So if I have two Rox windows open and drag the file from one to the other then it will not work?
Not bothered really. Sorry.nooby wrote:Would be cool if we chose the same music file and both test to see where it end up?
What? Not censorshiped in some countries? If so Youtube is not the place to go to.nooby wrote:Has to be one accepted the world over though.
Are you using the latest flash player from the adobe website and not one from the puppy repos or forums as these can be some versions behind?nooby wrote:You can chose another but I will test now in Snow Pup 5 to see where it ends up. Edit it ended up not in Tmp but in root/.mozilla/Firefox/nyrsxxxx.default/Cache
Yep no file ext.nooby wrote:had same kind of look like all the others that one catch this way.
Smart players like VLC, Mplayer, Xine, ect don't need a ext. Don't guess the ext. That could confuse non smart programs. What you need to know is the containe format. You can get it with the command "ffmpeg -i <Video>".nooby wrote:it has no ending and if one put .mp4 there then it works to look at using VLC and it worked dragging it between two Rox windows.
Code: Select all
<Fri Apr 08><20:48:04>/mnt/sdb2/MultiMedia/Video/Internet/Youtube/Tech
3>>>
ffmpeg -i ./WhySoftwareSucks-GeeksDriveStickShiftCars
FFmpeg version SVN-r25158-snapshot, Copyright (c) 2000-2010 the FFmpeg developers
built on Sep 24 2010 21:49:52 with gcc 4.3.4
configuration: --prefix=/usr --cpu=i686 --enable-libmp3lame --enable-libx264 --enable-libfaac --enable-pthreads --enable-small --enable-postproc --enable-libvorbis --enable-gpl --enable-shared --enable-nonfree --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-debug --enable-bzlib --enable-zlib --enable-libspeex --enable-version3 --enable-runtime-cpudetect --enable-x11grab --enable-libdc1394 --enable-libschroedinger --enable-libtheora --enable-libxvid --enable-swscale --enable-mmx --enable-libvpx
libavutil 50.27. 0 / 50.27. 0
libavcore 0. 9. 0 / 0. 9. 0
libavcodec 52.89. 0 / 52.89. 0
libavformat 52.78. 5 / 52.78. 5
libavdevice 52. 2. 2 / 52. 2. 2
libavfilter 1.39. 0 / 1.39. 0
libswscale 0.11. 0 / 0.11. 0
libpostproc 51. 2. 0 / 51. 2. 0
Seems stream 1 codec frame rate differs from container frame rate: 60000.00 (60000/1) -> 29.97 (30000/1001)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from './WhySoftwareSucks-GeeksDriveStickShiftCars':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: isomavc1mp42
Duration: 00:02:00.92, start: 0.000000, bitrate: 534 kb/s
Stream #0.0(und): Audio: aac, 44100 Hz, stereo, s16, 103 kb/s
Stream #0.1(und): Video: h264, yuv420p, 480x320 [PAR 1:1 DAR 3:2], 428 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 60k tbc
At least one output file must be specified
<Fri Apr 08><20:48:25>/mnt/sdb2/MultiMedia/Video/Internet/Youtube/Tech
4>>>
Code: Select all
<Fri Apr 08><20:43:22>/mnt/sdb2/MultiMedia/Video/Internet/Youtube/Amusing
1>>>
ffmpeg -i ./StarWarsHelpDesk
FFmpeg version SVN-r25158-snapshot, Copyright (c) 2000-2010 the FFmpeg developers
built on Sep 24 2010 21:49:52 with gcc 4.3.4
configuration: --prefix=/usr --cpu=i686 --enable-libmp3lame --enable-libx264 --enable-libfaac --enable-pthreads --enable-small --enable-postproc --enable-libvorbis --enable-gpl --enable-shared --enable-nonfree --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-debug --enable-bzlib --enable-zlib --enable-libspeex --enable-version3 --enable-runtime-cpudetect --enable-x11grab --enable-libdc1394 --enable-libschroedinger --enable-libtheora --enable-libxvid --enable-swscale --enable-mmx --enable-libvpx
libavutil 50.27. 0 / 50.27. 0
libavcore 0. 9. 0 / 0. 9. 0
libavcodec 52.89. 0 / 52.89. 0
libavformat 52.78. 5 / 52.78. 5
libavdevice 52. 2. 2 / 52. 2. 2
libavfilter 1.39. 0 / 1.39. 0
libswscale 0.11. 0 / 0.11. 0
libpostproc 51. 2. 0 / 51. 2. 0
[flv @ 0x8076470] Estimating duration from bitrate, this may be inaccurate
Seems stream 0 codec frame rate differs from container frame rate: 59.94 (2997/50) -> 29.92 (359/12)
Input #0, flv, from './StarWarsHelpDesk':
Metadata:
duration : 237
starttime : 0
totalduration : 237
width : 320
height : 240
videodatarate : 306
audiodatarate : 107
totaldatarate : 421
framerate : 30
bytelength : 12520362
canseekontime : true
sourcedata : B4A7D04C1MH1298594533198923
purl :
pmsg :
Duration: 00:03:57.13, start: 0.000000, bitrate: 423 kb/s
Stream #0.0: Video: h264, yuv420p, 320x240 [PAR 1:1 DAR 4:3], 313 kb/s, 29.92 tbr, 1k tbn, 59.94 tbc
Stream #0.1: Audio: aac, 44100 Hz, stereo, s16, 109 kb/s
At least one output file must be specified
<Fri Apr 08><20:43:31>/mnt/sdb2/MultiMedia/Video/Internet/Youtube/Amusing
2>>>
Code: Select all
Input #0, flv, from './StarWarsHelpDesk':
Code: Select all
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from './WhySoftwareSucks-GeeksDriveStickShiftCars':
Code: Select all
<Fri Apr 08><20:43:31>/mnt/sdb2/MultiMedia/Video/Internet/Youtube/Amusing
2>>>
Don't close the web browser, window or tab the webpage is loaded in because the flash player lib gets closed and it deletes its temp files. So wait for it to finish downloading then copy it to where you want it.nooby wrote:But it is gone if I shut down FF so one have to do it while it last. One should stop the playing and do the move when it has loaed shown by the read line showing the progress of the loading.
With Mozzila based Web Browsers. In the address bar enter "about:plugins".nooby wrote:How do I find out which version I have ?
Code: Select all
#!/bin/sh
echo "===================="
echo "==== Flash Save ===="
echo "===================="
yt=`lsof -n | grep -i Flash | awk 'NR==2{ print $2 }'`
name=`lsof -n | grep -i Flash | awk 'NR==2{ print strtonum($4) }'`
if [ $yt ]; then.
#rox /proc/$yt/fd | echo "found Flash files in /proc/$yt/fd" && mplayer /proc/$
echo "found Flash files in /proc/$yt/fd" && mplayer /proc/$yt/fd/$name.
echo "Would you like to save file? y/n"
read ANSWER
if [[ $ANSWER = "Y" || $ANSWER = "y" ]]; then
cp /proc/$yt/fd/$name $HOME/$name.$RANDOM && echo "saved flash video to $HOME"
else
echo "You selected no will now exit - Bye" && exit
fi
Your welcome. Thanks for posting the extra info. That will be appreciated by newbies. I had forgotten that the Type column was disabled by default in rox-filer.Indy wrote:Hi abushcrafter,
Thanks for this. I've been trying to do this for a while!
It might not be a "Flash video" it might be "MPEG-4 video" or something else depending on a few things.Indy wrote:I found I had to change my Rox options to display the "Type" column so I could see which file was the Flash Video.
Code: Select all
#!/bin/sh
# Ref: http://www.murga-linux.com/puppy/viewtopic.php?p=511875&sid=9e8f73e46278738283eaf1beaeaad34e#511875
# Based on stu90's work!
# Indy. 11-APR-11.
#
# Notes:
# -----
# If you want to change the save directory, change were savedirectory is set below.
#
# echo -e: the -e is what recognises the \n newline character in the display
# %s%N: in 'date', %s is the number of seconds since 1970 or something; %N is nanoseconds.
# mkdir -p: the -p allows the make directory command to ignore errors such as the directory already existing.
# read -n 1: means no newline is required, and input stops after receiving one character.
#====================================================================
echo "==================================="
echo "==== Save Flashplayer Video(s) ===="
echo "==================================="
flash_videos_directory=`lsof -n | grep Flash | grep deleted | awk 'NR==1{ print $2 }'`
count_of_flash_videos_found=`lsof -n | grep Flash | grep deleted | wc -l`
if [ $flash_videos_directory ]; then
echo -e "\n$count_of_flash_videos_found Flashplayer video file(s) found in /proc/$flash_videos_directory/fd/:\n"
ls -l /proc/$flash_videos_directory/fd | grep Flash | grep deleted
echo -e "\nWould you like to save the file(s)? y/n [n]"
read -n 1 ANSWER
if [[ $ANSWER = "Y" || $ANSWER = "y" ]]; then
savedirectory="$HOME/savedvideos"
mkdir -p $savedirectory
COUNT=1
while [ $COUNT -le $count_of_flash_videos_found ]
do
name=`lsof -n | grep Flash | grep deleted | awk 'NR=='"$COUNT"'{ print strtonum($4) }'`
idno=`date "+%s%N"`
cp /proc/$flash_videos_directory/fd/$name $savedirectory/video.$idno && echo -e "\nProgress... ($COUNT of $count_of_flash_videos_found): Saved as video.$idno."
let COUNT=COUNT+1
done
echo -e "\nFinished! $count_of_flash_videos_found flashplayer video(s) saved to $savedirectory.. Viewing in Rox now..."
rox $savedirectory
else
echo "Ok. Bye!"
fi
else
echo -e "\nNo (hidden) Flashplayer videos found. Bye!"
fi