diff --git a/libs/ffmpeg.js b/libs/ffmpeg.js index 33c901ee..11245132 100644 --- a/libs/ffmpeg.js +++ b/libs/ffmpeg.js @@ -424,7 +424,7 @@ module.exports = function(s,config,lang,onFinish){ x.hwaccel = '' x.cust_input = '' //wallclock fix for strangely long, single frame videos - if(e.details.wall_clock_timestamp_ignore !== '1' && e.type === 'h264' && x.cust_input.indexOf('-use_wallclock_as_timestamps 1') === -1){x.cust_input+=' -use_wallclock_as_timestamps 1';} + if((config.wallClockTimestampAsDefault || e.details.wall_clock_timestamp_ignore !== '1') && e.type === 'h264' && x.cust_input.indexOf('-use_wallclock_as_timestamps 1') === -1){x.cust_input+=' -use_wallclock_as_timestamps 1';} //input - frame rate (capture rate) if(e.details.sfps && e.details.sfps!==''){x.input_fps=' -r '+e.details.sfps}else{x.input_fps=''} //input - analyze duration