switch to mkv test files

This commit is contained in:
aler9
2021-03-22 19:59:08 +01:00
parent 54a1da1078
commit acf52fa56f
7 changed files with 4 additions and 4 deletions

View File

@@ -329,7 +329,7 @@ func TestServerPublishReadHighLevel(t *testing.T) {
cnt1, err := newContainer("ffmpeg", "publish", []string{ cnt1, err := newContainer("ffmpeg", "publish", []string{
"-re", "-re",
"-stream_loop", "-1", "-stream_loop", "-1",
"-i", "emptyvideo.ts", "-i", "emptyvideo.mkv",
"-c", "copy", "-c", "copy",
"-f", "rtsp", "-f", "rtsp",
"-rtsp_transport", ca.publisherProto, "-rtsp_transport", ca.publisherProto,
@@ -340,7 +340,7 @@ func TestServerPublishReadHighLevel(t *testing.T) {
case "gstreamer": case "gstreamer":
cnt1, err := newContainer("gstreamer", "publish", []string{ cnt1, err := newContainer("gstreamer", "publish", []string{
"filesrc location=emptyvideo.ts ! tsdemux ! video/x-h264 ! rtspclientsink " + "filesrc location=emptyvideo.mkv ! matroskademux ! video/x-h264 ! rtspclientsink " +
"location=" + proto + "://127.0.0.1:8554/teststream protocols=" + ca.publisherProto + " tls-validation-flags=0 latency=0 timeout=0 rtx-time=0", "location=" + proto + "://127.0.0.1:8554/teststream protocols=" + ca.publisherProto + " tls-validation-flags=0 latency=0 timeout=0 rtx-time=0",
}) })
require.NoError(t, err) require.NoError(t, err)

View File

@@ -3,7 +3,7 @@ FROM alpine:3.12
RUN apk add --no-cache \ RUN apk add --no-cache \
ffmpeg ffmpeg
COPY emptyvideo.ts / COPY emptyvideo.mkv /
COPY start.sh / COPY start.sh /
RUN chmod +x /start.sh RUN chmod +x /start.sh

Binary file not shown.

Binary file not shown.

View File

@@ -38,7 +38,7 @@ RUN apt update && apt install -y --no-install-recommends \
COPY --from=build /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libexitafterframe.so /usr/lib/x86_64-linux-gnu/gstreamer-1.0/ COPY --from=build /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libexitafterframe.so /usr/lib/x86_64-linux-gnu/gstreamer-1.0/
COPY emptyvideo.ts / COPY emptyvideo.mkv /
COPY start.sh / COPY start.sh /
RUN chmod +x /start.sh RUN chmod +x /start.sh

Binary file not shown.

Binary file not shown.