tanersener / mobile-ffmpeg

FFmpeg for Android, iOS and tvOS. Not maintained anymore. Superseded by FFmpegKit.
https://tanersener.github.io/mobile-ffmpeg
GNU General Public License v3.0
3.85k stars 787 forks source link

Error handling with http not working #635

Closed buntupana closed 3 years ago

buntupana commented 3 years ago

Description When I try to process a video from web through http and I lost network connection ffmpeg will show error logs and it will return a success code instead an error code, the result is a video file with duration whatever the execution could stream from web till the lost connection.

command: -y -i https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4 -filter_complex '[0:v] crop=ih:ih, scale=1080:-1, setsar=1 [clip0]; [0:a] anull [audio0]; [clip0][audio0] concat=n=1:v=1:a=1 [v][a]' -map '[v]' -map '[a]' -c:a aac -c:v h264 -crf 18 -r 30 -preset veryfast -err_detect explode out.mp4

Expected behavior When connection is lost while process a video from web return an error code instead of success code.

Current behavior Execution will return a successful code and a video file with a duration of the execution could stream before of lost connection

Logs Error log: https://ghostbin.co/paste/ugz2t Full log: https://ghostbin.co/paste/pcboy

Environment

buntupana commented 3 years ago

Just realised that adding to the command -xerror it will return an error code