Skip to content

Is it possible to support OBS publish HEVC stream over rtmp ? #3464

@cochiachang

Description

@cochiachang

Description

Note that SRS already has HEVC over SRT/HLS/HTTP-TS/WebRTC support, see #465

  1. SRS Version: 6.0.10

  2. SRS Log:

[2023-03-13 19:13:35.025][INFO][4274][52f90744] RTMP client ip=172.16.50.225:52391, fd=83 [2023-03-13 19:13:35.028][INFO][4274][52f90744] simple handshake success. [2023-03-13 19:13:35.029][INFO][4274][52f90744] connect app, tcUrl=rtmp://172.16.46.87/live, pageUrl=, swfUrl=rtmp://172.16.46.87/live, schema=rtmp, vhost=172.16.46.87, port=1935, app=live, args=null [2023-03-13 19:13:35.029][INFO][4274][52f90744] protocol in.buffer=0, in.ack=0, out.ack=0, in.chunk=4096, out.chunk=128 [2023-03-13 19:13:35.103][INFO][4274][52f90744] client identified, type=fmle-publish, vhost=172.16.46.87, app=live, stream=test, param=, duration=0ms [2023-03-13 19:13:35.103][INFO][4274][52f90744] connected stream, tcUrl=rtmp://172.16.46.87/live, pageUrl=, swfUrl=rtmp://172.16.46.87/live, schema=rtmp, vhost=__defaultVhost__, port=1935, app=live, stream=test, param=, args=null [2023-03-13 19:13:35.103][INFO][4274][52f90744] source url=/live/test, ip=172.16.50.225, cache=1/2500, is_edge=0, source_id=/im03rm66 [2023-03-13 19:13:35.161][INFO][4274][52f90744] RTC bridge from RTMP, rtmp2rtc=0, keep_bframe=0, merge_nalus=0 [2023-03-13 19:13:35.162][INFO][4274][52f90744] 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 [2023-03-13 19:13:35.162][INFO][4274][52f90744] ignore disabled exec for vhost=__defaultVhost__ [2023-03-13 19:13:35.162][INFO][4274][52f90744] start publish mr=0/350, p1stpt=20000, pnt=5000, tcp_nodelay=0 [2023-03-13 19:13:35.208][INFO][4274][52f90744] got metadata, width=800, height=450, vcodec=7, acodec=10 [2023-03-13 19:13:35.530][INFO][4274][52f90744] 7B audio sh, codec(10, profile=LC, 2channels, 0kbps, 48000HZ), flv(16bits, 2channels, 44100HZ) 
  1. SRS Config:

same as hevc.flv.conf

Replay

Step 1: Publish stream from OBS v29.0.2, and select encoder QuickSync HEVC
obs setting

Step 2: Start Streaming to SRS server

Step 3: SRS console can see this stream but can not get stream type, and can not play

console

Expect

I can see HEVC format video in srs v6.0.10 from publish stream by ffmpeg, but can not see stream if publish from OBS, and I can publish HEVC format by OBS to youtube, and it is normal.
I expect to use OBS to stream in SRS should also be able to play.

Metadata

Metadata

Assignees

Labels

CodecHEVC, FFmpeg for ingesting, trascoding or codec.EnglishNativeThis issue is conveyed exclusively in English.EnhancementImprovement or enhancement.FeatureIt's a new feature.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions