2,776 questions
0
votes
1
answer
41
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. ( ...
0
votes
1
answer
88
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 ...
2
votes
0
answers
130
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 ...
2
votes
1
answer
165
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 ...
1
vote
0
answers
116
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 ...
0
votes
1
answer
82
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 ...
1
vote
1
answer
257
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 ...
1
vote
2
answers
183
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 ...
1
vote
1
answer
440
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
...
1
vote
0
answers
119
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 ...
0
votes
1
answer
129
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 ...
2
votes
0
answers
108
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 ...
0
votes
1
answer
100
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? ...
1
vote
0
answers
260
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 ...
1
vote
0
answers
48
views
What does the left_block_options array represent in the fill_decode_neighbors function of FFmpeg?
I am studying the source code of FFmpeg, specifically the fill_decode_neighbors function. I am trying to understand how the decoding process works, especially the usage of the left_block_options array....