Questions tagged [h.264]

H.264/MPEG-4 Part 10 or AVC (Advanced Video Coding) is a standard for video compression

1
vote
0answers
25 views

Video conversion: h.264 from a UDP socket to a Mat object

I have a Raspberry pi with a picam and I wanto to stream video to a server to process it and run object detection software. Im sending a video stream over a UDP socket to the server and reciving byte ...
1
vote
0answers
18 views

SPS/PPS VUI Not Used By Android MediaCodec NDK

I'm trying to decode video with non-default colorimetry using MediaCodec NDK. I provide the SPS and PPS into the csd-0 and csd-1 buffers respectively, but that information does not seem to affect how ...
0
votes
1answer
19 views

Finding GOP structure and length

I set up a video stream and captured its packets(H264 over RTP). Looking at the Wireshark capture(decoded with type 96), I need to figure out the format of the GOP and the length of it. Problem is I ...
0
votes
1answer
44 views

Read raw Genicam H.264 data to avlib

I try to get familiar with libav in order to process a raw H.264 stream from a GenICam supporting camera. I'd like to receive the raw data via the GenICam provided interfaces (API), and then forward ...
1
vote
1answer
40 views

Create mp4 file from raw h264 using a pipe instead of files

I have a raw h264 file that I can display with VLC, on a mac: open -a VLC file.h264 I can convert this to mp4 with the command line ffmpeg -f h264 -i file.h264 -c:v copy file.mp4 But what I ...
-1
votes
0answers
27 views

What libraries i can use for decoding live stream h264 in web browser (i.e. Chrome)?

I'm still pretty new to decoding and web technology. I know there's javascript library Broadway to decode videos, is there any other libraries i can choose from? (Latency is the most important factor ...
0
votes
1answer
29 views

ffmpeg outputs that the first frame of a 25fps video shows for only 1ms

I'm using ffmpeg to split up a video by frames. For a video that is 25fps, my expectation would be that it would show frame 0 for 40ms, and then it would show frame 1 for 40ms, etc. However, when I ...
0
votes
0answers
22 views

Fetching MacroBlock information in FFmpeg

I've a .mp4 file which contain h.264 video and AAC audio. I wants to extract MacroBlock and motion vector information of each frame while decoding. Please find my below Pseudocode. ...
0
votes
2answers
39 views

Hwaccel with AVCodec in FFMPEG?

I am using AVCodec as a video stream decoder and would like to know if it was possible to use hardware acceleration with hwaccel via FFMPEG? or is it already used by default? I have already listed ...
0
votes
0answers
39 views

H264 decoding on iOS - why does kVTDecodeFrame_EnableAsynchronousDecompression give distorted images when used in VTDecompressionSessionDecodeFrame?

I followed the great description about NALUs and the example to decode an h264 stream using VTDecompressionSessionCreate and VTDecompressionSessionDecodeFrame from here: How to use VideoToolbox to ...
0
votes
1answer
47 views

Invalid key_frame(I) and P- frame sequence in h264 Binary stream

I am getting video from USB webcam and encoding into h.264 raw stream as follows... ffmpeg.exe -f dshow -rtbufsize 200M -i video="Logitech HD Webcam C270" -vcodec libx264 -preset ultrafast -tune ...
0
votes
0answers
22 views

Adjusting Android H.264 Codec and running it on a phone

First of all I should let you know that I am new to Android system. I would like to slightly adjust the existing H.264/AVC Codec that Android uses. Specifically I would like to change the way codec ...
1
vote
1answer
80 views

Decode a single (H264) packet dumped by ffmpeg from a mp4 file

I used ffmpeg to dump a packet representing a single frame from an h264 video inside a mp4 ffmpeg -i video.mp4 -c copy -vframes 1 -map 0:v:0 -f data frame.bin The data inside frame.bin seems to be ...
1
vote
0answers
20 views

NAL unit size setting for RPi encoder [closed]

I'm working on a device for live wireless streaming. Transceiver, that I use can transmit data by packets up-to 1000 bytes. So, is it possible to configure maximum NAL unit size for RPi 3B+ encoder? ...
0
votes
0answers
22 views

Creating RTSP/RTMP h264 encoding stream from bitmaps

I have some rtsp stream which I combine into bitmaps. Now I need to encode these with h.264 and send using rtsp or rtmp stream. I got some advice to use ffmpeg, but I have no clue how to supply byte ...
0
votes
0answers
78 views

WebRTC IOS h264 support

I just try to build IOS webrtc with h264 support . Unfortunately I can not make it work gn gen out/ios_release --args='target_os="ios" target_cpu="arm64" is_debug=false use_rtti=true ...
0
votes
0answers
16 views

Force x264_encoder_encode to only output one NAL unit [duplicate]

I am trying to figure out how to get x264_encoder_encode to only return one NAL unit. Google does not provide any good results on how to tune x264 to only produce one NAL unit per encode cycle. ...
0
votes
0answers
87 views

FFmpeg AVERROR(EAGAIN) error when call avcodec receive for h264

I'm working with ffmpeg 4.1 and I'm showing live streams of multiple cameras, h264 and h265. My program collects packets of the same frame and then calls decodeVideo function. Actually it sends all ...
1
vote
1answer
40 views

Can H.264 stream in MP4 file contain Annex B startcode emulation?

MP4 file (actually it's HLS stream that uses MP4 format) contains H.264 stream in AVC format: [NALU length][NALU data]. H.264 decoder requires Annex B format: [startcode][NALU data]. In general ...
-1
votes
0answers
29 views

2559x1450 image sequence won't convert to yuv420p video file, vlc cant play yuv444p10le

I upscaled a movie with waifu2x (from 1920x1088 to 2559x1450) i now have an image sequence that i need to convert to an mp4 when i try -pix_fmt yuv420p, it says that it cannot devide the width by 2 so ...
2
votes
0answers
129 views

Android - Decoding h264 raw stream manually

So I am trying to decode a stream of raw h264 data and render it to a surface on Android. Here are the steps: Receive a packet of h264 stream Accumulate it and try to extract NAL units (byte ...
0
votes
0answers
17 views

Logitech C920 webcam with H264 encoding, unable to set cropping

I try to get h264 stream direct from the Logitech c920 camera, it's works. but I would like to set cropping to cut some useless sides, getting invalid argument. v4l2-ctl --set-crop=top=16,left=16,...
0
votes
0answers
147 views

ffmpeg returns “Invalid data found when processing input” when creating RTSP stream from H.264

I'm trying to create an RTSP stream from an H.264 source on Ubuntu using ffmpeg, however, I keep getting the error prompt "Invalid data found when processing input". I'm working on an AWS DeepLens. ...
0
votes
0answers
67 views

Live streaming from h.264 IP camera to Web browser

I want to live stream video from h.264/h.265 IP camera to browser with little to no delay and in decent quality (Full HD). I know there are couple of questions like this one but the answers seem to be ...
0
votes
0answers
18 views

Render AVFrame of RGB565 in SDL

I am working on H264 decoder, I want to decode native image format data to RGB565 and render that image in SDL. struct SwsContext *sws_ctx = NULL; int frameFinished; AVPacket packet; // initialize ...
0
votes
0answers
15 views

audio volume lowered when exporting in adobe premiere

I've done a hobby movie project in Adobe Premiere (CS6), and I'm now exporting the final version. I noticed that on the exported version of the movie, there's a notable decrease in gunshot audio ...
1
vote
1answer
33 views

Synthesize SPS and PPS for incomplete H264 stream for iOS VideoToolbox

I have an AXIS IP camera (M1054) which sends an H264/RTP stream via RTSP. Unfortunately, they do not send SPS and PPS NALUs at all, they only transfer (fragmented) Codec slices. I'm trying to decode ...
0
votes
0answers
54 views

Can't Get DirectShow MPEG-2 Decoder to Output YV12/NV12 Progressive

I am attempting to get the MPEG-2 Decoder (aka DTV-DVD Video Decoder) to give me progressive YV12 or NV12 frames that can be uploaded to OpenGL for rendering. But what I'm seeing rendered looks like ...
1
vote
1answer
29 views

Washed out colors (color range issue) with AMD H264 encoder MFT

I'm encoding video using Windows Media Foundation, but i've had an issue with hardware encoding using AMDh264Enc. The video comes out all washed out, so there is obviously an issue with the color ...
0
votes
1answer
37 views

concealing 8160 DC, 8160 AC, 8160 MV errors in frame error in ffmpeg

I have an mp4 video and I want to convert it to yuv. This video has some errors inside. I need to convert it to yuv because the target is getting PSNR between the distorted yuv and the original yuv. ...
2
votes
1answer
50 views

H.264 level for 1920x1080 60 video

According H.264 specifications, 1920x1080 60p video should use Level 4.2 (2,048×1,080@60). However some old hardware players (e.g. Popcorn Hour A-210) can play 1920x1080 60p videos created only with ...
0
votes
1answer
47 views

Difference between MPEG-TS and RTP for H.264 (.mp4) video streaming?

So I am trying to stream a H.264 (.mp4) video over ETHERNET using the ffmpeg tool. I have read a little about transport of H.264 video over ethernet and have learnt that there are two methods; mpeg-ts ...
0
votes
0answers
26 views

gstreamer 1.x clockoverlay h264 won't show clock

I have working pipe with interpipe: gstd-client pipeline_create recording_pipe interpipesrc name=rec_intpsrc listen-to=cam_src is-live=true allow-renegotiation=true enable-sync=false format=time ! ...
9
votes
2answers
565 views

Windows Media Foundation MFT buffering and video quality issues (Loss of colors, not so smooth curves, especially text)

I'm trying to encode RGBA buffers captured from an image (RGBA) source (Desktop/Camera) into raw H264 using Windows Media Foundation, transfer them and decode the raw H264 frames received at the other ...
-1
votes
0answers
44 views

Live Video Streaming Using Python Raspberry Pi And Php Server Code

I am working on live video transmission in python on raspberry pi. I'm using socket for communication and I want to read it in a PHP program. I have managed to write the python code but I'm not good ...
0
votes
0answers
43 views

bytestream overread in ffmpeg stdin

I am trying to pipe raw h264 frames via STDIN to ffmpeg, but I get [h264 @ 0x3ced540] bytestream overread -28 [h264 @ 0x3ced540] error while decoding MB 52 6, bytestream -28 When I use a file on ...
0
votes
0answers
48 views

mux / remux / box in memory h264 frames to mp4 via C / C++ (no ffmpeg cmdline)

I have looked at various tutorials and I am still struggling to correctly frame raw h264 into an mp4 container. The problem is the stream does not have an end (live) and is in memory, a lot of the ...
0
votes
1answer
39 views

Write video in Azure Function

I have videos that i want to process in Azure function (Service Bus Queue trigger). When new message arrives and function gets called i do the following: Download video from blob storage into ...
1
vote
1answer
47 views

Why do I lose PTS information when encoding to H264?

I have a video file, with this video stream: ffmpeg -i original.avi Stream #0:0: Video: h264 (Main) (H264 / 0x34363248), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 4204 kb/s, ...
0
votes
1answer
38 views

Effect of AV_CODEC_FLAG2_FAST in decoding H.264

Does anyone know what is the effect of AV_CODEC_FLAG2_FAST flag in libavcodec library (ffmpeg 4.0.2) when is set on AVCodecContext? AVCodecContext* avCodecContext; AVCodec* avCodec; ... avCodec = ......
1
vote
1answer
32 views

H.264 I-Frame replacement

Is there any utility/tool that can replace single I-Frame in H.264 video chunk with another png/jpeg image, without touching B,P frames that are dependent on this I-Frame.
0
votes
0answers
36 views

How to find one frame of encoded sample using MediaMuxer?

I'm implementing converter h264 to mp4. I have posted question overflow a day ago. I was advised by following comment. * while(!finished) { * // getInputBuffer() will fill the inputBuffer with ...
0
votes
1answer
21 views

How to detect GOP struct from H264/HEVC bitstream?Can I get it from sps info?

Is it possible to get gop struct from sps info? I need to know the num of b frames in a gop.
0
votes
0answers
7 views

Derivation process for binIdx in H264 CABAC initialization

The CABAC processing of syntax elements in h264 calls for the initialization of context variables, specifically ctxIdx, which takes as inputs binIdx, maxBinIdxCtx, and ctxIdxOffset (s9.3.3.1). What I'...
0
votes
1answer
25 views

Record rtmp stream to multi flv files

I'm currently write rtmp server to receive rtmp stream, then record to multi flv file, segment base on time. Example: 1 minute -> 1 flv file, 2m -> 2 flv file... Problem: only the first flv file is ...
0
votes
0answers
70 views

How to convert raw h.264 file to mp4

I saw how to convert video to mp4 using MediaCodec. Those examples were using Surface. Then I think that h.264 => decode => Surface => encode (file), This is an unnecessary encode / decode process. ...
0
votes
1answer
73 views

Does Google WebRTC support Cisco Open H.264?

Knowing the fact that Cisco has its h.264 codec made as open source I wanted to add it to the Android WebRTC SDK. I tried to create custom VideoEncoder using the webRTC API but I found that the choice ...
0
votes
0answers
42 views

How to compute PSNR by JM reference

I need to calculate PSNR with JM reference. I tried ./lencod.exe -o main.yuv -r ref.yuv but I got the following error: Setting Default Parameters... Parsing Configfile encoder.cfg..................
1
vote
0answers
45 views

How to calculate avrage PSNR when it contains inf values?

I got PSNR via VQMT, then I found some 'inf' values in the calculated csv file which I understood it means the frame in the decoded sequence is identical to the original video frame. There are also ...
0
votes
1answer
46 views

How to fix image problems when streaming h.264 via gstreamer udpsink

Using gstreamer I want to stream images from several Logitech C920 webcams to a Janus media server in RTP/h.264 format. The webcams produce h.264 encoded video streams, so I can send the streams to a ...

http://mssss.yulina-kosm.ru