Skip to content

Commit 2d48fde

Browse files
committed
- [+] add -maxc testing
1 parent de1f7c2 commit 2d48fde

3 files changed

Lines changed: 39 additions & 0 deletions

File tree

test/ffcvt_test.txt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,25 @@ Transcoding completed in xxx ms
407407
Org Size: 0 MB
408408
New Size: 0 MB
409409
Saved: 0%
410+
] None-video file './ffcvt_test.txt' duplicated to dest dir.
411+
] None-video file './test-all.sh' duplicated to dest dir.
412+
413+
== Transcoding [1/4] (100%): 'StreamSample.mkv'
414+
under .
415+
] ffmpeg -i ./StreamSample.mkv -c:v libvpx-vp9 -b:v 0 -crf 42 -c:a libopus -b:a 64k -c:s copy ./StreamSample_.mkv
416+
ffcvt: to execute -
417+
ffmpeg -i ./StreamSample.mkv -c:v libvpx-vp9 -b:v 0 -crf 42 -c:a libopus -b:a 64k -c:s copy ./StreamSample_.mkv
418+
Time taken so far xxx ms
419+
] Taking a breath for: xxx ms
420+
Finishing the remaining 0% in xxx ms
421+
422+
== Transcoding [2/4] (100%): 'test1.avi'
423+
under .
424+
] ffmpeg -i ./test1.avi -c:v libvpx-vp9 -b:v 0 -crf 42 -c:a libopus -b:a 64k -c:s copy ./test1_.mkv
425+
ffcvt: to execute -
426+
ffmpeg -i ./test1.avi -c:v libvpx-vp9 -b:v 0 -crf 42 -c:a libopus -b:a 64k -c:s copy ./test1_.mkv
427+
Time taken so far xxx ms
428+
] Max conversion count reached.
410429
] Transcoding to /tmp/test
411430
] None-video file './ffcvt_test.txt' duplicated to dest dir.
412431
] None-video file './test-all.sh' duplicated to dest dir.

test/test-all.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ $FFCVT -t x265-opus -n -bt 0.1s -d . -sym >> /tmp/ffcvt_test.txt 2>&1
3939

4040
$FFCVT -n -bt 0.1s -d . >> /tmp/ffcvt_test.txt 2>&1
4141
$FFCVT -n -bt 0.1s -d . -sym >> /tmp/ffcvt_test.txt 2>&1
42+
$FFCVT -n -bt 0.1s -d . -sym -maxc 2 >> /tmp/ffcvt_test.txt 2>&1
4243

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

test2/ffcvt_test.txt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,25 @@ Transcoding completed in xxx ms
391391
Org Size: 0 MB
392392
New Size: 0 MB
393393
Saved: 0%
394+
] None-video file './ffcvt_test.txt' duplicated to dest dir.
395+
] None-video file './test-all.sh' duplicated to dest dir.
396+
397+
== Transcoding [1/4] (36%): 'test_s1.avi'
398+
under subdir
399+
] 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
400+
ffcvt: to execute -
401+
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
402+
Time taken so far xxx ms
403+
] Taking a breath for: xxx ms
404+
Finishing the remaining 64% in xxx ms
405+
406+
== Transcoding [2/4] (57%): 'test1.avi'
407+
under .
408+
] ffmpeg -i ./test1.avi -c:v libvpx-vp9 -b:v 0 -crf 42 -c:a libopus -b:a 64k -c:s copy ./test1_.mkv
409+
ffcvt: to execute -
410+
ffmpeg -i ./test1.avi -c:v libvpx-vp9 -b:v 0 -crf 42 -c:a libopus -b:a 64k -c:s copy ./test1_.mkv
411+
Time taken so far xxx ms
412+
] Max conversion count reached.
394413
] Transcoding to /tmp/test2
395414
] None-video file './ffcvt_test.txt' duplicated to dest dir.
396415
] None-video file './test-all.sh' duplicated to dest dir.

0 commit comments

Comments
 (0)