Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.6.0 ffmpeg issues - Filtering and streamcopy cannot be used together #522

Closed
conorlap opened this issue Jul 13, 2023 · 16 comments
Closed
Labels
bug Something isn't working
Milestone

Comments

@conorlap
Copy link

conorlap commented Jul 13, 2023

My camera feed doesn't work when setup as follows, it worked fine on v1.5.0

go2rtc:
  streams:
    frontdoor-audio: 
      - "ffmpeg:http://192.168.0.30/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password=secretpassword#video=copy#audio=copy#audio=opus#raw= -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -flags low_delay -strict experimental -analyzeduration 1000M -probesize 1000M -rw_timeout 5000000"
    frontdoor-sub: 
      - "ffmpeg:http://192.168.0.30/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=admin&password=secretpassword#video=copy#audio=copy#audio=opus#raw= -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -flags low_delay -strict experimental -analyzeduration 1000M -probesize 1000M -rw_timeout 5000000"

I've also tried these ways:

ffmpeg:http://192.168.0.30/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password=secretpassword#video=copy#audio=copy#audio=opus#raw= -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -flags low_delay -strict experimental -analyzeduration 1000M -probesize 1000M -rw_timeout 5000000
"ffmpeg:http://192.168.0.30/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password=secretpassword#video=copy#audio=copy#audio=opus"
@conorlap
Copy link
Author

Logs:

Please note cameras "office" & "kitchen_tapo" were turned off so their errors are expected below.


2023-07-13 13:13:15.161057862  [INFO] Preparing go2rtc config...
2023-07-13 13:13:15.392039273  [INFO] Not injecting WebRTC candidates into go2rtc config as it has been set manually
2023-07-13 13:13:15.416907430  [INFO] Starting go2rtc...
2023-07-13 13:13:15.487139074  13:13:15.487 INF go2rtc version 1.6.0 linux/amd64
2023-07-13 13:13:15.487426623  13:13:15.487 INF [api] listen addr=:1984
2023-07-13 13:13:15.487734576  13:13:15.487 INF [rtsp] listen addr=:8554
2023-07-13 13:13:15.487912922  13:13:15.487 INF [webrtc] listen addr=:8555/tcp
2023-07-13 13:13:15.488439715  13:13:15.488 INF [srtp] listen addr=:8443
2023-07-13 13:13:22.788836523  13:13:22.788 WRN [rtsp] error="exec: exit status 1" stream=office
2023-07-13 13:13:24.769247502  13:13:24.769 WRN [rtsp] error="exec: exit status 1" stream=frontdoor-sub
2023-07-13 13:13:25.159180831  [INFO] Starting go2rtc healthcheck service...
2023-07-13 13:13:28.932255137  13:13:28.932 WRN [rtsp] error="exec: exit status 1,Post \"http://admin:***@192.168.0.14:8800/stream\": dial tcp 192.168.0.14:8800: connect: no route to host" stream=kitchen_tapo
2023-07-13 13:13:32.773227882  13:13:32.773 WRN [rtsp] error="exec: exit status 1" stream=frontdoor-sub
2023-07-13 13:13:41.127129942  13:13:41.126 WRN [rtsp] error="exec: exit status 1" stream=office
2023-07-13 13:13:44.738980868  13:13:44.738 WRN [rtsp] error="exec: exit status 1" stream=frontdoor-sub
2023-07-13 13:13:48.771845368  13:13:48.771 WRN [rtsp] error="exec: exit status 1,Post \"http://admin:***@192.168.0.14:8800/stream\": dial tcp 192.168.0.14:8800: connect: no route to host" stream=kitchen_tapo
2023-07-13 13:13:50.340979225  13:13:50.340 WRN [rtsp] error="exec: exit status 1" stream=office
2023-07-13 13:13:52.746342304  13:13:52.746 WRN [rtsp] error="exec: exit status 1" stream=frontdoor-sub
2023-07-13 13:13:55.189312653  13:13:55.189 WRN [streams] json locked
2023-07-13 13:13:57.988236412  13:13:57.988 WRN [rtsp] error="exec: exit status 1,Post \"http://admin:***@192.168.0.14:8800/stream\": dial tcp 192.168.0.14:8800: connect: no route to host" stream=kitchen_tapo
2023-07-13 13:14:02.950923583  13:14:02.950 WRN [rtsp] error="exec: exit status 1" stream=office
2023-07-13 13:14:04.727757622  13:14:04.727 WRN [rtsp] error="exec: exit status 1" stream=frontdoor-sub
2023-07-13 13:14:07.208193886  13:14:07.208 WRN [rtsp] error="exec: exit status 1,Post \"http://admin:***@192.168.0.14:8800/stream\": dial tcp 192.168.0.14:8800: connect: no route to host" stream=kitchen_tapo
2023-07-13 13:14:08.725193475  13:14:08.725 WRN [rtsp] error="exec: exit status 1" stream=frontdoor-sub
2023-07-13 13:14:12.968159636  13:14:12.967 WRN [rtsp] error="exec: exit status 1" stream=office
2023-07-13 13:14:16.420220938  13:14:16.420 WRN [rtsp] error="exec: exit status 1,Post \"http://admin:***@192.168.0.14:8800/stream\": dial tcp 192.168.0.14:8800: connect: no route to host" stream=kitchen_tapo
2023-07-13 13:14:22.982895197  13:14:22.982 WRN [rtsp] error="exec: exit status 1" stream=office
2023-07-13 13:14:25.214856489  13:14:25.214 WRN [streams] json locked
2023-07-13 13:14:28.711849226  13:14:28.711 WRN [rtsp] error="exec: exit status 1,Post \"http://admin:***@192.168.0.14:8800/stream\": dial tcp 192.168.0.14:8800: connect: no route to host" stream=kitchen_tapo
2023-07-13 13:14:28.735699069  13:14:28.735 WRN [rtsp] error="exec: exit status 1" stream=frontdoor-sub
2023-07-13 13:14:32.726019507  13:14:32.725 WRN [rtsp] error="exec: exit status 1" stream=frontdoor-sub
2023-07-13 13:14:32.998944455  13:14:32.998 WRN [rtsp] error="exec: exit status 1" stream=office
2023-07-13 13:14:37.924211639  13:14:37.924 WRN [rtsp] error="exec: exit status 1,Post \"http://admin:***@192.168.0.14:8800/stream\": dial tcp 192.168.0.14:8800: connect: no route to host" stream=kitchen_tapo
2023-07-13 13:14:42.214871970  13:14:42.214 WRN [rtsp] error="exec: exit status 1" stream=office
2023-07-13 13:14:44.725096708  13:14:44.724 WRN [rtsp] error="exec: exit status 1" stream=frontdoor-sub
2023-07-13 13:14:47.141272108  13:14:47.141 WRN [rtsp] error="exec: exit status 1,Post \"http://admin:***@192.168.0.14:8800/stream\": dial tcp 192.168.0.14:8800: connect: no route to host" stream=kitchen_tapo
2023-07-13 13:14:48.714428892  13:14:48.714 WRN [rtsp] error="exec: exit status 1" stream=frontdoor-sub
2023-07-13 13:14:53.030960721  13:14:53.030 WRN [rtsp] error="exec: exit status 1" stream=office
2023-07-13 13:14:55.244981305  13:14:55.244 WRN [streams] json locked
2023-07-13 13:14:56.355759915  13:14:56.355 WRN [rtsp] error="exec: exit status 1,Post \"http://admin:***@192.168.0.14:8800/stream\": dial tcp 192.168.0.14:8800: connect: no route to host" stream=kitchen_tapo
2023-07-13 13:15:00.753469886  13:15:00.753 WRN [rtsp] error="exec: exit status 1" stream=frontdoor-sub
2023-07-13 13:15:03.112571817  13:15:03.112 WRN [rtsp] error="exec: exit status 1" stream=office
2023-07-13 13:15:04.087041760  13:15:04.084 WRN github.com/AlexxIT/go2rtc/internal/rtsp/rtsp.go:223 > error="write tcp 127.0.0.1:8554->127.0.0.1:40906: write: broken pipe"
2023-07-13 13:15:08.643768352  13:15:08.643 WRN [rtsp] error="exec: exit status 1,Post \"http://admin:***@192.168.0.14:8800/stream\": dial tcp 192.168.0.14:8800: connect: no route to host" stream=kitchen_tapo
2023-07-13 13:15:12.709956433  13:15:12.709 WRN [rtsp] error="exec: exit status 1" stream=frontdoor-sub
2023-07-13 13:15:13.126913146  13:15:13.126 WRN [rtsp] error="exec: exit status 1" stream=office
2023-07-13 13:15:17.860356122  13:15:17.860 WRN [rtsp] error="exec: exit status 1,Post \"http://admin:***@192.168.0.14:8800/stream\": dial tcp 192.168.0.14:8800: connect: no route to host" stream=kitchen_tapo
2023-07-13 13:15:23.145353121  13:15:23.145 WRN [rtsp] error="exec: exit status 1" stream=office
2023-07-13 13:15:24.709612781  13:15:24.709 WRN [rtsp] error="exec: exit status 1" stream=frontdoor-sub
2023-07-13 13:15:25.277757493  13:15:25.277 WRN [streams] json locked
2023-07-13 13:15:27.075889259  13:15:27.075 WRN [rtsp] error="exec: exit status 1,Post \"http://admin:***@192.168.0.14:8800/stream\": dial tcp 192.168.0.14:8800: connect: no route to host" stream=kitchen_tapo
2023-07-13 13:15:28.727666512  13:15:28.727 WRN [rtsp] error="exec: exit status 1" stream=frontdoor-sub
2023-07-13 13:15:32.362892102  13:15:32.362 WRN [rtsp] error="exec: exit status 1" stream=office
2023-07-13 13:15:36.292143979  13:15:36.291 WRN [rtsp] error="exec: exit status 1,Post \"http://admin:***@192.168.0.14:8800/stream\": dial tcp 192.168.0.14:8800: connect: no route to host" stream=kitchen_tapo
2023-07-13 13:15:40.716837146  13:15:40.716 WRN [rtsp] error="exec: exit status 1" stream=frontdoor-sub
2023-07-13 13:15:43.205441611  13:15:43.205 WRN [rtsp] error="exec: exit status 1" stream=office
2023-07-13 13:15:45.690965517  13:15:45.690 WRN [streams] json locked
2023-07-13 13:15:46.169818441  13:15:46.169 WRN [streams] json locked
2023-07-13 13:15:46.549856803  13:15:46.549 WRN [streams] json locked
2023-07-13 13:15:48.579828082  13:15:48.579 WRN [rtsp] error="exec: exit status 1,Post \"http://admin:***@192.168.0.14:8800/stream\": dial tcp 192.168.0.14:8800: connect: no route to host" stream=kitchen_tapo

@AlexxIT AlexxIT added the question Further information is requested label Jul 13, 2023
@AlexxIT
Copy link
Owner

AlexxIT commented Jul 13, 2023

"no route to host" it's your local network problems

@conorlap
Copy link
Author

conorlap commented Jul 13, 2023

"no route to host" just refers to other cameras which are currently turned off. The 'frontdoor-audio' & 'frontdoor-sub' camera is turned on.
Like I said, everything works fine as soon as I switch back to v1.5.0

@AlexxIT
Copy link
Owner

AlexxIT commented Jul 13, 2023

You need to increase log level for exec module to check error description

@conorlap
Copy link
Author

I've found the issue "Filtering and streamcopy cannot be used together."

Once I remove #audio=copy it works fine.

2023-07-13 13:52:09.336227846  [INFO] Preparing go2rtc config...
2023-07-13 13:52:09.523952033  [INFO] Not injecting WebRTC candidates into go2rtc config as it has been set manually
2023-07-13 13:52:09.555589386  [INFO] Starting go2rtc...
2023-07-13 13:52:09.619282430  13:52:09.619 INF go2rtc version 1.6.0 linux/amd64
2023-07-13 13:52:09.619504714  13:52:09.619 INF [api] listen addr=:1984
2023-07-13 13:52:09.619780159  13:52:09.619 INF [rtsp] listen addr=:8554
2023-07-13 13:52:09.619952705  13:52:09.619 INF [webrtc] listen addr=:8555/tcp
2023-07-13 13:52:09.620323337  13:52:09.620 INF [srtp] listen addr=:8443
2023-07-13 13:52:10.778449684  13:52:10.778 DBG [exec] run url="exec:ffmpeg -hide_banner -v error -fflags nobuffer -flags low_delay -i http://192.168.0.30/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=admin&password=secretpassword  -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -flags low_delay -strict experimental -analyzeduration 1000M -probesize 1000M -rw_timeout 5000000 -map 0:v:0? -c:v:0 copy -map 0:a:0? -c:a:0 copy -map 0:a:0? -c:a:1 libopus -ar:a:1 48000 -ac:a:1 2 -application:a:1 voip -af adelay=0|0 -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp {output}"
2023-07-13 13:52:10.813230267  13:52:10.813 DBG [exec] run url="exec:ffmpeg -hide_banner -v error -fflags nobuffer -flags low_delay -i http://192.168.0.30/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password=secretpassword  -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -flags low_delay -strict experimental -analyzeduration 1000M -probesize 1000M -rw_timeout 5000000 -map 0:v:0? -c:v:0 copy -map 0:a:0? -c:a:0 copy -map 0:a:0? -c:a:1 libopus -ar:a:1 48000 -ac:a:1 2 -application:a:1 voip -af adelay=0|0 -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp {output}"
2023-07-13 13:52:13.102231185  Filtergraph 'adelay=0|0' was defined for audio output stream 0:1 but codec copy was selected.
2023-07-13 13:52:13.102234319  Filtering and streamcopy cannot be used together.
2023-07-13 13:52:13.184170116  13:52:13.184 DBG [exec] run url="exec:ffmpeg -hide_banner -v error -fflags nobuffer -flags low_delay -i http://192.168.0.30/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password=secretpassword  -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -flags low_delay -strict experimental -analyzeduration 1000M -probesize 1000M -rw_timeout 5000000 -map 0:v:0? -c:v:0 copy -map 0:a:0? -c:a:0 copy -map 0:a:0? -c:a:1 libopus -ar:a:1 48000 -ac:a:1 2 -application:a:1 voip -af adelay=0|0 -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp {output}"
2023-07-13 13:52:14.234614187  Filtergraph 'adelay=0|0' was defined for audio output stream 0:1 but codec copy was selected.
2023-07-13 13:52:14.234617226  Filtering and streamcopy cannot be used together.
2023-07-13 13:52:14.236364556  13:52:14.236 DBG [exec] run url="exec:ffmpeg -hide_banner -v error -fflags nobuffer -flags low_delay -i http://192.168.0.30/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=admin&password=secretpassword  -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -flags low_delay -strict experimental -analyzeduration 1000M -probesize 1000M -rw_timeout 5000000 -map 0:v:0? -c:v:0 copy -map 0:a:0? -c:a:0 copy -map 0:a:0? -c:a:1 libopus -ar:a:1 48000 -ac:a:1 2 -application:a:1 voip -af adelay=0|0 -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp {output}"
2023-07-13 13:52:16.100038625  Filtergraph 'adelay=0|0' was defined for audio output stream 0:1 but codec copy was selected.
2023-07-13 13:52:16.100041638  Filtering and streamcopy cannot be used together.
2023-07-13 13:52:18.237960653  Filtergraph 'adelay=0|0' was defined for audio output stream 0:1 but codec copy was selected.
2023-07-13 13:52:18.237963870  Filtering and streamcopy cannot be used together.
2023-07-13 13:52:18.239349309  13:52:18.239 WRN [rtsp] error="exec: exit status 1" stream=frontdoor-sub
2023-07-13 13:52:18.239467249  13:52:18.239 DBG [exec] run url="exec:ffmpeg -hide_banner -v error -fflags nobuffer -flags low_delay -i http://192.168.0.30/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=admin&password=secretpassword  -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -flags low_delay -strict experimental -analyzeduration 1000M -probesize 1000M -rw_timeout 5000000 -map 0:v:0? -c:v:0 copy -map 0:a:0? -c:a:0 copy -map 0:a:0? -c:a:1 libopus -ar:a:1 48000 -ac:a:1 2 -application:a:1 voip -af adelay=0|0 -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp {output}"
2023-07-13 13:52:19.334426773  [INFO] Starting go2rtc healthcheck service...
2023-07-13 13:52:22.264019103  Filtergraph 'adelay=0|0' was defined for audio output stream 0:1 but codec copy was selected.
2023-07-13 13:52:22.264023443  Filtering and streamcopy cannot be used together.
2023-07-13 13:52:22.265809416  13:52:22.265 DBG [exec] run url="exec:ffmpeg -hide_banner -v error -fflags nobuffer -flags low_delay -i http://192.168.0.30/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=admin&password=secretpassword  -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -flags low_delay -strict experimental -analyzeduration 1000M -probesize 1000M -rw_timeout 5000000 -map 0:v:0? -c:v:0 copy -map 0:a:0? -c:a:0 copy -map 0:a:0? -c:a:1 libopus -ar:a:1 48000 -ac:a:1 2 -application:a:1 voip -af adelay=0|0 -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp {output}"
2023-07-13 13:52:26.219444463  Filtergraph 'adelay=0|0' was defined for audio output stream 0:1 but codec copy was selected.
2023-07-13 13:52:26.219454932  Filtering and streamcopy cannot be used together.
2023-07-13 13:52:26.221709488  13:52:26.221 WRN [rtsp] error="exec: exit status 1" stream=frontdoor-sub
2023-07-13 13:52:30.830426047  13:52:30.830 DBG [exec] run url="exec:ffmpeg -hide_banner -v error -fflags nobuffer -flags low_delay -i http://192.168.0.30/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=admin&password=secretpassword  -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -flags low_delay -strict experimental -analyzeduration 1000M -probesize 1000M -rw_timeout 5000000 -map 0:v:0? -c:v:0 copy -map 0:a:0? -c:a:0 copy -map 0:a:0? -c:a:1 libopus -ar:a:1 48000 -ac:a:1 2 -application:a:1 voip -af adelay=0|0 -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp {output}"
2023-07-13 13:52:30.842937521  13:52:30.842 DBG [exec] run url="exec:ffmpeg -hide_banner -v error -fflags nobuffer -flags low_delay -i http://192.168.0.30/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password=secretpassword  -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -flags low_delay -strict experimental -analyzeduration 1000M -probesize 1000M -rw_timeout 5000000 -map 0:v:0? -c:v:0 copy -map 0:a:0? -c:a:0 copy -map 0:a:0? -c:a:1 libopus -ar:a:1 48000 -ac:a:1 2 -application:a:1 voip -af adelay=0|0 -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp {output}"
2023-07-13 13:52:33.096362264  Filtergraph 'adelay=0|0' was defined for audio output stream 0:1 but codec copy was selected.
2023-07-13 13:52:33.096372867  Filtering and streamcopy cannot be used together.
2023-07-13 13:52:33.204015577  13:52:33.202 DBG [exec] run url="exec:ffmpeg -hide_banner -v error -fflags nobuffer -flags low_delay -i http://192.168.0.30/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password=secretpassword  -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -flags low_delay -strict experimental -analyzeduration 1000M -probesize 1000M -rw_timeout 5000000 -map 0:v:0? -c:v:0 copy -map 0:a:0? -c:a:0 copy -map 0:a:0? -c:a:1 libopus -ar:a:1 48000 -ac:a:1 2 -application:a:1 voip -af adelay=0|0 -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp {output}"
2023-07-13 13:52:34.238660713  Filtergraph 'adelay=0|0' was defined for audio output stream 0:1 but codec copy was selected.
2023-07-13 13:52:34.238663958  Filtering and streamcopy cannot be used together.
2023-07-13 13:52:34.240040186  13:52:34.239 DBG [exec] run url="exec:ffmpeg -hide_banner -v error -fflags nobuffer -flags low_delay -i http://192.168.0.30/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=admin&password=secretpassword  -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -flags low_delay -strict experimental -analyzeduration 1000M -probesize 1000M -rw_timeout 5000000 -map 0:v:0? -c:v:0 copy -map 0:a:0? -c:a:0 copy -map 0:a:0? -c:a:1 libopus -ar:a:1 48000 -ac:a:1 2 -application:a:1 voip -af adelay=0|0 -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp {output}"
2023-07-13 13:52:36.149958590  Filtergraph 'adelay=0|0' was defined for audio output stream 0:1 but codec copy was selected.
2023-07-13 13:52:36.149961232  Filtering and streamcopy cannot be used together.
2023-07-13 13:52:36.152095100  13:52:36.152 DBG [exec] run url="exec:ffmpeg -hide_banner -v error -fflags nobuffer -flags low_delay -i http://192.168.0.30/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password=secretpassword  -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -flags low_delay -strict experimental -analyzeduration 1000M -probesize 1000M -rw_timeout 5000000 -map 0:v:0? -c:v:0 copy -map 0:a:0? -c:a:0 copy -map 0:a:0? -c:a:1 libopus -ar:a:1 48000 -ac:a:1 2 -application:a:1 voip -af adelay=0|0 -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp {output}"
2023-07-13 13:52:38.223606976  Filtergraph 'adelay=0|0' was defined for audio output stream 0:1 but codec copy was selected.
2023-07-13 13:52:38.223618238  Filtering and streamcopy cannot be used together.
2023-07-13 13:52:38.228409797  13:52:38.228 WRN [rtsp] error="exec: exit status 1" stream=frontdoor-sub
2023-07-13 13:52:38.228807420  13:52:38.228 DBG [exec] run url="exec:ffmpeg -hide_banner -v error -fflags nobuffer -flags low_delay -i http://192.168.0.30/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=admin&password=secretpassword  -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -flags low_delay -strict experimental -analyzeduration 1000M -probesize 1000M -rw_timeout 5000000 -map 0:v:0? -c:v:0 copy -map 0:a:0? -c:a:0 copy -map 0:a:0? -c:a:1 libopus -ar:a:1 48000 -ac:a:1 2 -application:a:1 voip -af adelay=0|0 -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp {output}"
2023-07-13 13:52:39.101105381  Filtergraph 'adelay=0|0' was defined for audio output stream 0:1 but codec copy was selected.
2023-07-13 13:52:39.101116457  Filtering and streamcopy cannot be used together.
2023-07-13 13:52:39.106662508  13:52:39.106 DBG [exec] run url="exec:ffmpeg -hide_banner -v error -fflags nobuffer -flags low_delay -i http://192.168.0.30/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password=secretpassword  -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -flags low_delay -strict experimental -analyzeduration 1000M -probesize 1000M -rw_timeout 5000000 -map 0:v:0? -c:v:0 copy -map 0:a:0? -c:a:0 copy -map 0:a:0? -c:a:1 libopus -ar:a:1 48000 -ac:a:1 2 -application:a:1 voip -af adelay=0|0 -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp {output}"
2023-07-13 13:52:42.210252668  Filtergraph 'adelay=0|0' was defined for audio output stream 0:1 but codec copy was selected.
2023-07-13 13:52:42.210263410  Filtering and streamcopy cannot be used together.
2023-07-13 13:52:42.217989489  13:52:42.217 DBG [exec] run url="exec:ffmpeg -hide_banner -v error -fflags nobuffer -flags low_delay -i http://192.168.0.30/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password=secretpassword  -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -flags low_delay -strict experimental -analyzeduration 1000M -probesize 1000M -rw_timeout 5000000 -map 0:v:0? -c:v:0 copy -map 0:a:0? -c:a:0 copy -map 0:a:0? -c:a:1 libopus -ar:a:1 48000 -ac:a:1 2 -application:a:1 voip -af adelay=0|0 -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp {output}"
2023-07-13 13:52:42.245175032  Filtergraph 'adelay=0|0' was defined for audio output stream 0:1 but codec copy was selected.
2023-07-13 13:52:42.245185944  Filtering and streamcopy cannot be used together.
2023-07-13 13:52:42.250154089  13:52:42.249 DBG [exec] run url="exec:ffmpeg -hide_banner -v error -fflags nobuffer -flags low_delay -i http://192.168.0.30/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=admin&password=secretpassword  -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -flags low_delay -strict experimental -analyzeduration 1000M -probesize 1000M -rw_timeout 5000000 -map 0:v:0? -c:v:0 copy -map 0:a:0? -c:a:0 copy -map 0:a:0? -c:a:1 libopus -ar:a:1 48000 -ac:a:1 2 -application:a:1 voip -af adelay=0|0 -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp {output}"
2023-07-13 13:52:45.178389169  Filtergraph 'adelay=0|0' was defined for audio output stream 0:1 but codec copy was selected.
2023-07-13 13:52:45.178399534  Filtering and streamcopy cannot be used together.
2023-07-13 13:52:45.183902083  13:52:45.183 DBG [exec] run url="exec:ffmpeg -hide_banner -v error -fflags nobuffer -flags low_delay -i http://192.168.0.30/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password=secretpassword  -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -flags low_delay -strict experimental -analyzeduration 1000M -probesize 1000M -rw_timeout 5000000 -map 0:v:0? -c:v:0 copy -map 0:a:0? -c:a:0 copy -map 0:a:0? -c:a:1 libopus -ar:a:1 48000 -ac:a:1 2 -application:a:1 voip -af adelay=0|0 -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp {output}"
2023-07-13 13:52:46.208406915  Filtergraph 'adelay=0|0' was defined for audio output stream 0:1 but codec copy was selected.
2023-07-13 13:52:46.208411005  Filtering and streamcopy cannot be used together.
2023-07-13 13:52:46.209758840  13:52:46.209 WRN [rtsp] error="exec: exit status 1" stream=frontdoor-sub
2023-07-13 13:52:46.209906550  13:52:46.209 DBG [exec] run url="exec:ffmpeg -hide_banner -v error -fflags nobuffer -flags low_delay -i http://192.168.0.30/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=admin&password=secretpassword  -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -flags low_delay -strict experimental -analyzeduration 1000M -probesize 1000M -rw_timeout 5000000 -map 0:v:0? -c:v:0 copy -map 0:a:0? -c:a:0 copy -map 0:a:0? -c:a:1 libopus -ar:a:1 48000 -ac:a:1 2 -application:a:1 voip -af adelay=0|0 -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp {output}"
2023-07-13 13:52:48.128671895  Filtergraph 'adelay=0|0' was defined for audio output stream 0:1 but codec copy was selected.
2023-07-13 13:52:48.128676315  Filtering and streamcopy cannot be used together.
2023-07-13 13:52:48.130807659  13:52:48.130 DBG [exec] run url="exec:ffmpeg -hide_banner -v error -fflags nobuffer -flags low_delay -i http://192.168.0.30/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password=secretpassword  -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -flags low_delay -strict experimental -analyzeduration 1000M -probesize 1000M -rw_timeout 5000000 -map 0:v:0? -c:v:0 copy -map 0:a:0? -c:a:0 copy -map 0:a:0? -c:a:1 libopus -ar:a:1 48000 -ac:a:1 2 -application:a:1 voip -af adelay=0|0 -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp {output}"
2023-07-13 13:52:50.293191266  Filtergraph 'adelay=0|0' was defined for audio output stream 0:1 but codec copy was selected.
2023-07-13 13:52:50.293202531  Filtering and streamcopy cannot be used together.
2023-07-13 13:52:50.297939699  13:52:50.297 DBG [exec] run url="exec:ffmpeg -hide_banner -v error -fflags nobuffer -flags low_delay -i http://192.168.0.30/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=admin&password=secretpassword  -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -flags low_delay -strict experimental -analyzeduration 1000M -probesize 1000M -rw_timeout 5000000 -map 0:v:0? -c:v:0 copy -map 0:a:0? -c:a:0 copy -map 0:a:0? -c:a:1 libopus -ar:a:1 48000 -ac:a:1 2 -application:a:1 voip -af adelay=0|0 -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp {output}"
2023-07-13 13:52:51.158910636  Filtergraph 'adelay=0|0' was defined for audio output stream 0:1 but codec copy was selected.
2023-07-13 13:52:51.158921172  Filtering and streamcopy cannot be used together.
2023-07-13 13:52:51.164335702  13:52:51.164 DBG [exec] run url="exec:ffmpeg -hide_banner -v error -fflags nobuffer -flags low_delay -i http://192.168.0.30/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password=secretpassword  -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -flags low_delay -strict experimental -analyzeduration 1000M -probesize 1000M -rw_timeout 5000000 -map 0:v:0? -c:v:0 copy -map 0:a:0? -c:a:0 copy -map 0:a:0? -c:a:1 libopus -ar:a:1 48000 -ac:a:1 2 -application:a:1 voip -af adelay=0|0 -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp {output}"
2023-07-13 13:52:54.197653897  Filtergraph 'adelay=0|0' was defined for audio output stream 0:1 but codec copy was selected.
2023-07-13 13:52:54.197664220  Filtering and streamcopy cannot be used together.
2023-07-13 13:52:54.202982438  13:52:54.202 DBG [exec] run url="exec:ffmpeg -hide_banner -v error -fflags nobuffer -flags low_delay -i http://192.168.0.30/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password=secretpassword  -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -flags low_delay -strict experimental -analyzeduration 1000M -probesize 1000M -rw_timeout 5000000 -map 0:v:0? -c:v:0 copy -map 0:a:0? -c:a:0 copy -map 0:a:0? -c:a:1 libopus -ar:a:1 48000 -ac:a:1 2 -application:a:1 voip -af adelay=0|0 -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp {output}"
2023-07-13 13:52:54.229294941  Filtergraph 'adelay=0|0' was defined for audio output stream 0:1 but codec copy was selected.
2023-07-13 13:52:54.229306361  Filtering and streamcopy cannot be used together.
2023-07-13 13:52:54.234410121  13:52:54.234 DBG [exec] run url="exec:ffmpeg -hide_banner -v error -fflags nobuffer -flags low_delay -i http://192.168.0.30/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=admin&password=secretpassword  -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -flags low_delay -strict experimental -analyzeduration 1000M -probesize 1000M -rw_timeout 5000000 -map 0:v:0? -c:v:0 copy -map 0:a:0? -c:a:0 copy -map 0:a:0? -c:a:1 libopus -ar:a:1 48000 -ac:a:1 2 -application:a:1 voip -af adelay=0|0 -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp {output}"
2023-07-13 13:52:56.500176479  13:52:56.500 WRN [streams] json locked
2023-07-13 13:52:56.959815169  13:52:56.959 WRN [streams] json locked
2023-07-13 13:52:57.157432914  Filtergraph 'adelay=0|0' was defined for audio output stream 0:1 but codec copy was selected.
2023-07-13 13:52:57.157443604  Filtering and streamcopy cannot be used together.
2023-07-13 13:52:57.162965375  13:52:57.162 DBG [exec] run url="exec:ffmpeg -hide_banner -v error -fflags nobuffer -flags low_delay -i http://192.168.0.30/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password=secretpassword  -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -flags low_delay -strict experimental -analyzeduration 1000M -probesize 1000M -rw_timeout 5000000 -map 0:v:0? -c:v:0 copy -map 0:a:0? -c:a:0 copy -map 0:a:0? -c:a:1 libopus -ar:a:1 48000 -ac:a:1 2 -application:a:1 voip -af adelay=0|0 -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp {output}"
2023-07-13 13:52:57.393956423  13:52:57.393 WRN [streams] json locked
2023-07-13 13:52:58.217979060  Filtergraph 'adelay=0|0' was defined for audio output stream 0:1 but codec copy was selected.
2023-07-13 13:52:58.217982501  Filtering and streamcopy cannot be used together.
2023-07-13 13:52:58.219342861  13:52:58.219 WRN [rtsp] error="exec: exit status 1" stream=frontdoor-sub
2023-07-13 13:52:58.219347866  13:52:58.219 DBG [exec] run url="exec:ffmpeg -hide_banner -v error -fflags nobuffer -flags low_delay -i http://192.168.0.30/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=admin&password=secretpassword  -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -flags low_delay -strict experimental -analyzeduration 1000M -probesize 1000M -rw_timeout 5000000 -map 0:v:0? -c:v:0 copy -map 0:a:0? -c:a:0 copy -map 0:a:0? -c:a:1 libopus -ar:a:1 48000 -ac:a:1 2 -application:a:1 voip -af adelay=0|0 -user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp {output}"

@NickM-27
Copy link
Contributor

This is still a valid issue, #audio=copy should be able to be used along with #audio=opus

@conorlap conorlap reopened this Jul 13, 2023
@conorlap conorlap changed the title v1.6.0 ffmpeg issues v1.6.0 ffmpeg issues - Filtering and streamcopy cannot be used together Jul 13, 2023
@AlexxIT
Copy link
Owner

AlexxIT commented Jul 13, 2023

#audio=copy#audio=opus broken?

@conorlap
Copy link
Author

@AlexxIT yes appears to be broken

@AlexxIT
Copy link
Owner

AlexxIT commented Jul 13, 2023

As fast fix you can disable OPUS quality fix. At the moment I can't figure out how to combine OPUS quality fix and audio=copy. Related #387

ffmpeg:
  opus: "-c:a libopus -ar:a 48000 -ac:a 2 -application:a voip"

@AlexxIT AlexxIT added bug Something isn't working and removed question Further information is requested labels Jul 13, 2023
@AlexxIT
Copy link
Owner

AlexxIT commented Jul 13, 2023

But you have another issue - json lock
@NickM-27 Does Frigate requests a list of streams? How often?

@NickM-27
Copy link
Contributor

But you have another issue - json lock @NickM-27 Does Frigate requests a list of streams? How often?

