h.264

How to decode H.264 video frame in Java environment

↘锁芯ラ 提交于 2019-11-28 17:13:20
问题 Does anyone know how to decode H.264 video frame in Java environment? My network camera products support the RTP/RTSP Streaming. The service standard RTP/RTSP from my network camera is served and it also supports “RTP/RTSP over HTTP”. RTSP : TCP 554 RTP Start Port: UDP 5000 回答1: Or use Xuggler. Works with RTP, RTMP, HTTP or other protocols, and can decode and encode H264 and most other codecs. And is actively maintained, free, and open-source (LGPL). 回答2: I think the best solution is using

H.264 over RTP/RTSP (iPhone)

ぃ、小莉子 提交于 2019-11-28 17:07:05
Is it possible to view video stream (H.264 live feed) over RTP/RTSP in iPhone natively? If not, is it possible to write an application for this purpose? Grodriguez Sure it is possible, in fact others have done it already, see e.g. IPVision from TTrix . Seems that the Live555 libraries can be compiled for iOS. See this SO question: How to configure live555 framework for iphone app devleopment? Sure it is possible now. Previously, RTSP is not allowed in AppStore, though someone migrated VLC to iPhone, but that app is removed from AppStore, you can only install it via jailbreak. Now Apple doesn't

Convert mp4 to maximum mobile supported MP4 using FFMPEG

北城以北 提交于 2019-11-28 16:21:05
问题 I would like to use ffmpeg to convert an mp4 to 'low size' mp4 ... I need an mp4 file with h263 video and aac audio (or some other settings supported by low cost mobile.) My main concern is that the video be playable on most devices. What would be some possible ffmpeg commands to accomplish this? Thanks in advance. 回答1: There are numerous ways to encode mp4 videos, and encoding them for mobile devices is even more complex. I'm not sure what you mean by "low cost mobile" do you mean low cost

Problem to Decode H264 video over RTP with ffmpeg (libavcodec)

删除回忆录丶 提交于 2019-11-28 16:15:52
I set profile_idc, level_idc, extradata et extradata_size of AvCodecContext with the profile-level-id et sprop-parameter-set of the SDP. I separate the decoding of Coded Slice, SPS, PPS and NAL_IDR_SLICE packet : Init: uint8_t start_sequence[]= {0, 0, 1}; int size= recv(id_de_la_socket,(char*) rtpReceive,65535,0); Coded Slice : char *z = new char[size-16+sizeof(start_sequence)]; memcpy(z,&start_sequence,sizeof(start_sequence)); memcpy(z+sizeof(start_sequence),rtpReceive+16,size-16); ConsumedBytes = avcodec_decode_video(codecContext,pFrame,&GotPicture,(uint8_t*)z,size-16+sizeof(start_sequence))

Data corruption when reading realtime H.264 output from AVAssetWriter

拟墨画扇 提交于 2019-11-28 15:53:14
问题 I'm using some tricks to try to read the raw output of an AVAssetWriter while it is being written to disk. When I reassemble the individual files by concatenating them, the resulting file is the same exact number of bytes as the AVAssetWriter's output file. However, the reassembled file will not play in QuickTime or be parsed by FFmpeg because there is data corruption. A few bytes here and there have been changed, rendering the resulting file unusable. I assume this is occurring on the EOF

Hardware accelerated h.264 decoding to texture, overlay or similar in iOS

守給你的承諾、 提交于 2019-11-28 15:25:11
问题 Is it possible, and supported, to use the iOS hardware accelerated h.264 decoding API to decode a local (not streamed) video file, and then compose other objects on top of it? I would like to make an application that involves drawing graphical objects in front of a video, and use the playback timer to synchronize what I am drawing on top, to what is being played on the video. Then, based on the user's actions, change what I am drawing on top (but not the video) Coming from DirectX, OpenGL and

How to use hardware accelerated video decoding on Android?

风格不统一 提交于 2019-11-28 15:21:25
I need hardware-accelerated H.264 decoding for a research project, to test a self-defined protocol. As I have Search on the web, I have found a few ways to perform hardware-accelerated video decoding on Android. Use ffmpeg libstagefright ( overview of libstagefright ) or use libstagefright in the OS directly, like here . Use OpenMax on specific hardware platform. like here about samsung device and here about Qualcomm Snapdragon series Some people mentioned PVplayer , Some people "say" libstagefright is the only way while Qualcomm guys have made success obviously. Currently I am not sure which

FFmpeg c++ H264 decoding error

Deadly 提交于 2019-11-28 14:20:58
I have a program which capture video from webcam, encode with ffmpeg, encoded packet then write to buffer. At the receiver side, read from buffer decode with ffmpeg and play. Now I merge sender and receiver in one program for testing. It works fine with AV_CODEC_ID_MPEG1VIDEO, but when I change the ffmpeg codec to AV_CODEC_ID_H264, at the decoding progress, it shows error: The whole program is here FYI, I made a loop to let the whole progress run twice. What is the cause of the error, is there anything special for H264? Thanks in advance! #include <math.h> extern "C" { #include <libavutil/opt

How to process VLC UDP stream over OpenCV

折月煮酒 提交于 2019-11-28 12:22:34
问题 I was able to receive/view UDP h264 packets through VLC command line (i.e. VLC --network-caching 0 --demux h264 udp://...) I am planning on processing those frames through OpenCV algorithms. However, I can't seem to find a way to send the VLC frames over to my Python OpenCV script. Is it possible to pipe VLC stream output to be processed through Numpy in a separate script? I have previously tried directly streaming to OpenCV by using its VideoCapture function, but for some reason, the video

Minimum SDP for making a H264 RTP stream?

只谈情不闲聊 提交于 2019-11-28 09:22:19
I'm looking for an example of a minimum necessary SDP for setting up a H264 video stream.| The assumption is that the receiver can play H264 as long as it gets the required parameters through SDP. I have found a related document here however it uses lots of optional parameters in the examples, and I'm looking for the bare required minimum. TheMeaningfulEngineer Here is the bares minimum SDP. It is a file called test.sdp which has the following content: c=IN IP4 10.5.110.117 m=video 5004 RTP/AVP 96 a=rtpmap:96 H264/90000 I've started the stream on a virtual machine using VLC. (No SDP sent here)