Re: [gentoo-user] Downloading Flash videos

2007-06-27 Thread Walter Dnes
On Wed, Jun 27, 2007 at 12:27:25AM +0200, Hemmann, Volker Armin wrote

> open site. Wait until flash starts to load
> ls -lhtr /tmp
> the last file, starting with FLASH is the one.
> Wait for it to be fully loaded, copy it somewhere.

  There's an automated way of doing this.  I've written a bash script
that will find flash video files in the current directory *REGARDLESS OF
THE NAME*, and move them over to a specified directory with sequential
names, i.e. mm000.flv, mm001.flv, mm002.flv, etc.  Here's the setup...

1) mkdir ~/mvflv

2) save the script below as ~/bin/mvflv and make it executable.  This
bash script is released under GPL version 2.  You don't know me, so you
may want to wade through the code to ensure that it doesn't do anything
nasty, especially in the backtick expansions.  (I originally wrote the
decrement(), increment(), and getnextversion() functions for use with my
system backups, so that they would be sequentially numbered).

3) cd to either /tmp or Firefox's Cache directory and execute mvflv
The script lists each file it moves into ~/flvfiles

##
#!/bin/bash

decrement() {
  echo $(( $1 - 1 ))
}

increment() {
  echo $(( $1 + 1 ))
}

getnextversion() {
  NUMBER=
  DIGITPOINTER=0
  while [ ${DIGITPOINTER} -lt ${1} ]
  do
NUMBER=${NUMBER}0
DIGIT[${DIGITPOINTER}]=0
DIGITPOINTER=`increment ${DIGITPOINTER}`
  done
  while [ -e ${2}${NUMBER}${3} ]
  do
DIGITPOINTER=`decrement ${1}`
DIGITPNTLEFT=`decrement ${DIGITPOINTER}`
DIGIT[${DIGITPOINTER}]=`increment ${DIGIT[${DIGITPOINTER}]}`
NUMBER=
while [ ${DIGITPOINTER} -ge 0 ]
do
  if [ ${DIGIT[${DIGITPOINTER}]} -eq 10 ]
  then
DIGIT[${DIGITPOINTER}]=0
if [ ${DIGITPNTLEFT} -gt 0 ]
then
  DIGIT[${DIGITPNTLEFT}]=`increment ${DIGIT[${DIGITPNTLEFT}]}`
fi
  fi
  NUMBER=${DIGIT[${DIGITPOINTER}]}${NUMBER}
  DIGITPOINTER=${DIGITPNTLEFT}
  DIGITPNTLEFT=`decrement ${DIGITPNTLEFT}`
done
  done
  echo ${2}${NUMBER}${3}
}

for filename in *
do
  if echo "`file ${filename}`" | grep "Macromedia Flash Video" ; then
newfilename=`getnextversion 3 ~/flvfiles/mm .flv`
mv ${filename} ${newfilename}
echo ${newfilename}
  fi
done
##


-- 
Walter Dnes <[EMAIL PROTECTED]> In linux /sbin/init is Job #1
Q. Mr. Ghandi, what do you think of Microsoft security?
A. I think it would be a good idea.
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Downloading Flash videos

2007-06-27 Thread felix
On Wed, Jun 27, 2007 at 12:27:25AM +0200, Hemmann, Volker Armin wrote:
> 
> open site. Wait until flash starts to load
> ls -lhtr /tmp
> the last file, starting with FLASH is the one.
> Wait for it to be fully loaded, copy it somewhere.
> 
> Easy. No plugin needed - and honestly I am surprised that a lot of plugins 
> can't do that right.

You can also make a hard link (NOT a symlink) to the /tmp file while
it is loading, and when it is done and deletes the temp file, it
deletes the original yuckky name only.  You can come back at your
leisure to pick up the remaining linked file, and you can create it
with a better name too.

Use UNIX inode magic, it's pretty handy.

