-
-
Notifications
You must be signed in to change notification settings - Fork 828
getMediaInformation blocks forever parsing MPEG-TS streams #113
Comments
You may be right about this. I haven't tested |
As a short term fix we could consider removing the outfile options from the end of the args to prevent ffmpeg from blocking:
vs
The latter complains about a missing output file and returns 1 but does not block:
That's quite hacky though as it could cause issues with return code error handling. |
Unfortunately implementing I applied your suggestions on the This change will be included in the next minor release. |
Awesome! Thanks so much :) |
You are the one who have identified the issue and posted the fix. So I should be thanking to you 👍 |
mobile-ffmpeg calls
ffmpeg
to parse out media information:https://github.com/tanersener/mobile-ffmpeg/blob/master/ios/src/MobileFFmpeg.m#L180
This call will block forever if the stream source is live video i.e. MPEG-TS.
Instead, we should consider using
ffprobe
which does not block parsing live streams and should simplify the media information parsing code significantly due to the machine readable output offfprobe
:https://ffmpeg.org/ffprobe.html#Description
The text was updated successfully, but these errors were encountered: