[Ffmpeg-devel] wrong value in nb_streams

Sven Heyll sven.heyll
Thu May 26 17:53:25 CEST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Forget my last post!
by a fluke I found out the solution of the problem:
Compiler options helped to get things running, although - at least for
me - mysteriously...

Anyway ...
My System is: Linux hhi1114 2.6.10-1-k7
To my Compiler (g++ (GCC) 3.3.5 (Debian 1:3.3.5-12))
I gave the following -g0 -O2 -mmmx. This doesnt work(dont ask me why!).
What really works is -O0 -g3 (debug version)
What also works is -O3 -mcpu=pentiumpro... well works not 100%, but
works sufficently, what do I mean? Look at the out put of my little test
prog:

- ----8<------------------------------------------------
osgAV::AVPacketSource static initialiser
        compiled/linked with ffmpeg version: 0.4.9-pre1
        libavcodec version: 1033  build: 4747
        Called av_register_all now

(**)>main()< Streaming tests
Enter file name to open: test.mpg
(**)>osgAV::DummyAVPacketConsumer::test_streams< Created Logger
(**)>osgAV::DummyAVPacketConsumer::test_streams< Created Demuxer
(**)>osgAV::DummyAVPacketConsumer::test_streams< Created Source
(**)>osgAV::AVPacketSource::open< opened file: test.mpg
(**)>osgAV::AVPacketSource::open< found stream info, number of streams
in this source: 2
(**)>osgAV::AVPacketSource::open< dumping format:
Input #0, mpeg, from 'test.mpg':
  Duration: 00:03:15.7, start: 0.000000, bitrate: 2095 kb/s
  Stream #0.0: Audio: mp2, 44100 Hz, stereo, 224 kb/s
  Stream #0.1: Video: mpeg2video, 320x240, 29.97 fps, 1843 kb/s
(**)>osgAV::StreamInfo::setStream< Initialising stream info for stream: 0
(**)>osgAV::StreamInfo::setStream< found codec id: 86016
(**)>osgAV::StreamInfo::setStream< frame duration: 40000
(**)>osgAV::StreamInfo::setStream< start time: 0
(**)>osgAV::StreamInfo::setStream< stream 0 will be discarded as default
(**)>osgAV::StreamInfo::setStream< Initialising stream info for stream: 1
(**)>osgAV::StreamInfo::setStream< found codec id: 2
(**)>osgAV::StreamInfo::setStream< frame duration: 33366
(**)>osgAV::StreamInfo::setStream< start time: 33367
(**)>osgAV::StreamInfo::setStream< stream 1 will be discarded as default
(**)>osgAV::DummyAVPacketConsumer::test_streams< Opend file
(**)>osgAV::DummyAVPacketConsumer::test_streams< Found 2 streams
(**)>osgAV::DummyAVPacketConsumer::test_streams< Set Source
(**)>osgAV::AVPacketSource::reset< closing input file test.mpg
(**)>osgAV::StreamInfo::reset< closing codec of stream 138384832
(**)>osgAV::StreamInfo::reset< closing codec of stream 1
(**)>osgAV::AVPacketSource::reset< Resetted AVPacketSource
(**)>osgAV::DummyAVPacketConsumer::test_streams< Closed file
- ---->8------------------------------------------------

The only thing that worries me ist the 4th line from the end:
  it should not be "stream 138384832" but "stream 0"...

- -
 Sven Heyll

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Debian - http://enigmail.mozdev.org

iD8DBQFClfDzvIrMPGBoXZ8RAuNOAJ4zf4rycHH8aWBLOHWcG2FOjqqMdwCfczjB
BcQKqJZ0Ekslj8rzPhe6JGE=
=75ej
-----END PGP SIGNATURE-----





More information about the ffmpeg-devel mailing list