Frigate requests the streams every 10 seconds as a go2rtc healthcheck to restart it in case of an error

https://github.com/blakeblackshear/frigate/blob/2d52fbd8e8d899ac9b4387eee590aa4b8afd6764/docker/rootfs/etc/s6-overlay/s6-rc.d/go2rtc-healthcheck/run#L15

@conorlap
Copy link
Author

Maybe the json lock issue is because 2 out of my 3 cameras are switched off at the moment?

There's currently no way to 'turn off' or disable a camera in Frigate. Hopefully this functionality is coming soon.

@NickM-27
Copy link
Contributor

There's currently no way to 'turn off' or disable a camera in Frigate. Hopefully this functionality is coming soon.

it can be turned off in the config, just not via API yet

@AlexxIT
Copy link
Owner

AlexxIT commented Jul 13, 2023

Looks like this is compatible version with audio=copy

ffmpeg:
  opus: "-c:a libopus -ar:a 48000 -ac:a 2 -application:a voip -min_comp 0"

@conorlap
Copy link
Author

@AlexxIT that works for me!

@AlexxIT AlexxIT added this to the v1.6.1 milestone Jul 20, 2023
@AlexxIT
Copy link
Owner

AlexxIT commented Jul 20, 2023

https://github.com/AlexxIT/go2rtc/releases/tag/v1.6.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants