Giter Site home page Giter Site logo

qtffmpegwrapper's People

qtffmpegwrapper's Issues

RTSP decoding

Hi All,
 this isn't really an issue.
I try to decode an rtsp stream. If I pass the rtsp url to av_open_input_file() 
in QVideoDecoder::openFile() I can see the first frame. 
The problem is that I cannot go ahead with the frames. I always see the same 
frame.

I think the problem is that the rtsp stream is not seekable. 

Is it possible to implement a function that give me the next frame available 
with this wrapper?

Thank you 

Regards

Original issue reported on code.google.com by [email protected] on 24 Nov 2010 at 3:56

Program selection

What steps will reproduce the problem?
Canot select a spécific program id.

What is the expected output? What do you see instead?
Implement a QVideoDecoder method :selectProgram(int programId)
which set the videoStream on programId stream_index.

What version of the product are you using? On what operating system?
version: 23 09 2011
os: win7

Please provide any additional information below.
   void QVideoDecoder::setProgram(int programId)
   {
        int index = -1;

        for(int i=0; i<this->pFormatCtx->nb_programs; i++)
        {
            ffmpeg::AVProgram *program = this->pFormatCtx->programs[i];
            if(program->id != programId)
                continue;
            for(int j=0; j<program->nb_stream_indexes; j++)
            {
                int sidx1 = program->stream_index[j];
                int sidx2 = *program->stream_index;
                int ris = sidx2 + j;

                ffmpeg::AVStream *avs = this->pFormatCtx->streams[ris];
                ffmpeg::AVDiscard avd = avs->discard;
                ffmpeg::AVCodecContext *avc = avs->codec;
                ///ffmpeg::CodecType typ = avc->codec_type;

                /*if(/*this->pFormatCtx->streams[ris]->discard
                        &&* this->pFormatCtx->streams[ris]->codec->codec_type == type)*/
                {
                    index = ris;
                    break;
                }
            }

            qDebug() << "QVideoDecoder.setProgram(): Program Index=" << program->id;
            //qDebug() << "QVideoDecoder.setProgram(): Program Index=" << program->provider_name;
            //qDebug() << "QVideoDecoder.setProgram(): Program Name=" << program->name;
            qDebug() << "QVideoDecoder.setProgram(): Program Index=" << index;

        }

        if (index != -1)
        {
            videoStream=index; // OCA

            // Get a pointer to the codec context for the video stream
            pCodecCtx=pFormatCtx->streams[videoStream]->codec;

            // Find the decoder for the video stream
            pCodec=avcodec_find_decoder(pCodecCtx->codec_id);

            if(pCodec!=NULL)
            {
                avcodec_open(pCodecCtx, pCodec);
            }
        }
  }



Original issue reported on code.google.com by [email protected] on 30 Nov 2011 at 9:03

cio.cpp

in cio.cpp
line 88:
#ifdef LINUX
should be
#ifdef linux

Original issue reported on code.google.com by [email protected] on 7 Oct 2011 at 8:37

example project trigger error on executed

1. Checkout qtffmpegwrapper project :
hg clone https://qtffmpegwrapper.googlecode.com/hg/ qtffmpegwrapper

2. Go to example directory.Open the qtffmpegwrapperdemo.pro using Qt 
Creator

3. From the menu I select Build -> Rebuild All

NO window come out. I got this error :
..qtffmpegwrapper\example\debug\qtffmpegwrapperdemo.exe exited with code 
-1073741515

I'm using QT 4.6.2 on Windows XP


Original issue reported on code.google.com by [email protected] on 10 Mar 2010 at 7:23

OSX Build with Latest ffmpeg - avacodec_init() symbol not found

What steps will reproduce the problem?
1. Build ffmpeg on mac OSX 10.7 (latest source from git)
2. Build latest ffmpeg (download form this site)
3. qmake/make simple project file using QVideoDecoder.cpp, .h

What version of the product are you using? 
qtffmpegwrapper_src-20120317.zip

On what operating system?
Mac OSX 10.7

latest ffmpeg from:
git://source.ffmpeg.org/ffmpeg.git

Has anyone successfully built for OSX? 

Original issue reported on code.google.com by [email protected] on 12 Jun 2012 at 8:19

Warnings/deprecated functions

It's a great wrapper :)

But when I compile the example program, I get a lot of warnings because of 
deprecated functions...
The attached file contains my make output.

What steps will reproduce the problem?
Compile example program with ffmpeg 0.7.3 on Ubuntu 11.10 (maybe also on other 
systems)



Original issue reported on code.google.com by [email protected] on 8 Apr 2012 at 4:30

Attachments:

Compile problem and library linkage

Hi all,

First I've the same issue as : [email protected]
So I put "using namespace ffmpeg;
to the end of ffmpeg.h"

And It's not compile, I have this issue : 
/usr/bin/ld: cannot find -lavutil

My system is :
Ubuntu 10.04.4 LTS \n \l

Bye


Original issue reported on code.google.com by [email protected] on 7 May 2012 at 8:20

Can't compile QVideoEncoder

What steps will reproduce the problem?
1. remove paths from config.pro 
2. qmake config.pro
3. make

What do you see instead?

The QVideoEncoding compilation fails:
g++ -m64 -Wl,-O1 -o config QVideoEncoder.o QVideoDecoder.o    -L/usr/lib 
-lavutil -lavcodec -lavformat -lswscale -lQtGui -lQtCore -lpthread 
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
relocation 0 has invalid symbol index 11
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
relocation 1 has invalid symbol index 12
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
relocation 2 has invalid symbol index 2
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
relocation 3 has invalid symbol index 2
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
relocation 4 has invalid symbol index 11
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
relocation 5 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
relocation 6 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
relocation 7 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
relocation 8 has invalid symbol index 2
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
relocation 9 has invalid symbol index 2
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
relocation 10 has invalid symbol index 12
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
relocation 11 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
relocation 12 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
relocation 13 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
relocation 14 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
relocation 15 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
relocation 16 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
relocation 17 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
relocation 18 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
relocation 19 has invalid symbol index 13
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): 
relocation 20 has invalid symbol index 20
/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1/../../../crt1.o: In 
function `_start':
(.text+0x20): undefined reference to `main'
QVideoEncoder.o: In function `QVideoEncoder::createFile(QString, unsigned int, 
unsigned int, unsigned int, unsigned int)':
QVideoEncoder.cpp:(.text+0x2fc): undefined reference to `guess_format'
QVideoEncoder.cpp:(.text+0x654): undefined reference to `guess_format'
collect2: ld returned 1 exit status
make: *** [config] Fehler 1


However, it works, if I remove the two guess_format calls from QVideoEncoder.cpp



What version of the product are you using? On what operating system?


System configuration: Debian wheezy
with 
ii  ffmpeg                                5:0.8-0.1                        
audio/video encoder, streaming server & audio/video file converter.
ii  gstreamer0.10-ffmpeg                  1:0.10.11-4.1                    
FFmpeg plugin for GStreamer
rc  libavcodec51                          0.svn20080206-18                 
ffmpeg codec library
ii  libavdevice52                         5:0.6.3-0.0                      
ffmpeg device handling library
rc  libavfilter0                          4:0.5.2-1                        
ffmpeg video filtering library
ii  libavformat52                         5:0.6.3-0.0                      
ffmpeg file format library
ii  libavutil49                           4:0.5.2-6                        
ffmpeg utility library
ii  libswscale0                           5:0.6.3+git20110613-0.1          
ffmpeg video scaling library


Original issue reported on code.google.com by [email protected] on 4 Aug 2011 at 10:07

Memory leak in QVideoEncoder

img_convert_ctx isn't freed on close()

ffmpeg::sws_getCachedContext() tries to use an already existing context but 
fails because initVars() sets img_convert_ctx to zero. So a new context is 
allocated on every new video.

Adding the following lines to QVideoEncoder::close() (before initVars) solves 
the problem:
// free the sws-context
sws_freeContext(img_convert_ctx);

Another solution would be of course to remove the corresponding line from 
initVars()

regards

Frederik Pasch

Original issue reported on code.google.com by [email protected] on 14 Feb 2011 at 2:36

include <cmath>

What steps will reproduce the problem?
I'm using ffmpeg and marble opensource lib

What is the expected output? What do you see instead?
the compilation failled:
d:\dev\qt\qtcreator-2.3.1\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/cmath:1
05: error: '::acos' has not been declared
d:\dev\qt\qtcreator-2.3.1\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/cmath:1
21: error: '::asin' has not been declared
d:\dev\qt\qtcreator-2.3.1\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/cmath:1
37: error: '::atan' has not been declared
d:\dev\qt\qtcreator-2.3.1\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/cmath:1
53: error: '::atan2' has not been declared
d:\dev\qt\qtcreator-2.3.1\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/cmath:1
75: error: '::ceil' has not been declared
d:\dev\qt\qtcreator-2.3.1\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/cmath:1
91: error: '::cos' has not been declared
d:\dev\qt\qtcreator-2.3.1\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/cmath:2
07: error: '::cosh' has not been declared
d:\dev\qt\qtcreator-2.3.1\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/cmath:2
23: error: '::exp' has not been declared
d:\dev\qt\qtcreator-2.3.1\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/cmath:2
39: error: '::fabs' has not been declared
d:\dev\qt\qtcreator-2.3.1\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/cmath:2
55: error: '::floor' has not been declared
d:\dev\qt\qtcreator-2.3.1\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/cmath:2
71: error: '::fmod' has not been declared
d:\dev\qt\qtcreator-2.3.1\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/cmath:2
81: error: '::frexp' has not been declared
d:\dev\qt\qtcreator-2.3.1\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/cmath:2
97: error: '::ldexp' has not been declared
d:\dev\qt\qtcreator-2.3.1\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/cmath:3
13: error: '::log' has not been declared
d:\dev\qt\qtcreator-2.3.1\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/cmath:3
29: error: '::log10' has not been declared
d:\dev\qt\qtcreator-2.3.1\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/cmath:3
45: error: '::modf' has not been declared
d:\dev\qt\qtcreator-2.3.1\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/cmath:3
55: error: '::pow' has not been declared
d:\dev\qt\qtcreator-2.3.1\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/cmath:3
93: error: '::sin' has not been declared
d:\dev\qt\qtcreator-2.3.1\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/cmath:4
09: error: '::sinh' has not been declared
d:\dev\qt\qtcreator-2.3.1\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/cmath:4
25: error: '::sqrt' has not been declared
d:\dev\qt\qtcreator-2.3.1\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/cmath:4
41: error: '::tan' has not been declared
d:\dev\qt\qtcreator-2.3.1\mingw\bin\../lib/gcc/mingw32/4.4.0/include/c++/cmath:4
57: error: '::tanh' has not been declared

What version of the product are you using? On what operating system?
version 23 09 2011
os win7

Please provide any additional information below.
I solved the problem by adding 
#include <cmath> in ffmpeg.h:

  #ifndef _FFMPEG_H
  #define _FFMPEG_H

  #include <cmath>

  namespace ffmpeg {
  ...



Original issue reported on code.google.com by [email protected] on 30 Nov 2011 at 8:56

Wrong frame number with H.264

The current QVideoDecoder code assumes that packet.dts values are equivalent to 
frame numbers (i.e. start from 0 and are incremented by one with each 
successfully read packet). However, this does not hold for all video codecs 
(such as H.264), according to my experience. The effect is that such videos are 
unable to be played back or at least seeked correctly. See 
http://www.auby.no/files/video_tests/h264_720p_mp_3.1_3mbps_aac_shrinkage.mp4 
for a sample behaviour.

The proposed fix is based on the implementation in Blender 
(https://svn.blender.org/svnroot/bf-blender/trunk/blender/source/gameengine/Vide
oTexture/VideoFFmpeg.cpp):


*** In bool QVideoDecoder::decodeSeekFrame(int after) *** 

REPLACE

int f = packet.dts;

WITH

double m_baseFrameRate = av_q2d(pFormatCtx->streams[videoStream]->r_frame_rate);
double timeBase = av_q2d(pFormatCtx->streams[videoStream]->time_base);
int64_t startTs = pFormatCtx->streams[videoStream]->start_time;
if (startTs == AV_NOPTS_VALUE) startTs = 0;
int f = (long)((packet.dts-startTs) * (m_baseFrameRate*timeBase) + 0.5);



*** In bool QVideoDecoder::seekFrame(int64_t frame) ***

REPLACE

//printf("\t avformat_seek_file\n");
if(ffmpeg::avformat_seek_file(pFormatCtx,videoStream,0,frame,frame,AVSEEK_FLAG_F
RAME)<0)

WITH

double m_baseFrameRate = av_q2d(pFormatCtx->streams[videoStream]->r_frame_rate);
double timeBase = av_q2d(pFormatCtx->streams[videoStream]->time_base);
int64_t startTs = pFormatCtx->streams[videoStream]->start_time;
if (startTs == AV_NOPTS_VALUE) startTs = 0;
double preSeek = 1*getFPS(); //ffmpeg bug?: with H.264 avformat_seek_file often 
seeks not in a keyframe, thus the following avcodec_decode_video2 iterations 
may go past desiredDts
int desiredDts = (frame-0.5-preSeek) / (m_baseFrameRate*timeBase) + startTs;
if (desiredDts<startTs) desiredDts = startTs;

//printf("\t avformat_seek_file to %d (pts %d)\n", frame, desiredDts);
if(ffmpeg::avformat_seek_file(pFormatCtx,videoStream,-0x7ffffffffffffff,desiredD
ts,desiredDts,AVSEEK_FLAG_BACKWARD)<0)

Original issue reported on code.google.com by [email protected] on 21 Oct 2013 at 3:28

compile problem

I just get code from repository and try to compile QTFFmpegWrapper with this 
steps.

qmake config.pro
make

and output is


g++ -c -m64 -pipe -O2 -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 
-fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -Wall -W 
-D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED 
-I/usr/share/qt4/mkspecs/default -I. -I/usr/include/QtCore -I/usr/include/QtGui 
-I/usr/include -IQVideoEncoder -I../QTFFmpegWrapper -I. -o QVideoEncoder.o 
../QTFFmpegWrapper/QVideoEncoder.cpp
In file included from ../QTFFmpegWrapper/QVideoEncoder.cpp:17:
../QTFFmpegWrapper/QVideoEncoder.h:42: error: ISO C++ forbids declaration of 
‘uint8_t’ with no type
../QTFFmpegWrapper/QVideoEncoder.h:42: error: expected ‘;’ before ‘*’ 
token
../QTFFmpegWrapper/QVideoEncoder.h:45: error: ISO C++ forbids declaration of 
‘uint8_t’ with no type
../QTFFmpegWrapper/QVideoEncoder.h:45: error: expected ‘;’ before ‘*’ 
token
../QTFFmpegWrapper/QVideoEncoder.cpp: In member function ‘virtual bool 
QVideoEncoder::close()’:
../QTFFmpegWrapper/QVideoEncoder.cpp:196: warning: comparison between signed 
and unsigned integer expressions
../QTFFmpegWrapper/QVideoEncoder.cpp: In member function ‘virtual int 
QVideoEncoder::encodeImage(const QImage&)’:
../QTFFmpegWrapper/QVideoEncoder.cpp:226: error: ‘outbuf’ was not declared 
in this scope
../QTFFmpegWrapper/QVideoEncoder.cpp:234: warning: comparison between signed 
and unsigned integer expressions
../QTFFmpegWrapper/QVideoEncoder.cpp: In member function ‘void 
QVideoEncoder::initVars()’:
../QTFFmpegWrapper/QVideoEncoder.cpp:264: error: ‘outbuf’ was not declared 
in this scope
../QTFFmpegWrapper/QVideoEncoder.cpp:265: error: ‘picture_buf’ was not 
declared in this scope
../QTFFmpegWrapper/QVideoEncoder.cpp: In member function ‘bool 
QVideoEncoder::initOutputBuf()’:
../QTFFmpegWrapper/QVideoEncoder.cpp:317: error: ‘outbuf’ was not declared 
in this scope
../QTFFmpegWrapper/QVideoEncoder.cpp:317: error: expected type-specifier before 
‘uint8_t’
../QTFFmpegWrapper/QVideoEncoder.cpp:317: error: expected ‘;’ before 
‘uint8_t’
../QTFFmpegWrapper/QVideoEncoder.cpp: In member function ‘void 
QVideoEncoder::freeOutputBuf()’:
../QTFFmpegWrapper/QVideoEncoder.cpp:327: error: ‘outbuf’ was not declared 
in this scope
../QTFFmpegWrapper/QVideoEncoder.cpp:329: error: type ‘<type error>’ 
argument given to ‘delete’, expected pointer
../QTFFmpegWrapper/QVideoEncoder.cpp: In member function ‘bool 
QVideoEncoder::initFrame()’:
../QTFFmpegWrapper/QVideoEncoder.cpp:341: error: ‘picture_buf’ was not 
declared in this scope
../QTFFmpegWrapper/QVideoEncoder.cpp:341: error: expected type-specifier before 
‘uint8_t’
../QTFFmpegWrapper/QVideoEncoder.cpp:341: error: expected ‘;’ before 
‘uint8_t’
../QTFFmpegWrapper/QVideoEncoder.cpp:340: warning: unused variable ‘size’
../QTFFmpegWrapper/QVideoEncoder.cpp: In member function ‘void 
QVideoEncoder::freeFrame()’:
../QTFFmpegWrapper/QVideoEncoder.cpp:356: error: ‘picture_buf’ was not 
declared in this scope
../QTFFmpegWrapper/QVideoEncoder.cpp:358: error: type ‘<type error>’ 
argument given to ‘delete’, expected pointer
../QTFFmpegWrapper/QVideoEncoder.cpp: In member function ‘bool 
QVideoEncoder::convertImage(const QImage&)’:
../QTFFmpegWrapper/QVideoEncoder.cpp:378: warning: comparison between signed 
and unsigned integer expressions
../QTFFmpegWrapper/QVideoEncoder.cpp:378: warning: comparison between signed 
and unsigned integer expressions
../QTFFmpegWrapper/QVideoEncoder.cpp:397: error: ‘picture_buf’ was not 
declared in this scope
../QTFFmpegWrapper/QVideoEncoder.cpp:421: error: ‘picture_buf’ was not 
declared in this scope
../QTFFmpegWrapper/QVideoEncoder.cpp: In member function ‘bool 
QVideoEncoder::convertImage_sws(const QImage&)’:
../QTFFmpegWrapper/QVideoEncoder.cpp:472: warning: comparison between signed 
and unsigned integer expressions
../QTFFmpegWrapper/QVideoEncoder.cpp:472: warning: comparison between signed 
and unsigned integer expressions
../QTFFmpegWrapper/QVideoEncoder.cpp:491: error: ‘uint8_t’ was not declared 
in this scope
../QTFFmpegWrapper/QVideoEncoder.cpp:491: error: ‘srcplanes’ was not 
declared in this scope
../QTFFmpegWrapper/QVideoEncoder.cpp:492: error: expected primary-expression 
before ‘)’ token
../QTFFmpegWrapper/QVideoEncoder.cpp:492: error: expected ‘;’ before 
‘img’
make: *** [QVideoEncoder.o] Error 1

Original issue reported on code.google.com by ozkan%[email protected] on 3 Jul 2010 at 9:38

segmentation fault

What steps will reproduce the problem?
1. open a large avi video file
2. in seekNextFrame, the call of decodeSeekFrame crash when doing the memcpy in 
LastFrame.scanLine(y)
3. The segmentation fault produce allways at same frame number

What is the expected output? What do you see instead?
The end of the video is reached

What version of the product are you using? On what operating system?
ffmpeg SVN revision 20736
SDL 1.2.14
Qt Wrapper 1.01

Os: Windows 7
IDE QTCreator 2.2.0

Please provide any additional information below.
The video failed with my app,
but also with qtffmpegwrapperdemo

Original issue reported on code.google.com by [email protected] on 18 Aug 2011 at 8:40

add audio

do you have any plan to add audio to this library ? or can you show an example 
to do that so I can add it myself.

thanks

Original issue reported on code.google.com by ozkan%[email protected] on 27 Jul 2010 at 6:23

Can't decode video

What steps will reproduce the problem?
1. Write a simple main program tp open a file

What is the expected output? What do you see instead?

Expected: An extracted frame.

Instead: The openFile functions fails in the 
pCodec=avcodec_find_decoder(pCodecCtx->codec_id); line, which returns NULL.
Probably because pCodecCtx->codec_id is -2147483648.

What version of the product are you using? On what operating system?
Debian wheezy
ii  ffmpeg                                5:0.8-0.1                        
audio/video encoder, streaming server & audio/video file converter.
ii  gstreamer0.10-ffmpeg                  1:0.10.11-4.1                    
FFmpeg plugin for GStreamer
rc  libavcodec51                          0.svn20080206-18                 
ffmpeg codec library
ii  libavdevice52                         5:0.6.3-0.0                      
ffmpeg device handling library
rc  libavfilter0                          4:0.5.2-1                        
ffmpeg video filtering library
ii  libavformat52                         5:0.6.3-0.0                      
ffmpeg file format library
ii  libavutil49                           4:0.5.2-6                        
ffmpeg utility library
ii  libswscale0                           5:0.6.3+git20110613-0.1          
ffmpeg video scaling library




Please provide any additional information below.

I tried it with different videos and the libav library prints the correct codec 
when the QVideoDecoder is created:
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '...':
  Metadata:
    creation_time   : 2000-11-15 00:15:14
  Duration: 00:45:40.96, start: 0.000000, bitrate: 290 kb/s
    Stream #0.0(eng): Video: svq1, yuv410p, 300x176, 242 kb/s, 12,50 fps, 12,50 tbr, 600 tbn, 600 tbc

Or:
Input #0, avi, from '...':
  Metadata:
    encoder         : Nandub v1.0rc2
  Duration: 01:01:35.04, start: 0.000000, bitrate: 1249 kb/s
    Stream #0.0: Video: mpeg4, yuv420p, 624x352 [PAR 1:1 DAR 39:22], 23,98 tbr, 23,98 tbn, 23,98 tbc

Original issue reported on code.google.com by [email protected] on 4 Aug 2011 at 10:12

Attachments:

Are you interested in updating to a newer FFmpeg?

What steps will reproduce the problem?
1. FFmpeg is ever-evolving, the 0.6 tarball is newer than this wrapper
2. FFmpeg coders include new and frustrating challenges with each release
3.

What is the expected output? What do you see instead?

I found that the #include "error.h" found in the new libavutil/avutil.h makes 
many things "unhappy" in my program.

What version of the product are you using? On what operating system?

FFmpeg 0.6 on Win32/Visual Studio

Please provide any additional information below.

Just curious if you are also working on moving the wrapper forward with new 
releases of FFmpeg?

Original issue reported on code.google.com by [email protected] on 19 Jan 2011 at 9:32

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.