-- 
... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._.
 Felix Finch: scarecrow repairman & rocket surgeon / [EMAIL PROTECTED]
  GPG = E987 4493 C860 246C 3B1E  6477 7838 76E9 182E 8151 ITAR license #4933
I've found a solution to Fermat's Last Theorem but I see I've run out of room o
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Downloading Flash videos

2007-06-27 Thread Mick
On Tuesday 26 June 2007 23:00, Edward Pasek wrote:
> default video driver. I bet you have a ATI video card.

Err, . . . yes 

-- 
Regards,
Mick


pgpsMb0M9aGUZ.pgp
Description: PGP signature


Re: [gentoo-user] Downloading Flash videos

2007-06-27 Thread Roger Luethi
On Tue, 26 Jun 2007 18:08:31 -0300, Daniel da Veiga wrote:
> Use mplayer...

Actually, when using mplayer to play flash videos, you may find that some
of them have audio/video out of sync unless you use the "-correct-pts"
option. Alternatively, use ffplay.

-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Downloading Flash videos

2007-06-26 Thread Hemmann, Volker Armin
On Dienstag, 26. Juni 2007, Mick wrote:
> Hi All,
>
> I've been trying to download different flash embedded videos like:
>
> http://video.google.com/videoplay?docid=4191382246884244677
>
> http://www.youtube.com/watch?v=hjV0Gws-BVM
>
> etc.
>
> I have used VideoDownloader with Firefox and FLV Downloader (which didn't
> work) and Video Manager  with Opera.  It seems that the downloaded video is
> very jumpy (drops huge number of frames) when played back using xine/gxine.
> So I thought of using wget to achieve the same effect but without all these
> helpful GUIs, but cannot see what I should be downloading when I look at
> the HTML source of the YouTube web page.
>
> What would you advise on this?

open site. Wait until flash starts to load
ls -lhtr /tmp
the last file, starting with FLASH is the one.
Wait for it to be fully loaded, copy it somewhere.

Easy. No plugin needed - and honestly I am surprised that a lot of plugins 
can't do that right.
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Downloading Flash videos

2007-06-26 Thread Edward Pasek
default video driver. I bet you have a ATI video card.

On Tue, 2007-06-26 at 22:47 +0100, Mick wrote:
> On Tuesday 26 June 2007 22:26, Daniel Pielmeier wrote:
> > Mick schrieb:
> > > Hi All,
> > >
> > > I've been trying to download different flash embedded videos like:
> > >
> > > http://video.google.com/videoplay?docid=4191382246884244677
> > >
> > > http://www.youtube.com/watch?v=hjV0Gws-BVM
> > >
> > > etc.
> > >
> > > I have used VideoDownloader with Firefox and FLV Downloader (which didn't
> > > work) and Video Manager  with Opera.  It seems that the downloaded video
> > > is very jumpy (drops huge number of frames) when played back using
> > > xine/gxine. So I thought of using wget to achieve the same effect but
> > > without all these helpful GUIs, but cannot see what I should be
> > > downloading when I look at the HTML source of the YouTube web page.
> > >
> > > What would you advise on this?
> >
> > As Hans-Werner already mentioned, most embedded (flash)-videos are
> > stored temporarily on disk in /tmp or in the browser's cache at least
> > here with firefox. So just wait until it is loaded and don't close the
> > browser window then copy it to where you want. Btw. YouTube and
> > GoogleVideo store them to /tmp.
> >
> > They play well with mplayer, xine, vlc which i use, others will also work.
> 
> Thank you All,
> 
> Good tip, should have thought of looking into /tmp, or the browser cache.  I 
> did some comparative playbacks and xine/gxine drop frames like mad, while 
> mplayer manages a pretty respectable output.  Therefore the problem seems to 
> be not on the download but the playback.  Hmm, why would that be?
> 
> BTW, xine-check comes back good across the piece:
> ===
> $ xine-check
> Please be patient, this script may take a while to run...
> [ good ] you're using Linux, doing specific tests
> [ good ] looks like you have a /proc filesystem mounted.
> [ good ] You seem to have a reasonable kernel version (2.6.20-gentoo-r8)
> [ good ] intel compatible processor, checking MTRR support
> [ good ] you have MTRR support and there are some ranges set.
> [ good ] found the player at /usr/bin/xine
> [ good ] /usr/bin/xine is in your PATH
> [ good ] found /usr/bin/xine-config in your PATH
> [ good ] plugin directory /usr/lib/xine/plugins/1.1.4 exists.
> [ good ] found unknown plugin: xineplug_flac.so
> [ good ] found input plugins
> [ good ] found demux plugins
> [ good ] found decoder plugins
> [ good ] found video_out plugins
> [ good ] found audio_out plugins
> [ good ] skin directory /usr/share/xine/skins exists.
> [ good ] found logo in /usr/share/xine/skins
> [ good ] I even found some skins.
> [ good ] /dev/cdrom points to /dev/hdc
> [ good ] /dev/dvd points to /dev/hdc
> [ good ] DMA is enabled for your DVD drive
> [ good ] found xvinfo: X-Video Extension version 2.2
> [ good ] your Xv extension supports YV12 overlays (improves MPEG performance)
> [ good ] your Xv extension supports YUY2 overlays
> [ good ] Xv ports:  RGBA RGBT RGB2 YUY2 UYVY YV12 I420
> ===
> 

