h.264

errors when decode H.264 frames using ffmpeg

房东的猫 提交于 2019-12-02 15:32:51
I am getting the following errors when decoding H.264 frames received from the remote end of a H.264 based SIP video call. Appreciate any help in understanding there errors. non-existing PPS 0 referenced decode_slice_header error non-existing PPS 0 referenced decode_slice_header error no frame! non-existing PPS 0 referenced decode_slice_header error non-existing PPS 0 referenced decode_slice_header error no frame! That just means that ffmpeg has not seen a keyframe yet, which carries SPS and PPS information. SPS and PPS are crucial in decoding an incoming frame/slice. Keyframes are sent

Split fragmented MP4 into multiple MP4 files

家住魔仙堡 提交于 2019-12-02 14:36:21
问题 We're trying to parse the fragments of an fMP4 file into separate independent MP4s. Can anyone help point us in the right direction to do this, or is there any open source code that exists that we could leverage? 回答1: I think MP4Box might be what you are looking for. It's open source, so you can have a look at the code if you want to know how this can be done. It can also be used as command line tools, e.g. as described in this blog post (skip to the "Segmenting" section): MP4Box -dash 4000

understanding libx264 output [closed]

泄露秘密 提交于 2019-12-02 14:09:59
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I used libx264 in ffmpeg to encode . Finally i got below output . Can anyone guide me understanding & interpreting this?? Any reference/documentation? 01-01 06:34:43.650: I/stderr(6603): [libx264 @ 0xdd2040] frame I:7 Avg QP:27.51 size: 11996 01-01 06:34:43.650: I/stderr(6603): [libx264 @ 0xdd2040] frame P:32

Suggested Compression Ratio with H.264?

末鹿安然 提交于 2019-12-02 14:06:52
Note bene: I realize this is an immensely complicated question with about a million levels of nuance that I'm trying to reduce to a single number... I'm about to undertake a large video encoding project using H.264 encoding. We are trying to create multiple bitrate profiles in order to accommodate streaming across internet connections, processors, devices, etc. Generally speaking, what kind of compression ratio should I be expecting to see (while staying within a reasonable level of quality)? For example, a 640x360 (16:9) pixel video file @ 24 frames per second and 16-bit color should yield an

X264 Decoder complete frame not come in one NAL Unit

大城市里の小女人 提交于 2019-12-02 09:33:08
I am using libX264 library for encoding purpose . After encoding data is in form of NAL Unit ()..... .This is same format( AVC) what I require but problem is one frame come in two Nal Unit ( One frame = (length,data) + (length,data) ) and i need ( One frame = (length,data) in single nal unit).While I am converting into file then play , it show first upper part of screen and then lower . My config parameter are below param.i_width = 1680//; param.i_height = 948; param.i_fps_num = some no; param.i_fps_den = 1; param.i_keyint_max = 1 ; param.rc.i_rc_method = //; param.rc.f_rf_constant = //; param

Split fragmented MP4 into multiple MP4 files

一世执手 提交于 2019-12-02 08:07:01
We're trying to parse the fragments of an fMP4 file into separate independent MP4s. Can anyone help point us in the right direction to do this, or is there any open source code that exists that we could leverage? I think MP4Box might be what you are looking for. It's open source, so you can have a look at the code if you want to know how this can be done. It can also be used as command line tools, e.g. as described in this blog post (skip to the "Segmenting" section): MP4Box -dash 4000 -rap -segment-name segment_ myInput.mp4 Use either the -segment-name or the -profile option to generate one

How to relay h.264 stream?

荒凉一梦 提交于 2019-12-02 07:09:32
问题 I have 2 servers, server2 can receive h.264 stream from server1. I need my iPad can play the h.264 stream, and my ipad and server2 are in the same local area network, but can not connect to server1, so I need server2 relay the h.264 stream to my ipad, who has one good solution ? thanks! 回答1: Your question is rather vague. If you are playing via HLS then you could install an HTTP proxy on server2. Apache even has a proxy module which lets you make a URL on server1 appear as if it was hosted by

How to relay h.264 stream?

房东的猫 提交于 2019-12-02 06:57:06
I have 2 servers, server2 can receive h.264 stream from server1. I need my iPad can play the h.264 stream, and my ipad and server2 are in the same local area network, but can not connect to server1, so I need server2 relay the h.264 stream to my ipad, who has one good solution ? thanks! Your question is rather vague. If you are playing via HLS then you could install an HTTP proxy on server2. Apache even has a proxy module which lets you make a URL on server1 appear as if it was hosted by server2 without having to configure your iPad to use server2 as its proxy. http://httpd.apache.org/docs/2.2

FFmpeg H264 parsing

*爱你&永不变心* 提交于 2019-12-02 03:44:01
I am using FFmpeg to decoding H.264 video, for the following program: #include <stdlib.h> #include <stdio.h> #include <string.h> #include <signal.h> #include <sys/time.h> #include <time.h> #include <libavcodec/avcodec.h> #include <libavutil/mathematics.h> #include <SDL/SDL.h> void sigint_handler(int signal) { printf("\n"); exit(0); } const char *window_title; SDL_Surface *screen; SDL_Overlay *yuv_overlay; #define INBUF_SIZE 80000 /* * Video decoding example */ static long get_time_diff(struct timeval time_now) { struct timeval time_now2; gettimeofday(&time_now2,0); return time_now2.tv_sec*1.e6

MediaCodec.dequeueOutputBuffer taking very long when encoding h264 on Android

流过昼夜 提交于 2019-12-02 01:21:22
问题 I'm trying to encode h264 video on Android for real-time video streaming using MediaCodec but dequeueOutputBuffer keeps taking very long (actually it's very fast sometimes but very slow at other times, see log output below). I've seen it go even up to 200ms for the output buffer to be ready. Is there something I'm doing wrong with my code or do you think this is an issue with the OMX.Nvidia.h264.encoder? Maybe I need to downsample the image from 1280x720 to something smaller? Or maybe I need