Closed yiss closed 4 years ago
I don't understand what is the question? You are saving an hls stream into an mp4 file and trying to play that file using a player. Output file is a local mp4 file. You are not streaming it. Do you want to stream it again?
If you can't play the file try adding -movflags faststart
before the output file name. It will move the header to the beginning of the file.
@tanersener thank you for your response, probably I didn't make my question clear. The problem for me is that ffmpeg keeps running and the command to run the file in player doesn't get executed. I'm looking for a way to run ffmpeg in the background and run command to play the converted file just after the ffmpeg command (while ffmpeg is still running)
AsyncSingleFFmpegExecuteTask
is an async task. So running execute()
or the following execute
variant shouldn't be blocking your main thread. You should be doing something wrong.
Take a look at this method. I use that one in my test application.
asyncExec.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Description Hi, Thank you guys for the work you did on this framework, I'm having a bit of trouble finding and streaming the output video from HLS here is my code :
Any idea ? Expected behavior What you expected to happen.
Current behavior What happened.
Screenshots If applicable, add screenshots to help explain your problem.
Logs
Environment
Other Add any other context about the problem here.