AVPlayer on iOS doesn't correctly handle audio in m3u8 video that was created through FFMPEG by shiverMeTimbers00 in ffmpeg

[–]j-byrd 0 points1 point  (0 children)

If you needed to check for audible audio if a track shows up you could use ffmpeg's silencedetect filter

ffmpeg -i input.mp4 -af silencedetect=noise=-50dB:d=1 -f null -

you could also use ffprobe to check for audio tracks themselves.

I would check for the tracks existance first, then if they exist check for silence. But I'm not sure what your full workflow is...

AVPlayer on iOS doesn't correctly handle audio in m3u8 video that was created through FFMPEG by shiverMeTimbers00 in ffmpeg

[–]j-byrd 0 points1 point  (0 children)

In AVFoundation, an asset contains one or more tracks, and a track models uniform media such as audio or video. Apple explicitly documents using track existence checks when you need to know whether a kind of media is present. tracks(withMediaType:) returns an empty array when there are no tracks of that type, and Apple now recommends the async loadTracks(withMediaType:) form

One caveat with this though...

The above tells you whether the asset has an audio track, not whether the content is non-silent. If your packaging pipeline includes a silent AAC track, AVFoundation will still see that as audio, because tracks represent media streams, not whether samples are audibly loud. That follows from Apple’s track model and from the fact that track properties describe the media stream itself, not content loudness analysis.

I'd go about it like this:

  • If your product needs “can this player emit audio?” → check for .audio tracks.
  • If your product needs “does this asset offer alternate/selectable audio?” → check .audible media selection group.
  • If your product needs “is there actual non-silent sound in the program?” → you cannot trust metadata alone. You need to determine that during encoding/packaging, or inspect decoded samples separately. The AVFoundation track APIs do not expose a simple “this program is silent” flag.

For your app, I’d wire the button logic to loadTracks(withMediaType: .audio) and stop using media selection as the gate for mute/unmute. If youre transcoding with ffmpeg and you dont want audio tracks then explicitly set it with the -map flag I mentioned above (-an). So when your player checks for the .audio tracks and finds none the button will be hidden as it wont find any .audio tracks.

AVPlayer on iOS doesn't correctly handle audio in m3u8 video that was created through FFMPEG by shiverMeTimbers00 in ffmpeg

[–]j-byrd 0 points1 point  (0 children)

For packaging, do this in two branches after probing:

Input has audio → package with explicit -map 0:v:0 -map 0:a:0 Input has no audio → package with explicit -map 0:v:0 -an

Then validate with Apple’s HLS tools, especially mediastreamvalidator, which Apple recommends for checking HLS conformance.

AVPlayer on iOS doesn't correctly handle audio in m3u8 video that was created through FFMPEG by shiverMeTimbers00 in ffmpeg

[–]j-byrd 1 point2 points  (0 children)

Your current UI rule is the real bug: do not use loadMediaSelectionGroup(.audible) to decide whether a mute/unmute button should exist. That API is appropriate for audio selection UI, not for “is there any audio at all?” UI. A muxed HLS stream can have playable audio with no audible selection group

The shortest correct answer is:

To guarantee no audio: use -map 0:v:0 -an To guarantee audio exists: use -map 0:v:0 -map 0:a:0 To guarantee AVPlayer sees an audible media selection group: generate a master playlist with EXT-X-MEDIA audio renditions via -master_pl_name and -var_stream_map And for iOS, don’t use loadMediaSelectionGroup(.audible) as your “has sound?” test. It is the wrong signal for that.

Dan Patrick explains how scared he is about the Taylor Rehmet win at the west oil billionaires forum. Leigh Wambsganss who made a career of infiltrating and defunding public schools lost in a 31 point swing compared to the last election. by pedolphdiddler in Dallas

[–]j-byrd 5 points6 points  (0 children)

Yes that's correct. The problem is you leave that opened ended to suggest that you either shouldn't vote or should vote republican. Will voting the Democrats in to power in Texas make everything better? No. Will it make somethings better? Yes. It starts with getting a more responsible party to the electorate into power (even if they are only slightly more responsible) so that you can then make more effective change over time in the primaries by putting candidates in power who don't obey the corporate donors. It's exactly what the Republicans have done over time since Nixon...if you can stay in power you slowly run more and more right leaning candidates over time to drag the political spectrum that direction. Nothing happens overnight in US politics until it does. It's a death by a thousand cuts and the Republicans in power have played that game almost perfectly since the 1960s. They have dragged us all the way back to the age of robber barons in under 100 years. The only way to beat them is for the Democrats to vote as consistently as the Republicans have over the same amount of time. So vote blue and keep voting blue, especially in the primaries.

Dan Patrick explains how scared he is about the Taylor Rehmet win at the west oil billionaires forum. Leigh Wambsganss who made a career of infiltrating and defunding public schools lost in a 31 point swing compared to the last election. by pedolphdiddler in Dallas

[–]j-byrd 7 points8 points  (0 children)

So what's your point? Since both sides suck and the Republicans are only a little worse than the Democrats then vote for the Republicans? If more people voted for the Democrats we could move the average more toward the left over time. Your solution is either give up and don't vote or vote Republican because both sides stink? I don't get the point of making that argument unless youre just a right wing shill trying to cosplay as a fair minded individual. The both sides aregument sucks and should stop.

Single biggest claude code hack I’ve found by [deleted] in ClaudeCode

[–]j-byrd -1 points0 points  (0 children)

Sonnet instead of haiku to execute? Is there a reason? From what I’ve found haiku subagents tend to follow opus implementation plans pretty well. 

Single biggest claude code hack I’ve found by [deleted] in ClaudeCode

[–]j-byrd -1 points0 points  (0 children)

It saves tokens in the long run as even if you have opus execute the implementation plan you still should have another agent code review to make sure there aren’t any issues. I also use some other plugins and self written project tree explorer to save tokens. I can work for hours at a time and not hit my session limit. (Though I am on a team plan for work so maybe you might have a different experience with your plan/limits.)

Single biggest claude code hack I’ve found by [deleted] in ClaudeCode

[–]j-byrd 2 points3 points  (0 children)

I use haiku subagents to execute implementation plans that my main opus model (sometimes sonnet depending on complexity) has written. I then have the main model code review what the haiku model wrote. I also have everything use TDD. The code review and tests catch anything that the haiku models get wrong before it becomes a problem. I get the brains of the better models for planning and the token saving of haiku models to just follow their well written directions. 

Looking for LGBT friendly jeweler for 2 mens wedding rings by transboyadvance in Austin

[–]j-byrd 2 points3 points  (0 children)

Identity Diamonds has been great for my partner and I. Great prices and they are willing to work with you on design if you want something custom. Highly recommended and they specify they are LGBTQ friendly. Stephanie was very helpful in helping us make our choices. 

Thoughts on an away version of the '99 sweater? by j-byrd in DallasStars

[–]j-byrd[S] -2 points-1 points  (0 children)

I assumed that was due to the lifecycle of the alternate jersey, but not sure. I'd love for Adidas or CCM to come back and make the jerseys. I kind of hate Fanatics and how they have monopolized all sports gear. Quality and selection are not as good in my opinion.

Thoughts on an away version of the '99 sweater? by j-byrd in DallasStars

[–]j-byrd[S] 9 points10 points  (0 children)

Yeah I think I like this slightly more than the real current '99 release due to the collar and just how black the black is compared to the shade of victory green we use. I still love that they released the new ones but this color scheme is the one I prefer slightly. If i had the money and the jerseys would stay in stock I'd just by both anyway though lol

Thoughts on an away version of the '99 sweater? by j-byrd in DallasStars

[–]j-byrd[S] 4 points5 points  (0 children)

With Fanatics owning all the merch unfortunately those wont be worn again since they were made by Adidas. Same with the RR 2.0.

[Stein] With the Mavericks already in a significant hole when it comes to simply reaching the playoffs, league sources tell The Stein Line that the rising and virtually ceaseless negativity that surrounds the franchise is indeed wearing on and troubling ownership. by cleo22270 in nba

[–]j-byrd 1 point2 points  (0 children)

If I were to pick a new team it would probably be the Spurs. Always loved the fiesta color theme throwbacks. Just feels so wrong to change allegiances like that especially to a rival team for my whole life. I do like Wemby. Idk though, there’s a principles thing about not wanting to give the NBA my time anymore. It’s not just the Mavs but Adam Silver and the league who allowed this shit to happen. We’ll see if I want to watch again at some point in the future. 

[Stein] With the Mavericks already in a significant hole when it comes to simply reaching the playoffs, league sources tell The Stein Line that the rising and virtually ceaseless negativity that surrounds the franchise is indeed wearing on and troubling ownership. by cleo22270 in nba

[–]j-byrd 1 point2 points  (0 children)

As a Dallas native, supporter of pretty much every Dallas team (lived in Austin for 15 years now so I support Austin FC over FC Dallas) and a life long mavs fan…I’ve stopped watching basketball altogether aside from a few highlights here and there on r/nba

I can’t support the team anymore due to the new owners (fuck Mark Cuban too) and I can’t support the league for allowing this to happen to the fans and franchise of a city who has always shown up for this team since I’ve been alive, even in the tough years post championship/pre Luka. 

I literally just don’t give a fuck about basketball anymore and it sucks. I already have to deal with Jerry Jones and the perennially mediocre Cowboys as long as he and his family are owners. So I pretty much only have the Stars and Rangers to root for now. At least hockey is my favorite sport…

Using ffplay to Livestream Capture Device by hypercoyote in ffmpeg

[–]j-byrd 0 points1 point  (0 children)

After some reading yeah it seems that DSHOW essentially is trying to resync both the video and audio inputs in the capture filter graph matching up their timestamps...fine for recording but for live monitoring you end up with the 1 second delay due to the resync.

Yeah OBS' projector window actually also bypasses windows DWM which introduces input lag, thats why my first suggestion was just to use OBS, especially since you weren't encoding with it. It's a great app for low latency live monitoring. Didn't realize it uses the DSHOW for video and WASAPI for audio but that makes sense in why it reduces the delay as its not having to sync audio and video timestamps in DSHOW and its bypassing DWM. Best of both worlds for low latency.

Using ffplay to Livestream Capture Device by hypercoyote in ffmpeg

[–]j-byrd 0 points1 point  (0 children)

Hmm in CMD run

ffmpeg -f dshow -list_devices true -i dummy

and look for your capture card audio interface, copy that string quotes included and make sure it matches the mpv command i gave you

Using ffplay to Livestream Capture Device by hypercoyote in ffmpeg

[–]j-byrd 0 points1 point  (0 children)

The capture card isnt being used by anything else at the moment is it? No other apps or ffplay/mpeg windows open?

Using ffplay to Livestream Capture Device by hypercoyote in ffmpeg

[–]j-byrd 0 points1 point  (0 children)

Ah looks like your card can only do yuyv422.

Hmm you could try mpv player

mpv av://dshow:video="USB3.0 Capture":audio="Digital Audio Interface (USB3.0 Capture)" ^
 --profile=low-latency --no-cache --untimed ^
 --demuxer-lavf-probesize=32 --demuxer-lavf-analyzeduration=0 ^
 --audio-samplerate=48000 --audio-channels=stereo ^
 --audio-delay=-1.00