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
123123 run ffprobe${PROGSUF}${EXECSUF} -bitexact -show_chapters "$@"
124124 }
125125
126+probe(){
127+ run ffprobe${PROGSUF}${EXECSUF} -bitexact "$@"
128+}
129+
126130 probegaplessinfo(){
127131 filename="$1"
128132 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
325325 fate-filter-select-alternate: tests/data/filtergraphs/select-alternate
326326 fate-filter-select-alternate: CMD = framecrc -c:v pgmyuv -i $(SRC) -/filter $(TARGET_PATH)/tests/data/filtergraphs/select-alternate
327327
328+FATE_FILTER-$(call ALLYES, FFPROBE SELECT_FILTER SMPTEBARS_FILTER LAVFI_INDEV) += fate-filter-select-ffprobe
329+fate-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+
328331 FATE_FILTER_VSYNTH_PGMYUV-$(call ALLYES, SETPTS_FILTER SETTB_FILTER) += fate-filter-setpts
329332 fate-filter-setpts: tests/data/filtergraphs/setpts
330333 fate-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 @@
1+packet|stream_index=0|pts=0|pts_time=0.000000
2+packet|stream_index=0|pts=1|pts_time=0.040000
3+packet|stream_index=0|pts=2|pts_time=0.080000
4+packet|stream_index=0|pts=3|pts_time=0.120000
5+packet|stream_index=0|pts=4|pts_time=0.160000
6+packet|stream_index=0|pts=5|pts_time=0.200000
7+packet|stream_index=0|pts=6|pts_time=0.240000
8+packet|stream_index=0|pts=7|pts_time=0.280000
9+packet|stream_index=0|pts=8|pts_time=0.320000
10+packet|stream_index=0|pts=9|pts_time=0.360000
11+packet|stream_index=0|pts=10|pts_time=0.400000
12+packet|stream_index=0|pts=11|pts_time=0.440000
13+packet|stream_index=0|pts=12|pts_time=0.480000
14+packet|stream_index=0|pts=13|pts_time=0.520000
15+packet|stream_index=0|pts=14|pts_time=0.560000
16+packet|stream_index=0|pts=15|pts_time=0.600000
17+packet|stream_index=0|pts=16|pts_time=0.640000
18+packet|stream_index=0|pts=17|pts_time=0.680000
19+packet|stream_index=0|pts=18|pts_time=0.720000
20+packet|stream_index=0|pts=19|pts_time=0.760000
21+packet|stream_index=0|pts=20|pts_time=0.800000
22+packet|stream_index=0|pts=21|pts_time=0.840000
23+packet|stream_index=0|pts=22|pts_time=0.880000
24+packet|stream_index=0|pts=23|pts_time=0.920000
25+packet|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