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

Another: Force Chrome to fully buffer mp4 video

I've seen a few threads about this, but with no answers, so I thought I'd add another to the grave yard of polluted youtube related pages. I've got a 100MB mp4 video that needs to be fully downloaded by the browser, However theres no event that…
owenmelbz
  • 6,180
  • 16
  • 63
  • 113
26
votes
2 answers

Is there a downside to putting the MOOV atom at the beginning of an MP4 file?

I see tons of questions about relocating the moov atom from the end of a MP4 video container to the beginning, to make the video "web optimized" or easier to stream. It seems like most tools require an explicit option to do this when first encoding…
Coderer
  • 25,844
  • 28
  • 99
  • 154
26
votes
3 answers

Save continuous RTSP stream to 5-10 minute long mp4 files

How can I keep the flow (protocol rtsp, codec h264) in file (container mp4)? That is, on inputting an endless stream (with CCTV camera), and the output files in mp4 format size of 5-10 minutes of recording time. OS: debian, ubuntu Software: vlc,…
Ruslan Sharipov
  • 703
  • 2
  • 7
  • 10
25
votes
3 answers

Pre-Load or Pre-Buffer .mp4 video in android app development

I am building an app that is successfully displaying an MP4 video file onButtonClick. I want to pre-buffer or preload the video's URI (remote url) so that it doesn't delay the playing of the video once the button is clicked. I want it to click and…
Nuwud
  • 251
  • 1
  • 3
  • 6
25
votes
1 answer

Fastest way to add -movflags +faststart to an MP4 using FFMPEG, leaving everything else as-is

I want to add -movflags +faststart to an mp4 file. Basically that is all I want to do, nothing else should be changed. I am using ffmpeg. What's the fastest way to do this? Do I have to re-encode the whole video? Or is there a better/easier way?
Jonas Kaufmann
  • 1,797
  • 3
  • 22
  • 43
25
votes
2 answers

converting all the mp4 audio files in a folder to mp3 using ffmpeg

how can I convert all of the mp4 files in a given folder to mp3 using ffmpeg. Almost all of the links I have seen on google is all about converting mp4 video to mp3. I can do this via VLC player but I have got huge collection ~ 1000 mp4 audio files…
Raulp
  • 7,758
  • 20
  • 93
  • 155
25
votes
3 answers

what is difference between mp4 and mpegts?

Recently I had a task to convert the file format to mp4 and stream it. I have used ffmpeg as the transcoding tool. The MP4 file doesn't get streamed over the http protocol [have used php cgi wrapper], but then the output format is changed to mpegts…
vinit sharma
  • 453
  • 2
  • 7
  • 12
24
votes
2 answers

m4a mp4 file format what's the difference or are they the same?

I've looked and can't seem to find a concrete answer. My client wants to play sound clips on his website, currently he has over 2000 clips which are in m4a format. A lot of the audio players I have looked at say they support mp4 but no mention of…
Dizzy Bryan High
  • 2,015
  • 9
  • 38
  • 61
24
votes
2 answers

How to remove or edit Exif from mp4 video?

I recorded a Full HD video with Samsung Galaxy II, when I uploaded it to YouTube I found that it turned to 90 degrees like Portrait layout 1080x1920 NOT 1920x1080. I found the cause of the problem: YouTube is reading video metadata and rotate…
Exey Panteleev
  • 1,260
  • 3
  • 13
  • 15
24
votes
2 answers

How do I add a custom thumbnail to a .mp4 file using ffmpeg?

I am trying to find the proper ffmpeg command to add a .png or .jpg image to a .mp4 video as a thumbnail. The command will eventually automatically be executed by a C# program. This is what I have so far: # This does not work. It only removes the…
cooder_one
  • 301
  • 1
  • 2
  • 11
24
votes
1 answer

Save real time video recording to sd-card using Local Socket in Android - Video not playable

Trying to capture a video and save it to sd card in Mp4/3gp formats using local socket. Being able to write bytes by bytes to sd card but the video file is not playable.I have gone through many examples…
neoengg88
  • 241
  • 2
  • 5
23
votes
2 answers

VLC: How to Create a Genuine MP4 (not M4V) File?

At "File -> Convert/Stream" menu item, applying "Video - H.264 + mp3 (mp4)" profile will result in a file in m4v format instead of mp4! Now, changing the extension from m4v to mp4 will work on some devices, while others the audio will be…
Mozart
  • 735
  • 2
  • 6
  • 10
23
votes
7 answers

Unable to play MP4 video file from mainBundle

So I'm trying to play a simple intro animation video file that I've dragged into my project in XCode and therefore should be able to play from my mainBundle, right? With this code: NSURL *urlString = [NSURL fileURLWithPath:[[NSBundle mainBundle]…
PinkFloydRocks
  • 808
  • 3
  • 14
  • 29
22
votes
2 answers

FFMPEG: Transmux mpegts to mp4 gives error: muxer does not support non seekable output

When piping mpegts to ffmpeg, which should convert it to mp4 and pipe to stdout, ffmpeg says: "muxer does not support non seekable output". After a lot of research I came to the conclusion that mp4 is a bad choice for doing those kinds of on-the-fly…
Kr0e
  • 2,149
  • 2
  • 24
  • 40
21
votes
2 answers

Python OpenCV video.get(cv2.CAP_PROP_FPS) returns 0.0 FPS

This is my video This is the script to find fps: import cv2 if __name__ == '__main__' : video = cv2.VideoCapture("test.mp4"); # Find OpenCV version (major_ver, minor_ver, subminor_ver) = (cv2.__version__).split('.') if…
Tasos
  • 1,575
  • 5
  • 18
  • 44