gnash-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnash-dev] Saved media not quite right


From: John Gilmore
Subject: Re: [Gnash-dev] Saved media not quite right
Date: Thu, 12 Feb 2009 12:39:32 -0800

> > It does indeed create saved media files when I go to youtube.  Great!
> > But totem is unable to play those files, reporting:
> >   ** Message: Error: Internal data stream error.
> >   gstflvdemux.c(528): gst_flv_demux_loop (): /play/decodebin1/flvdemux1:
> >   stream stopped, reason error
> 
> Totem is unable to play quite a few things, (on my system, that includes
> all h264 files), but I usually find mplayer or ffplay work fine.

I don't understand why Gnash would be able to play a video by using
the gstreamer library and the codecs it knows about, but Totem
wouldn't be able to play the very same thing using the very same
library on the very same system.  Are you really sure there's no gnash
bug here?  A "Save Media" feature that half the time saves media that
won't play isn't very useful.

BTW, gnash won't play the saved file either, if passed its name on the
command line.  (I thought we'd considered adding a kludge that lets it
play media files as well as .flv files.  Such a kludge would at least
in theory allow gnash-saved files to be played reliably.  Is there a
gnu-licensed .flv media controller movie that we could include in
gnash and invoke in this case?)

I installed mplayer (2:1.0~rc2-0ubuntu13.1) and it indeed can half-play
the stream saved from this youtube page ("3 Year Old Solves Rubik's
Cube in 114 seconds"):

  
http://www.youtube.com/watch?v=tSqUcrFJ498&feature=PlayList&p=D1D5823E1D083AF2&playnext=1&index=2

But it only gets the audio, not the video.  Totem can play it, too,
including the video, and reports that it's using the Sorenson video codec.

But try this page ('Monty Python's "Life of Brian" (Stoned to death...)'),
which is the one that gave me trouble last night:

  http://www.youtube.com/watch?v=R_hlMK7tCks

it plays fine in Gnash, but I get a file that totem won't play, and 
mplayer won't play it either.  Mplayer reports:

MPlayer 1.0rc2-4.2.3 (C) 2000-2007 MPlayer Team
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ (Family: 15, Model: 75, 
Stepping: 2)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing /home/gnu/gnash-media/www.youtube.com/get_video22.
libavformat file format detected.
[flv @ 0x8804094]Unsupported video codec (7)
[flv @ 0x8804094]Unsupported audio codec (a)
[flv @ 0x8804094]Unsupported video codec (7)
  (gnu:  8,450 lines like the above removed.)
[flv @ 0x8804094]Could not find codec parameters (Video: 0x0007)
[flv @ 0x8804094]Could not find codec parameters (Audio: 0x000a, 44100 Hz, 
stereo)
[flv @ 0x8804094]skipping flv packet: type 97, size 7627016, flags 0
[flv @ 0x8804094]skipping flv packet: type 98, size 9851793, flags 0
[flv @ 0x8804094]skipping flv packet: type 239, size 12948211, flags 0
[flv @ 0x8804094]skipping flv packet: type 198, size 13853009, flags 0
[flv @ 0x8804094]skipping flv packet: type 213, size 12562443, flags 0
[flv @ 0x8804094]skipping flv packet: type 46, size 10655206, flags 0
[flv @ 0x8804094]skipping flv packet: type 219, size 8446953, flags 0
[flv @ 0x8804094]skipping flv packet: type 99, size 5817559, flags 0
[flv @ 0x8804094]skipping flv packet: type 54, size 4620108, flags 0
[flv @ 0x8804094]skipping flv packet: type 215, size 4957082, flags 0
[flv @ 0x8804094]skipping flv packet: type 254, size 2250114, flags 0
[flv @ 0x8804094]skipping flv packet: type 225, size 13556709, flags 0
[flv @ 0x8804094]skipping flv packet: type 151, size 14227314, flags 0
[flv @ 0x8804094]skipping flv packet: type 217, size 5572456, flags 0
[flv @ 0x8804094]skipping flv packet: type 211, size 3313867, flags 0
[flv @ 0x8804094]skipping flv packet: type 210, size 8317150, flags 0
[flv @ 0x8804094]skipping flv packet: type 175, size 4716191, flags 0
[flv @ 0x8804094]skipping flv packet: type 21, size 14751483, flags 0
[flv @ 0x8804094]skipping flv packet: type 79, size 10826539, flags 0
[flv @ 0x8804094]skipping flv packet: type 146, size 1412683, flags 0
[flv @ 0x8804094]skipping flv packet: type 40, size 5064047, flags 0
[flv @ 0x8804094]skipping flv packet: type 194, size 15617236, flags 0
[flv @ 0x8804094]skipping flv packet: type 48, size 7305630, flags 0
[flv @ 0x8804094]skipping flv packet: type 215, size 12498877, flags 0
[flv @ 0x8804094]skipping flv packet: type 137, size 5528816, flags 0
[flv @ 0x8804094]skipping flv packet: type 185, size 6314051, flags 0
[flv @ 0x8804094]skipping flv packet: type 163, size 13463782, flags 0
[flv @ 0x8804094]skipping flv packet: type 187, size 12936268, flags 0
[flv @ 0x8804094]skipping flv packet: type 200, size 15739715, flags 0
[flv @ 0x8804094]skipping flv packet: type 137, size 3260672, flags 0
[flv @ 0x8804094]skipping flv packet: type 178, size 7954261, flags 0
[flv @ 0x8804094]skipping flv packet: type 68, size 5330957, flags 0
[flv @ 0x8804094]skipping flv packet: type 209, size 15626123, flags 0
[flv @ 0x8804094]skipping flv packet: type 20, size 12673836, flags 0
[flv @ 0x8804094]skipping flv packet: type 232, size 13803408, flags 0
[flv @ 0x8804094]skipping flv packet: type 249, size 1913561, flags 0
[flv @ 0x8804094]skipping flv packet: type 243, size 13655456, flags 0
LAVF_header: av_find_stream_info() failed
libavformat file format detected.
[flv @ 0x8804094]Unsupported video codec (7)
[flv @ 0x8804094]Unsupported audio codec (a)
[flv @ 0x8804094]Unsupported video codec (7)
   (gnu: lots more lines like the above were previously here)
[flv @ 0x8804094]Could not find codec parameters (Video: 0x0007)
[flv @ 0x8804094]Could not find codec parameters (Audio: 0x000a, 44100 Hz, 
stereo)
[flv @ 0x8804094]skipping flv packet: type 97, size 7627016, flags 0
[flv @ 0x8804094]skipping flv packet: type 98, size 9851793, flags 0
[flv @ 0x8804094]skipping flv packet: type 239, size 12948211, flags 0
[flv @ 0x8804094]skipping flv packet: type 198, size 13853009, flags 0
[flv @ 0x8804094]skipping flv packet: type 213, size 12562443, flags 0
[flv @ 0x8804094]skipping flv packet: type 46, size 10655206, flags 0
[flv @ 0x8804094]skipping flv packet: type 219, size 8446953, flags 0
[flv @ 0x8804094]skipping flv packet: type 99, size 5817559, flags 0
[flv @ 0x8804094]skipping flv packet: type 54, size 4620108, flags 0
[flv @ 0x8804094]skipping flv packet: type 215, size 4957082, flags 0
[flv @ 0x8804094]skipping flv packet: type 254, size 2250114, flags 0
[flv @ 0x8804094]skipping flv packet: type 225, size 13556709, flags 0
[flv @ 0x8804094]skipping flv packet: type 151, size 14227314, flags 0
[flv @ 0x8804094]skipping flv packet: type 217, size 5572456, flags 0
[flv @ 0x8804094]skipping flv packet: type 211, size 3313867, flags 0
[flv @ 0x8804094]skipping flv packet: type 210, size 8317150, flags 0
[flv @ 0x8804094]skipping flv packet: type 175, size 4716191, flags 0
[flv @ 0x8804094]skipping flv packet: type 21, size 14751483, flags 0
[flv @ 0x8804094]skipping flv packet: type 79, size 10826539, flags 0
[flv @ 0x8804094]skipping flv packet: type 146, size 1412683, flags 0
[flv @ 0x8804094]skipping flv packet: type 40, size 5064047, flags 0
[flv @ 0x8804094]skipping flv packet: type 194, size 15617236, flags 0
[flv @ 0x8804094]skipping flv packet: type 48, size 7305630, flags 0
[flv @ 0x8804094]skipping flv packet: type 215, size 12498877, flags 0
[flv @ 0x8804094]skipping flv packet: type 137, size 5528816, flags 0
[flv @ 0x8804094]skipping flv packet: type 185, size 6314051, flags 0
[flv @ 0x8804094]skipping flv packet: type 163, size 13463782, flags 0
[flv @ 0x8804094]skipping flv packet: type 187, size 12936268, flags 0
[flv @ 0x8804094]skipping flv packet: type 200, size 15739715, flags 0
[flv @ 0x8804094]skipping flv packet: type 137, size 3260672, flags 0
[flv @ 0x8804094]skipping flv packet: type 178, size 7954261, flags 0
[flv @ 0x8804094]skipping flv packet: type 68, size 5330957, flags 0
[flv @ 0x8804094]skipping flv packet: type 209, size 15626123, flags 0
[flv @ 0x8804094]skipping flv packet: type 20, size 12673836, flags 0
[flv @ 0x8804094]skipping flv packet: type 232, size 13803408, flags 0
[flv @ 0x8804094]skipping flv packet: type 249, size 1913561, flags 0
[flv @ 0x8804094]skipping flv packet: type 243, size 13655456, flags 0
LAVF_header: av_find_stream_info() failed


Exiting... (End of file)


I tried with ffplay and got largely the same result (minus the "skipping flv
packet) messages.

While gnash is playing that clip, /proc/nnnn/smaps says that it has
these libraries mapped in, using this command:

% cat /proc/11788/smaps | colrm 1 49 |grep -v '^$' | uniq
/usr/local/bin/gtk-gnash
[heap]
/usr/lib/libgstaudio-0.10.so.0.13.0
/usr/lib/libfaad.so.0.0.0
/usr/lib/gstreamer-0.10/libgstspeexresample.so
/usr/lib/libx264.so.57
/usr/lib/libxvidcore.so.4.1
/usr/lib/libvorbisenc.so.2.0.3
/usr/lib/libmp3lame.so.0.0.0
/usr/lib/libavcodec.so.1d.51.38.0
/usr/lib/libavformat.so.1d.51.10.0
/usr/lib/gstreamer-0.10/libgstffmpegcolorspace.so
/usr/lib/libvorbis.so.0.4.0
/usr/lib/gstreamer-0.10/libgstaudioconvert.so
/usr/lib/libfaac.so.0.0.0
/usr/lib/libtheora.so.0.3.2
/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf
/usr/lib/libgsm.so.1.0.12
/usr/lib/liba52-0.7.4.so
/usr/lib/libgstinterfaces-0.10.so.0.13.0
/usr/lib/gstreamer-0.10/libgstfaad.so
/usr/share/fonts/truetype/msttcorefonts/Arial.ttf
/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf
/usr/lib/libdc1394_control.so.13.0.0
/usr/lib/gstreamer-0.10/libgstffmpeg.so
/lib/tls/i686/cmov/libnss_dns-2.7.so
/lib/libnss_mdns4_minimal.so.2
/usr/lib/libraw1394.so.8.2.0
/usr/lib/libogg.so.0.5.3
/usr/lib/libavutil.so.1d.49.3.0
/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf
/var/cache/fontconfig/945677eb7aeaf62f1d50efc3fb3ec7d8-x86.cache-2
/var/cache/fontconfig/e383d7ea5fbe662a33d9b44caf393297-x86.cache-2
/var/cache/fontconfig/ddc79d3ea06a7c6ffa86ede85f3bb5df-x86.cache-2
/var/cache/fontconfig/921a30a17f0be15c70ac14043cb7a739-x86.cache-2
/var/cache/fontconfig/c69f04ab05004e31a6d5e715764f16d8-x86.cache-2
/var/cache/fontconfig/4c73fe0c47614734b17d736dbde7580a-x86.cache-2
/var/cache/fontconfig/646addb8444faa74ee138aa00ab0b6a0-x86.cache-2
/var/cache/fontconfig/a755afe4a08bf5b97852ceb7400b47bc-x86.cache-2
/var/cache/fontconfig/20bd79ad97094406f7d1b9654bfbd926-x86.cache-2
/var/cache/fontconfig/9c0624108b9a2ae8552f664125be8356-x86.cache-2
/var/cache/fontconfig/6d41288fd70b0be22e8c3a91e032eec0-x86.cache-2
/var/cache/fontconfig/de156ccd2eddbdc19d37a45b8b2aac9c-x86.cache-2
/var/cache/fontconfig/da1bd5ca8443ffe22927a23ce431d198-x86.cache-2
/var/cache/fontconfig/e3de0de479f42330eadf588a55fb5bf4-x86.cache-2
/var/cache/fontconfig/0f34bcd4b6ee430af32735b75db7f02b-x86.cache-2
/var/cache/fontconfig/4794a0821666d79190d59a36cb4f44b5-x86.cache-2
/var/cache/fontconfig/365b55f210c0a22e9a19e35191240f32-x86.cache-2
/var/cache/fontconfig/de9486f0b47a4d768a594cb4198cb1c6-x86.cache-2
/var/cache/fontconfig/d52a8644073d54c13679302ca1180695-x86.cache-2
/var/cache/fontconfig/089dead882dea3570ffc31a9898cfb69-x86.cache-2
/SYSV00000000 (deleted)
/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so
/usr/lib/gtk-2.0/2.10.0/engines/libubuntulooks.so
/usr/lib/gtk-2.0/modules/libgail.so
/SYSV0056a4d6 (deleted)
/lib/tls/i686/cmov/libnss_files-2.7.so
/lib/tls/i686/cmov/libnss_nis-2.7.so
/lib/tls/i686/cmov/libnsl-2.7.so
/lib/tls/i686/cmov/libnss_compat-2.7.so
/var/cache/fontconfig/fd9505950c048a77dc4b710eb6a628ed-x86.cache-2
/var/cache/fontconfig/e3fa16a14183b06aa45b3e009278fd14-x86.cache-2
/usr/lib/libgailutil.so.18.0.1
/dev/snd/pcmC0D0p
/usr/lib/locale/en_US.utf8/LC_CTYPE
/usr/lib/locale/en_US.utf8/LC_COLLATE
/lib/libgpg-error.so.0.3.0
/lib/libgcrypt.so.11.2.3
/usr/lib/libtasn1.so.3.0.12
/usr/lib/libXdmcp.so.6.0.0
/usr/lib/libXau.so.6.0.0
/usr/lib/libpixman-1.so.0.10.0
/usr/lib/libpangoft2-1.0.so.0.2002.3
/usr/lib/libexpat.so.1.5.2
/lib/libkeyutils-1.2.so
/usr/lib/libkrb5support.so.0.1
/usr/lib/libgnutls.so.13.9.1
/usr/lib/libsasl2.so.2.0.22
/usr/lib/libdirect-1.0.so.0.1.0
/usr/lib/libfusion-1.0.so.0.1.0
/usr/lib/libdirectfb-1.0.so.0.1.0
/usr/lib/libasound.so.2.0.0
/lib/tls/i686/cmov/libresolv-2.7.so
/usr/lib/libxcb.so.1.0.0
/usr/lib/libxcb-xlib.so.0.0.0
/usr/lib/libpcre.so.3.12.1
/usr/lib/libXcursor.so.1.0.2
/usr/lib/libXrandr.so.2.1.0
/usr/lib/libXinerama.so.1.0.0
/usr/lib/libXrender.so.1.3.0
/usr/lib/libXext.so.6.4.0
/usr/lib/libcairo.so.2.17.3
/usr/lib/libatk-1.0.so.0.2209.1
/usr/lib/libXfixes.so.3.1.0
/usr/lib/libXdamage.so.1.1.0
/usr/lib/libXcomposite.so.1.0.0
/usr/lib/libpango-1.0.so.0.2002.3
/usr/lib/libpangocairo-1.0.so.0.2002.3
/usr/lib/libfontconfig.so.1.3.0
/usr/lib/libfreetype.so.6.3.16
/usr/lib/i686/cmov/libcrypto.so.0.9.8
/usr/lib/i686/cmov/libssl.so.0.9.8
/lib/libcom_err.so.2.1
/usr/lib/libk5crypto.so.3.1
/usr/lib/libkrb5.so.3.3
/usr/lib/libgssapi_krb5.so.2.2
/usr/lib/libldap_r-2.4.so.2.0.5
/usr/lib/libidn.so.11.5.30
/usr/lib/libSDL-1.2.so.0.11.1
/usr/lib/libspeex.so.1.2.0
/usr/lib/libgstbase-0.10.so.0.16.0
/usr/lib/libgstpbutils-0.10.so.0.13.0
/usr/lib/libxml2.so.2.6.31
/usr/lib/libgthread-2.0.so.0.1600.6
/lib/tls/i686/cmov/libdl-2.7.so
/usr/lib/libgmodule-2.0.so.0.1600.6
/usr/lib/libz.so.1.2.3.3
/usr/lib/libgif.so.4.1.6
/usr/lib/libjpeg.so.62.0.0
/usr/lib/libpng12.so.0.15.0
/usr/lib/liblber-2.4.so.2.0.5
/usr/lib/libXi.so.6.0.0
/usr/lib/libX11.so.6.2.0
/lib/tls/i686/cmov/librt-2.7.so
/usr/lib/libboost_date_time-gcc42-1_34_1.so.1.34.1
/usr/lib/libboost_thread-gcc42-mt-1_34_1.so.1.34.1
/usr/lib/libcurl.so.4.0.1
/usr/local/lib/gnash/libgnashamf-trunk.so
/lib/libgcc_s.so.1
/lib/tls/i686/cmov/libc-2.7.so
/lib/tls/i686/cmov/libm-2.7.so
/usr/lib/libstdc++.so.6.0.9
/usr/lib/libglib-2.0.so.0.1600.6
/usr/lib/libgobject-2.0.so.0.1600.6
/usr/lib/libgdk_pixbuf-2.0.so.0.1200.9
/usr/lib/libgdk-x11-2.0.so.0.1200.9
/usr/lib/libgtk-x11-2.0.so.0.1200.9
/lib/tls/i686/cmov/libpthread-2.7.so
/usr/lib/libgstreamer-0.10.so.0.16.0
/var/cache/fontconfig/e7071f4a29fa870f4323321c154eba04-x86.cache-2
/var/cache/fontconfig/a2ab74764b07279e7c36ddb1d302cf26-x86.cache-2
/var/cache/fontconfig/e13b20fdb08344e0e664864cc2ede53d-x86.cache-2
/dev/snd/pcmC0D0p
/SYSV0056a4d5 (deleted)
/usr/lib/locale/en_US.utf8/LC_NUMERIC
/usr/lib/locale/en_US.utf8/LC_TIME
/usr/lib/locale/en_US.utf8/LC_MONETARY
/usr/lib/locale/en_US.utf8/LC_MESSAGES/SYS_LC_MESSAGES
/usr/lib/locale/en_US.utf8/LC_PAPER
/usr/lib/locale/en_US.utf8/LC_NAME
/usr/lib/locale/en_US.utf8/LC_ADDRESS
/usr/lib/locale/en_US.utf8/LC_TELEPHONE
/usr/lib/locale/en_US.utf8/LC_MEASUREMENT
/usr/lib/gconv/gconv-modules.cache
/usr/lib/locale/en_US.utf8/LC_IDENTIFICATION
/usr/local/lib/gnash/libgnashbase-trunk.so
/usr/local/lib/gnash/libgnashcore-trunk.so
/usr/local/lib/gnash/libgnashsound-trunk.so
/usr/local/lib/gnash/libgnashmedia-trunk.so
/usr/local/lib/gnash/libgnashnet.so.0.0.0
[vdso]
/lib/ld-2.7.so
[stack]

[Aside: This seems pretty excessive to me; perhaps someone who knows
the code can figure out why we're pulling in GPG, libkrb5, and every
codec known to man.  Just linking all these must take more than
a second on the OLPC.]

        John




reply via email to

[Prev in Thread] Current Thread [Next in Thread]