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

conference record rtsp://x.x.x.x fail ,show Invalid argument #2410

Open
visitewen opened this issue Mar 27, 2024 · 1 comment
Open

conference record rtsp://x.x.x.x fail ,show Invalid argument #2410

visitewen opened this issue Mar 27, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@visitewen
Copy link

Describe the bug
I creat a video conference,use conference record rtsp://... to push stream to Streaming server,but fail ,log show avformat.c:765 Could not open video codec: Invalid argument

Package version or git hash
1.10.11,mod_av build with ffmpeg5.1.3

logs

2024-03-27 20:20:32.676533 99.33% [INFO] avcodec.c:1472 initializing encoder 352x288
2024-03-27 20:20:32.676533 99.33% [DEBUG] avcodec.c:1193 NVENC HW CODEC NOT PRESENT
2024-03-27 20:20:32.676533 99.33% [DEBUG] avcodec.c:1222 Using config profile: [H264]
957a5d5e-492a-4e1f-b912-673387dcdb99 2024-03-27 20:20:32.696528 99.33% [DEBUG] switch_ivr.c:632 sofia/internal/1001@192.168.3.110:64751 Command Execute [depth=1] conference(1458316230@myconf+flags{moderator})
using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
profile Constrained Baseline, level 3.1, 4:2:0, 8-bit
2024-03-27 20:20:32.696528 99.33% [INFO] avcodec.c:1336 codec opened: Video: h264 (libx264) (Baseline), yuv420p(pc, gbr/unknown/unknown), 352x288, 9437 kb/s
957a5d5e-492a-4e1f-b912-673387dcdb99 EXECUTE [depth=1] sofia/internal/1001@192.168.3.110:64751 conference(1458316230@myconf+flags{moderator})
957a5d5e-492a-4e1f-b912-673387dcdb99 2024-03-27 20:20:32.696528 99.33% [DEBUG] switch_rtp.c:1930 rtcp_stats_init: video ssrc[1799030550] base_seq[21510]
2024-03-27 20:20:32.696528 99.33% [DEBUG] conference_video.c:304 Adding layout group grid
2024-03-27 20:20:32.696528 99.33% [DEBUG] conference_video.c:313 Adding node 1x1 to layout group grid
2024-03-27 20:20:32.696528 99.33% [DEBUG] conference_video.c:313 Adding node 2x1 to layout group grid
2024-03-27 20:20:32.696528 99.33% [DEBUG] conference_video.c:313 Adding node 1x1+2x1 to layout group grid
2024-03-27 20:20:32.696528 99.33% [DEBUG] conference_video.c:313 Adding node 2x2 to layout group grid
2024-03-27 20:20:32.696528 99.33% [DEBUG] conference_video.c:313 Adding node 3x3 to layout group grid
2024-03-27 20:20:32.696528 99.33% [DEBUG] conference_video.c:313 Adding node 4x4 to layout group grid
2024-03-27 20:20:32.696528 99.33% [DEBUG] conference_video.c:313 Adding node 5x5 to layout group grid
2024-03-27 20:20:32.696528 99.33% [DEBUG] conference_video.c:313 Adding node 6x6 to layout group grid
2024-03-27 20:20:32.696528 99.33% [DEBUG] conference_video.c:313 Adding node 8x8 to layout group grid
2024-03-27 20:20:32.696528 99.33% [DEBUG] conference_video.c:304 Adding layout group grid-zoom
2024-03-27 20:20:32.696528 99.33% [DEBUG] conference_video.c:313 Adding node 1x1 to layout group grid-zoom
2024-03-27 20:20:32.696528 99.33% [DEBUG] conference_video.c:313 Adding node 2x1-zoom to layout group grid-zoom
2024-03-27 20:20:32.696528 99.33% [DEBUG] conference_video.c:313 Adding node 3x1-zoom to layout group grid-zoom
2024-03-27 20:20:32.696528 99.33% [DEBUG] conference_video.c:313 Adding node 2x2 to layout group grid-zoom
2024-03-27 20:20:32.696528 99.33% [DEBUG] conference_video.c:313 Adding node 5-grid-zoom to layout group grid-zoom
2024-03-27 20:20:32.696528 99.33% [DEBUG] conference_video.c:313 Adding node 3x2-zoom to layout group grid-zoom
2024-03-27 20:20:32.696528 99.33% [DEBUG] conference_video.c:313 Adding node 7-grid-zoom to layout group grid-zoom
2024-03-27 20:20:32.696528 99.33% [DEBUG] conference_video.c:313 Adding node 4x2-zoom to layout group grid-zoom
2024-03-27 20:20:32.696528 99.33% [DEBUG] conference_video.c:313 Adding node 3x3 to layout group grid-zoom
2024-03-27 20:20:32.696528 99.33% [DEBUG] conference_video.c:304 Adding layout group 1up_top_left_plus
2024-03-27 20:20:32.696528 99.33% [DEBUG] conference_video.c:313 Adding node 1up_top_left+5 to layout group 1up_top_left_plus
2024-03-27 20:20:32.696528 99.33% [DEBUG] conference_video.c:313 Adding node 1up_top_left+7 to layout group 1up_top_left_plus
2024-03-27 20:20:32.696528 99.33% [DEBUG] conference_video.c:313 Adding node 1up_top_left+9 to layout group 1up_top_left_plus
2024-03-27 20:20:32.696528 99.33% [DEBUG] conference_video.c:304 Adding layout group 3up_plus
2024-03-27 20:20:32.696528 99.33% [DEBUG] conference_video.c:313 Adding node 3up+4 to layout group 3up_plus
2024-03-27 20:20:32.696528 99.33% [DEBUG] conference_video.c:313 Adding node 3up+9 to layout group 3up_plus
2024-03-27 20:20:32.696528 99.33% [DEBUG] mod_conference.c:3458 using channel sound prefix: /usr/local/freeswitch/sounds
2024-03-27 20:20:32.696528 99.33% [DEBUG] conference_video.c:1695 Canvas position 1 applied layout 1x1
2024-03-27 20:20:32.696528 99.33% [DEBUG] conference_video.c:1816 Layout set to 1x1
2024-03-27 20:20:32.696528 99.33% [DEBUG] conference_video.c:1776 Canvas attached to position 0
2024-03-27 20:20:32.696528 99.33% [WARNING] switch_event.c:2999 no subscribers for conference-info.1458316230@192.168.3.6 , mod_conference
957a5d5e-492a-4e1f-b912-673387dcdb99 2024-03-27 20:20:32.696528 99.33% [DEBUG] conference_member.c:1804 Raw Codec Activation Success L16@8000hz 1 channel 20ms
2024-03-27 20:20:32.696528 99.33% [DEBUG] mod_conference.c:229 Setup timer success interval: 20 samples: 960
957a5d5e-492a-4e1f-b912-673387dcdb99 2024-03-27 20:20:32.696528 99.33% [DEBUG] conference_member.c:1851 Raw Codec Activation Success L16@48000hz 2 channel 20ms
957a5d5e-492a-4e1f-b912-673387dcdb99 2024-03-27 20:20:32.696528 99.33% [DEBUG] switch_core_codec.c:229 sofia/internal/1001@192.168.3.110:64751 Push codec L16:100
2024-03-27 20:20:32.716509 99.33% [DEBUG] switch_core_file.c:444 File /usr/local/freeswitch/sounds/conference/conf-alone.wav sample rate 8000 doesn't match requested rate 48000
2024-03-27 20:20:32.716509 99.33% [WARNING] switch_core_file.c:463 File has 1 channels, muxing to 2 channels will occur.
2024-03-27 20:20:32.716509 99.33% [DEBUG] conference_member.c:106 sofia/internal/1001@192.168.3.110:64751 binding '0' to 'mute'
2024-03-27 20:20:32.716509 99.33% [INFO] switch_ivr_async.c:221 Digit parser mod_conference: Setting realm to 'conf'
2024-03-27 20:20:32.716509 99.33% [DEBUG] switch_ivr_async.c:346 Digit parser mod_conference: binding 0/conf/0 callback: 0x7f55c15ca260 data: 0x7f55600efe08
2024-03-27 20:20:32.716509 99.33% [DEBUG] conference_member.c:106 sofia/internal/1001@192.168.3.110:64751 binding '*' to 'deaf mute'
2024-03-27 20:20:32.716509 99.33% [DEBUG] switch_ivr_async.c:346 Digit parser mod_conference: binding */conf/0 callback: 0x7f55c15ca260 data: 0x7f55600efe38
2024-03-27 20:20:32.716509 99.33% [DEBUG] conference_member.c:106 sofia/internal/1001@192.168.3.110:64751 binding '9' to 'energy up'
2024-03-27 20:20:32.716509 99.33% [DEBUG] switch_ivr_async.c:346 Digit parser mod_conference: binding 9/conf/0 callback: 0x7f55c15ca260 data: 0x7f55600efe68
2024-03-27 20:20:32.716509 99.33% [DEBUG] conference_member.c:106 sofia/internal/1001@192.168.3.110:64751 binding '8' to 'energy equ'
2024-03-27 20:20:32.716509 99.33% [DEBUG] switch_ivr_async.c:346 Digit parser mod_conference: binding 8/conf/0 callback: 0x7f55c15ca260 data: 0x7f55600efe98
2024-03-27 20:20:32.716509 99.33% [DEBUG] conference_member.c:106 sofia/internal/1001@192.168.3.110:64751 binding '7' to 'energy dn'
2024-03-27 20:20:32.716509 99.33% [DEBUG] switch_ivr_async.c:346 Digit parser mod_conference: binding 7/conf/0 callback: 0x7f55c15ca260 data: 0x7f55600efec8
2024-03-27 20:20:32.716509 99.33% [DEBUG] conference_member.c:106 sofia/internal/1001@192.168.3.110:64751 binding '3' to 'vol talk up'
2024-03-27 20:20:32.716509 99.33% [DEBUG] switch_ivr_async.c:346 Digit parser mod_conference: binding 3/conf/0 callback: 0x7f55c15ca260 data: 0x7f55600efef8
2024-03-27 20:20:32.716509 99.33% [DEBUG] conference_member.c:106 sofia/internal/1001@192.168.3.110:64751 binding '2' to 'vol talk zero'
2024-03-27 20:20:32.716509 99.33% [DEBUG] switch_ivr_async.c:346 Digit parser mod_conference: binding 2/conf/0 callback: 0x7f55c15ca260 data: 0x7f55600eff28
2024-03-27 20:20:32.716509 99.33% [DEBUG] conference_member.c:106 sofia/internal/1001@192.168.3.110:64751 binding '1' to 'vol talk dn'
2024-03-27 20:20:32.716509 99.33% [DEBUG] switch_ivr_async.c:346 Digit parser mod_conference: binding 1/conf/0 callback: 0x7f55c15ca260 data: 0x7f55600eff58
2024-03-27 20:20:32.716509 99.33% [DEBUG] conference_member.c:106 sofia/internal/1001@192.168.3.110:64751 binding '6' to 'vol listen up'
2024-03-27 20:20:32.716509 99.33% [DEBUG] switch_ivr_async.c:346 Digit parser mod_conference: binding 6/conf/0 callback: 0x7f55c15ca260 data: 0x7f55600eff88
2024-03-27 20:20:32.716509 99.33% [DEBUG] conference_member.c:106 sofia/internal/1001@192.168.3.110:64751 binding '5' to 'vol listen zero'
2024-03-27 20:20:32.716509 99.33% [DEBUG] switch_ivr_async.c:346 Digit parser mod_conference: binding 5/conf/0 callback: 0x7f55c15ca260 data: 0x7f55600effb8
2024-03-27 20:20:32.716509 99.33% [DEBUG] conference_member.c:106 sofia/internal/1001@192.168.3.110:64751 binding '4' to 'vol listen dn'
2024-03-27 20:20:32.716509 99.33% [DEBUG] switch_ivr_async.c:346 Digit parser mod_conference: binding 4/conf/0 callback: 0x7f55c15ca260 data: 0x7f55600effe8
2024-03-27 20:20:32.716509 99.33% [DEBUG] conference_member.c:106 sofia/internal/1001@192.168.3.110:64751 binding '#' to 'hangup'
2024-03-27 20:20:32.716509 99.33% [DEBUG] switch_ivr_async.c:346 Digit parser mod_conference: binding #/conf/0 callback: 0x7f55c15ca260 data: 0x7f55600f0018
2024-03-27 20:20:32.716509 99.33% [WARNING] switch_event.c:2999 no subscribers for conference-liveArray.1458316230@192.168.3.6 , src/switch_event.c
2024-03-27 20:20:32.716509 99.33% [WARNING] switch_event.c:2999 no subscribers for 957a5d5e-492a-4e1f-b912-673387dcdb99 , mod_conference
2024-03-27 20:20:32.716509 99.33% [WARNING] switch_event.c:2999 no subscribers for conference-info.1458316230@192.168.3.6 , mod_conference
2024-03-27 20:20:32.716509 99.33% [WARNING] switch_event.c:2999 no subscribers for conference-liveArray.1458316230@192.168.3.6 , src/switch_event.c
2024-03-27 20:20:32.716509 99.33% [WARNING] switch_event.c:2999 no subscribers for conference.1458316230@192.168.3.6 , mod_conference
2024-03-27 20:20:32.716509 99.33% [WARNING] switch_event.c:2999 no subscribers for conference-liveArray.1458316230@192.168.3.6 , src/switch_event.c
957a5d5e-492a-4e1f-b912-673387dcdb99 2024-03-27 20:20:32.716509 99.33% [DEBUG] conference_loop.c:1347 Setup timer soft success interval: 20 samples: 160 from codec PCMU
957a5d5e-492a-4e1f-b912-673387dcdb99 2024-03-27 20:20:32.716509 99.33% [DEBUG] conference_loop.c:1504 Outbound conference channel answered, setting CFLAG_ANSWERED
957a5d5e-492a-4e1f-b912-673387dcdb99 2024-03-27 20:20:32.716509 99.33% [DEBUG] switch_rtp.c:1930 rtcp_stats_init: audio ssrc[635246780] base_seq[5643]
2024-03-27 20:20:32.716509 99.33% [WARNING] switch_event.c:2999 no subscribers for conference-liveArray.1458316230@192.168.3.6 , src/switch_event.c
2024-03-27 20:20:32.736533 99.33% [NOTICE] avcodec.c:1393 codec: id=27 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
2024-03-27 20:20:32.736533 99.33% [DEBUG] conference_video.c:3381 Setting up video write codec H264 at slot 0 group none
2024-03-27 20:20:32.736533 99.33% [WARNING] switch_event.c:2999 no subscribers for conference-liveArray.1458316230@192.168.3.6 , src/switch_event.c
957a5d5e-492a-4e1f-b912-673387dcdb99 2024-03-27 20:20:32.736533 99.33% [NOTICE] switch_core_media.c:16001 Activating write resampler
957a5d5e-492a-4e1f-b912-673387dcdb99 2024-03-27 20:20:32.736533 99.33% [DEBUG] switch_rtp.c:7695 Correct video ip/port confirmed.
2024-03-27 20:20:32.736533 99.33% [DEBUG] avcodec.c:1746 Error sending packet to decoder
2024-03-27 20:20:32.756533 99.33% [INFO] avcodec.c:1472 initializing encoder 1280x720
2024-03-27 20:20:32.756533 99.33% [DEBUG] avcodec.c:1193 NVENC HW CODEC NOT PRESENT
2024-03-27 20:20:32.756533 99.33% [DEBUG] avcodec.c:1222 Using config profile: [H264]
using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
profile Constrained Baseline, level 3.1, 4:2:0, 8-bit
2024-03-27 20:20:32.776508 99.33% [INFO] avcodec.c:1336 codec opened: Video: h264 (libx264) (Baseline), yuv420p(pc, gbr/unknown/unknown), 1280x720, 9437 kb/s
957a5d5e-492a-4e1f-b912-673387dcdb99 2024-03-27 20:20:32.796534 99.33% [DEBUG] switch_rtp.c:7695 Correct audio ip/port confirmed.
957a5d5e-492a-4e1f-b912-673387dcdb99 2024-03-27 20:20:32.796534 99.33% [DEBUG] switch_rtp.c:7125 Correct video RTCP ip/port confirmed.
2024-03-27 20:20:32.796534 99.33% [DEBUG] avcodec.c:1746 Error sending packet to decoder
2024-03-27 20:20:32.816514 99.33% [DEBUG] avformat.c:2208 sample rate: 48000, channels: 2
2024-03-27 20:20:32.816514 99.33% [DEBUG] avformat.c:2386 use video codec: [12] mpeg4 (MPEG-4 part 2)
2024-03-27 20:20:32.816514 99.33% [NOTICE] avformat.c:839 sample_rate: 48000 nb_samples: 1024
2024-03-27 20:20:32.816514 99.33% [NOTICE] avformat.c:842 sample_fmt 8 != AV_SAMPLE_FMT_S16, start resampler
Output #0, rtsp, to 'rtsp://192.168.3.5/live/test?secret=035c73f7-bb6b-4889-a715-d9eb2d1925cc':
Stream #0:0: Audio: aac (LC), 48000 Hz, stereo, fltp, 131 kb/s
2024-03-27 20:20:32.816514 99.33% [INFO] avformat.c:2458 Opening File [rtsp://192.168.3.5/live/test?secret=035c73f7-bb6b-4889-a715-d9eb2d1925cc] 48000hz
2024-03-27 20:20:32.816514 99.33% [DEBUG] conference_record.c:304 Setup timer success interval: 20 samples: 960
2024-03-27 20:20:32.816514 99.33% [WARNING] switch_event.c:2999 no subscribers for conference.1458316230@192.168.3.6 , mod_conference
2024-03-27 20:20:32.836533 99.33% [DEBUG] avformat.c:706 colorspace = 1
2024-03-27 20:20:32.836533 99.33% [ERR] avformat.c:765 Could not open video codec: Invalid argument
2024-03-27 20:20:32.836533 99.33% [ERR] avformat.c:3352 Error adding video stream
2024-03-27 20:20:32.836533 99.33% [DEBUG] conference_video.c:2436 Video Write Failed
Qavg: nan
2024-03-27 20:20:32.836533 99.33% [WARNING] switch_event.c:2999 no subscribers for conference.1458316230@192.168.3.6 , mod_conference
2024-03-27 20:20:32.836533 99.33% [INFO] conference_record.c:425 Recording of {video_time_audio=false,channels=2,samplerate=48000,vw=1280,vh=720,fps=30.30}rtsp://192.168.3.5/live/test?secret=035c73f7-bb6b-4889-a715-d9eb2d1925cc Stopped
2024-03-27 20:20:32.876519 99.33% [DEBUG] avcodec.c:1746 Error sending packet to decoder
957a5d5e-492a-4e1f-b912-673387dcdb99 2024-03-27 20:20:32.936512 99.20% [DEBUG] switch_rtp.c:7125 Correct audio RTCP ip/port confirmed.
957a5d5e-492a-4e1f-b912-673387dcdb99 2024-03-27 20:20:32.936512 99.20% [DEBUG] conference_member.c:1804 Raw Codec Activation Success L16@8000hz 1 channel 20ms
957a5d5e-492a-4e1f-b912-673387dcdb99 2024-03-27 20:20:32.936512 99.20% [DEBUG] conference_member.c:1851 Raw Codec Activation Success L16@48000hz 2 channel 20ms
957a5d5e-492a-4e1f-b912-673387dcdb99 2024-03-27 20:20:32.936512 99.20% [DEBUG] conference_loop.c:1347 Setup timer soft success interval: 20 samples: 160 from codec PCMU
2024-03-27 20:20:33.056516 99.20% [DEBUG] avcodec.c:1746 Error sending packet to decoder
2024-03-27 20:20:33.076512 99.20% [DEBUG] avcodec.c:1746 Error sending packet to decoder
Reinit context to 192x128, pix_fmt: yuv420p
2024-03-27 20:20:35.436512 98.23% [WARNING] mod_local_stream.c:875 Unknown source moh, trying 'default'
2024-03-27 20:20:35.436512 98.23% [DEBUG] mod_local_stream.c:912 Opening Stream [default] 8000hz
2024-03-27 20:20:35.436512 98.23% [DEBUG] switch_core_file.c:444 File moh sample rate 8000 doesn't match requested rate 48000
2024-03-27 20:20:35.436512 98.23% [WARNING] switch_core_file.c:463 File has 1 channels, muxing to 2 channels will occur.

@visitewen visitewen added the bug Something isn't working label Mar 27, 2024
@pinke
Copy link

pinke commented Apr 18, 2024

I've also encountered problems with RTSP streaming; it doesn't work, while RTMP does.
Is there a solution to this issue yet?

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

2 participants