mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 23:26:54 +08:00
switch to mkv test files
This commit is contained in:
@@ -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)
|
||||||
|
@@ -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
|
||||||
|
BIN
testimages/ffmpeg/emptyvideo.mkv
Normal file
BIN
testimages/ffmpeg/emptyvideo.mkv
Normal file
Binary file not shown.
Binary file not shown.
@@ -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
|
||||||
|
BIN
testimages/gstreamer/emptyvideo.mkv
Normal file
BIN
testimages/gstreamer/emptyvideo.mkv
Normal file
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user