Opened 5 years ago

Closed 4 years ago

Last modified 4 years ago

#218 closed defect (fixed)

H264 in flv cannot be decoded

Reported by: cehoyos Owned by:
Priority: normal Component: avformat
Version: git-master Keywords: analyzeduration flv h264
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: yes

Description

http://thread.gmane.org/gmane.comp.video.ffmpeg.user/31456
Plays fine with mplayer -demuxer lavf -vc ffh264 and mplayer -demuxer lavf -vc ffh264vdpau

ffmpeg -i cuterror.cut.flv -an -f null -
ffmpeg version git-N-30013-g64be0d1, Copyright (c) 2000-2011 the FFmpeg developers
  built on May 18 2011 11:46:31 with gcc 4.5.3
  configuration: --cc=/usr/local/gcc-4.5.3/bin/gcc --disable-sse
  libavutil    51.  2. 1 / 51.  2. 1
  libavcodec   53.  6. 0 / 53.  6. 0
  libavformat  53.  1. 0 / 53.  1. 0
  libavdevice  53.  0. 0 / 53.  0. 0
  libavfilter   2.  5. 0 /  2.  5. 0
  libswscale    0. 14. 0 /  0. 14. 0
[flv @ 0x1251b30] max_analyze_duration reached
[flv @ 0x1251b30] Estimating duration from bitrate, this may be inaccurate
Input #0, flv, from 'cuterror.cut.flv':
  Metadata:
    duration        : 573
    width           : 1152
    height          : 720
    videodatarate   : 200
    framerate       : 1000
    videocodecid    : 7
    audiodatarate   : 100
    audiosamplerate : 44100
    audiosamplesize : 16
    stereo          : false
    audiocodecid    : 2
    encoder         : Lavf52.84.0
    filesize        : 37793482
  Duration: 00:09:32.92, start: 0.002000, bitrate: 307 kb/s
    Stream #0.0: Video: h264, 204 kb/s, 1k tbr, 1k tbn, 1k tbc
    Stream #0.1: Audio: mp3, 44100 Hz, mono, s16, 102 kb/s
Video pixel format is unknown, stream cannot be encoded

Attachments (2)

cuterror.cut.flv (2.4 MB) - added by cehoyos 5 years ago.
test.flv (1.9 MB) - added by cehoyos 4 years ago.
Sample from bug 242

Change History (8)

Changed 5 years ago by cehoyos

comment:1 Changed 5 years ago by cehoyos

Works fine with -analyzeduration 14M

comment:2 Changed 5 years ago by cehoyos

  • Keywords analyzeduration flv h264 added

Changed 4 years ago by cehoyos

Sample from bug 242

comment:3 Changed 4 years ago by cehoyos

  • Status changed from new to open

Additional sample from darkshikari attached.

comment:4 follow-up: Changed 4 years ago by shprasad

Problem was not with the h264/mp3 videos, the files attached had broken frames and hence it wasnt able to decode. I have sent the patch to this problem to the ffmpeg-devel. The problem was with the max_analyse_duration.

comment:5 in reply to: ↑ 4 ; follow-up: Changed 4 years ago by saste

  • Analyzed by developer set
  • Component changed from undetermined to avformat
  • Priority changed from important to normal
  • Resolution set to fixed
  • Status changed from open to closed

Replying to shprasad:

Problem was not with the h264/mp3 videos, the files attached had broken frames and hence it wasnt able to decode. I have sent the patch to this problem to the ffmpeg-devel. The problem was with the max_analyse_duration.

I think a reasonable fix consists into telling the user what to do in this case:

commit 739ec710c4e89537f3eb327a1ebddb8ceb5f2256
Author: Stefano Sabatini <stefasab@gmail.com>
Date:   Mon Jul 16 00:29:23 2012 +0200

    lavf/utils: suggest what to do in case of missing codec information
    
    In particular, fix trac issue #218.

Also I couldn't find your patch on ffmpeg-devel (can you provide a link/thread name?).

Feel free to reopen the ticket if you think there is a better solution.

comment:6 in reply to: ↑ 5 Changed 4 years ago by shprasad

[FFmpeg-devel] [Patch]decode h264/mp3 video patch
this is the subject I have put to it..........
Replying to saste:

Replying to shprasad:

Problem was not with the h264/mp3 videos, the files attached had broken frames and hence it wasnt able to decode. I have sent the patch to this problem to the ffmpeg-devel. The problem was with the max_analyse_duration.

I think a reasonable fix consists into telling the user what to do in this case:

commit 739ec710c4e89537f3eb327a1ebddb8ceb5f2256
Author: Stefano Sabatini <stefasab@gmail.com>
Date:   Mon Jul 16 00:29:23 2012 +0200

    lavf/utils: suggest what to do in case of missing codec information
    
    In particular, fix trac issue #218.

Also I couldn't find your patch on ffmpeg-devel (can you provide a link/thread name?).

Feel free to reopen the ticket if you think there is a better solution.

Note: See TracTickets for help on using tickets.