Opened 3 years ago

Last modified 2 months ago

#2667 reopened defect

console spamming when decoding a h264 / mp4 stream

Reported by: gjdfgh Owned by:
Priority: minor Component: avcodec
Version: git-master Keywords: h264 mov
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

Consider:

ffplay http://video.ted.com/talk/podcast/2013/None/AndrewMcAfee_2013-480p.mp4

This video plays fine at first, but about 130 seconds in it starts spamming these messages:

AVC: nal size 0 nan fd=   2 aq=   46KB vq=    0KB sq=    0B f=0/0   
[h264 @ 0xb4a07f40] AVC: nal size 0
[h264 @ 0xb4a07f40] no frame!
AVC: nal size 0 nan fd=   2 aq=   46KB vq=    0KB sq=    0B f=0/0   
[h264 @ 0xb4ca5940] AVC: nal size 0
[h264 @ 0xb4ca5940] no frame!
[h264 @ 0xb4a1f7e0] AVC: nal size 0
    Last message repeated 1 times

This is with latest git (fa125c5e82fce4). A user reported that a 2 week old Libav actually caused failed with an assertion on this.

No, I won't follow the cehoyos ritual, don't even ask. It's easily reproducible.

Change History (28)

comment:1 follow-up: Changed 3 years ago by ubitux

  • Component changed from undetermined to avcodec
  • Keywords h264 added
  • Reproduced by developer set
  • Status changed from new to open
  • Version changed from unspecified to git-master
% ☭ ./ffplay -ss 130 /tmp/AndrewMcAfee_2013-480p.mp4
ffplay version N-53980-gd3c4ea8 Copyright (c) 2003-2013 the FFmpeg developers
  built on Jun 12 2013 13:56:10 with gcc 4.8.1 (GCC)
  configuration: --enable-gpl --enable-libx264 --enable-libmp3lame --enable-x11grab --enable-libvorbis --enable-libvpx --cc='ccache cc' --samples=/home/ubitux/fate-samples --enable-libass --enable-libquvi --enable-fontconfig --enable-libfreetype --cpu=native
  libavutil      52. 35.101 / 52. 35.101
  libavcodec     55. 16.100 / 55. 16.100
  libavformat    55.  8.102 / 55.  8.102
  libavdevice    55.  2.100 / 55.  2.100
  libavfilter     3. 75.101 /  3. 75.101
  libswscale      2.  3.100 /  2.  3.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
stream 0, timescale not set aq=    0KB vq=    0KB sq=    0B f=0/0   
max_analyze_duration 5000000 reached at 5000000 microsecondsf=0/0   
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/tmp/AndrewMcAfee_2013-480p.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 1
    compatible_brands: isom
    creation_time   : 2013-05-24 19:49:04
    media_type      : 0
    title           : TED: Andrew McAfee (2013)
    artist          : TED
    date            : 2013
    album           : TEDTalks
    comment         : To learn more about this speaker, find other TEDTalks, and subscribe to this Podcast series, visit www.TED.com
                    : Feedback: contact@ted.com
    genre           : Podcast
  Duration: 00:14:25.20, start: 0.000000, bitrate: 928 kb/s
    Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 854x480 [SAR 1280:1281 DAR 16:9], 851 kb/s, 24 fps, 24 tbr, 24 tbn, 48 tbc
    Metadata:
      creation_time   : 2013-03-14 19:16:08
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 73 kb/s
    Metadata:
      creation_time   : 2013-05-24 19:49:05
      handler_name    : GPAC ISO Audio Handler
    Stream #0:2: Video: png, pal8, 400x400, 90k tbr, 90k tbn, 90k tbc
AVC: nal size 0.032 fd=   0 aq=    1KB vq=    1KB sq=    0B f=0/0   
[h264 @ 0x7f5dc000e4a0] AVC: nal size 0
[h264 @ 0x7f5dc000e4a0] no frame!
AVC: nal size 0.032 fd=   0 aq=    1KB vq=    1KB sq=    0B f=0/0   
[h264 @ 0x7f5dc024cea0] AVC: nal size 0
[h264 @ 0x7f5dc024cea0] no frame!
AVC: nal size 0.032 fd=   0 aq=    1KB vq=    0KB sq=    0B f=0/0   
[h264 @ 0x7f5dc0015940] AVC: nal size 0
[h264 @ 0x7f5dc0015940] no frame!
[h264 @ 0x7f5dc000e4a0] AVC: nal size 0
    Last message repeated 1 times
[h264 @ 0x7f5dc000e4a0] no frame!
[h264 @ 0x7f5dc024cea0] AVC: nal size 0
    Last message repeated 1 times
[h264 @ 0x7f5dc024cea0] no frame!
[h264 @ 0x7f5dc0015940] AVC: nal size 0
    Last message repeated 1 times
[h264 @ 0x7f5dc0015940] no frame!
[h264 @ 0x7f5dc000e4a0] AVC: nal size 0
    Last message repeated 1 times
[h264 @ 0x7f5dc000e4a0] no frame!
[h264 @ 0x7f5dc024cea0] AVC: nal size 0
    Last message repeated 1 times
[h264 @ 0x7f5dc024cea0] no frame!
[h264 @ 0x7f5dc0015940] AVC: nal size 0
    Last message repeated 1 times
[h264 @ 0x7f5dc0015940] no frame!
[h264 @ 0x7f5dc000e4a0] AVC: nal size 0
    Last message repeated 1 times
[h264 @ 0x7f5dc000e4a0] no frame!
[h264 @ 0x7f5dc024cea0] AVC: nal size 0
    Last message repeated 1 times
[h264 @ 0x7f5dc024cea0] no frame!
[h264 @ 0x7f5dc0015940] AVC: nal size 0
    Last message repeated 1 times
[h264 @ 0x7f5dc0015940] no frame!
[h264 @ 0x7f5dc000e4a0] AVC: nal size 0
    Last message repeated 1 times
[h264 @ 0x7f5dc000e4a0] no frame!
[h264 @ 0x7f5dc024cea0] AVC: nal size 0
    Last message repeated 1 times
[h264 @ 0x7f5dc024cea0] no frame!
[h264 @ 0x7f5dc0015940] AVC: nal size 0
    Last message repeated 1 times
[h264 @ 0x7f5dc0015940] no frame!
[h264 @ 0x7f5dc000e4a0] AVC: nal size 0
    Last message repeated 1 times
[h264 @ 0x7f5dc000e4a0] no frame!
[h264 @ 0x7f5dc024cea0] AVC: nal size 0
    Last message repeated 1 times
[h264 @ 0x7f5dc024cea0] no frame!
[...]

Same problem reproducible with 1.2, dunno if regression.

Last edited 3 years ago by ubitux (previous) (diff)

comment:2 follow-up: Changed 3 years ago by cehoyos

Which application plays the file?

comment:3 Changed 3 years ago by gjdfgh

Unknown, could as well be a broken file.

the link is from http://www.ted.com/talks/andrew_mcafee_what_will_future_jobs_look_like.html

comment:4 Changed 3 years ago by cehoyos

The question actually meant Clément who set the ticket to reproduced, but if you assume a broken file then what problem exactly are you reporting?

More generally, the console output is of course only the necessary part of a bug report, it is very often not sufficient, but (unfortunately) it is typically difficult to define how a sufficient report looks like. How do you expect that you report all facts that are needed for a sufficiently detailed report if you already fail at the necessary parts?

comment:5 in reply to: ↑ 2 Changed 3 years ago by ubitux

Replying to cehoyos:

Which application plays the file?

The flash player on ted doesn't seem to have a trouble with it, but I can't tell if that's because another quality is picked. Also, it's likely streamed differently than "file-based" (likely HLS or similar since it deals with bitrate changes).

comment:6 Changed 3 years ago by cehoyos

  • Keywords mov added
  • Priority changed from normal to minor

comment:7 follow-up: Changed 3 years ago by cehoyos

  • Summary changed from can't decode some mp4/h264 streams to console spamming when decoding a h264 / mp4 stream

comment:8 in reply to: ↑ 7 ; follow-up: Changed 3 years ago by ubitux

Priority changed from normal to minor
Summary changed from can't decode some mp4/h264 streams to console spamming when decoding a h264 / mp4 stream

