Unified · Split
| @@ -75,7 +75,13 @@ probefmt(){ · 74 unmodified lines | ||
| 75 | 75 | } |
| 76 | 76 | |
| 77 | 77 | avconv(){ |
| 78 | − run avconv -nostats -threads $threads -thread_type $thread_type -cpuflags $cpuflags "$@" | |
| 78 | + dec_opts="-threads $threads -thread_type $thread_type" | |
| 79 | + avconv_args="-nostats -cpuflags $cpuflags" | |
| 80 | + for arg in $@; do | |
| 81 | + [ ${arg} = -i ] && avconv_args="${avconv_args} ${dec_opts}" | |
| 82 | + avconv_args="${avconv_args} ${arg}" | |
| 83 | + done | |
| 84 | + run avconv ${avconv_args} | |
| 79 | 85 | } |
| 80 | 86 | |
| 81 | 87 | framecrc(){ |