History

fate/filter-video: add ffprobe test for dual output select filter

Marton Balint committed 1 year ago

Commit a85835b1 parent a736ac73 files · +32 −0Browse files

Unified · Split

3 files
  1. tests/fate-run.sh +4 −0
  2. tests/fate/filter-video.mak +3 −0
  3. tests/ref/fate/filter-select-ffprobe +25 −0
tests/fate-run.sh+4−0
@@ -123,6 +123,10 @@ probechapters(){ · 122 unmodified lines
123 run ffprobe${PROGSUF}${EXECSUF} -bitexact -show_chapters "$@"123 run ffprobe${PROGSUF}${EXECSUF} -bitexact -show_chapters "$@"
124}124}
125 125
126probe(){
127 run ffprobe${PROGSUF}${EXECSUF} -bitexact "$@"
128}
129
126probegaplessinfo(){130probegaplessinfo(){
127 filename="$1"131 filename="$1"
128 shift132 shift
tests/fate/filter-video.mak+3−0
@@ -325,6 +325,9 @@ FATE_FILTER_VSYNTH_PGMYUV-$(CONFIG_SELECT_FILTER) += fate-filter-select-alternat · 324 unmodified lines
325fate-filter-select-alternate: tests/data/filtergraphs/select-alternate325fate-filter-select-alternate: tests/data/filtergraphs/select-alternate
326fate-filter-select-alternate: CMD = framecrc -c:v pgmyuv -i $(SRC) -/filter $(TARGET_PATH)/tests/data/filtergraphs/select-alternate326fate-filter-select-alternate: CMD = framecrc -c:v pgmyuv -i $(SRC) -/filter $(TARGET_PATH)/tests/data/filtergraphs/select-alternate
327 327
328FATE_FILTER-$(call ALLYES, FFPROBE SELECT_FILTER SMPTEBARS_FILTER LAVFI_INDEV) += fate-filter-select-ffprobe
329fate-filter-select-ffprobe: CMD = probe -print_format compact -show_entries packet=stream_index,pts,pts_time -f lavfi "smptebars=d=1,select=n=2:e=1[out0][out1]"
330
328FATE_FILTER_VSYNTH_PGMYUV-$(call ALLYES, SETPTS_FILTER SETTB_FILTER) += fate-filter-setpts331FATE_FILTER_VSYNTH_PGMYUV-$(call ALLYES, SETPTS_FILTER SETTB_FILTER) += fate-filter-setpts
329fate-filter-setpts: tests/data/filtergraphs/setpts332fate-filter-setpts: tests/data/filtergraphs/setpts
330fate-filter-setpts: CMD = framecrc -c:v pgmyuv -i $(SRC) -/filter $(TARGET_PATH)/tests/data/filtergraphs/setpts333fate-filter-setpts: CMD = framecrc -c:v pgmyuv -i $(SRC) -/filter $(TARGET_PATH)/tests/data/filtergraphs/setpts
tests/ref/fate/filter-select-ffprobe+25−0
@@ -0,0 +1,25 @@
1packet|stream_index=0|pts=0|pts_time=0.000000
2packet|stream_index=0|pts=1|pts_time=0.040000
3packet|stream_index=0|pts=2|pts_time=0.080000
4packet|stream_index=0|pts=3|pts_time=0.120000
5packet|stream_index=0|pts=4|pts_time=0.160000
6packet|stream_index=0|pts=5|pts_time=0.200000
7packet|stream_index=0|pts=6|pts_time=0.240000
8packet|stream_index=0|pts=7|pts_time=0.280000
9packet|stream_index=0|pts=8|pts_time=0.320000
10packet|stream_index=0|pts=9|pts_time=0.360000
11packet|stream_index=0|pts=10|pts_time=0.400000
12packet|stream_index=0|pts=11|pts_time=0.440000
13packet|stream_index=0|pts=12|pts_time=0.480000
14packet|stream_index=0|pts=13|pts_time=0.520000
15packet|stream_index=0|pts=14|pts_time=0.560000
16packet|stream_index=0|pts=15|pts_time=0.600000
17packet|stream_index=0|pts=16|pts_time=0.640000
18packet|stream_index=0|pts=17|pts_time=0.680000
19packet|stream_index=0|pts=18|pts_time=0.720000
20packet|stream_index=0|pts=19|pts_time=0.760000
21packet|stream_index=0|pts=20|pts_time=0.800000
22packet|stream_index=0|pts=21|pts_time=0.840000
23packet|stream_index=0|pts=22|pts_time=0.880000
24packet|stream_index=0|pts=23|pts_time=0.920000
25packet|stream_index=0|pts=24|pts_time=0.960000

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t