Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HLS don't work with AMD HW AV1 #3902

Closed
DoM1niC opened this issue Oct 23, 2024 · 7 comments · Fixed by bluenviron/mediacommon#162
Closed

HLS don't work with AMD HW AV1 #3902

DoM1niC opened this issue Oct 23, 2024 · 7 comments · Fixed by bluenviron/mediacommon#162
Labels
bug Something isn't working hls

Comments

@DoM1niC
Copy link

DoM1niC commented Oct 23, 2024

Which version are you using?

main

Which operating system are you using?

Linux amd64 standard

Describe how to replicate the issue

Publish a Stream in RTMP or WHEP with AMD HW AV1 failed to get a valid HLS Stream, e.g. switch to CPU based Codec SVT-AV1 or NVENC HLS will work fine by this Codecs / Encoder.

Server logs

ERR [HLS] [muxer dom1nic] muxer error: unable to parse AV1 sequence header: timing_info_present_flag is not supported yet

Network dump

No response

@DoM1niC
Copy link
Author

DoM1niC commented Oct 24, 2024

I tested it with a person who have NVENC (Nvidia), this works fine here !

curl https://*******/index.m3u8

#EXTM3U
#EXT-X-VERSION:9
#EXT-X-INDEPENDENT-SEGMENTS

#EXT-X-MEDIA:TYPE="AUDIO",GROUP-ID="audio",NAME="audio2",AUTOSELECT=YES,DEFAULT=YES,URI="audio2_stream.m3u8"

#EXT-X-STREAM-INF:BANDWIDTH=2099944,AVERAGE-BANDWIDTH=2032290,CODECS="av01.0.09M.10.0.110.01.01.01.0,mp4a.40.2",RESOLUTION=1920x1080,AUDIO="audio"
video1_stream.m3u8

@aler9
Copy link
Member

aler9 commented Dec 21, 2024

As written inside instructions, please provide a network dump that contains the stream. It can be generated in this way:

  1. Download wireshark (https://www.wireshark.org/)
  2. Start capturing on the interface used for exchanging packets
    • If the server and the external hardware or software are both installed on your pc, the interface is probably "loopback", otherwise it's the one of your network card.
  3. Start the server, publish the AV1 stream to the server with RTMP
  4. Stop capturing, save the result in .pcap format
  5. Attach

@DoM1niC
Copy link
Author

DoM1niC commented Dec 21, 2024

As written inside instructions, please provide a network dump that contains the stream. It can be generated in this way:

  1. Download wireshark (https://www.wireshark.org/)

  2. Start capturing on the interface used for exchanging packets

    • If the server and the external hardware or software are both installed on your pc, the interface is probably "loopback", otherwise it's the one of your network card.
  3. Start the server, publish the AV1 stream to the server with RTMP

  4. Stop capturing, save the result in .pcap format

  5. Attach

No Problem :) und THX for your Support 💯

Dump (in pcapng and pcap format) Mediamtx RTMP (AV1) Publish.zip

@aler9
Copy link
Member

aler9 commented Dec 21, 2024

Thank you very much for providing the network dump that allowed to replicate the issue.
This should be fixed by bluenviron/mediacommon#162
Please test this nightly release and let me know if it works (click on "artifacts", "Binaries"):
https://github.com/bluenviron/mediamtx/actions/runs/12447857225

@DoM1niC
Copy link
Author

DoM1niC commented Dec 21, 2024

Thank you very much for providing the network dump that allowed to replicate the issue. This should be fixed by bluenviron/mediacommon#162 Please test this nightly release and let me know if it works (click on "artifacts", "Binaries"): https://github.com/bluenviron/mediamtx/actions/runs/12447857225

THX SOOOO MUCH 💯 seems to work fine so far !!!

image

@DoM1niC
Copy link
Author

DoM1niC commented Dec 22, 2024

@aler9 I made some Tests I notice the Audio Codec is missing on AV1 Stream, in the first I though my OBS Studio is misconfigured but after I switch to other Encoders the Audio was back without any changes on my Sources.

image

@DoM1niC
Copy link
Author

DoM1niC commented Dec 22, 2024

on WHIP with Opus the WebRTC based Stream have Audio but no Codec in HLS Stream and RTMP to WebRTC the Audio is missing too.

I tested SVT-AV1 (CPU based) Encoder Problem still exist, H264 / H265 (HEVC) still fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working hls
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants