[ffmpeg/video] av1: Missing Sequence Header.

Bug #2030219 reported by z59
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
MPV-Snap
Fix Released
Medium
Sameer Sharma

Bug Description

Sample is from https://test-videos.co.uk/sintel/mp4-av1

$ mpv --hwdec=no https://test-videos.co.uk/vids/sintel/mp4/av1/720/Sintel_720_10s_30MB.mp4
 (+) Video --vid=1 (*) (av1 1280x545 30.000fps)
[ffmpeg/video] av1: Your platform doesn't support hardware accelerated AV1 decoding.
[ffmpeg/video] av1: Failed to get pixel format.
Error while decoding frame!
[ffmpeg/video] av1: Missing Sequence Header.
Error while decoding frame!
[ffmpeg/video] av1: Missing Sequence Header.
...

mpv-wayland with libavfilter7 from ffmpeg-4.4.2 is ok. Most likely a ffmpeg bug.

Revision history for this message
Sameer Sharma (sameersharma2006) wrote :

I too can reproduce this.

Changed in mpv-snap:
status: New → Triaged
status: Triaged → Confirmed
importance: Undecided → Low
status: Confirmed → Triaged
assignee: nobody → Sameer Sharma (capecrusader-121)
Revision history for this message
Sameer Sharma (sameersharma2006) wrote (last edit ):
Download full text (13.8 KiB)

Hey there can you give me output of --> ffmpeg -i https://test-videos.co.uk/vids/sintel/mp4/av1/720/Sintel_720_10s_30MB.mp4 -f null -

Using the snaps internal ffmpeg i mean by entering the snaps environment ?

If this works fine than the issue is not with ffmpeg.

On mine its as follows:

```
ffmpeg version 6.0 Copyright (c) 2000-2023 the FFmpeg developers
  built with gcc 11 (Ubuntu 11.3.0-1ubuntu1~22.04.1)
  configuration: --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --disable-debug --disable-doc --disable-static --enable-gpl --enable-shared --disable-ffplay --disable-devices --enable-gnutls --enable-libmp3lame --enable-libvorbis
  libavutil 58. 2.100 / 58. 2.100
  libavcodec 60. 3.100 / 60. 3.100
  libavformat 60. 3.100 / 60. 3.100
  libavdevice 60. 1.100 / 60. 1.100
  libavfilter 9. 3.100 / 9. 3.100
  libswscale 7. 1.100 / 7. 1.100
  libswresample 4. 10.100 / 4. 10.100
  libpostproc 57. 1.100 / 57. 1.100
[av1 @ 0x55a0d1615180] Your platform doesn't support hardware accelerated AV1 decoding.
[av1 @ 0x55a0d1615180] Failed to get pixel format.
[av1 @ 0x55a0d1615180] Missing Sequence Header.
    Last message repeated 49 times
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55a0d1320980] decoding for stream 0 failed
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55a0d1320980] Could not find codec parameters for stream 0 (Video: av1 (Main) (av01 / 0x31307661), none(pc, progressive), 1280x545 [SAR 1:1 DAR 256:109], 25199 kb/s): unspecified pixel format
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'https://test-videos.co.uk/vids/sintel/mp4/av1/720/Sintel_720_10s_30MB.mp4':
  Metadata:
    major_brand : isom
    minor_version : 512
    compatible_brands: isomav01iso2mp41
    encoder : Lavf58.64.100
  Duration: 00:00:10.00, start: 0.000000, bitrate: 25201 kb/s
  Chapters:
    Chapter #0:0: start 0.000000, end 10.000000
      Metadata:
        title : Chapter 01
  Stream #0:0[0x1](eng): Video: av1 (Main) (av01 / 0x31307661), none(pc, progressive), 1280x545 [SAR 1:1 DAR 256:109], 25199 kb/s, 30 fps, 30 tbr, 15360 tbn (default)
    Metadata:
      handler_name : VideoHandler
      vendor_id : [0][0][0][0]
  Stream #0:1[0x2](eng): Data: bin_data (text / 0x74786574), 0 kb/s
    Metadata:
      handler_name : SubtitleHandler
Stream mapping:
  Stream #0:0 -> #0:0 (av1 (native) -> wrapped_avframe (native))
Press [q] to stop, [?] for help
[av1 @ 0x55a0d16277c0] Your platform doesn't support hardware accelerated AV1 decoding.
[av1 @ 0x55a0d16277c0] Failed to get pixel format.
Error while decoding stream #0:0: Function not implemented ...

Changed in mpv-snap:
importance: Low → Medium
Revision history for this message
Sameer Sharma (sameersharma2006) wrote :

For newer releases i will be compiling ffmpeg with dav1d support which may also improve av1 performance.

Revision history for this message
Sameer Sharma (sameersharma2006) wrote :
Download full text (3.4 KiB)

This has been fixed after enabling dav1d support.

New output;

```
ffmpeg version 6.0 Copyright (c) 2000-2023 the FFmpeg developers
  built with gcc 11 (Ubuntu 11.3.0-1ubuntu1~22.04.1)
  configuration: --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --disable-debug --disable-doc --disable-static --enable-gpl --enable-shared --disable-ffplay --disable-devices --enable-gnutls --enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libdav1d --enable-libopus --enable-libx264 --enable-libx265
  libavutil 58. 2.100 / 58. 2.100
  libavcodec 60. 3.100 / 60. 3.100
  libavformat 60. 3.100 / 60. 3.100
  libavdevice 60. 1.100 / 60. 1.100
  libavfilter 9. 3.100 / 9. 3.100
  libswscale 7. 1.100 / 7. 1.100
  libswresample 4. 10.100 / 4. 10.100
  libpostproc 57. 1.100 / 57. 1.100
[libdav1d @ 0x55a35818e340] libdav1d 1.2.1-0-g8a6f054
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'https://test-videos.co.uk/vids/sintel/mp4/av1/720/Sintel_720_10s_30MB.mp4':
  Metadata:
    major_brand : isom
    minor_version : 512
    compatible_brands: isomav01iso2mp41
    encoder : Lavf58.64.100
  Duration: 00:00:10.00, start: 0.000000, bitrate: 25201 kb/s
  Chapters:
    Chapter #0:0: start 0.000000, end 10.000000
      Metadata:
        title : Chapter 01
  Stream #0:0[0x1](eng): Video: av1 (Main) (av01 / 0x31307661), yuv420p(pc, progressive), 1280x545, 25199 kb/s, SAR 1:1 DAR 256:109, 30 fps, 30 tbr, 15360 tbn (default)
    Metadata:
      handler_name : VideoHandler
      vendor_id : [0][0][0][0]
  Stream #0:1[0x2](eng): Data: bin_data (text / 0x74786574), 0 kb/s
    Metadata:
      handler_name : SubtitleHandler
[libdav1d @ 0x55a358196c00] libdav1d 1.2.1-0-g8a6f054
Stream mapping:
  Stream #0:0 -> #0:0 (av1 (libdav1d) -> wrapped_avframe (native))
Press [q] to stop, [?] for help
Output #0, null, to 'pipe:':
  Metadata:
    major_brand : isom
    minor_version : 512
    compatible_brands: isomav01iso2mp41
    encoder : Lavf60.3.100
  Chapters:
    Chapter #0:0: start 0.000000, end 10.000000
      Metadata:
        title : Chapter 01
  Stream #0:0(eng): Video: wrapped_avframe, yuv420p(pc, progressive), 1280x545 [SAR 1:1 DAR 256:109], q=2-31, 200 kb/s, 30 fps, 30 tbn (default)
    Metadata:
      handler_name : VideoHandler
      vendor_id : [0][0][0][0]
      encoder : Lavc60.3.100 wrapped_avframe
Error while decoding stream #0:0: Invalid data found when processing inputkbits/s speed=0.0125x
Error while decoding stream #0:0: Invalid data found when processing input107x
Error while decoding stream #0:0: Invalid data found when processing input0707x
Error while decoding stream #0:0: Invalid data found when processing input0574x
Error while decoding stream #0:0: Invalid data found when processing input0494x
    Last message repeated 1 times ...

Read more...

Changed in mpv-snap:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.