-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Downloading Flash videos

2007-06-26 Thread Mick
On Tuesday 26 June 2007 22:26, Daniel Pielmeier wrote:
> Mick schrieb:
> > Hi All,
> >
> > I've been trying to download different flash embedded videos like:
> >
> > http://video.google.com/videoplay?docid=4191382246884244677
> >
> > http://www.youtube.com/watch?v=hjV0Gws-BVM
> >
> > etc.
> >
> > I have used VideoDownloader with Firefox and FLV Downloader (which didn't
> > work) and Video Manager  with Opera.  It seems that the downloaded video
> > is very jumpy (drops huge number of frames) when played back using
> > xine/gxine. So I thought of using wget to achieve the same effect but
> > without all these helpful GUIs, but cannot see what I should be
> > downloading when I look at the HTML source of the YouTube web page.
> >
> > What would you advise on this?
>
> As Hans-Werner already mentioned, most embedded (flash)-videos are
> stored temporarily on disk in /tmp or in the browser's cache at least
> here with firefox. So just wait until it is loaded and don't close the
> browser window then copy it to where you want. Btw. YouTube and
> GoogleVideo store them to /tmp.
>
> They play well with mplayer, xine, vlc which i use, others will also work.

Thank you All,

Good tip, should have thought of looking into /tmp, or the browser cache.  I 
did some comparative playbacks and xine/gxine drop frames like mad, while 
mplayer manages a pretty respectable output.  Therefore the problem seems to 
be not on the download but the playback.  Hmm, why would that be?

BTW, xine-check comes back good across the piece:
===
$ xine-check
Please be patient, this script may take a while to run...
[ good ] you're using Linux, doing specific tests
[ good ] looks like you have a /proc filesystem mounted.
[ good ] You seem to have a reasonable kernel version (2.6.20-gentoo-r8)
[ good ] intel compatible processor, checking MTRR support
[ good ] you have MTRR support and there are some ranges set.
[ good ] found the player at /usr/bin/xine
[ good ] /usr/bin/xine is in your PATH
[ good ] found /usr/bin/xine-config in your PATH
[ good ] plugin directory /usr/lib/xine/plugins/1.1.4 exists.
[ good ] found unknown plugin: xineplug_flac.so
[ good ] found input plugins
[ good ] found demux plugins
[ good ] found decoder plugins
[ good ] found video_out plugins
[ good ] found audio_out plugins
[ good ] skin directory /usr/share/xine/skins exists.
[ good ] found logo in /usr/share/xine/skins
[ good ] I even found some skins.
[ good ] /dev/cdrom points to /dev/hdc
[ good ] /dev/dvd points to /dev/hdc
[ good ] DMA is enabled for your DVD drive
[ good ] found xvinfo: X-Video Extension version 2.2
[ good ] your Xv extension supports YV12 overlays (improves MPEG performance)
[ good ] your Xv extension supports YUY2 overlays
[ good ] Xv ports:  RGBA RGBT RGB2 YUY2 UYVY YV12 I420
===

-- 
Regards,
Mick


pgpusrMdLLLRt.pgp
Description: PGP signature


Re: [gentoo-user] Downloading Flash videos

2007-06-26 Thread Daniel Pielmeier

Mick schrieb:

Hi All,

I've been trying to download different flash embedded videos like:

http://video.google.com/videoplay?docid=4191382246884244677

http://www.youtube.com/watch?v=hjV0Gws-BVM

etc.

I have used VideoDownloader with Firefox and FLV Downloader (which didn't 
work) and Video Manager  with Opera.  It seems that the downloaded video is 
very jumpy (drops huge number of frames) when played back using xine/gxine.  
So I thought of using wget to achieve the same effect but without all these 
helpful GUIs, but cannot see what I should be downloading when I look at the 
HTML source of the YouTube web page.


What would you advise on this?


As Hans-Werner already mentioned, most embedded (flash)-videos are 
stored temporarily on disk in /tmp or in the browser's cache at least 
here with firefox. So just wait until it is loaded and don't close the 
browser window then copy it to where you want. Btw. YouTube and 
GoogleVideo store them to /tmp.


They play well with mplayer, xine, vlc which i use, others will also work.

Regards,

Daniel
--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Downloading Flash videos

2007-06-26 Thread Daniel da Veiga

On 6/26/07, Mick <[EMAIL PROTECTED]> wrote:

I have used VideoDownloader with Firefox and FLV Downloader (which didn't
work) and Video Manager  with Opera.  It seems that the downloaded video is
very jumpy (drops huge number of frames) when played back using xine/gxine.
So I thought of using wget to achieve the same effect but without all these
helpful GUIs, but cannot see what I should be downloading when I look at the
HTML source of the YouTube web page.



Use mplayer...
I tried it with same plugins for firefox, and it worked like a charm.

--
Daniel da Veiga
Computer Operator - RS - Brazil
-BEGIN GEEK CODE BLOCK-
Version: 3.1
GCM/IT/P/O d-? s:- a? C++$ UBLA++ P+ L++ E--- W+++$ N o+ K- w O M- V-
PS PE Y PGP- t+ 5 X+++ R+* tv b+ DI+++ D+ G+ e h+ r+ y++
--END GEEK CODE BLOCK--
--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Downloading Flash videos

2007-06-26 Thread Hans-Werner Hilse
Hi,

On Tue, 26 Jun 2007 21:42:55 +0100
Mick <[EMAIL PROTECTED]> wrote:

> I have used VideoDownloader with Firefox and FLV Downloader (which didn't 
> work) and Video Manager  with Opera.  It seems that the downloaded video is 
> very jumpy (drops huge number of frames) when played back using xine/gxine.  

Hm. That shouldn't be an effect here, since those plugins/widgets don't
capture the stream off the network device (packet socket), where
packets could get lost. FLV usually doesn't react good on dropouts
either, it's not streamed via UDP for that reason, I guess. So I'm not
quite sure if you can overcome the jumps...

But FWIW, my method is to "start" the video (i.e. clicking on it so the
flash player opens), then immediately pause it. When the player's "gray
bar" filled up, the FLV is waiting for a quick "cp" on the command line
as temporary file in /tmp (named "Flash"). Some flash
players utilize the browser to download the FLV, then it will be in the
browser's cache directory. Works all the time, I don't bother with
extensions/plugins anymore...

BTW, my preferred player for those is vlc. But it should work with any
player linked against a reasonably recent ffmpeg.

-hwh
-- 
[EMAIL PROTECTED] mailing list