diff options
author | Jonas Smedegaard <dr@jones.dk> | 2014-06-23 17:24:32 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2014-06-23 17:37:55 +0200 |
commit | ac76cd57fa16705f280874a0f909cea0591dfb2d (patch) | |
tree | c80d2d709bc26046c65e48aaf87ffe97f96dc47b | |
parent | bf097441f977843e848e58ae0765c8277cacef49 (diff) |
Fix apply threads handling to video tracks (not first input track).
-rwxr-xr-x | localvideodump | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/localvideodump b/localvideodump index ba4880c..49546fa 100755 --- a/localvideodump +++ b/localvideodump @@ -108,12 +108,12 @@ FORMATS ;; esac [ -n "$format" ] || { echo "Skipping unsuitable input $input"; continue; } - vinargs="${vinargs:+$vinargs }-f video4linux2 -input_format $format ${inrate:+-framerate $inrate }-s $size -i $input" + vinargs="${vinargs:+$vinargs }-f video4linux2 -input_format $format ${inrate:+-framerate $inrate }-s $size -threads auto -i $input" vmaps="${vmaps:+$vmaps }-map $i:v:0" i=$(expr $i + 1) done voutargs=${vinputs:+-c:v $vcodec $vf ${outrate:+-r $outrate}} aoutargs=${ainputs:+-c:a $acodec} -echo avconv -threads auto $ainargs $vinargs $vmaps $amaps $voutargs $aoutargs -y "$output" -exec avconv -threads auto $ainargs $vinargs $vmaps $amaps $voutargs $aoutargs -y "$output" +echo avconv $ainargs $vinargs $vmaps $amaps $voutargs $aoutargs -y "$output" +exec avconv $ainargs $vinargs $vmaps $amaps $voutargs $aoutargs -y "$output" |