bugGnash - The GNU Flash player - Bugs: bug #33696, Unable to build Gnash with...

 
 

bug #33696: Unable to build Gnash with ffmpeg-0.8

Submitter:  Igor Murzov <garik_>
Submitted:  Sat 02 Jul 2011 05:08:17 PM UTC
   
 
Category:  video-ffmpeg Severity:  3 - Normal
Release:  master Status:  Fixed
Privacy:  Public Assigned to:  gg0
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Mon 12 Sep 2011 07:21:45 AM UTC, comment #8: 

sortie: for the incremental decoding work we have another ticket, use that on

Sandro Santilli <strk>
Group Member
Mon 12 Sep 2011 12:09:11 AM UTC, comment #7: 

It works! Bug can be closed.

Igor Murzov <garik>
Sun 11 Sep 2011 08:21:19 PM UTC, comment #6: 

I'm compiling gnash against-0.8.2 at the moment.

Compiler output related to ffmpeg part:
[code]
make[2]: Вход в каталог `/tmp/tgz/gnash/libmedia'
  CXX    libgnashmedia_la-AudioDecoderSimple.lo
  CXX    libgnashmedia_la-AudioResampler.lo
  CXX    libgnashmedia_la-FLVParser.lo
  CXX    libgnashmedia_la-MediaHandler.lo
  CXX    libgnashmedia_la-MediaParser.lo
  CXX    libgnashmedia_la-AudioDecoderFfmpeg.lo
  CXX    libgnashmedia_la-AudioInputFfmpeg.lo
  CXX    libgnashmedia_la-AudioResamplerFfmpeg.lo
In file included from ffmpeg/AudioDecoderFfmpeg.cpp:25:0:
ffmpeg/MediaParserFfmpeg.h:156:16: warning: 'ByteIOContext' is deprecated (declared at /usr/include/libavformat/avio.h:218)
ffmpeg/AudioDecoderFfmpeg.cpp: In member function 'uint8_t* gnash::media::ffmpeg::AudioDecoderFfmpeg::decodeFrame(const uint8_t*, uint32_t, uint32_t&)':
ffmpeg/AudioDecoderFfmpeg.cpp:510:27: warning: cast from type 'const uint8_t*' to type 'uint8_t*' casts away qualifiers
  CXX    libgnashmedia_la-MediaHandlerFfmpeg.lo
In file included from ffmpeg/MediaHandlerFfmpeg.cpp:26:0:
ffmpeg/MediaParserFfmpeg.h:156:16: warning: 'ByteIOContext' is deprecated (declared at /usr/include/libavformat/avio.h:218)
  CXX    libgnashmedia_la-MediaParserFfmpeg.lo
In file included from ffmpeg/MediaParserFfmpeg.cpp:21:0:
ffmpeg/MediaParserFfmpeg.h:156:16: warning: 'ByteIOContext' is deprecated (declared at /usr/include/libavformat/avio.h:218)
ffmpeg/MediaParserFfmpeg.cpp: In member function 'void gnash::media::ffmpeg::MediaParserFfmpeg::initializeParser()':
ffmpeg/MediaParserFfmpeg.cpp:368:5: warning: 'int init_put_byte(AVIOContext*, unsigned char*, int, int, void*, int ()(void, uint8_t*, int), int ()(void, uint8_t*, int), int64_t ()(void, int64_t, int))' is deprecated (declared at /usr/include/libavformat/avio.h:220)
ffmpeg/MediaParserFfmpeg.cpp:376:5: warning: 'int init_put_byte(AVIOContext*, unsigned char*, int, int, void*, int ()(void, uint8_t*, int), int ()(void, uint8_t*, int), int64_t ()(void, int64_t, int))' is deprecated (declared at /usr/include/libavformat/avio.h:220)
ffmpeg/MediaParserFfmpeg.cpp:378:16: warning: 'AVIOContext::is_streamed' is deprecated (declared at /usr/include/libavformat/avio.h:68)
ffmpeg/MediaParserFfmpeg.cpp:378:16: warning: 'AVIOContext::is_streamed' is deprecated (declared at /usr/include/libavformat/avio.h:68)
ffmpeg/MediaParserFfmpeg.cpp:392:8: warning: 'AVFormatParameters::prealloced_context' is deprecated (declared at /usr/include/libavformat/avformat.h:257)
ffmpeg/MediaParserFfmpeg.cpp:392:8: warning: 'AVFormatParameters::prealloced_context' is deprecated (declared at /usr/include/libavformat/avformat.h:257)
ffmpeg/MediaParserFfmpeg.cpp:394:9: warning: 'int av_open_input_stream(AVFormatContext**, AVIOContext*, const char*, AVInputFormat*, AVFormatParameters*)' is deprecated (declared at /usr/include/libavformat/avformat.h:1072)
ffmpeg/MediaParserFfmpeg.cpp:394:74: warning: 'int av_open_input_stream(AVFormatContext**, AVIOContext*, const char*, AVInputFormat*, AVFormatParameters*)' is deprecated (declared at /usr/include/libavformat/avformat.h:1072)
ffmpeg/MediaParserFfmpeg.cpp:402:17: warning: 'AVMetadata' is deprecated (declared at /usr/include/libavformat/avformat.h:131)
ffmpeg/MediaParserFfmpeg.cpp:404:24: warning: 'AVMetadataTag' is deprecated (declared at /usr/include/libavformat/avformat.h:132)
ffmpeg/MediaParserFfmpeg.cpp:404:30: warning: 'AVDictionaryEntry* av_metadata_get(AVDictionary*, const char*, const AVDictionaryEntry*, int)' is deprecated (declared at /usr/include/libavformat/avformat.h:145)
ffmpeg/MediaParserFfmpeg.cpp:405:39: warning: 'AVDictionaryEntry* av_metadata_get(AVDictionary*, const char*, const AVDictionaryEntry*, int)' is deprecated (declared at /usr/include/libavformat/avformat.h:145)
  CXX    libgnashmedia_la-VideoConverterFfmpeg.lo
  CXX    libgnashmedia_la-VideoDecoderFfmpeg.lo
In file included from ffmpeg/VideoDecoderFfmpeg.cpp:31:0:
ffmpeg/MediaParserFfmpeg.h:156:16: warning: 'ByteIOContext' is deprecated (declared at /usr/include/libavformat/avio.h:218)
ffmpeg/VideoDecoderFfmpeg.cpp: In member function 'std::auto_ptr<gnash::image::GnashImage> gnash::media::ffmpeg::VideoDecoderFfmpeg::decode(const uint8_t*, uint32_t)':
ffmpeg/VideoDecoderFfmpeg.cpp:362:27: warning: cast from type 'const uint8_t*' to type 'uint8_t*' casts away qualifiers
  CXX    libgnashmedia_la-VideoInputFfmpeg.lo
  CXX    libgnashmedia_la-AudioDecoderSpeex.lo
  CXXLD  libgnashmedia.la
make[2]: Выход из каталога `/tmp/tgz/gnash/libmedia'
[/code]

