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
21
votes
3 answers

Can MIME types of Github Pages files be configured?

We have an MP4 video file in a Github Pages repository. The file is being served with a MIME type of application/octet-stream, which means Internet Explorer doesn't like it. It should be served as type video/mp4. Is there a way to configure Github…
pjmorse
  • 9,204
  • 9
  • 54
  • 124
20
votes
2 answers

Playing MP4 files in Firefox using HTML5 video

I have searched around quite a bit but have not solved my problem. I have a video tag running as follows:
19
votes
3 answers

Python: Convert GIF To video(mp4)

I am trying to find some way for converting GIF to mp4 using Python or library. I didn't found any solution for it. I found a library for generating gifs from videos but not the other way round. Can anyone please give me some information on how to…
NaMo
  • 513
  • 1
  • 6
  • 19
19
votes
5 answers

How to get better quality converting MP4 to WMV with ffmpeg?

I am converting MP4 files to WMV with these two rescaling commands: ffmpeg -i test.mp4 -y -vf scale=-1:360 test1.wmv ffmpeg -i test.mp4 -y -vf scale=-1:720 test2.wmv I've also tried: ffmpeg -g 1 -b 16000k -i test1.mp4 test1.wmv However, the .wmv…
Edward Tanguay
  • 189,012
  • 314
  • 712
  • 1,047
18
votes
3 answers

Parsing H264 in mdat MP4

I have a file that only contains the mdat atom in a MP4 container. The data in the mdat contains AVC data. I know the encoding parameters for the data. The format does not appear to be in the Annex B byte stream format. I am wondering how I would go…
Steve McFarlin
  • 3,576
  • 1
  • 25
  • 24
18
votes
3 answers

MediaMuxer error "Failed to stop the muxer"

I'm encoding Camera preview data using MediaCodec with mime-type "video/avc" and passing the encoded data (video-only, no audio) to MediaMuxer. The muxer seems to run fine and creates a reasonably sized output file (i.e., gets larger the longer I…
Andrew Cottrell
  • 3,312
  • 3
  • 26
  • 41
17
votes
1 answer

How To Convert MP4 Video File into FLV Format Using FFMPEG

i have to Convert MP4 Video File into FLV Format Using FFMPEG which i received from different mobile device. i found most of the stuff to convert flv video into mp4 and all. can any body help me out to convert mp4 format into flv using FFMPEG. i am…
nipul_tech
  • 181
  • 1
  • 1
  • 8
17
votes
2 answers

H.264 encoded MP4 presented in HTML5 plays on Safari but not iOS devices

I'm using Adobe Media Encoder CS5 to encode a FLV file to H.264 to present on the web via HTML5 and the video file plays just fine in Safari in OS X (and in Firefox encoded to OGG) but on any iOS device (iPad, iPhone) I get the play icon with the…
Tom
  • 4,467
  • 17
  • 59
  • 91
17
votes
3 answers

Can a HTML 5 video tag have multiple MP4 sources with different codecs?

I'm thinking about the fact that the higher the MP4 profile we go, the better the video quality gets... This brings me to a question I thought I'd ask the experts! Can a HTML 5 video tag have multiple MP4 sources with different codecs? Something…
bjfletcher
  • 11,168
  • 4
  • 52
  • 67
17
votes
4 answers

Record, save and/or convert video in mp4 format?

I have the following problem - I am trying to create an app that records video, then save it to the camera roll and after that I am uploading that video to the web. The problem is that the only supported format is "mp4", but my videos are "mov". So…
scourGINHO
  • 699
  • 2
  • 12
  • 31
17
votes
1 answer

Convert from .mov to .mp4 (or h264) using avconv

Looking at the avconv website there seem to be a vast array of options to convert video. However, I'm getting lost in all the technical detail. Is there a simple way to convert a .mov to a .mp4 (or h264)? I'm happy if it's slightly lossy. If it…
Snowcrash
  • 80,579
  • 89
  • 266
  • 376
17
votes
2 answers

ffmpeg - How to determine if -movflags faststart is enabled? PHP

While I am able to encode an mp4 file which I can play on my local windows machine, I am having trouble encoding files to mp4 which are readable when streaming by safari, etc. After a bit of reading, I believe my issue is that I must move the…
IIIOXIII
  • 980
  • 3
  • 15
  • 30
16
votes
1 answer

IIS 7.0 doesn't allow download of MP4 videos

I hosted some mp4 videos on IIS. Although IIS 7.0 lists the video files, it doesn't allow download of them and a 404 Not Found is returned.
Xaqron
  • 29,931
  • 42
  • 140
  • 205
16
votes
3 answers

How to stream live video in HTML5?

I'm looking for a way to broadcast a live video taken from a webcam or camera rooted to a PC. The broadcast should be displayed in a HTML5 page using the tag (which support rtp, and rtsp I think). The user viewing the stream should not have to…
user702470
  • 161
  • 1
  • 1
  • 3
16
votes
2 answers

Converting mkv to h264 FFmpeg

EDIT: This question has become very popular and is one of the top results for searching "convert mkv to h264 ffmpeg" and thus I feel it is appropriate to add that for anyone stumbling upon this question to rather use ffmpeg -i input.mkv -c:v libx264…
Rikus Honey
  • 534
  • 1
  • 3
  • 17