-
Notifications
You must be signed in to change notification settings - Fork 470
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
多路同时推、拉流,报Broken pipe #149
Comments
推1路没问题?推3路有问题? 推流的流名称是不是重了? 把ffmpeg推流时候的码率分辨率调低点试试。 可以把lalserver的日志发我看下,位置在 /logs/lalserver.log |
推流名称没有重复, 日志文件太大了,下面是最后的一部分: |
看日志只有一个group,也即GROUP1, |
启动docker: ffmpeg -f libk_video -wh 1920x1080 -sensor 3 -i video="test" -f alsa -ac 2 -ar 32000 -i hw:0 -idr_freq 25 -vcodec libk_h264 -acodec aac -f rtsp rtsp://10.20.1.55:5544/xxxx/com26 ffmpeg -f libk_video -wh 1920x1080 -sensor 3 -i video="test" -f alsa -ac 2 -ar 32000 -i hw:0 -idr_freq 25 -vcodec libk_h264 -acodec aac -f rtsp rtsp://10.20.1.55:5544/xxxx/com27 ffmpeg -f libk_video -wh 1920x1080 -sensor 3 -i video="test" -f alsa -ac 2 -ar 32000 -i hw:0 -idr_freq 25 -vcodec libk_h264 -acodec aac -f rtsp rtsp://10.20.1.55:5544/xxxx/com28 |
要不试试不用docker,跑原生的? |
我先试试,多谢了! |
直接执行 lalserver 报./conf里面的证书找不到
我把conf丢到bin目录里面执行lalserver 就可以了:
|
超时移入 #37 管理。 |
用如下命令推流:
ffmpeg -f libk_video -wh 1920x1080 -sensor 3 -i video="test
" -f alsa -ac 2 -ar 32000 -i hw:0 -idr_freq 25 -vcodec libk_h264 -acodec aac
-f rtsp rtsp://10.20.1.55:5544/xxxx/com28
ffmpeg version 4.4 Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 7.3.0 (2019-11-20_nds64le-linux-glibc-v5d-6c120106e03)
configuration: --cross-prefix=riscv64-linux- --enable-cross-compile --target-os=linux --cc=riscv64-linux-gcc --arch=riscv64 --extra-ldflags=-L./ --extra-ldflags=-ldl --extra-ldflags='-Wl,-rpath .' --enable-static --enable-libk_video --enable-libk_h264 --enable-libk_jpeg --enable-alsa --disable-autodetect --disable-ffplay --disable-ffprobe --disable-doc --enable-audio3a --enable-indev=v4l2
libavutil 56. 70.100 / 56. 70.100
libavcodec 58.134.100 / 58.134.100
libavformat 58. 76.100 / 58. 76.100
libavdevice 58. 13.100 / 58. 13.100
libavfilter 7.110.100 / 7.110.100
libswscale 5. 9.100 / 5. 9.100
libswresample 3. 9.100 / 3. 9.100
0x970E00f4: from 0x00550000 to 0x00110000
0x970E00f8: from 0x00000000 to 0x00770000
0x970E00fc: from 0x0fffff00 to 0x0fffff00
0x99900290: from 0x00000133 to 0x00000110
0x9990028c: from 0x00000001 to 0x00000000
0x9990038c: from 0x00000003 to 0x00000000
0x99900388: from 0x80000501 to 0x80000707
0x98000504: from 0x0001ffff to 0x00010303
k_video_read_header>w 1920, h 1080, stride = 1920
alloc_memory>phy_addr 0x1aebd000, size 68431872
k_video_read_header>isp_buf_paddr 0x1aebd000, isp_buf_vaddr 0x565000, isp_buf_size 68428800
isp_video
ds0 block alloc:0x1aabc000,size:4194304,align 4096
ds0_out_addr =0x1aabc000
twod block alloc:0x182bb000,size:41943040,align 4096
isp_info.ds1_addr is 1aebd000 isp_info.ds1_stride is 780
video_set_mipicsi start!
set_vi_params
set_isp_params
run_video!!
Open struct isp_device addr = 0x25c0b0,vi = 0x25c150,mmio_base = 0x92620700
[ 18.682787] mipi_coner_init done, pvt code 0x1ffff
[ 19.126175] lcd init ok lcd is 1 ---------------------------------!!!
[ 19.133179] mipi_dsi_init done
[ 19.136259] mipi_rx_dphy_init done!
Call cmd ISP_CMD_MIPI_DSI_INIT s[ 19.139902] isp_act_sensor_rst success
uccss
system is ready to Release rst_n
system rst_n has all release
system rst_n has all release
i2c_num = 0
imx219_i2c_init config done
Isp_f2k_Init start
Isp_f2k_Init end
video_in_Init start
vi_wrap_config start
struct isp_device = 0x25c0b0,vi= 0x25c150
vi_wrap_rst
struct isp_device 0x25c0b0,VI_WRAP_SWRST_CTL = 0x34f
vi_wrap_config end
video_in_Init end
Imx219_1080p30_init
reg is 100 val is 1
reg is 30eb val is 0
reg is 30eb val is 0
reg is 300a val is ff
reg is 300b val is ff
reg is 30eb val is 0
reg is 30eb val is 0
reg is 114 val is 1
reg is 128 val is 0
reg is 12a val is 18
reg is 12b val is 0
reg is 160 val is 4
reg is 161 val is 8e
reg is 162 val is d
reg is 163 val is 94
reg is 164 val is 2
reg is 165 val is a8
reg is 166 val is a
reg is 167 val is 27
reg is 168 val is 2
reg is 169 val is b4
reg is 16a val is 6
reg is 16b val is eb
reg is 16c val is 7
reg is 16d val is 80
reg is 16e val is 4
reg is 16f val is 38
reg is 170 val is 1
reg is 171 val is 1
reg is 174 val is 0
reg is 175 val is 0
reg is 301 val is 5
reg is 303 val is 1
reg is 304 val is 3
reg is 305 val is 3
reg is 306 val is 0
reg is 307 val is 26
reg is 30b val is 1
reg is 30c val is 0
reg is 30d val is 30
reg is 624 val is 7
reg is 625 val is 80
reg is 626 val is 4
reg is 627 val is 38
reg is 455e val is 0
reg is 471e val is 0
reg is 4767 val is 0
reg is 4750 val is 0
reg is 4540 val is 0
reg is 47b4 val is 0
reg is 4713 val is 0
reg is 478b val is 0
reg is 478f val is 0
reg is 4793 val is 0
reg is 4797 val is 0
reg is 479b val is 0
reg is 157 val is 40
reg is 158 val is 1
reg is 159 val is 0
reg is 15a val is 3
reg is 15b val is e8
reg is 100 val is 1
isp_f2k_core_table_init start!
Isp2K RGB Gamma TABLE config done!
Isp2K YUV Gamma TABLE config done!
VO VCoef Config done![ 23.393613] plat->ds1_addr is1aebd000
VO HCoef Config done!
VO GA[ 23.397728] plat->ds1_buf_cut is 14
MMA Coef Config done!
Call cmd [ 23.404124] ISP_CMD_SET_DS1_SIZE fram_uv_addr is 1fa400
ISP_CMD_DS1_ADDR succss
Call cmd ISP_CMD_DS1_BUFF_COUNT succss
Call cmd ISP_CMD_SET_DS1_SIZE succss
k_video_read_header>fd_isp: 0x7
isp_ouput
Input #0, libk_video, from 'video=test':
Duration: N/A, start: 0.033333, bitrate: 746496 kb/s
Stream #0:0: Video: rawvideo (NV12 / 0x3231564E), nv12, 1920x1080, 746496 kb/s, 30 tbr, 30 tbn, 30 tbc
Guessed Channel Layout for Input Stream #1.0 : stereo
Input #1, alsa, from 'hw:0':
Duration: N/A, start: 1650597527.574041, bitrate: 1024 kb/s
Stream #1:0: Audio: pcm_s16le, 32000 Hz, stereo, s16, 1024 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libk_h264))
Stream #1:0 -> #0:1 (pcm_s16le (native) -> aac (native))
Press [q] to stop, [?] for help
alloc_memory>phy_addr 0x17ccb000, size 6221824
k_h264_encode_init>yuv_vAddr 0x2007338000, yuv_phyAddr 0x17ccb000, yuv_size 6220800
Encoder Settings:
width : 1920
height : 1080
level : 42
profile : 2
FreqIDR : 25
gopLen : 25
FrameRate : 30
rcMode : 1
SliceQP : 25
bitrate : 4000000
maxbitrate : 4000000
AL_ShareMemAlloc_Create>fd_ddr 0xe, fd_share_memory 0xd
---- FPGA board is ready ----
Board UID : 30AB6E51
Board HW ID : 620000E0
Board rev. : DC4054E7
Board date : 20191115
Create_OutBuffers>count 4, size 3172352
VideoEncoder_Create>ok, hEnc 0x19c6eb0
pic: format 23, linesize 1920, 1920, 0, pts 0
pic data 0x1d255800, 0x1d44fc00, (nil), (nil), (nil), (nil), (nil), (nil)
[alsa @ 0x19aa580] Thread message queue blocking; consider raising the thread_queue_size option (current value: 8)
Output #0, rtsp, to 'rtsp://10.20.1.55:5544/xxxx/com28':
Metadata:
encoder : Lavf58.76.100
Stream #0:0: Video: h264, nv12(progressive), 1920x1080, q=2-31, 30 fps, 90k tbn
Metadata:
encoder : Lavc58.134.100 libk_h264
Stream #0:1: Audio: aac (LC), 32000 Hz, stereo, fltp, 128 kb/s
Metadata:
encoder : Lavc58.134.100 aac
[libk_video @ 0x19a63d0] Thread message queue blocking; consider raising the thread_queue_size option (current value: 8)
av_interleaved_write_frame(): Broken pipe00:00:15.60 bitrate=N/A speed=0.995x
Receive NULL pic
Last message repeated 1 times
Error writing trailer of rtsp://10.20.1.55:5544/xxxx/com28: Broken pipe
frame= 482 fps= 30 q=-0.0 Lsize=N/A time=00:00:16.09 bitrate=N/A speed=0.994x
video:7870kB audio:253kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
k_h264_encode_close>
VideoEncoder_Destroy>ch 0 ok
[aac @ 0x19c1ec0] Qavg: 161.536
QoS restore
k_video_read_close>
Conversion failed!
然后在vlc里拉流,单独推、拉,还是比较稳定的,如果多路,比如同时推、拉3 路,过一会就会报上面的 Broken pipe
部署是直接用docker启动的。 是不是我哪里做错了?
The text was updated successfully, but these errors were encountered: