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 with -abort_on empty_output_stream #671

Closed buntupana closed 3 years ago

buntupana commented 3 years ago

Description Experiencing a failed encoding when I use -abort_on empty_output_stream but everything is fine when I use -abort_on empty_output

Expected behavior Execute the command as it should

Current behavior The execution will throw result with code 1 with this command: -y -i example.mp4 -filter_complex "[0:v] pad=iw:'if(gt(iw, ih), iw, ih)':(ow-iw)/2:(oh-ih)/2, crop=iw:iw, scale=-1:480, 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 -loglevel warning -abort_on empty_output_stream out.mp4

Logs

 [ @ 0x7aebbdc180] [Eval @ 0x7aebbdbaf0] Undefined constant or missing '(' in 'empty_output_stream'
 [ @ 0x7aebbdc180] Unable to parse option value "empty_output_stream"
 Failed to set value 'empty_output_stream' for option 'abort_on': Invalid argument
 Error parsing global options: Invalid argument

Environment

tanersener commented 3 years ago

This issue happens because our fftools_ffmpeg_opt.c is a bit outdated. empty_output_stream is not one of the options we have there right now. We must update this file from ffmpeg upstream.

github-actions[bot] commented 3 years ago

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.

tanersener commented 3 years ago

This project will be retired. Please consider switching to FFmpegKit. This issue is fixed there.