FFmpeg videoeditor only works with audio and video available

Steps to reproduce

The ffmpeg command of the videoeditor uses a filter which needs audio [0:a]. So a video without audio will fail processing:

ffmpeg -y -i track.mov -filter_complex [0:v]trim=0.00:duration=10.44,setpts=PTS-STARTPTS,fade=t=in:st=0:d=2.0,fade=t=out:st=8.44:d=2.0[v0];[0:a]atrim=0.00:duration=10.44,asetpts=PTS-STARTPTS,afade=t=in:st=0:d=2.0,afade=t=out:st=8.44:d=2.0[a0] -strict -2 -preset veryfast -crf 18 -tune film -map [a0] -map [v0] -c:v libx264 -c:a aac work_track.mov.mp4

Make sure the ffmpeg command does only add the necessary audio/video filters if a audio or video track is available.

Assignee

Waldemar Smirnow

Reporter

Lukas Rohner

Severity

Non Functioning

Tags (folksonomy)

None

Components

Fix versions

Affects versions

Priority

Blocker
Configure