h.264

Decoding h264 frames from RTP stream

纵饮孤独 提交于 2019-12-04 13:48:08
问题 I am using live555 and ffmpeg libraries to get and decode RTP H264 stream from server; Video stream was encoded by ffmpeg, using Baseline profile and x264_param_default_preset(m_params, "veryfast", "zerolatency") I read this topic and add SPS and PPS data in the every frame, which I receive from network; void ClientSink::NewFrameHandler(unsigned frameSize, unsigned numTruncatedBytes, timeval presentationTime, unsigned durationInMicroseconds) { ... EncodedFrame tmp; tmp.m_frame = std::vector

How to encode H.264 video using FFmpeg C API and then open the output with a media player?

强颜欢笑 提交于 2019-12-04 12:28:36
问题 I'm trying to encode a H.264 video with the FFMPEG C API. I have successfully compiled and executed the decoding/encoding example provided by FFMPEG. The problem I'm facing is that the .mpg file (encoded with AV_CODEC_ID_MPEG1VIDEO) the example creates works. Windows creates a thumbnail and everything. On the other hand the .h264 (encoded with AV_CODEC_ID_H264) file does not. When I try to play the file in VLC the play/pause button just flickers, no thumbnail in windows, no nothing. During

Using Live555 to Stream Live Video from an IP camera connected to an H264 encoder

夙愿已清 提交于 2019-12-04 12:01:23
问题 I am using a custom Texas Instruments OMAP-L138 based board that basically consists of an ARM9 based SoC and a DSP processor. It is connected to a camera lens. What I'm trying to do is to capture live video stream which is sent to the dsp processor for H264 encoding which is sent over uPP in packets of 8192 bytes. I want to use the testH264VideoStreamer supplied by Live555 to live stream the H264 encoded video over RTSP. The code I have modified is shown below: #include <liveMedia.hh>

H.264 RTSP Absolute TIMESTAMP

我只是一个虾纸丫 提交于 2019-12-04 11:58:44
问题 Is it possible to read an absolute timestamp from an H.264 stream sent trough RTSP from an Axis camera? It will be necessary to know when the frame has been taken by the camera. Thanks Andrea 回答1: as Ralf already said - the RTP timestamps are relative to a random clock - they are only useful for computing the difference between two frames (or RTP-packets in general). For synchronizing these relative values to a wall clock you can use the RTCP sender - just have a look on the links Ralf

Raw H.264 stream output by MediaCodec not playble

杀马特。学长 韩版系。学妹 提交于 2019-12-04 11:47:00
I am creating raw H.264 stream output by MediaCodec. The problem is the output file is not playable in android default player (API 16). How can it be that Android can export file that is not playable in player, only in VLC on the PC. Maybe some thing wrong with my code? My video is 384x288. public class AvcEncoder { private MediaCodec mediaCodec; private BufferedOutputStream outputStream; private File f; public AvcEncoder(int w, int h, String file_name) { f = new File(file_name + ".mp4"); try { outputStream = new BufferedOutputStream(new FileOutputStream(f)); } catch (Exception e){ e

How do i play H264 video?

久未见 提交于 2019-12-04 11:35:12
I have received the following video file from a camera (from security camera) http://dl.dropbox.com/u/1369478/tmw/recording.264 How can i view the content? Based on extension i think that is a H264 file. Is there a way to play this on the browser with HTML5? Regards Hmm.. From the looks of it it doesn't look like a H264 file.. Running it through MediaInfo, I got this: Video Format : AVC Format/Info : Advanced Video Codec Format profile : Baseline@L2.0 Format settings, CABAC : No Format settings, ReFrames : 1 frame Width : 352 pixels Height : 288 pixels Display aspect ratio : 1.222 Resolution :

Embedding HTML5 video for Mobile Safari on an iPhone 3GS vs an iPhone 4

眉间皱痕 提交于 2019-12-04 10:11:16
I have an H.264/AAC encoded video in an mp4 file on the server, the mime-type video/mp4 is added to the web server (IIS 7), and I have a page with a video tag: <video id="html5-video" width="360" height="202" poster="/images/poster.png" controls> <source src="/video/Web-360x202-14MB.mp4" type="video/mp4"> </video> Works great on an iPhone 4, but on an iPhone 3GS (same iOS version, 4.3.2) is only shows the poster image and tapping it doesn't start the video. When I try to open the video file directly, I get a 'tip' from the Mobile Safari developer console: Other Tip QuickTime Movie could not be

Parsing h.264 NAL units from a quicktime MOV file

柔情痞子 提交于 2019-12-04 09:50:49
I'm trying to get h.264 NAL units from a MOV file on the iPhone, in order to RTP h.264 video from the iPhone camera to a server. Apple's API does not allow direct access to the encoded bitstream from the camera output, so I can only access the MOV file, while it's being written. I've parsed the MOV file into Atoms , according to Apple's MOV structure reference but now i need to extract the NAL units from the mdat atom in order to pack it to RTP and stream it. I'd be glad for some help here because i can't find documentation about the mdat structure . Thanks! The mdat atom is a big blob of data

Use MediaCodec for H264 streaming

北城余情 提交于 2019-12-04 09:43:30
问题 I'm currently trying to use Android as a Skype endpoint. At this stage, I need to encode video into H.264 (since it's the only format supported by Skype) and encapsulate it with RTP in order to make the streaming work. Apparently the MediaRecorder is not very suited for this for various reasons. One is because it adds the MP4 or 3GP headers after it's finished. Another is because in order to reduce latency to a minimum, hardware accelaration may come in handy. That's why I would like to make

usage of start code for H264 video

╄→尐↘猪︶ㄣ 提交于 2019-12-04 08:46:06
问题 I have general question about the usage of start code (0x00 0x00 0x00 0x01) for the H264 video. I am not clear about the usage of this start code as there is no reference in the RTP RFCs that are related to H264 video. But I do see lot of reference in the net and particularly in the stackoverflow. I am confused as I see one client doesn't have this start code and another client is using this start code. So, I am looking for a specific answer where this start code should be used and where I