Well broken playback is the issue... not the console spamming (and that doesn't sound like a minor issue)

Last edited 3 years ago by ubitux (previous) (diff)

comment:9 in reply to: ↑ 8 ; follow-up: Changed 3 years ago by cehoyos

Replying to ubitux:

Priority changed from normal to minor
Summary changed from can't decode some mp4/h264 streams to console spamming when decoding a h264 / mp4 stream

Well broken playback is the issue

Please elaborate!
(I was unable to reproduce / decoding works - perfectly - fine here, of course it is very possible that I am wrong but without any explanation this is extremely difficult to guess / understand.)

And please note that I doubt your command line allows to reproduce a decoding problem...

comment:10 in reply to: ↑ 9 ; follow-up: Changed 3 years ago by ubitux

Replying to cehoyos:

Replying to ubitux:

Priority changed from normal to minor
Summary changed from can't decode some mp4/h264 streams to console spamming when decoding a h264 / mp4 stream

Well broken playback is the issue

Please elaborate!
(I was unable to reproduce / decoding works - perfectly - fine here, of course it is very possible that I am wrong but without any explanation this is extremely difficult to guess / understand.)

The video is not supposed to be stalled like it is currently (frame decoding doesn't work so last pic is kept); see http://www.ted.com/talks/andrew_mcafee_what_will_future_jobs_look_like.html (you can download the low res to compare, IIRC this version works)

And please note that I doubt your command line allows to reproduce a decoding problem...

Fixed.

Last edited 3 years ago by ubitux (previous) (diff)

comment:11 in reply to: ↑ 10 ; follow-up: Changed 3 years ago by cehoyos

Replying to ubitux:

Replying to cehoyos:

Replying to ubitux:

Priority changed from normal to minor
Summary changed from can't decode some mp4/h264 streams to console spamming when decoding a h264 / mp4 stream

Well broken playback is the issue

Please elaborate!
(I was unable to reproduce / decoding works - perfectly - fine here, of course it is very possible that I am wrong but without any explanation this is extremely difficult to guess / understand.)

The video is not supposed to be stalled like it is currently

That brings me back to my original question:
Which application does not stall?
(Before you answer: Note that afaict most frames in the sample only consist of "0" and "1" making decoding extra difficult imo if we do not assume 1bit ppm or bmp.)

Or in other words: To the best of my knowledge the sample is broken and FFmpeg decodes it *extremely* well (spamming the console).

(It is still not unlikely that I am completely wrong, that the sample can be decoded much better / not stalled but that would imo need at least some indication.)

comment:12 in reply to: ↑ 1 Changed 3 years ago by cehoyos

Replying to ubitux:

% ☭ ./ffplay -ss 130 /tmp/AndrewMcAfee_2013-480p.mp4

So this is only reproducible with ffplay?
ffplay works fine here for the sample (there may be minor desync but it catches up quickly and I wonder if it is always reproducible, sorry that I find it a bit extreme to also test this thoroughly for such a bad report.)

comment:13 in reply to: ↑ 11 ; follow-up: Changed 3 years ago by ubitux

Replying to cehoyos:

[...]
The video is not supposed to be stalled like it is currently

That brings me back to my original question:
Which application does not stall?

It seems totem/gstreamer is able to, according to the user.

(Before you answer: Note that afaict most frames in the sample only consist of "0" and "1" making decoding extra difficult imo if we do not assume 1bit ppm or bmp.)

Are you sure you're not confused with some data in the (large) MP4 header?

Also, the frames around this timestamp have very low differences, so it's not surprising to have small data frames.

comment:14 in reply to: ↑ 13 Changed 3 years ago by cehoyos

Replying to ubitux:

Replying to cehoyos:

[...]
The video is not supposed to be stalled like it is currently

That brings me back to my original question:
Which application does not stall?

It seems totem/gstreamer is able to, according to the user.

totem plays the sample here exactly like ffplay and ffmpeg.
(Rereading the original post: Is it possible that this was just "wrong bug tracker"?)

(Before you answer: Note that afaict most frames in the sample only consist of "0" and "1" making decoding extra difficult imo if we do not assume 1bit ppm or bmp.)

I just realize that this can be misunderstood: I meant h264 video packets that consist only of 0x00 and 0x01 are most likely invalid;-)

Are you sure you're not confused with some data in the (large) MP4 header?

Certainly possible, but is the large header really supposed to be in the middle of the file?

Also, the frames around this timestamp have very low differences, so it's not surprising to have small data frames.

This is of course also possible but I would have expected those small data frames to be >0 in size (many packets in the broken part of the file have size 0) and not containing only 0x00 and 0x01.

comment:15 follow-up: Changed 3 years ago by gjdfgh

sorry that I find it a bit extreme to also test this thoroughly for such a bad report.

Well you certainly seem to have trouble to reproduce this problem. Even worse, you're not even telling us with what ffmpeg git version it appears to work, and you're not pasting full uncut console output.

Either way, I hope you understand that this is not my problem, but yours. If you don't want users to report bugs, maybe disallow public registration and posting?

comment:16 Changed 3 years ago by cehoyos

$ ffmpeg -i AndrewMcAfee_2013-480p.mp4 -qscale 2 -strict -2 out.mov
ffmpeg version N-54028-ga75d2a6 Copyright (c) 2000-2013 the FFmpeg developers
  built on Jun 14 2013 20:09:46 with gcc 4.7 (SUSE Linux)
  configuration: --enable-gpl --disable-indev=jack
  libavutil      52. 35.101 / 52. 35.101
  libavcodec     55. 16.100 / 55. 16.100
  libavformat    55.  8.102 / 55.  8.102
  libavdevice    55.  2.100 / 55.  2.100
  libavfilter     3. 77.101 /  3. 77.101
  libswscale      2.  3.100 /  2.  3.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x2f9a940] stream 0, timescale not set
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x2f9a940] max_analyze_duration 5000000 reached at 5000000 microseconds
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'AndrewMcAfee_2013-480p.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 1
    compatible_brands: isom
    creation_time   : 2013-05-24 19:49:04
    media_type      : 0
    title           : TED: Andrew McAfee (2013)
    artist          : TED
    date            : 2013
    album           : TEDTalks
    comment         : To learn more about this speaker, find other TEDTalks, and subscribe to this Podcast series, visit www.TED.com
                    : Feedback: contact@ted.com
    genre           : Podcast
  Duration: 00:14:25.20, start: 0.000000, bitrate: 928 kb/s
    Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 854x480 [SAR 1280:1281 DAR 16:9], 851 kb/s, 24 fps, 24 tbr, 24 tbn, 48 tbc
    Metadata:
      creation_time   : 2013-03-14 19:16:08
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 73 kb/s
    Metadata:
      creation_time   : 2013-05-24 19:49:05
      handler_name    : GPAC ISO Audio Handler
    Stream #0:2: Video: png, pal8, 400x400, 90k tbr, 90k tbn, 90k tbc
Please use -q:a or -q:v, -qscale is ambiguous
[mpeg4 @ 0x2f9f0a0] Invalid pixel aspect ratio 1280/1281, limit is 255/255 reducing
Output #0, mov, to 'out.mov':
  Metadata:
    major_brand     : isom
    minor_version   : 1
    compatible_brands: isom
    genre           : Podcast
    media_type      : 0
    title           : TED: Andrew McAfee (2013)
    artist          : TED
    date            : 2013
    album           : TEDTalks
    comment         : To learn more about this speaker, find other TEDTalks, and subscribe to this Podcast series, visit www.TED.com
                    : Feedback: contact@ted.com
    encoder         : Lavf55.8.102
    Stream #0:0(und): Video: mpeg4 (mp4v / 0x7634706D), yuv420p, 854x480 [SAR 1:1 DAR 427:240], q=2-31, 200 kb/s, SAR 1280:1281 DAR 16:9, 12288 tbn, 24 tbc
    Metadata:
      creation_time   : 2013-03-14 19:16:08
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s
    Metadata:
      creation_time   : 2013-05-24 19:49:05
      handler_name    : GPAC ISO Audio Handler
Stream mapping:
  Stream #0:0 -> #0:0 (h264 -> mpeg4)
  Stream #0:1 -> #0:1 (aac -> aac)
Press [q] to stop, [?] for help
frame= 2963 fps=538 q=2.0 size=   27519kB time=00:02:03.45 bitrate=1826.0kbits/s
[h264 @ 0x305dea0] AVC: nal size 0
[h264 @ 0x305dea0] no frame!
[h264 @ 0x305e740] AVC: nal size 0

...

Error while decoding stream #0:0: Operation not permitted
[h264 @ 0x305d600] AVC: nal size 0
    Last message repeated 1 times
[h264 @ 0x305d600] no frame!
Error while decoding stream #0:0: Operation not permitted
    Last message repeated 7 times
[h264 @ 0x305dea0] Missing reference picture, default is 65570
[h264 @ 0x305e740] Missing reference picture, default is 65572
[h264 @ 0x3059d20] Missing reference picture, default is 65574
frame=20763 fps=575 q=2.0 Lsize=  228039kB time=00:14:25.19 bitrate=2159.1kbits/s dup=14052 drop=0
video:213974kB audio:13567kB subtitle:0 global headers:0kB muxing overhead 0.218663%
$ ffmpeg -i AndrewMcAfee_2013-480p.mp4 -qscale 2 out.avi
ffmpeg version N-54028-ga75d2a6 Copyright (c) 2000-2013 the FFmpeg developers
  built on Jun 14 2013 20:09:46 with gcc 4.7 (SUSE Linux)
  configuration: --enable-gpl --disable-indev=jack
  libavutil      52. 35.101 / 52. 35.101
  libavcodec     55. 16.100 / 55. 16.100
  libavformat    55.  8.102 / 55.  8.102
  libavdevice    55.  2.100 / 55.  2.100
  libavfilter     3. 77.101 /  3. 77.101
  libswscale      2.  3.100 /  2.  3.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x25d7840] stream 0, timescale not set
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x25d7840] max_analyze_duration 5000000 reached at 5000000 microseconds
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'AndrewMcAfee_2013-480p.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 1
    compatible_brands: isom
    creation_time   : 2013-05-24 19:49:04
    media_type      : 0
    title           : TED: Andrew McAfee (2013)
    artist          : TED
    date            : 2013
    album           : TEDTalks
    comment         : To learn more about this speaker, find other TEDTalks, and subscribe to this Podcast series, visit www.TED.com
                    : Feedback: contact@ted.com
    genre           : Podcast
  Duration: 00:14:25.20, start: 0.000000, bitrate: 928 kb/s
    Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 854x480 [SAR 1280:1281 DAR 16:9], 851 kb/s, 24 fps, 24 tbr, 24 tbn, 48 tbc
    Metadata:
      creation_time   : 2013-03-14 19:16:08
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 73 kb/s
    Metadata:
      creation_time   : 2013-05-24 19:49:05
      handler_name    : GPAC ISO Audio Handler
    Stream #0:2: Video: png, pal8, 400x400, 90k tbr, 90k tbn, 90k tbc
Please use -q:a or -q:v, -qscale is ambiguous
[mpeg4 @ 0x25dbfa0] Invalid pixel aspect ratio 1280/1281, limit is 255/255 reducing
Output #0, avi, to 'out.avi':
  Metadata:
    major_brand     : isom
    minor_version   : 1
    compatible_brands: isom
    IGNR            : Podcast
    media_type      : 0
    INAM            : TED: Andrew McAfee (2013)
    IART            : TED
    ICRD            : 2013
    IPRD            : TEDTalks
    ICMT            : To learn more about this speaker, find other TEDTalks, and subscribe to this Podcast series, visit www.TED.com
                    : Feedback: contact@ted.com
    ISFT            : Lavf55.8.102
    Stream #0:0(und): Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 854x480 [SAR 1:1 DAR 427:240], q=2-31, 200 kb/s, SAR 1280:1281 DAR 16:9, 24 tbn, 24 tbc
    Metadata:
      creation_time   : 2013-03-14 19:16:08
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: ac3 ([0] [0][0] / 0x2000), 44100 Hz, stereo, fltp, 192 kb/s
    Metadata:
      creation_time   : 2013-05-24 19:49:05
      handler_name    : GPAC ISO Audio Handler
Stream mapping:
  Stream #0:0 -> #0:0 (h264 -> mpeg4)
  Stream #0:1 -> #0:1 (aac -> ac3)
Press [q] to stop, [?] for help
frame= 3113 fps=518 q=2.0 size=   30843kB time=00:02:09.74 bitrate=1947.4kbits/s
[h264 @ 0x26a32e0] AVC: nal size 0
[h264 @ 0x26a32e0] no frame!
[h264 @ 0x26a3b80] AVC: nal size 0
    Last message repeated 1 times

...

[h264 @ 0x26a21a0] no frame!
[h264 @ 0x26a2a40] AVC: nal size 0
Error while decoding stream #0:0: Operation not permitted
    Last message repeated 1 times
[h264 @ 0x26a2a40] no frame!
Error while decoding stream #0:0: Operation not permitted
    Last message repeated 7 times
[h264 @ 0x26a32e0] Missing reference picture, default is 65570
[h264 @ 0x26a3b80] Missing reference picture, default is 65572
[h264 @ 0x269f160] Missing reference picture, default is 65574
frame= 3231 fps=359 q=2.0 size=   46617kB time=00:12:00.24 bitrate= 530.2kbits/s
frame= 6711 fps=434 q=2.0 Lsize=   89139kB time=00:14:25.21 bitrate= 844.0kbits/s
video:67780kB audio:20278kB subtitle:0 global headers:0kB muxing overhead 1.228904%

comment:17 in reply to: ↑ 15 Changed 3 years ago by cehoyos

Replying to gjdfgh:

If you don't want users to report bugs

As you can easily find out I love bug reports but I don't want intentionally incomplete reports from arrogant people like you.

comment:18 Changed 3 years ago by cehoyos

