h.264

Using OpenH264 DLL in C# Project

非 Y 不嫁゛ 提交于 2021-02-20 00:42:40
问题 I'm receiving an H264 stream over UDP. I'd like to decode the stream so I can send frames to OpenCV or whatever. I came across Cisco's open sourced H264 decoder here: https://github.com/cisco/openh264 With a little effort I got the decoder solution to build in Visual Studio 2019 and tested it from the command line with a file I created from the raw UDP datagrams. It works. Now I want to figure out how to use the decoder DLL (welsdec.dll) in a C# project. The last time I did anything serious

Using OpenH264 DLL in C# Project

不羁岁月 提交于 2021-02-20 00:42:12
问题 I'm receiving an H264 stream over UDP. I'd like to decode the stream so I can send frames to OpenCV or whatever. I came across Cisco's open sourced H264 decoder here: https://github.com/cisco/openh264 With a little effort I got the decoder solution to build in Visual Studio 2019 and tested it from the command line with a file I created from the raw UDP datagrams. It works. Now I want to figure out how to use the decoder DLL (welsdec.dll) in a C# project. The last time I did anything serious

Poor performance on H264 decoding

坚强是说给别人听的谎言 提交于 2021-02-08 11:25:50
问题 I'm decoding a H264 video stream using Media Foundation. It works, but performance is really poor on both Windows (desktop) and HoloLens 2 (UWP). Decoding a single 1920x1080 frame takes 30 ms on a fairly powerful PC, 100 ms on the HoloLens . I'm wondering if it's using software rendering instead of hardware rendering. Any idea on how to make sure that I'm doing hardware decoding, or any other hints on how to improve performance? The code is as follows: Decode.cpp: #include "MFUtility.h"

Lossless RGB24 to YUV444 transformation

混江龙づ霸主 提交于 2021-02-08 07:55:42
问题 I am currently attempting to undergo lossless compression of RGB24 files using H264 on FFMPEG. However, the color space transformation used in the H264 compression (RGB24 -> YUV444) has proven to be lossy (I'm guessing due to quantisation error). Is there anything else I can use (eg a program) to transform my RGB24 files to YUV losslessly, before compressing them with lossless H264? The ultimate goal is to compress an RGB24 file then decompress it, with the decompressed file exactly matching

Find frame rate SPS

本秂侑毒 提交于 2021-02-08 07:50:37
问题 I have been reading several posts (http://tinyurl.com/nqtfh9a...) and links (http://www.cardinalpeak.com/blog/the-h-264-sequence-parameter-set/) about SPS and PPS, but cannot really get the idea. I have bought an encoder with a SDK. In the specifications, it gives me this SPS and PPS, and I was wondering if there is any frame rate information here: SPS= 0x00, 0x00, 0x00, 0x01, 0x67, 0x42, 0x00, 0x1e, 0x9a, 0x74, 0x05, 0x81, 0xec, 0x80 I used an h264 analyzer and I got this information: Found

Find frame rate SPS

孤者浪人 提交于 2021-02-08 07:50:21
问题 I have been reading several posts (http://tinyurl.com/nqtfh9a...) and links (http://www.cardinalpeak.com/blog/the-h-264-sequence-parameter-set/) about SPS and PPS, but cannot really get the idea. I have bought an encoder with a SDK. In the specifications, it gives me this SPS and PPS, and I was wondering if there is any frame rate information here: SPS= 0x00, 0x00, 0x00, 0x01, 0x67, 0x42, 0x00, 0x1e, 0x9a, 0x74, 0x05, 0x81, 0xec, 0x80 I used an h264 analyzer and I got this information: Found

ffmpeg decoding slow calling without avformat_find_stream_info

江枫思渺然 提交于 2021-02-08 00:24:05
问题 I am decoding h264 rtp stream with ffmpeg on android. I found a strange problem: if I don't call avformat_find_stream_info ,decoding P frame takes tens of micro seconds, by contrast, calling avformat_find_stream_info before decoding will reduce P frame decoding time to less than 1 ms on average. However, avformat_find_stream_info itself is time consuming on network streams. Are there anything I can do to make decoding fast without calling avformat_find_stream_info ? 回答1: When avformat_find

ffmpeg decoding slow calling without avformat_find_stream_info

China☆狼群 提交于 2021-02-08 00:22:27
问题 I am decoding h264 rtp stream with ffmpeg on android. I found a strange problem: if I don't call avformat_find_stream_info ,decoding P frame takes tens of micro seconds, by contrast, calling avformat_find_stream_info before decoding will reduce P frame decoding time to less than 1 ms on average. However, avformat_find_stream_info itself is time consuming on network streams. Are there anything I can do to make decoding fast without calling avformat_find_stream_info ? 回答1: When avformat_find

ffmpeg decoding slow calling without avformat_find_stream_info

拥有回忆 提交于 2021-02-08 00:20:27
问题 I am decoding h264 rtp stream with ffmpeg on android. I found a strange problem: if I don't call avformat_find_stream_info ,decoding P frame takes tens of micro seconds, by contrast, calling avformat_find_stream_info before decoding will reduce P frame decoding time to less than 1 ms on average. However, avformat_find_stream_info itself is time consuming on network streams. Are there anything I can do to make decoding fast without calling avformat_find_stream_info ? 回答1: When avformat_find