johnb-7 / hdhr-ac4

This project aims to emulate an HDHomerun tuner that supplies ATSC 3.0 programs with AC3 audio.
Apache License 2.0
55 stars 12 forks source link

Plex not detecting audio stream #8

Open MisterSheeple opened 1 year ago

MisterSheeple commented 1 year ago

Plex is unable to detect an audio stream. Audio works perfectly fine when viewed in VLC.

MisterSheeple commented 1 year ago

Okay, I appear to have gotten to the bottom of the issue. It looks like at some point, an HDHR firmware update broke this and caused Plex to not detect audio. Should be a simple fix though, so I'll have a PR posted relatively soon.

MisterSheeple commented 1 year ago

Never mind, I haven't got the slightest clue what I'm doing here. The issue must be something else.

johnb-7 commented 1 year ago

I am currently running latest HDHR firmware (20230505) and latest Plex (1.32.0.6973) and the Emby package I suggested in the instructions for my image.

If it works in VLC, then it is working properly. I have not tried it in Emby in a while, but it should not be needed since Emby uses AC4 supporting FFMPEG. Every ATSC 3 stream seems to have some unique properties. Joy of being an early adopter. You may have to troublshoot the FFMPEG settings.

I am losing faith in this project as they just enabled DRM on one of my channels and it looks like this might be useless soon.

MisterSheeple commented 1 year ago

Now I think I'm getting somewhere. It's starting to occasionally spit out an error, but not all the time: [ac4 @ 0x1d03e40] substream audio data overread: 7 (number at the end varies) Error while decoding stream #0:1: Invalid data found when processing input (this error doesn't always appear alongside the first one, so it may or may not be related)

Do you have any ideas for what I could try adding to the ffmpeg command, or if not, perhaps do you know who/where else I could ask about this?

kkelly87 commented 5 months ago

Just wanted to comment I'm seeing the same thing with both Plex and Jellyfin. I can add the emulated hdhomerun to Jellyfin and the video plays but the audio is still missing. Using the emulated docker container and streaming directly into VLC works fine.

Plex just spins forever when attempting to add the emulated tuner. I appreciate your efforts so far and I know this is a wildly frustrating issue.

zachg99 commented 6 days ago

I see the error as well:

[ac4 @ 0x1e58840] substream audio data overread: 5
Error while decoding stream #0:1: Invalid data found when processing input

When I copy an audio stream using ffmpeg it's like this: -c:a:0 aac but yours doesn't have the track number which should copy all track so this seems odd. I wonder if there's a way to see what command Emby is using.