juancrobles / qtffmpegwrapper

Automatically exported from code.google.com/p/qtffmpegwrapper
Other
0 stars 0 forks source link

Can't decode video #8

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 benib...@googlemail.com on 4 Aug 2011 at 10:12

Attachments: