Skip to content

Commit

Permalink
- [+] add -maxc testing
Browse files Browse the repository at this point in the history
  • Loading branch information
suntong committed May 27, 2023
1 parent de1f7c2 commit 2d48fde
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
19 changes: 19 additions & 0 deletions test/ffcvt_test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,25 @@ Transcoding completed in xxx ms
Org Size: 0 MB
New Size: 0 MB
Saved: 0%
] None-video file './ffcvt_test.txt' duplicated to dest dir.
] None-video file './test-all.sh' duplicated to dest dir.

== Transcoding [1/4] (100%): 'StreamSample.mkv'
under .
] ffmpeg -i ./StreamSample.mkv -c:v libvpx-vp9 -b:v 0 -crf 42 -c:a libopus -b:a 64k -c:s copy ./StreamSample_.mkv
ffcvt: to execute -
ffmpeg -i ./StreamSample.mkv -c:v libvpx-vp9 -b:v 0 -crf 42 -c:a libopus -b:a 64k -c:s copy ./StreamSample_.mkv
Time taken so far xxx ms
] Taking a breath for: xxx ms
Finishing the remaining 0% in xxx ms

== Transcoding [2/4] (100%): 'test1.avi'
under .
] ffmpeg -i ./test1.avi -c:v libvpx-vp9 -b:v 0 -crf 42 -c:a libopus -b:a 64k -c:s copy ./test1_.mkv
ffcvt: to execute -
ffmpeg -i ./test1.avi -c:v libvpx-vp9 -b:v 0 -crf 42 -c:a libopus -b:a 64k -c:s copy ./test1_.mkv
Time taken so far xxx ms
] Max conversion count reached.
] Transcoding to /tmp/test
] None-video file './ffcvt_test.txt' duplicated to dest dir.
] None-video file './test-all.sh' duplicated to dest dir.
Expand Down
1 change: 1 addition & 0 deletions test/test-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ $FFCVT -t x265-opus -n -bt 0.1s -d . -sym >> /tmp/ffcvt_test.txt 2>&1

$FFCVT -n -bt 0.1s -d . >> /tmp/ffcvt_test.txt 2>&1
$FFCVT -n -bt 0.1s -d . -sym >> /tmp/ffcvt_test.txt 2>&1
$FFCVT -n -bt 0.1s -d . -sym -maxc 2 >> /tmp/ffcvt_test.txt 2>&1

$FFCVT -n -sym -debug 2 -bt 0.1s -d . -w /tmp >> /tmp/ffcvt_test.txt 2>&1

Expand Down
19 changes: 19 additions & 0 deletions test2/ffcvt_test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,25 @@ Transcoding completed in xxx ms
Org Size: 0 MB
New Size: 0 MB
Saved: 0%
] None-video file './ffcvt_test.txt' duplicated to dest dir.
] None-video file './test-all.sh' duplicated to dest dir.

== Transcoding [1/4] (36%): 'test_s1.avi'
under subdir
] ffmpeg -i ./subdir/test_s1.avi -c:v libvpx-vp9 -b:v 0 -crf 42 -c:a libopus -b:a 64k -c:s copy ./subdir/test_s1_.mkv
ffcvt: to execute -
ffmpeg -i ./subdir/test_s1.avi -c:v libvpx-vp9 -b:v 0 -crf 42 -c:a libopus -b:a 64k -c:s copy ./subdir/test_s1_.mkv
Time taken so far xxx ms
] Taking a breath for: xxx ms
Finishing the remaining 64% in xxx ms

== Transcoding [2/4] (57%): 'test1.avi'
under .
] ffmpeg -i ./test1.avi -c:v libvpx-vp9 -b:v 0 -crf 42 -c:a libopus -b:a 64k -c:s copy ./test1_.mkv
ffcvt: to execute -
ffmpeg -i ./test1.avi -c:v libvpx-vp9 -b:v 0 -crf 42 -c:a libopus -b:a 64k -c:s copy ./test1_.mkv
Time taken so far xxx ms
] Max conversion count reached.
] Transcoding to /tmp/test2
] None-video file './ffcvt_test.txt' duplicated to dest dir.
] None-video file './test-all.sh' duplicated to dest dir.
Expand Down

0 comments on commit 2d48fde

Please sign in to comment.