2,774 questions
Score of 0
1 answer
92 views
h264 chroma_format_idc field in sps
I am confused that if chroma_format_idc in sps field is 0 (Zero), Do I process Chroma format like 4:2:0 ?
ISO_IEC 14996-10. Table 6-1 – SubWidthC, and SubHeightC values derived from chroma_format_idc ...
Score of 0
1 answer
71 views
I am confused about whether I need to calculate sar_width and sar_height
I am trying to get the width and height from sps.
H264 getting frame height and width from sequence parameter set (SPS) NAL unit
Step by step
step 1. Parsing sequence parameters fields. ( ...
Score of 0
1 answer
105 views
Android Camera2 front camera encoder surface: physical tilt appears doubled in encoded H.264 NALs - why?
I am writing an Android app (Flutter/Kotlin) where the display device films using its front camera via Camera2 and feeds H.264 NALs directly into a MediaCodec decoder for live display. The encoded ...
Score of 2
0 answers
141 views
C# WinUI3 Is it possible to use ffmpeg to decode using hardware and then render using win2d?
I'm using FFmpeg.AutoGen and Microsoft.Graphics.Win2D in C# to decode and render from an H264 Frame byte[] event. I've currently achieved smooth AirPlay screen mirroring using CanvasAnimatedControl ...
Score of 2
1 answer
181 views
Can someone parse this H264/AVC SPS payload? [closed]
I am trying to parse this SPS payload to understand the H264 codec better, I am successful for the most part, but having hard time parsing or understanding num_units_in_tick and time_scale details for ...
Score of 1
0 answers
123 views
Resolution constraints for MediaFoundation SinkWriter for H264/MP4?
I'm doing something very similar to this tutorial for using MediaFoundation SinkWriter for encoding video from a set of frames, except that I'm initializing it with MFVideoFormat_H264 to output .mp4 ...
Score of 0
1 answer
89 views
the mediacode become too slow when the APP go background?
I am using MediaCodec to transform the screen to H.264 and then send it to my desktop C++ software.
And when the app goes to the background (I open another), the H264 becomes too slow.
Then I think I ...
Score of 1
1 answer
268 views
ffmpeg how to set max_num_reorder_frames H264
Anyone know how can I set max_num_reorder_frames to 0 when I am encoding H264 video ?
You can find in the docs as uint8_t H264RawVUI::bitstream_restriction_flag
PS. Based on the discussion in the ...
Score of 1
2 answers
193 views
Using gstreamer discoverer inside C++ code
currently I’m building an application that will need to handle different types of streams, some of them are H264 and some other are MJPEG, thus I’m trying to build C++ code that generates the adecuate ...
Score of 1
1 answer
455 views
Mpegts js avc1.640028 Interlaced video not playing on Chrome
I am using mpegts js library for live streaming. We aim to play the live stream urls (.ts format) sent by our users.
The interlaced video below gives a black image in chrome but no problem in firefox
...
Score of 1
0 answers
126 views
Encoding problem with x264 and not divisible by 4 resolutions
I'm encoding frames using H264 from BRGA to Yuv420p with high preset. It works fine with most resolutions, but images on 1366x768 are heavily distorted. So far, I've found that if width or height is ...
Score of 0
1 answer
134 views
How to set keyframe interval rpi camera with gstreamer
We are getting h264 video from rpi camera, but could not set keyframe interval. Is there a way? This is our command
libcamera-vid -t 0 --inline --bitrate 2000000 --width 1920 --height 1080 --framerate ...
Score of 2
0 answers
115 views
FFMPEG Corrupt output remuxing MP4 (Using API in C) -First file OK, 2nd file onwards is not
I have a simple application written in C - it takes the video from a RTSP camera and just writes to disk in 1 minute segments. The first file created works fine, plays on anlmost anything. The Second ...
Score of 0
1 answer
109 views
Does OpenH264 v2.5.0 support spatial SVC?
I am using OpenH264 version 2.5.0 and I need to know whether it supports spatial SVC (Scalable Video Coding) or not. If it does support it, how should I configure the encoder settings for spatial SVC? ...
Score of 1
0 answers
278 views
Failed to use h264_v4l2 codec in ffmpeg to decode video
I am working on an embedded Linux system (kernel-5.10.24) and I want to use ffmpeg libraries (ffmpeg-4.4.4) to do video decoding.
The C code is as follows, it uses h264_v4l2m2m decoder to decode the ...