h.264

Encode a video into h264 using bufferedimages?

无人久伴 提交于 2019-12-04 08:20:46
Im attempting to translate a large set of bufferedimages (pre-saved images created on the fly by my application) into a video using java and hopefully a library that can help with the process. I've explored a number of different options, such as jcodec (there was no documentation on how to use it). Xuggler (couldn't get it to run due to compatibility issues with jdk5 and its related libraries). and a number of other libraries that had very poor documentation. I'm trying to find a library that I can use that uses java to (1) create h264 videos by writing bufferedimages frame by frame and (2)

Suggested Compression Ratio with H.264?

我只是一个虾纸丫 提交于 2019-12-04 07:27:33
问题 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)?

ffmpeg RTSP error while decoding MB

孤街浪徒 提交于 2019-12-04 06:03:40
I'm using ffmpeg to read an h264 RTSP stream from a Cisco 3050 IP camera and reencode it to disk as h264 (there are reasons why I'm not just using -codec:copy ). The ffmpeg version is as follows: ffmpeg version 3.2.6 Copyright (c) 2000-2017 the FFmpeg developers built with gcc 6.3.0 (Alpine 6.3.0) I've also tried with ffmpeg 2.8.14-0ubuntu0.16.04.1 and the latest ffmpeg built from source (I used this commit) and see the same behaviour as below. The command I'm running is: ffmpeg -rtsp_transport udp -i 'rtsp://<user>:<pw>@<ip>:554/StreamingSetting?version=1.0&action=getRTSPStream&ChannelID=1

FFmpeg H264 parsing

别等时光非礼了梦想. 提交于 2019-12-04 05:09:22
问题 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

Android Decode raw h264 stream with MediaCodec

橙三吉。 提交于 2019-12-04 04:23:46
问题 I have troubles with decoding and drawing raw h264 data with MediaCodec on the TextureView. I recieve the raw data in byte arrays, each of the array is NAL unit (starts with 0x00 0x00 0x00 0x01 ), also there are SPS and PPS NAL units in constant intervals. When new data arrives, I'm putting it into LinkedBlockingQueue : public void pushData(byte[] videoBuffer) { dataQueue.add(videoBuffer); if (!decoderConfigured) { // we did not receive first SPS NAL unit, we want to throw away all data until

Using AVAssetWriter with raw NAL Units

家住魔仙堡 提交于 2019-12-04 03:18:02
I noticed in the iOS documentation for AVAssetWriterInput you can pass nil for the outputSettings dictionary to specify that the input data should not be re-encoded. The settings used for encoding the media appended to the output. Pass nil to specify that appended samples should not be re-encoded. I want to take advantage of this feature to pass in a stream of raw H.264 NALs, but I am having trouble adapting my raw byte streams into a CMSampleBuffer that I can pass into AVAssetWriterInput's appendSampleBuffer method. My stream of NALs contains only SPS/PPS/IDR/P NALs (1, 5, 7, 8). I haven't

H.264 (or similar) encoder in C#?

心不动则不痛 提交于 2019-12-04 03:01:57
Does anyone know of an open source H.264 encoder in C# (or any other managed language)? I might be able to make do with a python implementation as well. The libraries that I’ve found (e.g. x264) are written in pretty low level c (procedural with lots of macros) and assembly. Tweaking them is turning out to be far more complex than I'd thought. My project has no concern for performance or compatibility. We just want to test how some ideas will impact the perception of the outputted video. We’d be willing to pay for or license the code if need be. Thanks in advance! Edit - Some important points:

broken ffmpeg default settings detected

主宰稳场 提交于 2019-12-03 23:37:49
I am getting broken ffmpeg error while VideoWrite using X264 Fourcc codec.I have install all the dependencies.How can I rectify this problem.The sample code that I have been using is as follows. VideoWriter oVideoWriter ("path.mp4", CV_FOURCC('X','2','6','4'), 15, frameSize, false); Operating system : Ubuntu 14.04 64-bit Console Error: [libx264 @ 0x8d6220] broken ffmpeg default settings detected [libx264 @ 0x8d6220] use an encoding preset (e.g. -vpre medium) [libx264 @ 0x8d6220] preset usage: -vpre <speed> -vpre <profile> [libx264 @ 0x8d6220] speed presets are listed in x264 --help [libx264 @

Windows: How to build X264.lib instead of .dll

我的未来我决定 提交于 2019-12-03 21:13:14
I downloaded the X264 source and installed mingw. Step 1: Executed this in the MINGW bash: ./configure --disable-cli --enable-shared --enable-win32thread - -extra-ldflags=-Wl,--output-def=libx264.def and then 'make' Step 2: Renamed the libx264-142.dll to libx264.dll and Opened up VS2012 Command Prompt and executed this: LIB /DEF:libx264.def which gave me libx264.lib and object libx264.exp Step 3: Included the lib file in a VS2012 project which uses the X264 API. Problem: When I start the project I get the following error message: "The program can't start because libx264.dll is missing from

What does Elementary Stream mean in Terms of H264

让人想犯罪 __ 提交于 2019-12-03 21:12:11
I read what an Elementary Stream is on Wikipedia . A tool i am using "Live555" is demanding "H.264 Video Elementary Stream File". So when exporting a Video from a Video Application, do i have to choose specific preferences to generate a "Elementery Stream" ? Ralf If you're using ffmpeg you could use something similar to the following: ffmpeg -f video4linux2 -s 320x240 -i /dev/video0 -vcodec libx264 -f h264 test.264 You'll have to adapt the command line for the file type you're exporting the video from. This generates a file containing H.264 access units where each access unit consists of one