Skip to content

Commit

Permalink
update test case
Browse files Browse the repository at this point in the history
  • Loading branch information
lucemia committed Mar 15, 2024
1 parent ea0be92 commit 542a5f9
Show file tree
Hide file tree
Showing 57 changed files with 131 additions and 161 deletions.
7 changes: 6 additions & 1 deletion src/ffmpeg/common/tests/__snapshots__/test_serialize.ambr
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,12 @@
"__class__": "ffmpeg.streams.video.VideoStream",
"node": {
"__class__": "ffmpeg.dag.nodes.FilterNode",
"kwargs": [],
"kwargs": [
[
"n",
2.0
]
],
"inputs": [
{
"__class__": "ffmpeg.streams.video.VideoStream",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[
"[0:v][1:v]",
"concat",
"concat=",
"n=2.0",
"[s0]"
]
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"-i",
"tmp2.mp4",
"-filter_complex",
"[0:v][1:v]concat[s0]",
"[0:v][1:v]concat=n=2.0[s0]",
"-map",
"[s0]",
"output.mp4"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"-i",
"tmp2.mp4",
"-filter_complex",
"[0:v][1:v]concat[s0]",
"[0:v][1:v]concat=n=2.0[s0]",
"-map",
"[s0]",
"output.mp4"
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"ffmpeg -i tmp1.mp4 -i tmp2.mp4 -filter_complex '[0:v][1:v]concat[s0]' -map '[s0]' output.mp4"
"ffmpeg -i tmp1.mp4 -i tmp2.mp4 -filter_complex '[0:v][1:v]concat=n=2.0[s0]' -map '[s0]' output.mp4"
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"-i",
"tmp2.mp4",
"-filter_complex",
"[0:v][1:v]concat[s0]",
"[0:v][1:v]concat=n=2.0[s0]",
"-map",
"[s0]",
"output.mp4"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"-i",
"tmp2.mp4",
"-filter_complex",
"[0:v][1:v]concat[s0]",
"[0:v][1:v]concat=n=2.0[s0]",
"-map",
"[s0]",
"output.mp4"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"-i",
"tmp2.mp4",
"-filter_complex",
"[0:v][1:v]concat[s0]",
"[0:v][1:v]concat=n=2.0[s0]",
"-map",
"[s0]",
"output.mp4"
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"ffmpeg -i tmp1.mp4 -i tmp2.mp4 -filter_complex '[0:v][1:v]concat[s0]' -map '[s0]' output.mp4"
"ffmpeg -i tmp1.mp4 -i tmp2.mp4 -filter_complex '[0:v][1:v]concat=n=2.0[s0]' -map '[s0]' output.mp4"
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"-i",
"tmp2.mp4",
"-filter_complex",
"[0:v][1:v]concat[s0]",
"[0:v][1:v]concat=n=2.0[s0]",
"-map",
"[s0]",
"output.mp4"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"-i",
"tmp2.mp4",
"-filter_complex",
"[0:v][1:v]concat[s0]",
"[0:v][1:v]concat=n=2.0[s0]",
"-map",
"[s0]",
"output.mp4"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"-i",
"tmp2.mp4",
"-filter_complex",
"[0:v][1:v]concat[s0]",
"[0:v][1:v]concat=n=2.0[s0]",
"-map",
"[s0]",
"output.mp4"
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"ffmpeg -i tmp1.mp4 -i tmp2.mp4 -filter_complex '[0:v][1:v]concat[s0]' -map '[s0]' output.mp4"
"ffmpeg -i tmp1.mp4 -i tmp2.mp4 -filter_complex '[0:v][1:v]concat=n=2.0[s0]' -map '[s0]' output.mp4"
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"-i",
"tmp2.mp4",
"-filter_complex",
"[0:v][1:v]concat[s0]",
"[0:v][1:v]concat=n=2.0[s0]",
"-map",
"[s0]",
"output.mp4"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"-i",
"tmp2.mp4",
"-filter_complex",
"[0:v][1:v]concat[s0]",
"[0:v][1:v]concat=n=2.0[s0]",
"-map",
"[s0]",
"output.mp4"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"-i",
"tmp2.mp4",
"-filter_complex",
"[0:v][1:v]concat[s0]",
"[0:v][1:v]concat=n=2.0[s0]",
"-map",
"[s0]",
"output.mp4"
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"ffmpeg -n -i tmp1.mp4 -i tmp2.mp4 -filter_complex '[0:v][1:v]concat[s0]' -map '[s0]' output.mp4"
"ffmpeg -n -i tmp1.mp4 -i tmp2.mp4 -filter_complex '[0:v][1:v]concat=n=2.0[s0]' -map '[s0]' output.mp4"
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"-i",
"tmp2.mp4",
"-filter_complex",
"[0:v][1:v]concat[s0]",
"[0:v][1:v]concat=n=2.0[s0]",
"-map",
"[s0]",
"output.mp4"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"-i",
"tmp2.mp4",
"-filter_complex",
"[0:v][1:v]concat[s0]",
"[0:v][1:v]concat=n=2.0[s0]",
"-map",
"[s0]",
"output.mp4"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"-i",
"tmp2.mp4",
"-filter_complex",
"[0:v][1:v]concat[s0]",
"[0:v][1:v]concat=n=2.0[s0]",
"-map",
"[s0]",
"output.mp4"
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"ffmpeg -y -i tmp1.mp4 -i tmp2.mp4 -filter_complex '[0:v][1:v]concat[s0]' -map '[s0]' output.mp4"
"ffmpeg -y -i tmp1.mp4 -i tmp2.mp4 -filter_complex '[0:v][1:v]concat=n=2.0[s0]' -map '[s0]' output.mp4"
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"-i",
"tmp2.mp4",
"-filter_complex",
"[0:v][1:v]concat[s0]",
"[0:v][1:v]concat=n=2.0[s0]",
"-map",
"[s0]",
"output.mp4"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"-i",
"tmp2.mp4",
"-filter_complex",
"[0:v][1:v]concat[s0]",
"[0:v][1:v]concat=n=2.0[s0]",
"-map",
"[s0]",
"output.mp4"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"-i",
"tmp2.mp4",
"-filter_complex",
"[0:v][1:v]concat[s0]",
"[0:v][1:v]concat=n=2.0[s0]",
"-map",
"[s0]",
"output.mp4"
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"ffmpeg -i tmp1.mp4 -i tmp2.mp4 -filter_complex '[0:v][1:v]concat[s0]' -map '[s0]' output.mp4"
"ffmpeg -i tmp1.mp4 -i tmp2.mp4 -filter_complex '[0:v][1:v]concat=n=2.0[s0]' -map '[s0]' output.mp4"
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"-i",
"tmp2.mp4",
"-filter_complex",
"[0:v][1:v]concat[s0]",
"[0:v][1:v]concat=n=2.0[s0]",
"-map",
"[s0]",
"output.mp4"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"-i",
"tmp2.mp4",
"-filter_complex",
"[0:v][1:v]concat[s0]",
"[0:v][1:v]concat=n=2.0[s0]",
"-map",
"[s0]",
"output.mp4"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"-i",
"tmp2.mp4",
"-filter_complex",
"[0:v][1:v]concat[s0]",
"[0:v][1:v]concat=n=2.0[s0]",
"-map",
"[s0]",
"output.mp4"
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"ffmpeg -y -i tmp1.mp4 -i tmp2.mp4 -filter_complex '[0:v][1:v]concat[s0]' -map '[s0]' output.mp4"
"ffmpeg -y -i tmp1.mp4 -i tmp2.mp4 -filter_complex '[0:v][1:v]concat=n=2.0[s0]' -map '[s0]' output.mp4"
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"-i",
"tmp2.mp4",
"-filter_complex",
"[0:v][1:v]concat[s0]",
"[0:v][1:v]concat=n=2.0[s0]",
"-map",
"[s0]",
"output.mp4"
Expand Down
Loading

0 comments on commit 542a5f9

Please sign in to comment.