h.264

Is sprop-parameter-sets or profile-level-id the SDP parameter required to decode H264?

孤人 提交于 2020-01-21 05:19:24
问题 I'm trying to understand what is the required parameter in SDP to be able to decode H264 from RTP packets. This is an related to this question, for the answer to that one works only in small number of cases. Example I am streaming from VLC with the following command. vlc -vvv sample_video/big_buck_bunny_480p_h264.mov --sout '#transcode{vcodec=h264,vb=700,fps=20,scale=0.25,acodec=none}:rtp{dst=10.5.110.117,port=5004,ttl=1}' This transcodes the video to: Bitrate: 700kbps Frame rate: 20 per

Open mp4 with libVLC and play it in OpenCV C++

半腔热情 提交于 2020-01-16 19:40:33
问题 I want to play video file, that i obtained from IP-camera (H264-codec) using libVLC and OpenCV, so i took the code from this post, then created project in VS 2010, and put my mp4 file into project folder ("5.mp4"). When i started it - i got this errors: main error: open of `5.mp4' failed main error: Your input can't be opened main error: VLC is unable to open the MRL '5.mp4'. Check the log for details. Here's my code: #include <vlc/vlc.h> #include <opencv2/opencv.hpp> #include <opencv2

Open mp4 with libVLC and play it in OpenCV C++

青春壹個敷衍的年華 提交于 2020-01-16 19:40:15
问题 I want to play video file, that i obtained from IP-camera (H264-codec) using libVLC and OpenCV, so i took the code from this post, then created project in VS 2010, and put my mp4 file into project folder ("5.mp4"). When i started it - i got this errors: main error: open of `5.mp4' failed main error: Your input can't be opened main error: VLC is unable to open the MRL '5.mp4'. Check the log for details. Here's my code: #include <vlc/vlc.h> #include <opencv2/opencv.hpp> #include <opencv2

H264 WebRTC video streamed from ffmpeg through Janus is very choppy on playback

余生长醉 提交于 2020-01-13 19:14:08
问题 Trying to stream video through following chain: h264/mp4 file on local instance storage (AWS)->ffmpeg->rtp->Janus on same instance->WebRTC playback (Chrome/mac). Resulting video is choppy even as none of the resources seem overloaded (CPU/memory/network bandwidth on any of the systems involved). I also use a Coturn TURN server, it is also not loaded at all and bandwidth is plentiful. Tried switching codecs and it didn't help apart from vp8 which while worked (kind of - choppiness was still

.h264 sample file

本秂侑毒 提交于 2020-01-13 06:53:27
问题 I'm currently using files here, but I get some errors while testing my program. I just want to see if it fails only with this one or with all other .h264 files. So, are there any other sources where I can download (standard) .h264 sample files for test ? Thanks. 回答1: Option 1: make your own with x264. These are not standard sample files, but you can control which parts of H.264 they use, for example different profile/level/etc, make them I-frame-only, make them have only a particular

Non IDR Picture NAL Units - 0x21 and 0x61 meaning

落花浮王杯 提交于 2020-01-13 05:38:30
问题 Does anyone know what does 0x21 and 0x61 means in h.264 encoded video stream? I know that 0x01 means it's a b-frame and 0x41 means it's a p-frame . My encoded video gives me two 0x21 frame followed by one b-frame . I 21 21 B 21 21 B...... What is this 0x21 ? 回答1: From H.264 spec: 7.3.1 NAL unit syntax forbidden_zero_bit - 1 bit - shall be equal to 0. nal_ref_idc - 2 bits - not equal to 0 specifies that the content of the NAL unit contains a sequence parameter set [...] nal_unit_type - 5 bits

How to get video height and width from a MP4 URL with pure ecmascript and without browser support for h.264?

♀尐吖头ヾ 提交于 2020-01-13 02:44:29
问题 I'm writing a user script for downloading videos. The flash player of the web site use a JSON file. The purpose of my script is to get the url of the video by downloading and parsing the video according to the web page. Currently it can download an extract the URL of the videos successfully. The important part of the JSON file look like this : { "ammProfile": "AMM-HBBTV", "version": "VF", "versionProg": "1", "VFO": "HBBTV", "VMT": "mp4", "VUR": "http://vo.llnwd.net/v2/am/HBBTV/051332-074-A_SQ

Create mp4 files on Android using Jcodec

扶醉桌前 提交于 2020-01-11 20:00:28
问题 i have some troubles with writing mp4 files on Android using MediaRecorder and Jcodec, here is my code public class SequenceEncoder { private final static String CLASSTAG = SequenceEncoder.class.getSimpleName(); private SeekableByteChannel ch; private byte[] yuv = null; private ArrayList<ByteBuffer> spsList; private ArrayList<ByteBuffer> ppsList; private CompressedTrack outTrack; private int frameNo; private MP4Muxer muxer; ArrayList<ByteBuffer> spsListTmp = new ArrayList<ByteBuffer>();

MP4 / ISO 14496-12 : How do you find the video and audio access units?

▼魔方 西西 提交于 2020-01-11 08:09:09
问题 I am writing a tool for inspecting MP4 files (aka ISO base media file format , ISO 14496 part 12). I can interpret the majority of the boxes listed in ISO 14496-12 that are generated by OSS. I have yet to figure out how to extract individual video access units and audio access units. I'm reasonably confident that the H.264 video in the 'mdat' box does not have the ISO 14496-10 Annex B "0x000001" prefix on the NAL units. I have experimented with interpreting the SampleToChunkBox('stsc'),

How can I create an H.264 encoded movie from a set of images in c#?

旧时模样 提交于 2020-01-10 19:42:14
问题 I have been doing a lot of searching today for C# libraries which will allow me to create H.264 encoded video files. Does anyone know if any such libraries or 3rd party components exist? 回答1: Use ffmpeg. I suggest to run a ffmpeg process directly, like in this sample: http://jasonjano.wordpress.com/2010/02/09/a-simple-c-wrapper-for-ffmpeg/ While the sample doesn't deal with the operation you need, I suggest to adapt it to your needs. 回答2: ffmpeg-sharp is probably a good starting point. 来源: