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
936
votes
31 answers

How to concatenate two MP4 files using FFmpeg?

I'm trying to concatenate two mp4 files using ffmpeg. I need this to be an automatic process hence why I chose ffmpeg. I'm converting the two files into .ts files and then concatenating them and then trying to encode that concatenated .ts file. …
Mark L
  • 12,405
  • 4
  • 28
  • 41
216
votes
9 answers

Use ffmpeg to add text subtitles

I am trying to add text subtitles to an .mp4 container using ffmpeg: ffmpeg -i input.mp4 -i input.srt -map 0.0 -map 0.1 -map 1.0 output.mp4 When I am trying to run this line, it gives me an error : Nmber of stream maps must match number of output…
0-alpha
  • 3,281
  • 5
  • 20
  • 12
102
votes
1 answer

Possible Locations for Sequence/Picture Parameter Set(s) for H.264 Stream

I'm working on a H.264 Decoder and I'm wondering where to find the SPS and PPS. My reference literature tells me that those are NAL Units encoded in the H.264-Stream, but when I look into an example-MP4-File with IsoViewer, it says that the SPS and…
bananenbär
  • 1,125
  • 3
  • 8
  • 7
85
votes
2 answers

What exactly is Fragmented mp4(fMP4)? How is it different from normal mp4?

Media Source Extension (MSE) needs fragmented mp4 for playback in the browser.
Aditya Gupta
  • 896
  • 1
  • 7
  • 9
77
votes
2 answers

Safari ignores mp4 files

I am using an HTML file input like this: to allow my users to upload videos to my site. This works as expected in all modern browsers (only permitting the user to select video files) except Safari. From what I…
cdanzig
  • 887
  • 1
  • 7
  • 8
61
votes
10 answers

Can I have a video with transparent background using HTML5 video tag?

We filmed a spokesperson on a green screen and have the video files ready in multiple formats. With Flash we could use the wmode transparent within the param and embed tags, but is there something similar to this with the video and source tags in…
DavidE
  • 611
  • 1
  • 6
  • 3
61
votes
1 answer

ffmpeg settings for converting to mp4 and ogg for HTML5 video

Despite all the hype, in reality the HTML5 video tag has a bit of a problem. In order to use it and for it to be cross browser compatible, you have to include more than one format of the video. To target all supported browsers these formats are mp4…
betamax
  • 13,431
  • 9
  • 38
  • 55
59
votes
4 answers

How to output fragmented mp4 with ffmpeg?

ffmpeg -i infile.avi out.mp4 outputs non-fragmented MP4. How do I obtain fragmented mp4? Update A fragmented mp4 file is internally divided into several back-to-back chunks or MPEG-4 movie fragments. Each chunk has its own moof atom - so there are…
S B
  • 8,134
  • 10
  • 54
  • 108
59
votes
5 answers

Bootstrap 3 - Responsive mp4-video

I tried to find a good solution on the bootstrap site but I didn't get an answer to this yet. I think I can't be the only one struggling with this, but I couldn't find anything that helped me. I'm trying to embed an mp4-video on my website. The…
54
votes
3 answers

MP4 File Format Specification

I am writing some code to parse MP4 files ... Is there a free source to get documentation on the MP4 File Format Specification. So far I have only found an ISO document which I would need to purchase ISO PDF. Is MP4 Not an open standard ?
avrono
  • 1,648
  • 3
  • 19
  • 40
53
votes
2 answers

Fastest way to extract a specific frame from a video (PHP/ffmpeg/anything)

I have a web page, which (among other things) needs to extract a specific frame from a user-uploaded video. The user seeks to a particular part of a .mp4 in the player, then clicks a button, and an ajax call gets fired off to a php script which…
DanM
  • 7,037
  • 11
  • 51
  • 86
53
votes
7 answers

How to add a MOOV atom in a mp4 video file

I am working on live device to server streaming in android. I am able to send data in bytes on server but when I play that file during recording on server VLC say that MOOV atom not found. After a lot of workaround I found that MOOV atom of a mp4…
Ravinder
  • 539
  • 1
  • 4
  • 4
49
votes
3 answers

How do I embed a mp4 movie into my html?

I have a blog section on my site that has the TinyMce editor. I want to embed a video when I post a blog and it's just spitting out the code. I have added the tag on my output script. This is the code I'm using to for the video:
Ralph The Mouf
  • 1,007
  • 1
  • 14
  • 21
45
votes
6 answers

How to play .mp4 video in videoview in android?

I am working on a video player application, I want to play .mp4 video in the native video view. I am not able to play video using a URL. I am getting the error "Sorry this video cannot be played" and I am also not able to play downloaded video in…
Hiren Patel
  • 52,124
  • 21
  • 173
  • 151
44
votes
6 answers

Unable to host MP4 files on Azure web site

I am hosting a static website on a reserved web site in Azure (It is PaaS, no access to OS/IIS). I am trying to add some .mp4 videos but when I click on the links I get The resource you are looking for has been removed, had its name changed, or is…
Ed Cunn
  • 441
  • 1
  • 4
  • 3
1
2 3
99 100