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

H265 : RTMP 推HEVC 流无视频只有声音 #62

Open
lllpaw opened this issue Sep 3, 2022 · 0 comments
Open

H265 : RTMP 推HEVC 流无视频只有声音 #62

lllpaw opened this issue Sep 3, 2022 · 0 comments

Comments

@lllpaw
Copy link

lllpaw commented Sep 3, 2022

Description(描述)

通过硬编 和 修改过的FFMPEG rtmp 推 H265流,SRS 能够接收流,但只有声音无视频。

FFMPEG 按照 https://github.com/runner365/ffmpeg_rtmp_h265 修改.

SRS 4.0

SRS Log(日志):

[2022-08-29 20:38:37.983][Trace][4043223][d3932e0t] complex handshake success
[2022-08-29 20:38:37.983][Trace][4043223][d3932e0t] connect app, tcUrl=rtmp://127.0.0.1:1935/live, pageUrl=, swfUrl=, schema=rtmp, vhost=127.0.0.1, port=1935, app=live, args=null
[2022-08-29 20:38:37.983][Trace][4043223][d3932e0t] protocol in.buffer=0, in.ack=0, out.ack=0, in.chunk=128, out.chunk=128
[2022-08-29 20:38:37.983][Trace][4043223][d3932e0t] client identified, type=fmle-publish, vhost=127.0.0.1, app=live, stream=livestream, param=, duration=0ms
[2022-08-29 20:38:37.983][Trace][4043223][d3932e0t] connected stream, tcUrl=rtmp://127.0.0.1:1935/live, pageUrl=, swfUrl=, schema=rtmp, vhost=defaultVhost, port=1935, app=live, stream=livestream, param=, args=null
[2022-08-29 20:38:37.983][Trace][4043223][d3932e0t] new source, stream_url=/live/livestream
[2022-08-29 20:38:37.983][Trace][4043223][d3932e0t] source url=/live/livestream, ip=127.0.0.1, cache=1, is_edge=0, source_id=/
[2022-08-29 20:38:37.984][Trace][4043223][d3932e0t] new source, stream_url=/live/livestream
[2022-08-29 20:38:37.984][Trace][4043223][d3932e0t] RTC bridge from RTMP, rtmp2rtc=0, keep_bframe=0, merge_nalus=0
[2022-08-29 20:38:37.984][Trace][4043223][d3932e0t] hls: win=60000ms, frag=10000ms, prefix=, path=./objs/nginx/html, m3u8=[app]/[stream].m3u8, ts=[app]/[stream]-[seq].ts, aof=2.00, floor=0, clean=1, waitk=1, dispose=0ms, dts_directly=1
[2022-08-29 20:38:37.984][Trace][4043223][d3932e0t] ignore disabled exec for vhost=defaultVhost
[2022-08-29 20:38:37.984][Trace][4043223][d3932e0t] http: mount flv stream for sid=/live/livestream, mount=/live/livestream.flv
[2022-08-29 20:38:37.984][Trace][4043223][d3932e0t] start publish mr=0/350, p1stpt=20000, pnt=5000, tcp_nodelay=0
[2022-08-29 20:38:37.984][Trace][4043223][d3932e0t] got metadata, width=1920, height=816, vcodec=12, acodec=10
[2022-08-29 20:38:37.984][Warn][4043223][d3932e0t][22] drop unknown header video, size=115, bytes[0]=0x1c
[2022-08-29 20:38:37.984][Trace][4043223][d3932e0t] 4B audio sh, codec(10, profile=LC, 6channels, 0kbps, 48000HZ), flv(16bits, 2channels, 44100HZ)
[2022-08-29 20:38:37.984][Warn][4043223][d3932e0t][22] drop unknown header video, size=2718, bytes[0]=0x1c
[2022-08-29 20:38:37.984][Warn][4043223][d3932e0t][22] drop unknown header video, size=76, bytes[0]=0x2c
[2022-08-29 20:38:37.984][Warn][4043223][d3932e0t][22] drop unknown header video, size=76, bytes[0]=0x2c
[2022-08-29 20:38:38.034][Warn][4043223][d3932e0t][11] drop unknown header video, size=77, bytes[0]=0x2c
[2022-08-29 20:38:38.075][Warn][4043223][d3932e0t][11] drop unknown header video, size=77, bytes[0]=0x2c
[2022-08-29 20:38:38.115][Warn][4043223][d3932e0t][11] drop unknown header video, size=10028, bytes[0]=0x2

SRS Config(配置): 使用默认 srs.conf 配置,没有修改。
listen 1935;
max_connections 1000;
#srs_log_tank file;
#srs_log_file ./objs/srs.log;
daemon on;
http_api {
enabled on;
listen 1985;
}
http_server {
enabled on;
listen 8080;
dir ./objs/nginx/html;
}
rtc_server {
enabled on;
listen 8000; # UDP port

@see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#config-candidate

candidate $CANDIDATE;
}
vhost defaultVhost {
hls {
enabled on;
}
http_remux {
enabled on;
mount [vhost]/[app]/[stream].flv;
}
rtc {
enabled on;

@see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#rtmp-to-rtc

rtmp_to_rtc off;

@see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#rtc-to-rtmp

rtc_to_rtmp off;
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant