Open dodolzg opened 6 years ago
I found that it is composed of SPS+PPS+IDR after analysised the h264stream. There is no AUD NAL unit at the beginning of each PES packet. And I rechecked the spec ——
"Access Unit Delimiter (AUD). An AUD is an optional NALU that can be use to delimit frames in an elementary stream. It is not required (unless otherwise stated by the container/protocol, like TS), and is often not included in order to save space, but it can be useful to finds the start of a frame without having to fully parse each NALU."
Can nginx-rtmp-module support this case?
libx264-1.ts is sliced by libx264 rtmp stream(-vcodec libx264), and there are SPS+PPS+IDR_SLICE frames copy-1.ts is sliced by libx264 rtmp stream(-vcodec copy), and there are no SPS+PPS+IDR_SLICE frames
ffprobe -i copy-1.ts shows error info
[h264 @ 0x3fd7600] decode_slice_header error [h264 @ 0x3fd7600] no frame! [h264 @ 0x3fd7600] non-existing PPS 1 referenced Last message repeated 1 times
Hi, did you try to add -bsf:v h264_mp4toannexb
to your command?
@portokala123 same with case1, hls works about previous 10 seconds, but there is no video after 10s (only audio).
/usr/local/ffmpeg/bin/ffmpeg -re -i 1.webm -acodec aac -vcodec copy -bsf:v h264_mp4toannexb -f flv rtmp://localhost:1935/dev_hls_camera/test3
Here is my config
Video is recorded by chrome H5 API MediaRecorder with "video/webm\;codecs=h264"
Case 1:
rtmp works, hls works about previous 10 seconds, but there is no video after 10s (only audio).
Case 2:
rtmp works, hls works.
Does nginx-rtmp support "h264 (Constrained Baseline)", Or only support "libx264"?
Frames detail Video url