public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Downloading Flash videos
@ 2007-06-26 20:42 Mick
  2007-06-26 21:03 ` [gentoo-user] " Ali Polatel
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: Mick @ 2007-06-26 20:42 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 681 bytes --]

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?
-- 
Regards,
Mick

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [gentoo-user] Re: Downloading Flash videos
  2007-06-26 20:42 [gentoo-user] Downloading Flash videos Mick
@ 2007-06-26 21:03 ` Ali Polatel
  2007-06-26 21:06 ` [gentoo-user] " Hans-Werner Hilse
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 12+ messages in thread
From: Ali Polatel @ 2007-06-26 21:03 UTC (permalink / raw
  To: gentoo-user

Mick <michaelkintzios@gmail.com> yazmış:
> 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?

 How about net-misc/youtube-dl?


-- 
ali polatel (hawking)
Not all men who drink are poets.  Some of us drink because we aren't poets.
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] Downloading Flash videos
  2007-06-26 20:42 [gentoo-user] Downloading Flash videos Mick
  2007-06-26 21:03 ` [gentoo-user] " Ali Polatel
@ 2007-06-26 21:06 ` Hans-Werner Hilse
  2007-06-26 21:08 ` Daniel da Veiga
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 12+ messages in thread
From: Hans-Werner Hilse @ 2007-06-26 21:06 UTC (permalink / raw
  To: gentoo-user

Hi,

On Tue, 26 Jun 2007 21:42:55 +0100
Mick <michaelkintzios@gmail.com> 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<random string>"). 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
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] Downloading Flash videos
  2007-06-26 20:42 [gentoo-user] Downloading Flash videos Mick
  2007-06-26 21:03 ` [gentoo-user] " Ali Polatel
  2007-06-26 21:06 ` [gentoo-user] " Hans-Werner Hilse
@ 2007-06-26 21:08 ` Daniel da Veiga
  2007-06-27  7:22   ` Roger Luethi
  2007-06-26 21:26 ` Daniel Pielmeier
  2007-06-26 22:27 ` Hemmann, Volker Armin
  4 siblings, 1 reply; 12+ messages in thread
From: Daniel da Veiga @ 2007-06-26 21:08 UTC (permalink / raw
  To: gentoo-user

On 6/26/07, Mick <michaelkintzios@gmail.com> 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------
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] Downloading Flash videos
  2007-06-26 20:42 [gentoo-user] Downloading Flash videos Mick
                   ` (2 preceding siblings ...)
  2007-06-26 21:08 ` Daniel da Veiga
@ 2007-06-26 21:26 ` Daniel Pielmeier
  2007-06-26 21:47   ` Mick
  2007-06-26 22:27 ` Hemmann, Volker Armin
  4 siblings, 1 reply; 12+ messages in thread
From: Daniel Pielmeier @ 2007-06-26 21:26 UTC (permalink / raw
  To: gentoo-user

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
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] Downloading Flash videos
  2007-06-26 21:26 ` Daniel Pielmeier
@ 2007-06-26 21:47   ` Mick
  2007-06-26 22:00     ` Edward Pasek
  0 siblings, 1 reply; 12+ messages in thread
From: Mick @ 2007-06-26 21:47 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 2982 bytes --]

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

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] Downloading Flash videos
  2007-06-26 21:47   ` Mick
@ 2007-06-26 22:00     ` Edward Pasek
  2007-06-27  6:40       ` Mick
  0 siblings, 1 reply; 12+ messages in thread
From: Edward Pasek @ 2007-06-26 22:00 UTC (permalink / raw
  To: gentoo-user

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
> ===================================================
> 

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] Downloading Flash videos
  2007-06-26 20:42 [gentoo-user] Downloading Flash videos Mick
                   ` (3 preceding siblings ...)
  2007-06-26 21:26 ` Daniel Pielmeier
@ 2007-06-26 22:27 ` Hemmann, Volker Armin
  2007-06-27 17:02   ` felix
  2007-06-28  1:15   ` Walter Dnes
  4 siblings, 2 replies; 12+ messages in thread
From: Hemmann, Volker Armin @ 2007-06-26 22:27 UTC (permalink / raw
  To: gentoo-user

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.
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] Downloading Flash videos
  2007-06-26 22:00     ` Edward Pasek
@ 2007-06-27  6:40       ` Mick
  0 siblings, 0 replies; 12+ messages in thread
From: Mick @ 2007-06-27  6:40 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 165 bytes --]

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

Err, . . . yes </sheepishly>

-- 
Regards,
Mick

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] Downloading Flash videos
  2007-06-26 21:08 ` Daniel da Veiga
@ 2007-06-27  7:22   ` Roger Luethi
  0 siblings, 0 replies; 12+ messages in thread
From: Roger Luethi @ 2007-06-27  7:22 UTC (permalink / raw
  To: gentoo-user

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.

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] Downloading Flash videos
  2007-06-26 22:27 ` Hemmann, Volker Armin
@ 2007-06-27 17:02   ` felix
  2007-06-28  1:15   ` Walter Dnes
  1 sibling, 0 replies; 12+ messages in thread
From: felix @ 2007-06-27 17:02 UTC (permalink / raw
  To: gentoo-user

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 / felix@crowfix.com
  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
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] Downloading Flash videos
  2007-06-26 22:27 ` Hemmann, Volker Armin
  2007-06-27 17:02   ` felix
@ 2007-06-28  1:15   ` Walter Dnes
  1 sibling, 0 replies; 12+ messages in thread
From: Walter Dnes @ 2007-06-28  1:15 UTC (permalink / raw
  To: gentoo-user

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 <waltdnes@waltdnes.org> 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.
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2007-06-28  1:21 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-26 20:42 [gentoo-user] Downloading Flash videos Mick
2007-06-26 21:03 ` [gentoo-user] " Ali Polatel
2007-06-26 21:06 ` [gentoo-user] " Hans-Werner Hilse
2007-06-26 21:08 ` Daniel da Veiga
2007-06-27  7:22   ` Roger Luethi
2007-06-26 21:26 ` Daniel Pielmeier
2007-06-26 21:47   ` Mick
2007-06-26 22:00     ` Edward Pasek
2007-06-27  6:40       ` Mick
2007-06-26 22:27 ` Hemmann, Volker Armin
2007-06-27 17:02   ` felix
2007-06-28  1:15   ` Walter Dnes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox