Mercurial > hg > nginx-tests
comparison range_mp4.t @ 1268:1923461981c9
Tests: prevent broken terminal after tc[gs]etattr ffmpeg race.
Running multiple ffmpeg processes could lead to save/restore
of the already alternated terminal state.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Thu, 11 Jan 2018 19:23:45 +0300 |
parents | 882267679006 |
children |
comparison
equal
deleted
inserted
replaced
1267:f94e79aad895 | 1268:1923461981c9 |
---|---|
46 } | 46 } |
47 | 47 |
48 EOF | 48 EOF |
49 | 49 |
50 plan(skip_all => 'no lavfi') | 50 plan(skip_all => 'no lavfi') |
51 unless grep /lavfi/, `ffmpeg -loglevel quiet -formats`; | 51 unless grep /lavfi/, `ffmpeg -nostdin -loglevel quiet -formats`; |
52 system('ffmpeg -loglevel quiet -y ' | 52 system('ffmpeg -loglevel quiet -y ' |
53 . '-f lavfi -i testsrc=duration=10:size=320x200:rate=15 ' | 53 . '-f lavfi -i testsrc=duration=10:size=320x200:rate=15 ' |
54 . "-pix_fmt yuv420p -c:v libx264 ${\($t->testdir())}/test.mp4") == 0 | 54 . "-pix_fmt yuv420p -c:v libx264 ${\($t->testdir())}/test.mp4") == 0 |
55 or die "Can't create mp4 file: $!"; | 55 or die "Can't create mp4 file: $!"; |
56 | 56 |