Questions tagged [mp4]

MP4 is a multimedia container format standard with the file extension .mp4. It can be used to store digital audio/video streams, in addition to other multimedia.

MPEG-4 Part 14 or MP4 (formally ISO/IEC 14496-14:2003) is a multimedia container format standard specified as a part of MPEG-4. It is most commonly used to store digital video and digital audio streams, especially those defined by MPEG, but can also be used to store other data such as subtitles and still images.

More details at MP4 in WikiPedia

3069 questions
40
votes
2 answers

Extracting frames from MP4/FLV?

I know it's possible with FFMPEG, but what to do if I have a partial file (like without the beginning and the end). Is is possible to extract some frames from it?
blez
  • 4,939
  • 5
  • 50
  • 82
40
votes
13 answers

We have an MP4 video on our site; it plays fine in IE9+, Firefox, Chrome, and Chrome on mac. However, on Safari, the video doesn't play at all - it does trigger a "stalled" event and then nothing loads. I would post our HTML, but I traced the…
Katana314
  • 8,429
  • 2
  • 28
  • 36
39
votes
9 answers

Anyone familiar with mp4 data structure?

Where in the mp4 file structure is the duration of it?
The Student
  • 27,520
  • 68
  • 161
  • 264
37
votes
3 answers

Post processing in ffmpeg to move 'moov atom' in MP4 files (qt-faststart)

Is it possible to run ffmpeg from the command line which will either place the 'moov atom' metadata in the beginning of the MP4 file or run the qt-faststart as a post processing operation in ffmpeg so the generated file is stream-able through the…
siliconpi
  • 8,105
  • 18
  • 69
  • 107
37
votes
5 answers

what is the codec for mp4 videos in python OpenCV

fourcc = cv2.cv.CV_FOURCC(*'XVID') The above line is used for avi video. In the same fashion, which codec do we use for mp4 videos in Ubuntu?
Suhail Ahmed Khan
  • 665
  • 2
  • 8
  • 10
37
votes
4 answers

Live streaming through MP4

I am working on an online TV service. One of the goals is for the video to be played without any additional browser plug-ins (except for Flash). I decided to use MP4, because it is supported by the majority of HTML5 browsers and by Flash (for…
Ivo
  • 1,673
  • 3
  • 19
  • 28
33
votes
4 answers

Adding watermark bitmap over video in android: 4.3's MediaMuxer or ffmpeg

Here is my scenario: Download an avi movie from the web Open a bitmap resource Overlay this bitmap at the bottom of the movie on all frames in the background Save the video on extarnal storage The video length is 15 seconds usually Is this…
Alin
  • 14,809
  • 40
  • 129
  • 218
31
votes
4 answers

Using php to output an mp4 video

Ok basically I have a project that requires that videos are hidden from the users while still able to see them (by using php). here's what i got so far: The video.php file has this:
Zia
  • 2,735
  • 3
  • 30
  • 27
30
votes
3 answers

Repairing a Corrupt MP4 Video File

I have an MP4 video that I took with a Flip camera. The camera froze up while I was stopping the recorder and now the video appears corrupt. I can still download it off the camera, but it won’t play. Now, the video is still over 2 Gigabytes in size,…
Steve C.
  • 577
  • 1
  • 6
  • 19
29
votes
2 answers

Converting an HLS (m3u8) to MP4

Can anyone advise on how to construct an MP4 file from an HLS stream (the reverse of what you usually want)? Say I have the m3u8 - is there a straightforward way of getting a single MP4 using FFMPEG or some other tool?
orcaman
  • 6,263
  • 8
  • 54
  • 69
28
votes
3 answers

How to load videos from assets folder? (to play them with VideoView)

I need to open a mp4 video from the assets folder and play it with VideoView. I tryed with these two options, but none of them…
NullPointerException
  • 36,107
  • 79
  • 222
  • 382
28
votes
10 answers

How to get video duration from mp4, wmv, flv, mov videos

Alright. Actually i need mostly the mp4 format. But if it is possible to get for other types as well that would be nice. I just need to read the duration of the file. How can i do that with C# 4.0 ? So the thing i need is like this video is like :…
Furkan Gözükara
  • 22,964
  • 77
  • 205
  • 342
27
votes
4 answers

Convert compressed swf to mp4

I'm looking for a batch script to convert swf to mp4, lossless. I tried using both ffmpeg and handbrake, but apparently swf is compressed and I can't convert them this way. ffmpeg -i input -c:v libx264 -preset ultrafast -qp 0…
skmvasu
  • 3,098
  • 3
  • 24
  • 29
26
votes
7 answers

how play mp4 video in google colab

I have a video.mp4 in content/video.mp4 if I wanted to play the video in google colab without downloading , ¿what code I should use to open a kind of video player in my jupyter notebook?
molo32
  • 387
  • 1
  • 3
  • 6
26
votes
6 answers

convert from jpg to mp4 by ffmpeg

I have 320 jpg(320x574) images which I have recorded them with 2004 fps. I want to make a .mp4 video of them. I have run below codes in cmd (win7) and it just make a video of jpg number 320 and if I go for this ('*.jpg') insted of 320 it does not…
Sam
  • 457
  • 1
  • 7
  • 15