h.264

Parsing Rtsp response parameter that is sprop-parameter-sets

爷,独闯天下 提交于 2019-12-12 02:43:19
问题 I just get the response from RTSP DESCRIBE request.[ For H264 stream] a=fmtp:96 profile-level-id=42A01E;packetization-mode=1; sprop-parameter-sets=Z0IAKOkAoAQNgPsgAAADACAAAAMDwWIEJQ==,aM44gA== For the sprop-parameter-sets=Z0IAKOkAoAQNgPsgAAADACAAAAMDwWIEJQ==,aM44gA== The RFC 3984 Section 8.1 says that it is [page 45] The value of the parameter is the base64 But using an online Base64 Converter [ http://coderstoolbox.net/string/] i get no meaningfull result from that string... What am i doing

what is The fastest way to scale down a H264 video in 2:1?

不想你离开。 提交于 2019-12-12 02:41:40
问题 when I use ffmpeg to scale a H264 video. It seems that the video is decoded to the raw graph then scaled then encoded again. But if the speed is very critical,is there a faster way if I specify a “good" ratio like 2:1, as if I want to pick up one pixel in every four? I know a bit how h264 works, 8*8/4*4 pixels are coded as a group,so it's not easy to pick up 1/4 pixels in its range. But is there a way to merge 4 group into one quickly? 回答1: When you use ffmpeg for scaling purpose, there is no

Complile error OpenH264 using Android NDK

拥有回忆 提交于 2019-12-12 02:05:58
问题 I am trying to compile the openh264 project for android but facing some trouble. I have setup the android_ndk-r10 properly and able to compile sample apps provided with the ndk. Here's what i've done till now. Downloaded the zip of openh264 from here https://github.com/cisco/openh264. Navigated to the openh264-openh264v1.1\codec\build\android\dec\jni path using the cmd prompt and then fired the ndk-build command. It starts the build process but throws error while building libs for both

Does Google WebRTC support Cisco Open H.264?

旧巷老猫 提交于 2019-12-11 18:53:41
问题 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 of the codec is made by its name. The SoftwareVideoEncoderFactory class returns a class which represents the specific codec based on VideoCodecInfo name: link. In my case, I did it like that: VideoCodecInfo codecInfo = new VideoCodecInfo("H264", getDefaultH264Params(false));

Load mod_h264_streaming.dll in Windows Apache2

萝らか妹 提交于 2019-12-11 18:16:54
问题 Hi I am trying to stream video from static html5 pages serve by Windows Apache2. According to Apache guide on http://h264.code-shop.com/trac/wiki/Mod-H264-Streaming-Apache-Version2 this only for Linux, so I get the mod_h264_streaming.dll from http://h264.code-shop.com/trac/wiki/Mod-H264-Streaming-Internet-Information-Services-IIS7-Version2 but when I LoadModule h264_streaming_module modules/mod_h264_streaming.dll in httpd.conf it return httpd.exe: Syntax error on line 129 of C:/Program Files

how does video player calculate single frame duration?

假装没事ソ 提交于 2019-12-11 17:51:56
问题 I am working on a project where I am muxing h264 raw stream into fmp4 so I can play it through MSE (Media source extension) I am bit confused about frame duration. For example, If I provide 30 frames and timescale is 1000, it plays for 1 second. If I change timescale to 800, it plays for 2 seconds for the same 30 frames If I change timescale to 500, it plays for 3 seconds for the same 30 frames My question, how does the player calculate a single frame duration from timescale? 来源: https:/

Read raw Genicam H.264 data to avlib

风格不统一 提交于 2019-12-11 17:18:59
问题 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 that data into libav in order to produce a container file that then is streamed to a playing device like VLC or (later) to an own implemented display. So far, I played around with the GenICam sample code, which transferres the raw H.264 data into a "sample.h264" file. This file, I have put through

What is fixed_frame_rate_flag used for in encoders?

百般思念 提交于 2019-12-11 15:54:52
问题 There is a flag called the fixed_frame_rate_flag used in encoders. I haven't been able to find any clear explanation of what this is, and what its significance is. The flag can either be set to 0 or 1, but I don't know what this would imply. Any help, information would be appreciated. 回答1: Fixed frame rate is the opposite of variable frame rate. If a video is fixed frame rate, every frame has a predictable timestamp. timestamp = frame_number * frame_rate . If its variable, every frame has its

Get YUV420 bytes from JCodec Picture

杀马特。学长 韩版系。学妹 提交于 2019-12-11 14:43:50
问题 Using an H264Decoder I would like to obtain the decoded YUV420 data as a Java byte array. I have searched all over and I don't see any examples that fit. ByteBuffer buf = ByteBuffer.wrap(h264EncodedByteArray); H264Decoder decoder = new H264Decoder(); // assume that sps and pps are set on the decoder Picture out = Picture.create(320, 240, ColorSpace.YUV420); Picture real = decoder.decodeFrame(buf, out.getData()); The "h264EncodedByteArray" would be an array of h264 encoded bytes from a stream

ffmpeg 1FPS extraction call spits out infinite images until disk is bricked on poorly-encoded movie

末鹿安然 提交于 2019-12-11 14:31:45
问题 This is one of the oddest things I've ever seen while using ffmpeg. This is the scenario - we are getting video footage from a IONODE ION-E100 encoder, the footage is encoded in h264. I can view the footage fine in VLC, and I can copy it over to another video using ffmpeg and -c:v copy . The issue arises when I try and extract one FPS from the movie using the following command: ffmpeg -i testmovie.mp4 -r 1 -vf 640:-2 -q:v 18 -loglevel error /tmp/tmp/extraction_%04d.jpeg What this should do is