From 3da1165fef8c31b69b36259c8a8783dbec8cc130 Mon Sep 17 00:00:00 2001 From: Owner Date: Mon, 27 Aug 2018 11:11:59 -0500 Subject: [PATCH] added device_number for devices with same name --- src/test/java/net/bramp/ffmpeg/builder/FFmpegBuilderTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/net/bramp/ffmpeg/builder/FFmpegBuilderTest.java b/src/test/java/net/bramp/ffmpeg/builder/FFmpegBuilderTest.java index 0af99172..74cd237c 100644 --- a/src/test/java/net/bramp/ffmpeg/builder/FFmpegBuilderTest.java +++ b/src/test/java/net/bramp/ffmpeg/builder/FFmpegBuilderTest.java @@ -436,8 +436,8 @@ public void testPresets() { @Test public void testFFmpegInputBuilder(){ - String cmd = "-y -v info -f x11grab -s 1280x720 -r 30/1 -draw_mouse 0 -thread_queue_size 4096 " + - "-i :0.0+0,0 -f alsa -thread_queue_size 4096 -i hw:0,1,0 -f flv -acodec aac rtmp://a.rtmp.youtube.com/live2/XXX" ; + String cmd = "-y -v info -f x11grab -s 1280x720 -r 30/1 -draw_mouse 0 -thread_queue_size 4096 -video_device_number 0 " + + "-i :0.0+0,0 -f alsa -thread_queue_size 4096 -video_device_number 0 -i hw:0,1,0 -f flv -acodec aac rtmp://a.rtmp.youtube.com/live2/XXX" ; List args = new FFmpegBuilder() .overrideOutputFiles(true)