Questions tagged [mpeg-4]

MPEG-4 is an ISO/IEC standard for video and audio compression as a successor of MPEG-2. It has much more complex capabilities including arbitrary shaped videos and new ways of synthesis.

MPEG-4 is an ISO/IEC standard for video and audio compression as a successor of MPEG-2. It has much more complex capabilities including arbitrary shaped videos and new ways of synthesis.

More information about MPEG4 is at http://en.wikipedia.org/wiki/MPEG-4

248 questions
2
votes
0 answers

ffmpeg: Is there a way to decode a video frame, given the previous frame, motion vectors, and a residual image?

Assume we are given the following numpy arrays: the BGR video frame for timestep t-1, the motion vectors for timestep t, and the residual image for timestep t. Also, assume the video frame, motion vectors, and residual iamge, come from a video which…
aarzchan
  • 21
  • 2
2
votes
0 answers

C++ RTSP Stream recording timebase wrong ffmpeg

We fetch a camera stream over RTSP (Axis Q1755 H264). And after a random time we a start recording the stream to a file. I check the video file with ffprobe and realise the start time is not the start time of the recording it is the start time of…
Tom Baires
  • 381
  • 3
  • 16
2
votes
0 answers

I need to Convert video format to Codec: H264-MPEG-4 AVC in java.This video format will support to all latest html 5 browsers

I need to convert video format to Codec:- H264 - MPEG-4 AVC (part 10) (avc1) . This video format will support to all latest html 5 browsers. I need help to solve this issue If any one having the code please post the code Thank you in Advance. I…
vedanand
  • 21
  • 4
2
votes
2 answers

DCT coefficients and MV extraction in ffmpeg Mpeg-4 encoding

I'm using ffmpeg and libx264 to encode a video and I want to extract the DCT coefficients and motion vector of each frame during the encoding process. What is the best way to do this? I read in the ffmpeg manual that is possible to use the debug…
2
votes
0 answers

Recognizing the coded type of mp4

I am working on a Java based media management platform where users can upload media files and preview them. Preview generation is done using xuggler and based on the following logic: if (can be played in a browser) { directly upload …
Maddy
  • 2,114
  • 7
  • 30
  • 50
2
votes
1 answer

Shape coding in MPEG-4 Part 2 (MPEG-4 Visual)

Can someone explain what was the original motivation behind using shape coding in MPEG-4 Part 2 and why it was later not implemented/removed in MPEG-4 Part 10 (H.264)? I already read the excellent answer here, so I know that they both codecs were…
chronosynclastic
  • 1,585
  • 3
  • 19
  • 40
2
votes
1 answer

Getting frame dimension from raw mpeg4 stream?

does anyone know how i can retrieve the frame dimension of a mpeg4 video (non h264, i.e. Mpeg4 Part 2) from the raw video bitstream? i´m currently writing a custom media source for windows media foundation, i have to provide a mediatype which needs…
Joachim Kerschbaumer
  • 9,695
  • 7
  • 49
  • 84
2
votes
0 answers

libfdk_aac not reading into buffer

I am trying to decode an AAC encoded file using libfdk_aac. The file consists of a stream of raw AAC-LC ADTS packets that were generated using libfdk_aac. I'm sure the data is well formed because I can play the file using VLC and Window Media…
Justin H.
  • 143
  • 8
2
votes
1 answer

Creating video from Frames in Android

I am using Android MediaCodec : ExtractMpegFramesTest for grabbing frames from video but now i am not getting any useful information on google for How can i create video from frames.png in android?
2
votes
1 answer

How is a h264 idea bitstream organized? / header start codes

I was trying to learn a bit about h264 by looking at the bitstream of a video file with a hex editor. I found here the start codes for a video object planes (0x000001b6) and for i-frames (0x000001b600). But I can't find many of those bytes in video…
Matt
  • 1,143
  • 1
  • 11
  • 19
2
votes
0 answers

Demo break down when try to call MPEG4Writer.o through JNI

I am building my app demo on JellyBean(Android4.2.2), one module of the demo is write the h264 stream into mp4 file. Since the MPEG4Writer does this job in the source code, so I try to call it through JNI. After I compile the source code, I get the…
Brendon Tsai
  • 1,267
  • 1
  • 17
  • 31
2
votes
1 answer

Writing MPEG 4 headers

I have a Hardware which encodes YUV frames into MPEG-4 frames. I want to save these frames as a MP4 movie, but I can't find any article or document to explain how to do it. I found an open source project (I don't remember from where) it encodes to…
Ahmad Afkande
  • 137
  • 2
  • 14
2
votes
0 answers

How to decode MPEG4 using libavcodec

I am using codec_id=AV_CODEC_ID_MPEG4 and am calling avcodec_encode_video2() with a video buffer received from a webcam and converted into yuv420p format. This works without issue and I get output each time I run it through the encoder. How do I…
2
votes
0 answers

Browsers does not plays my mp4 (H.264) file with

I embedded my own mp4 (H.264) file onto HTML5 file using
Chappy 003
  • 444
  • 1
  • 5
  • 15
2
votes
1 answer

Encoding iOS captured video to MPEG4

I'm developing a social video app which a user can capture a video or choose one from his photo library. The videos are not playing on android devices, and after some research we figured out that we should encode the videos on both sided to MPEG4…
Ariel
  • 143
  • 10