Questions tagged [h.264]

1

votes
0

answer
209

Views

MediaCodec: native_window_api_connect returned an error: No such device (-19)

when I use MediaCodec,got a crash. the stack trace: I/ VideoHW/VideoDecoder: createVideoDecoder I/ACodec: [] Now uninitialized I/ACodec: [] onAllocateComponent I/OMXClient: MuxOMX ctor I/ACodec: Set Google AAC Dec for aacProfile 0 I/ACodec: [OMX.qcom.video.decoder.avc] Now Loaded E/BufferQueueProd...
CHUANGXIN LEE
1

votes
3

answer
2.3k

Views

WebRTC video Android and iOS client with H264 decoding capabilities

We are looking for someone who could help us develop a client application for Android and iOS that has the ability to properly decode H264. The application can be developed in any way as long as it can be integrated to our existing Android and iOS apps. The main requirement is to render a h264 WebRT...
Nefalas
1

votes
2

answer
263

Views

FFMPEG: Decode video in h264rgb/libx264rgb error

I did a small program to encode raw images in h264rgb codec with ffmpeg. I use this codec because I needed to encode lossless rgb images (not possible with the classic h264 codec). But now, I have a problem. I'm not able to decode the video generated with ffmpeg. I did a second small program for tha...
Furan
1

votes
0

answer
96

Views

How to store HDCP encryption key on a PC?

I am receiving HDCP encrypted H264 content over TCP/IP to PC from an encoder. I need to decrypt and pass the buffer to GPU for decoding and HDMI(HDCP encrypted) output. I am planning to do the complete processing inside TEE. Where can I store HDCP encryption key?
msa01
1

votes
0

answer
853

Views

Gstreamer / RTSP - Creating a pipeline to reduce latency due to rtpjitterbuffer

I am accessing a RTSP video stream from a VIRB 360 camera. I am able to play the stream using the following gstreamer command: gst-launch-1.0 -v playbin uri=rtsp://192.168.0.1/livePreviewStream?maxResolutionVertical=720\&liveStreamActive=1 However, there is a 3 second delay in the streaming, which...
skr_robo
1

votes
1

answer
2.7k

Views

OpenCV - Streaming H264 over RTSP using FFMPEG in version 3.4

I am trying to capture an RTSP stream from a VIRB 360 camera, into OpenCV. The video is H264 and according to one of the comments here, OpenCV 3.4 should be able to handle it. Here is the code: #include #include #include #include #include int main() { cv::VideoCapture cap('rtsp://192.168.0.1/li...
skr_robo
1

votes
1

answer
122

Views

H.264 Decoder not working properly?

I've gone over the code for this decoder for elementary h.264 bitstreams a hundred times, tweaking things along the way, with no luck. When I send the output CMSampleBuffers to an AVSampleBufferDisplayLayer, they don't appear, presumably because there's something wrong with how I'm decoding them. I...
Philip S
1

votes
1

answer
69

Views

H264 video stream stuffed with 0xff

I am using recvfrom() to receive data over a socket. I was expecting my buffer to contain a solid stream of data, but it seems to periodically be broken up by chucks of 0xFF bytes. I am using VLC player for streaming the H264 video. My question is where are these 0xFF bytes coming from? Are they set...
1

votes
0

answer
172

Views

I have a 600ms delay decoding a RTP/UDP h.264 stream in Android using MediaCodec with SurfaceView

I have tried everything I can think of to improve the latency in decoding an h.264 stream from an ethernet camera. The camera's manufacturer states that it has a minimum latency of 50ms using their hardware to display the stream, so I know its possible. I was also able to play the stream on my compu...
1

votes
1

answer
49

Views

How to encode video packet using video/avc encoder in android live streaming?

How to encode raw video packet into RTCP and RTP packet from android camera live streaming using video/avc encoder and send those packet to another device using UDP socket?
kumar
1

votes
0

answer
127

Views

Save on disk h264 packages received using PyAV

I'm using PyAv to read packets from H.264 stream during 5 minutes. I need to save the packets encoded on disk and load and decode them later. I tried to use pickle to save the packets, but it cannot serialize them. What can I do? Here is part of my code (an exception is thrown when I try to save the...
Vítor Cézar
1

votes
1

answer
1.5k

Views

Getting raw h264 packets from USB camera on Raspberry Pi

I am trying to receive H264 frames from a USB webcamera connected to my Raspberry PI Using the RPi Camera Module I can run the following command to get H264 data outputted in stdin: raspivid -t 0 -w 640 -h 320 -fps 15 -o - with close to zero latency Is there an equivalent function to do this with...
Aninano
1

votes
1

answer
253

Views

FFMPEG: Why aren't all my codecs showing up when I call av_codec_next()

I'm trying to make a custom build of ffmpeg to use in my c++ application. The only codecs I need are encode/decode for h264 and aac. Because I cannot use GPL code, I'm trying to use openh264. I successfully built openh264. I am configuring my ffmpeg build thusly: ../../../configure\ --toolchain=ms...
alvion
1

votes
0

answer
28

Views

An inquiry about a h.264 derived stream protocol

First off, please forgive my complete lack of knowledge in this field. I got some time ago a couple of really cheap wifi ip cameras that I was hoping to use on my local network. Unfortunately, it turned out the manufacturer (zmodo) had introduced about a year ago their own streaming protocol and had...
Ivan
1

votes
0

answer
376

Views

“Unknown Encoder 'libx264'” error while using FFMPEG

I have followed the guide given here @ traq.ffmpeg. And everything goes smoothly. But when I try to run a command with FFMPEG to convert something to h.264, I get the error: Unknown Encoder 'libx264' I'm using Ubuntu 16.04 LTS.
newuser
1

votes
0

answer
133

Views

Can't decompress H.264 frames with VideoToolbox when hardcoding PPS and SPS parameters

I wrote a H.264 decoder that works great. However for performance reasons, I'm trying to hard code in the PPS and SPS parameters (they never change). For reference this is what they look like as a base 10 [UInt8]: SPS [103, 66, 0, 40, 244, 5, 1, 236, 128] PPS [104, 206, 9, 136] What's bizarre is tha...
Philip S
1

votes
1

answer
350

Views

AVFrame: How to get/replace plane data buffer(s) and size?

I'm working on gstreamer1.0-libav (1.6.3), trying to port custom FPGA based H264 video acceleration from gstreamer 0.10. The data planes (YUV) used to be allocated by a simple malloc back in gstreamer 0.10, so we simply replaced the AVFrame.data[i] pointers by pointers to memory in our video accele...
user10099431
1

votes
0

answer
53

Views

Is possible to make watermark film with libav without decoding full video?

Ther is a small png image and a video film. I want to overlay this png image into video film and I did it by libavcodec. The CPU loading of this overlay process is extermely high. To reduce the performance impact, I have the png overlaid in 10 seconds and then copy stream from old file to new ones a...
hawk.hsieh
1

votes
0

answer
42

Views

How to referenced frames in H264/265 decoding with AVFrame (Libav)

I am working on a project using LibAV as decoder for H264 and H265 videos. I took a decoder sample from Roxlu (http://roxlu.com/2014/039/decoding-h264-and-yuv420p-playback) as my initial point and tried to understand how things work. In my particular case, while decoding each frame, I also need to k...
fkeufss
1

votes
1

answer
138

Views

is there any library which supports encoding original cea - 708 closed captions in a h264 stream

I am looking for a library/ software application which allows to embed native 708 subtitles in a h264 stream ( container can be mp4,flv,ts etc). I want some amount of control such that I am able to edit the font size, font format or window attributes like opacity, background/ foreground colors of th...
ridhim rastogi
1

votes
0

answer
97

Views

Gstreamer pipeline causing stream to corrupt

I have been trying to stream a live video from a RPi to a browser using GStreamer, i.e. RPi -> MediaServer -> Browser. However the video that is display has become corrupted: Corrupted Video Output I have isolated the problem to the Gstreamer pipeline by streaming to a different port on the Pi and s...
Adam O Mahony
1

votes
0

answer
100

Views

FFmpeg changes bitrate to Variable when remuxing

I'm trying to change .MKV container to .MP4 using FFmpeg without re-encoding video stream: ffmpeg -i input.mkv -c copy output.mp4 The input file has Constant framerate: Frame rate mode: Constant Frame rate : 30.000 fps However, the output file got a variable framerate according to Mediainfo: Fra...
apatsekin
1

votes
0

answer
72

Views

nvencinitializeencoder failed when bitrate is too large

when I use ffmpeg to push stream: ffmpeg -loglevel debug -re -i a.flv -c:v h264_nvenc -b:v 145M -maxrate:v 200M -c:a copy -f flv rtmp://localhost/live/test get failure: [format @ 0000000002861760] Setting 'pix_fmts' to value 'yuv420p|nv12|yuv444p' [AVFilterGraph @ 00000000028470c0] query_formats:...
Rivendell Crazy
1

votes
0

answer
162

Views

Request for ffmpeg raw data to mp4 container example

I have a binary file with raw h264 data which is arranged like that NAL(SPS), NAL(PPS), NAL(Frame), NAL(SPS), NAL(PPS).... and i want to mux it (without encode) into a mp4 container. The muxing.c in the ffmpeg example do the encoding of yuv data, but it is different from my case, and i have no ideas...
Chi Fai Wong
1

votes
0

answer
71

Views

FFMpeg: h.264 to h.264 with the same quality and bitrate

I have a some mp4 video file with 1 video stream, encoded in h.264 and with bitrate XYZ kb/s, for example, let's have a name xxx.mp4 (not a home video, just a film). Its frames looks like some video data and two horizontal black strips on top and bottom side. On one of those strips there is some tex...
Vasya
1

votes
1

answer
38

Views

How can I change slice_type which is show in Elecard stream analyzer using ffmpeg?

I'm not ffmpeg and encodding expert and am trying to encode a MP4 file to MPEG-4 h264 .ts file. When Elecard stream analyzer is analyzing my result .ts file, it shows slice_type = 7 for all of i-frames as you can see in the attached screenshot. How can I change all these to slice_type = 2? My ffmpeg...
Tooraj Jam
1

votes
0

answer
49

Views

FFMPEG Concat filter - Output video skips second file

I am using the ffmpeg concat filter to join video files. I am aware the files must be exactly the same format for concat to work without encoding. However, the output of these two files are not seemless. The video will stop when it switches to second video file. Here is the output of the two video f...
Rune Aspvik
1

votes
2

answer
426

Views

FFmpeg memory usage

I'm using the latest FFmpeg library to blend together 4 different input videos. To accomplish it I do some basic 'filter_complex' operations for video and 'amix' for audios. After about 1 minute of processing data, the process is being killed with signal 'SIGKILL'. Probably out of memory causes thi...
mbutan
1

votes
0

answer
55

Views

Is it possible to do h264 encoding on the fly and send the video over websocket network?

I have already build a test application that can send message packets over UDP using RTP. Now I want to send webcam frames over this connection. I am able to capture individual frames and encode them to JPEG format and send over network. But this requires high network bandwidth of around 5Mbps to st...
shubhamrock828
1

votes
0

answer
60

Views

Combine H.264 video stream and AAC audio stream with mediamuxer, but merged mp4 video cannot be played

Normal mp4 file The video file I generated mediaformat MediaFormat videoMediaFormat = MediaFormat.createVideoFormat(MediaFormat.MIMETYPE_VIDEO_AVC, mVideoSize.getWidth(), mVideoSize.getHeight()); videoMediaFormat.setInteger(MediaFormat.KEY_BIT_RATE, Constant.VIDEO_BIT_RATE); videoMediaFormat.setByt...
Dipper_cat
1

votes
0

answer
151

Views

Native Web RTC Video Call freeze on Android when call from iOS app

We're implementing video calls on Android & iOS applications using WebRTC technology. We also implemented on web browser and call successfully from chrome to android, and chrome to iOS. But, when we call from iOS native to Android native, the video call always freeze after ~ 2 minutes. The Audio is...
Nam Pham
1

votes
1

answer
96

Views

Capture camera + mic and encode to h264/aac on macOS

I'm having trouble capturing and encoding audio+video on-the-fly on macOS. I tried two options: ffmpeg ffmpeg -threads 0 -f avfoundation -s 1920x1080 -framerate 25 -I 0:0 -async 441 -c:v libx264 -preset medium -pix_fmt yuv420p -crf 22 -c:a libfdk_aac -aq 95 -y gstreamer gst-launch-1.0 -ve avfvideosr...
Flock Dawson
1

votes
1

answer
92

Views

How to Combine audio and Video in android

I can getting audio from Camera microphone and I saved it .mp3 format to use below code,I am trying combine Video and Audio Data and playing them at same time,how can I do this? File ses = new File(Environment.getExternalStorageDirectory().getAbsolutePath() + '/', 'ses.mp3'); String path2 = String.v...
Diego
1

votes
0

answer
111

Views

FFMPEG h264_videotoolbox output is strange

I want to use h264_videotoolbox codec to encode my video in FFMPEG lib.I input image format is AV_PIX_FMT_YUV420P, but output video frame like follow. I tried libx264 and all work correctly. Do you guys know what happen?Why encoded frame like that? My test code: https://github.com/BeiKeJieDeLiuLangM...
Yang Chen
1

votes
1

answer
149

Views

FFMPEG passthrough recording RTSP/H264 to MP4 container bad encoding

Hello I'm using the ffmpeg 3.4.2 to record a RTSP h264 steam from an IP camera. I have a working example however at the beginning I see some corrupted images, after a couple of seconds the video is shown properly. I was wondering if this is a timing issue. The source code which illustrates opening...
Cédric Verstraeten
1

votes
1

answer
88

Views

UWP :How I can do H.264 encoding of raw video frames and get encoded frames

Hi I am new to UWP programming. We have an existing video call application, which we are porting for Windows in UWP. Our existing system designed such a way that, camera raw frames (YUV frames) feed to video encoder(H.264 OR H.263) and encoded video data will be packetized and sent to network. To g...
Shiva
1

votes
0

answer
128

Views

Python 2.7 rtsp stream and “INVALID EU golomb code” Jetson TX2

I'm fighting with Chinese IP camera modules, one of them has chipset IMX322 and has 2MPX. I managed to connect to this camera (there was no doc. how to do it ) but url above seems to work : rtsp:///user=admin&password=&channel=1&stream=0.sdp I use standard python loop to get data, but there is some...
Rafał Sardaw
1

votes
0

answer
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 some values like 111.29. My question here is that what is the max value for PSNR before inf? because i...
Talia
1

votes
1

answer
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.
David L
1

votes
0

answer
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? Thank You in advance!
Grigorii Potapov

View additional questions