Re: [Live-devel] MP3 file stream crashes

2023-09-14 Thread Matthew Hale
Just an update on this bug. It was caused by calling select() on a file descriptor from a FILE * in the MP3FileSource. On Windows select() can only be called on sockets so using turnOnBackgroundReadHandling() is not possible there. I had built this from vcpkg with a msvc compiler. I have written a

Re: [Live-devel] MP3 file stream crashes

2023-08-30 Thread Matthew Hale
Not really an option for us at the moment. Thanks for the help. Kind regards, *Matthew Hale* *Web: www.scansoft.co.za * *Tel: +27 21 913 8664* *Cell: +27 76 118 4748* On Wed, Aug 30, 2023 at 2:55 PM Ross Finlayson wrote: > > > > On Aug 30, 2023, at 4:16 AM,

Re: [Live-devel] MP3 file stream crashes

2023-08-30 Thread Ross Finlayson
> On Aug 30, 2023, at 4:16 AM, Matthew Hale wrote: > > The attached MP3 also does not work. Then I can’t explain this - sorry. Presumably the error you are seeing comes about from the fact that you are trying to build/run the code on Windows. I don’t recommend this; pretty much nobody thes

Re: [Live-devel] MP3 file stream crashes

2023-08-30 Thread Matthew Hale
The attached MP3 also does not work. Kind regards, *Matthew Hale* *Web: www.scansoft.co.za * *Tel: +27 21 913 8664* *Cell: +27 76 118 4748* On Wed, Aug 30, 2023 at 11:40 AM Ross Finlayson wrote: > > > > On Aug 29, 2023, at 11:44 PM, Matthew Hale > wrote: >

Re: [Live-devel] MP3 file stream crashes

2023-08-29 Thread Matthew Hale
I'm writing it for unicast. I tried the testOnDemandRTSPServer from the source, still no luck. The WAV file stream works but not the MP3. Can the MP3FileSource fail for some MP3s and cause this sort of thing? The main difference between my two subsessions is the Mic stream (working) has a custom m

Re: [Live-devel] MP3 file stream crashes

2023-08-29 Thread Ross Finlayson
Are you trying to stream via multicast, or via unicast? Note that the “testMP3Streamer” application streams using IP multicast. If, instead, you want to stream via IP unicast, then you should use the “testOnDemandRTSPServer” application (which is also supplied in the “testProgs” directory) as

[Live-devel] MP3 file stream crashes

2023-08-29 Thread Matthew Hale
Hi, I'm having a problem with a MP3 RTSP stream. I've subclassed OnDemandServerMediaSubsession to create a subsession based on the testMP3Streamer.cpp using the MPEG1or2AudioRTPSink and MP3FileSource. I'm also using the RTSPServer and ServerMediaSession. The crash is after the PLAY request due to