Ffmpeg decoded H264 real-time outflow error, prompt the following error:
Reason analysis: keyframes can be decoded, but when decoding non-keyframes, the error above is reported
1) If we directly take frame by frame from the RTSP stream and transcode YUV from frame by frame, there is no special requirement for AVpacket and AVframe, and the integrity is fine.
2) If the H264 real-time stream is stored in the Shared memory and AVpacket of one frame is read from the Shared memory, the AVframe should not be cycled clean. It is better to make it a member variable, otherwise the non-key frame cannot be decoded, which will cause the above error.
Solution: Make AVframe a member variable. You can’t clean it up once.
Reason analysis: keyframes can be decoded, but when decoding non-keyframes, the error above is reported
1) If we directly take frame by frame from the RTSP stream and transcode YUV from frame by frame, there is no special requirement for AVpacket and AVframe, and the integrity is fine.
2) If the H264 real-time stream is stored in the Shared memory and AVpacket of one frame is read from the Shared memory, the AVframe should not be cycled clean. It is better to make it a member variable, otherwise the non-key frame cannot be decoded, which will cause the above error.
Solution: Make AVframe a member variable. You can’t clean it up once.
Read More:
- Non real time fast synchronization scheme for mobile devices
- Flume monitors a single append file in real time
- Error in the latest version of ffmpeg: ‘codec’_ FLAG_ GLOBAL_ Header ‘undeclared identifier solution
- Converting H264 bit stream to. MP4 format by ffmpeg
- Markdown real time preview of sublime Text3
- Run Python file for the first time with eclipse / pydev: “UTF-8 ‘codec can’t decode byte 0xc4 in position
- Methods of compiling and installing ffmpeg and libx264 in Linux
- Coding and decoding Base64 in Python
- Error in lm.fit (x, y, offset = offset, singular.ok = singular.ok ,…): no (non Na) cases available
- Type error: cannot unpack non Iterable non type object appears when starting Bert server in Ubuntu system
- ERR_CONTENT_DECODING_FAILED error occurs in PHP program, summary of solutions
- Practice — CSS3 — frame animation to achieve special effects
- ArcGIS publishing service analysis report error unresolved 00002 data frame has no space reference
- Ploblematic frame:# C [SrjdDll64.dll+0x314bc]## No core dump will be written. Minidumps are not
- module ‘tensorflow_core._api.v2.train’ has no attribute ‘slice_input_producer’
- Renaming the column name of data frame in R language
- Error analysis of multiple linear regression in R language model.frame.default
- Failed to decode response: zlib_decode(): data error
- How to get the current time in java time string
- Error in Maven packaging web project: webxml attribute is required (or pre existing WEB-INF)/ web.xml if executing in update)