$ ffplay AndrewMcAfee_2013-480p.mp4 -autoexit
ffplay version N-54028-ga75d2a6 Copyright (c) 2003-2013 the FFmpeg developers
  built on Jun 14 2013 20:09:46 with gcc 4.7 (SUSE Linux)
  configuration: --enable-gpl --disable-indev=jack
  libavutil      52. 35.101 / 52. 35.101
  libavcodec     55. 16.100 / 55. 16.100
  libavformat    55.  8.102 / 55.  8.102
  libavdevice    55.  2.100 / 55.  2.100
  libavfilter     3. 77.101 /  3. 77.101
  libswscale      2.  3.100 /  2.  3.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
    nan    :  0.000 fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   ^Mstream 0, timescale not set
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f249c000920] max_analyze_duration 5000000 reached at 5000000 microseconds
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'AndrewMcAfee_2013-480p.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 1
    compatible_brands: isom
    creation_time   : 2013-05-24 19:49:04
    media_type      : 0
    title           : TED: Andrew McAfee (2013)
    artist          : TED
    date            : 2013
    album           : TEDTalks
    comment         : To learn more about this speaker, find other TEDTalks, and subscribe to this Podcast series, visit www.TED.com
                    : Feedback: contact@ted.com
    genre           : Podcast
  Duration: 00:14:25.20, start: 0.000000, bitrate: 928 kb/s
    Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 854x480 [SAR 1280:1281 DAR 16:9], 851 kb/s, 24 fps, 24 tbr, 24 tbn, 48 tbc
    Metadata:
      creation_time   : 2013-03-14 19:16:08
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 73 kb/s
    Metadata:
      creation_time   : 2013-05-24 19:49:05
      handler_name    : GPAC ISO Audio Handler
    Stream #0:2: Video: png, pal8, 400x400, 90k tbr, 90k tbn, 90k tbc
 129.90 A-V: -0.018 fd=  18 aq=    3KB vq=    0KB sq=    0B f=0/0
[h264 @ 0x7f249c1160e0] no frame!
[h264 @ 0x7f249c116980] AVC: nal size 0

...

[h264 @ 0x7f249c1160e0] AVC: nal size 0
    Last message repeated 1 times
[h264 @ 0x7f249c1160e0] no frame!
[h264 @ 0x7f249c117220] Missing reference picture, default is 65572
[h264 @ 0x7f249c10c400] Missing reference picture, default is 65574
865.21 A-V:  0.002 fd=  18 aq=    0KB vq=    0KB sq=    0B f=0/0

comment:19 Changed 2 years ago by michael

Cannot reproduce
i seem to have had the file on my disk already so i assume i could reproduce this previously
now i cant neither with the file i have nor the URL
can someone confirm that this is fixed ?
(not reproduce == no spam no artifacts)

comment:20 Changed 2 years ago by gjdfgh

Can't reproduce anymore either.

I suggest closing with WORKSFORME.

comment:21 Changed 2 years ago by michael

  • Resolution set to worksforme
  • Status changed from open to closed

comment:22 Changed 2 years ago by cehoyos

  • Resolution worksforme deleted
  • Status changed from closed to reopened

I still see exactly the same messages as originally.

$ ffmpeg -i AndrewMcAfee_2013-480p.mp4 -qscale 2 out.avi
ffmpeg version N-60317-gc81a9d1 Copyright (c) 2000-2014 the FFmpeg developers
  built on Feb  2 2014 22:49:18 with gcc 4.7 (SUSE Linux)
  configuration: --enable-gpl
  libavutil      52. 63.100 / 52. 63.100
  libavcodec     55. 49.101 / 55. 49.101
  libavformat    55. 29.100 / 55. 29.100
  libavdevice    55.  7.100 / 55.  7.100
  libavfilter     4.  1.102 /  4.  1.102
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.104 /  0. 17.104
  libpostproc    52.  3.100 / 52.  3.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x344a900] stream 0, timescale not set
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'AndrewMcAfee_2013-480p.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 1
    compatible_brands: isom
    creation_time   : 2013-05-24 19:49:04
    media_type      : 0
    title           : TED: Andrew McAfee (2013)
    artist          : TED
    date            : 2013
    album           : TEDTalks
    comment         : To learn more about this speaker, find other TEDTalks, and subscribe to this Podcast series, visit www.TED.com
                    : Feedback: contact@ted.com
    genre           : Podcast
  Duration: 00:14:25.20, start: 0.000000, bitrate: 928 kb/s
    Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 854x480 [SAR 1280:1281 DAR 16:9], 851 kb/s, 24 fps, 24 tbr, 24 tbn, 48 tbc (default)
    Metadata:
      creation_time   : 2013-03-14 19:16:08
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 73 kb/s (default)
    Metadata:
      creation_time   : 2013-05-24 19:49:05
      handler_name    : GPAC ISO Audio Handler
    Stream #0:2: Video: png, pal8, 400x400, 90k tbr, 90k tbn, 90k tbc
Please use -q:a or -q:v, -qscale is ambiguous
[mpeg4 @ 0x3451e60] Invalid pixel aspect ratio 1280/1281, limit is 255/255 reducing
Output #0, avi, to 'out.avi':
  Metadata:
    major_brand     : isom
    minor_version   : 1
    compatible_brands: isom
    IGNR            : Podcast
    media_type      : 0
    INAM            : TED: Andrew McAfee (2013)
    IART            : TED
    ICRD            : 2013
    IPRD            : TEDTalks
    ICMT            : To learn more about this speaker, find other TEDTalks, and subscribe to this Podcast series, visit www.TED.com
                    : Feedback: contact@ted.com
    ISFT            : Lavf55.29.100
    Stream #0:0(und): Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 854x480 [SAR 1:1 DAR 427:240], q=2-31, 200 kb/s, SAR 1280:1281 DAR 16:9, 24 tbn, 24 tbc (default)
    Metadata:
      creation_time   : 2013-03-14 19:16:08
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: ac3 ([0] [0][0] / 0x2000), 44100 Hz, stereo, fltp, 192 kb/s (default)
    Metadata:
      creation_time   : 2013-05-24 19:49:05
      handler_name    : GPAC ISO Audio Handler
Stream mapping:
  Stream #0:0 -> #0:0 (h264 -> mpeg4)
  Stream #0:1 -> #0:1 (aac -> ac3)
Press [q] to stop, [?] for help
[h264 @ 0x3514360] AVC: nal size 030079kB time=00:02:07.30 bitrate=1935.6kbits/s
    Last message repeated 1 times
[h264 @ 0x3514360] no frame!
[h264 @ 0x3514c40] AVC: nal size 0
    Last message repeated 1 times                                                             

...

...

Error while decoding stream #0:0: Invalid data found when processing input
    Last message repeated 7 times
[h264 @ 0x3514360] Missing reference picture, default is 65570
[h264 @ 0x3514c40] Missing reference picture, default is 65572
[h264 @ 0x350fd00] Missing reference picture, default is 65574
frame= 6711 fps=565 q=2.0 Lsize=   89123kB time=00:14:25.21 bitrate= 843.8kbits/s
video:67763kB audio:20278kB subtitle:0 data:0 global headers:0kB muxing overhead 1.229187%

comment:23 Changed 2 months ago by richardpl

  • Resolution set to fixed
  • Status changed from reopened to closed

Doesn't happen any more here.

comment:24 Changed 2 months ago by cehoyos

  • Resolution fixed deleted
  • Status changed from closed to reopened

I still see very similar messages as three years ago.

$ ffmpeg -i AndrewMcAfee_2013-480p.mp4 -qscale 2 out.avi
ffmpeg version N-80050-ga0349ae Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.7 (SUSE Linux)
  configuration: --enable-gpl
  libavutil      55. 24.100 / 55. 24.100
  libavcodec     57. 42.100 / 57. 42.100
  libavformat    57. 36.100 / 57. 36.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 46.100 /  6. 46.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x2da73c0] stream 0, timescale not set
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'AndrewMcAfee_2013-480p.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 1
    compatible_brands: isom
    creation_time   : 2013-05-24 19:49:04
    podcast         : 1
    media_type      : 0
    title           : TED: Andrew McAfee (2013)
    artist          : TED
    date            : 2013
    album           : TEDTalks
    comment         : To learn more about this speaker, find other TEDTalks, and subscribe to this Podcast series, visit www.TED.com
                    : Feedback: contact@ted.com
    genre           : Podcast
    category        : Higher Education
  Duration: 00:14:25.20, start: 0.000000, bitrate: 928 kb/s
    Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 854x480 [SAR 1280:1281 DAR 16:9], 851 kb/s, 24 fps, 24 tbr, 24 tbn (default)
    Metadata:
      creation_time   : 2013-03-14 19:16:08
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 73 kb/s (default)
    Metadata:
      creation_time   : 2013-05-24 19:49:05
      handler_name    : GPAC ISO Audio Handler
    Stream #0:2: Video: png, pal8(pc), 400x400, 90k tbr, 90k tbn
Please use -q:a or -q:v, -qscale is ambiguous
[mpeg4 @ 0x2e01760] Invalid pixel aspect ratio 1280/1281, limit is 255/255 reducing
[avi @ 0x2e00500] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
    Last message repeated 1 times
Output #0, avi, to 'out.avi':
  Metadata:
    major_brand     : isom
    minor_version   : 1
    compatible_brands: isom
    category        : Higher Education
    podcast         : 1
    media_type      : 0
    INAM            : TED: Andrew McAfee (2013)
    IART            : TED
    ICRD            : 2013
    IPRD            : TEDTalks
    ICMT            : To learn more about this speaker, find other TEDTalks, and subscribe to this Podcast series, visit www.TED.com
                    : Feedback: contact@ted.com
    IGNR            : Podcast
    ISFT            : Lavf57.36.100
    Stream #0:0(und): Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 854x480 [SAR 1:1 DAR 427:240], q=2-31, 200 kb/s, SAR 1280:1281 DAR 16:9, 24 fps, 24 tbn (default)
    Metadata:
      creation_time   : 2013-03-14 19:16:08
      handler_name    : VideoHandler
      encoder         : Lavc57.42.100 mpeg4
    Side data:
      cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
    Stream #0:1(und): Audio: ac3 ([0] [0][0] / 0x2000), 44100 Hz, stereo, fltp, 192 kb/s (default)
    Metadata:
      creation_time   : 2013-05-24 19:49:05
      handler_name    : GPAC ISO Audio Handler
      encoder         : Lavc57.42.100 ac3
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> mpeg4 (native))
  Stream #0:1 -> #0:1 (aac (native) -> ac3 (native))
Press [q] to stop, [?] for help
[h264 @ 0x2ff0400] no frame!ze=   26308kB time=00:01:54.13 bitrate=1888.2kbits/s speed=32.6x
[h264 @ 0x3037480] no frame!
[h264 @ 0x2debc60] no frame!
[h264 @ 0x2dff780] no frame!
[h264 @ 0x2eae5c0] no frame!
[h264 @ 0x2e755c0] no frame!
[h264 @ 0x2e87fe0] no frame!
[h264 @ 0x2f625c0] no frame!
Error while decoding stream #0:0: Invalid data found when processing input
[h264 @ 0x2fa94e0] no frame!
Error while decoding stream #0:0: Invalid data found when processing input
[h264 @ 0x2ff0400] no frame!

...

Error while decoding stream #0:0: Invalid data found when processing input
[h264 @ 0x2e87fe0] no frame!
Error while decoding stream #0:0: Invalid data found when processing input
[h264 @ 0x2f625c0] no frame!
Error while decoding stream #0:0: Invalid data found when processing input
[h264 @ 0x2fa94e0] Invalid NAL unit 0, skipping.
[h264 @ 0x2fa94e0] no frame!
Error while decoding stream #0:0: Invalid data found when processing input
    Last message repeated 1 times
[h264 @ 0x3037480] co located POCs unavailable
Error while decoding stream #0:0: Invalid data found when processing input
[h264 @ 0x2debc60] co located POCs unavailable
Error while decoding stream #0:0: Invalid data found when processing input
[h264 @ 0x2dff780] co located POCs unavailable
Error while decoding stream #0:0: Invalid data found when processing input
    Last message repeated 1 times
[h264 @ 0x2e755c0] co located POCs unavailable
Error while decoding stream #0:0: Invalid data found when processing input
[h264 @ 0x2e87fe0] co located POCs unavailable
Error while decoding stream #0:0: Invalid data found when processing input
[h264 @ 0x2ff0400] Missing reference picture, default is 65570
[h264 @ 0x2ff0400] co located POCs unavailable
[h264 @ 0x3037480] Missing reference picture, default is 65572
[h264 @ 0x3037480] co located POCs unavailable
[h264 @ 0x2debc60] Missing reference picture, default is 65574
frame= 6711 fps=562 q=2.0 Lsize=   89123kB time=00:14:25.21 bitrate= 843.8kbits/s speed=72.4x
video:67763kB audio:20278kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.229196%

comment:25 Changed 2 months ago by richardpl

But nothing appears if you just decode file?

comment:26 Changed 2 months ago by cehoyos

The original file that allows to reproduce the issue is in https://samples.ffmpeg.org/ffmpeg-bugs/trac/ticket2667/

comment:27 Changed 2 months ago by richardpl

Than file is invalid and errors are valid.

comment:28 Changed 2 months ago by richardpl

Do you know decoder that decodes this fine?

Note: See TracTickets for help on using tickets.