mpeg

GoPro: get each frame time stamp

痴心易碎 提交于 2019-12-03 03:33:35
I am currently trying to extract each frame time stamp from an MPEG-4 file that has been recorded using a GoPro. I want the exact time at which the frame has been captured by the camera, to couple that with computer vision algorithms later on. I know that the output framerate is 25 fps. I extracted the pts in different ways using ffmpeg and ffprobe, but they all show way too perfect results for me to believe them. Each frame/packet has a precise, 0.04 sec interal (or 3600 in pts units) which conveniently enough matches a perfect 25 fps. The commands I have used so far are: ffmpeg -i 3_96025

MPEG Coding GOP

大憨熊 提交于 2019-12-02 21:52:23
问题 I am trying to figure out how GOP works Consider the uncoded frame sequence: I B B P B B P B B P B B I B B P B B P B I understand what The N(GOP) is, it's 12 if I am counting from Iframe to Iframe. I know what the predicted span is, it's 2. What is the reordered sequence for decoding for these frames? How would you increase random access? How would you increase compression? How do errors creep in? could someone explain it to me the 4 questions. thank you 回答1: Check out this MPEG compression

MPEG Coding GOP

此生再无相见时 提交于 2019-12-02 08:56:01
I am trying to figure out how GOP works Consider the uncoded frame sequence: I B B P B B P B B P B B I B B P B B P B I understand what The N(GOP) is, it's 12 if I am counting from Iframe to Iframe. I know what the predicted span is, it's 2. What is the reordered sequence for decoding for these frames? How would you increase random access? How would you increase compression? How do errors creep in? could someone explain it to me the 4 questions. thank you Check out this MPEG compression FAQ , particularly the section "Q. So is each frame predicted from the last frame?" for a more detailed

Reading information from PAT section (MPEG-TS)

南笙酒味 提交于 2019-12-01 21:03:17
I'm writing a MPEG-TS file parser and I'm stuck on getting program_numbers and PIDs from the PAT section. I'm using a packet analyser to compare my results. For example, here's a PAT packet 47 40 00 16 00 00 B0 31 00 14 D7 00 00 00 00 E0 10 00 01 E0 24 00 02 E0 25 00 03 E0 30 00 04 E0 31 00 1A E0 67 00 1C E0 6F 43 9D E3 F1 43 A3 E3 F7 43 AC E4 00 C3 69 A6 D8 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF

RTSP solution for JavaScript/HTML5 [closed]

喜你入骨 提交于 2019-12-01 15:17:48
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . I am developing a Smart TV application and streaming live video from an IP Camera is a huge portion of the functionality. The camera's manual states that if it is set to stream MPEG-4 or H.264 that HTTP is not supported; only RTSP/RTP is. The alternative (via HTTP) is Motion JPEG, which I would like to avoid as

Split MPEG-TS into MP4 files with gstreamer 1.12.2

ぃ、小莉子 提交于 2019-12-01 11:53:50
问题 I have a MPEG-TS file which contains two video/audio stream-pairs: $ gst-discoverer-1.0 Recorder_Aug01_12-30-39.ts Analyzing Recorder_Aug01_12-30-39.ts Done discovering Recorder_Aug01_12-30-39.ts Topology: container: MPEG-2 Transport Stream audio: MPEG-2 AAC audio: MPEG-4 AAC video: H.264 (High Profile) audio: MPEG-2 AAC audio: MPEG-4 AAC video: H.264 (High Profile) Properties: Duration: 0:01:49.662738259 Seekable: yes Tags: audio codec: MPEG-2 AAC video codec: H.264 Now I would like to

Programmatically transcode MPEG-2 videos

牧云@^-^@ 提交于 2019-12-01 00:53:09
I need to be able to programmatically transcode mpeg-2 files to .mp4, .mp3, .wmv, .rm (optional), and .flv (optional), and hopefully generate a thumbnail as well. I found the Java Media Framework, but it frankly looks pretty crappy. This will be running a Linux server, so I could shell out to ffmpeg using Commons Exec - does ffmpeg do everything I need to do? FFmpeg seems pretty daunting, which is why I'm having trouble finding this information, but it definitely seems to be a jack-of-all-trades. Any suggestions? Ffmpeg is the best and easiest. To output/convert video: ffmpeg -i {input}.ext -r

Programmatically transcode MPEG-2 videos

喜欢而已 提交于 2019-11-30 20:01:49
问题 I need to be able to programmatically transcode mpeg-2 files to .mp4, .mp3, .wmv, .rm (optional), and .flv (optional), and hopefully generate a thumbnail as well. I found the Java Media Framework, but it frankly looks pretty crappy. This will be running a Linux server, so I could shell out to ffmpeg using Commons Exec - does ffmpeg do everything I need to do? FFmpeg seems pretty daunting, which is why I'm having trouble finding this information, but it definitely seems to be a jack-of-all

MPEG-TS Segments HTTP Live Streaming

送分小仙女□ 提交于 2019-11-30 16:28:52
I'm trying to interleave MPEG-TS segments but failing. One set of segments was actually captured using the built in camera in the laptop, then encoded using FFMPEG with the following command: ffmpeg -er 4 -y -f video4linux2 -s 640x480 -r 30 -i %s -isync -f mpegts -acodec libmp3lame -ar 48000 -ab 64k -s 640x480 -vcodec libx264 -fflags +genpts -b 386k -coder 0 -me_range 16 -keyint_min 25 -i_qfactor 0.71 -bt 386k -maxrate 386k -bufsize 386k -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -aspect 640:480 And the other one is an avi file that was encoded using the following command: fmpeg -er 4 -y -f avi -s

Are B, P frames results of the motion estimation/compression?

心不动则不痛 提交于 2019-11-30 09:49:18
问题 Confused about the relationship between MPEG frames and motion estimation/compensation :( Are B, P frames results of the motion estimation/compression? But motion estimation/ compression use those frames. Then how and who decide the frames? 回答1: There are actually 3 types of frames: I-frame Intra-coded (independent) frame, the least compressed P-frame Predicted frame: uses precedent frames to improve compression B-frame Bi-directional frame: uses both previous and next frames for the best