Igor Murzov <garik>
Sun 11 Sep 2011 06:14:14 PM UTC, comment #5: 

Can anyone test against ffmpeg-0.8, so to close the bug ?

Sandro Santilli <strk>
Group Member
Sun 11 Sep 2011 09:42:50 AM UTC, comment #4: 

Pushed 5c76984, chithead's patches + #if LIBAVCODEC_VERSION_MAJOR >= 53.
It just fixes build on sid, libav 0.7.1.

Gabriele Giacone <gg0>
Group Member
Thu 28 Jul 2011 07:22:16 PM UTC, comment #3: 

The audio and video decode patches does not check how much of the packet FFmpeg used -- the documentation tells us to provide the unused portion at the next call, but currently that is discarded.

I am working on avoiding this discarding anyways, so I'll keep these patches in mind. The rest of the patches should be trivial to add with a dozen #ifdefs.

Jonas 'Sortie' Termansen <sortie>
Group Member
Sat 02 Jul 2011 08:58:16 PM UTC, comment #2: 

With the attached patches, gnash should build against ffmpeg-0.8

(file #23615, file #23616)

Chi-Thanh Christopher Nguyen <chithanh>
Sat 02 Jul 2011 06:19:52 PM UTC, comment #1: 

av_parser_parse has been marked as deprecated after ffmpeg-0.6, now it is gone.
See also https://bugs.gentoo.org/show_bug.cgi?id=362949

(file #23612)

Chi-Thanh Christopher Nguyen <chithanh>
Sat 02 Jul 2011 05:08:17 PM UTC, original submission:  

I've tried to compile gnash from master branch, but it failed with the following errors:

  CXX    libgnashmedia_la-AudioDecoderFfmpeg.lo
In file included from ffmpeg/AudioDecoderFfmpeg.cpp:25:0:
ffmpeg/MediaParserFfmpeg.h:152:16: warning: 'ByteIOContext' is deprecated (declared at /usr/include/libavformat/avio.h:218)
ffmpeg/AudioDecoderFfmpeg.cpp: In member function 'uint8_t* gnash::media::ffmpeg::AudioDecoderFfmpeg::decodeFrame(const uint8_t*, uint32_t, uint32_t&)':
ffmpeg/AudioDecoderFfmpeg.cpp:553:52: error: 'avcodec_decode_audio2' was not declared in this scope
ffmpeg/AudioDecoderFfmpeg.cpp: In member function 'int gnash::media::ffmpeg::AudioDecoderFfmpeg::parseInput(const uint8_t*, uint32_t, const uint8_t**, int*)':
ffmpeg/AudioDecoderFfmpeg.cpp:667:25: error: 'av_parser_parse' was not declared in this scope
ffmpeg/AudioDecoderFfmpeg.cpp:700:1: warning: control reaches end of non-void function
make[2]: * [libgnashmedia_la-AudioDecoderFfmpeg.lo] Ошибка 1
make[2]: Выход из каталога `/tmp/tgz/gnash/libmedia'
make[1]: * [all-recursive] Ошибка 1
make[1]: Выход из каталога `/tmp/tgz/gnash'
make: * [all] Ошибка 2

Igor Murzov <garik_>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #23613:  gnash-0.8.9-no-deprecated-avcodec-decode-audio.patch added by chithanh (931B - text/x-patch - patch to use avcodec_decode_audio3 instead. needs ffmpeg-0.6)
file #23612:  gnash-0.8.9-no-deprecated-avcodec-parser.patch added by chithanh (807B - text/x-patch - patch to use av_parser_parse2 instead. needs ffmpeg-0.6)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by garik (Posted a comment)
  • -email is unavailable- added by strk (Posted a comment)
  • -email is unavailable- added by gg0 (Posted a comment)
  • -email is unavailable- added by sortie (Updated the item)
  • -email is unavailable- added by chithanh (Updated the item)
  • -email is unavailable- added by garik_ (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 10 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-09-12 strk StatusIn Progress Fixed
        Assigned tosortie gg0
        Open/ClosedOpen Closed
    2011-07-28 sortie StatusNone In Progress
    2011-07-28 sortie Assigned toNone sortie
    2011-07-02 chithanh Attached File- Added gnash-0.8.9-no-deprecated-avcodec-audio-resample.patch, #23615
        Attached File- Added gnash-0.8.9-no-deprecated-avformat-metadata.patch, #23616
    2011-07-02 chithanh Attached File- Added gnash-0.8.9-no-deprecated-avcodec-decode-video.patch, #23614
    2011-07-02 chithanh Attached File- Added gnash-0.8.9-no-deprecated-avcodec-decode-audio.patch, #23613
    2011-07-02 chithanh Attached File- Added gnash-0.8.9-no-deprecated-avcodec-parser.patch, #23612

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code