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
16
votes
1 answer

H.264 muxed to MP4 using libavformat not playing back

I am trying to mux H.264 data into a MP4 file. There appear to be no errors in saving this H.264 Annex B data out to an MP4 file, but the file fails to playback. I've done a binary comparison on the files and the issue seems to be somewhere in what…
Brad Mitchell
  • 254
  • 1
  • 3
  • 12
15
votes
4 answers

Should I use the MP3 or AAC codec for a .mp4 file?

We have an encoding process in place using ffmpeg on Mac OS X. This process will take a source video and a couple files from that: .m3u8 video, .mp4 video and .mp3 audio file. By default we've used the video from our m3u8 process which is a h264…
Justin Jenkins
  • 26,590
  • 6
  • 68
  • 1,285
15
votes
3 answers

mp4 atom - How to discriminate the audio codec? Is it AAC or MP3?

I'm working on a mp4 container parser but I'm going crazy trying to recognize the audio codecs of the streams. I used both QtAtomViewer and AtomicParsley but when I find the atom: trak->mdia->minf->stbl->stsd I get always "mp4a" even if the mp4 file…
FireEater
  • 153
  • 1
  • 1
  • 7
15
votes
2 answers

Camera2 video recording without preview on Android: mp4 output file not fully playable

I am trying to record video from the back camera (the one that faces the face) on my Samsung Galaxy S6 (which supports 1920x1080 at about 30 fps). I do not want to have to use any surface for previewing if I do not have to as this is to just happen…
Mark
  • 1,124
  • 1
  • 14
  • 21
15
votes
2 answers

Streaming MP4 Video File on Gstreamer

I am working on gstreamer for first time and trying to Stream an MP4 Video file from a server to client using Gstreamer (RTP and UDP) . The Command Line which I am trying to use : On Server Side: gst-launch-1.0 -v filesrc location = file_name.mp4 !…
Pratyush Kulwal
  • 165
  • 1
  • 1
  • 11
15
votes
1 answer

Android MediaCodec: Reduce mp4 video size

I am looking for a way to "compress" an mp4 video. To achieve this, I want to reduce the resolution of the video and / or reduce FPS. After long research, I think the way to do it is to use MediaCodec and related APIs as follows : -> MediaExtractor…
Ricardo Cion
  • 151
  • 1
  • 1
  • 4
15
votes
2 answers

How to wrap H264 into a mp4 container?

I have a program generating a bunch of raw H264 frames and would like to place that into a mp4 container for streaming. Anyone know how to do that? I was thinking I'd use ffmpeg however, this needs to be used commercially and it seems like ffmpeg…
mczarnek
  • 307
  • 1
  • 3
  • 13
14
votes
1 answer

Convert Videos with FFMPEG to PowerPoint 2016 compatible video format

I am trying to convert a bunch of videos to a video format that is natively supported by PowerPoint 2013/2016 on a Windows 7 system. Microsoft recommends on their website mp4 with h264 and aac. Video and audio file formats supported in…
Sebastian S.
  • 507
  • 1
  • 3
  • 7
14
votes
6 answers

How to get HTML5 video thumbnail without using poster on safari or iOS?

I have embedded HTML5 video with mp4 format. How to get thumbnail image like poster without using "poster" attribute. This problem coming on Safari and iOS. I have added video like below mentioned code.
14
votes
1 answer

Create MP4 video in JavaScript

Is it possible to create an MP4 video on a browser through JavaScript? (I know it is now possible in Flash with FlashyWrappers) Ideally, I will be feeding it with image frames (raw, PNG or anything) and it will be combining them into an MP4…
Bill Kotsias
  • 3,258
  • 6
  • 33
  • 60
14
votes
3 answers

How to save a RTSP video stream to MP4 file via gstreamer?

I need to get a video stream from my camera via RTSP and save it to a file. All of this needs to be done via gstreamer. After some google searching, I tried the following: gst-launch-1.0 rtspsrc location=rtsp://192.168.1.184/live2.sdp ! queue !…
Juster
  • 732
  • 1
  • 10
  • 26
14
votes
3 answers

Real Time Streaming to HTML5 (with out webrtc) just using video tag

I would like to wrap real time encoded data to webm or ogv and send it to an html5 browser. Can webm or ogv do this, Mp4 can not do this due to its MDAT atoms. (one can not wrap h264 and mp3 in real time and wrap it and send it to the client) Say I…
Evren Bingøl
  • 1,306
  • 1
  • 20
  • 32
14
votes
9 answers

Embed MP4 in HTML using flash-player

Can I embed MP4-files streaming using a flash-player? I find several places it is mentioned, but some places also mention that flash-10 might be a requirement, it might now work well for streaming etc... Are there any limitations I should be aware…
Kjensen
  • 12,447
  • 36
  • 109
  • 171
13
votes
1 answer

webRTC convert webm to mp4 with ffmpeg.js

I am trying to convert webM files to mp4 with ffmpeg.js. I am recording a video from canvas(overlayer with some information) and recording the audio data from the video. stream = new MediaStream(); var videoElem =…
q-jack
  • 366
  • 2
  • 3
  • 17
13
votes
7 answers

MP4 container writer in Java

I would like to find a FREE MP4 (container) writer for Java. I do not need an encoder, only something which can write the correct atoms given their expected values. Bonus for such a library that also can write "valid" F4V. I would prefer a pure…
Paul Gregoire
  • 9,715
  • 11
  • 67
  • 131