Questions tagged [mp4]

A digital multimedia container format most commonly used to store video and audio, but which can also be used to store other data such as subtitles and still images.

Filter by
Sorted by
Tagged with
99 votes
6 answers
228k views

Repeat/loop Input Video with ffmpeg?

I just want to loop a mp4 video with ffmpeg and keep the current settings and codec. For example if input.mp4 is 0:10 long, and I would want to loop it 4 times so output.mp4 is 0:40 long, how could I ...
  • 1,101
31 votes
2 answers
27k views

MP4 / h.264 patent issues?

I know this is not a legal forum but I'm assuming this is a daily issue for most people on this site since h.264 video (AVC / MPEG4 part10) is so ubiquitous (and there is a legal tag here). I've read ...
  • 681
12 votes
1 answer
6k views

How is this .mp4 file 596523 hours long?

I came across this joke mp4 file online. (Warning: direct download link to an 8 mb file.) Media players as well as ffmpeg both list the file as having a length of 596523:14:07.00 (!). My first guess ...
  • 223
11 votes
3 answers
35k views

Merge MP4 with M4A

I have two files, one is MP4 file with video only and another is M4A audio file. What is the best and simpliest method of merging these two tracks in a single MP4 container? Is it possible to do this ...
10 votes
3 answers
118k views

How to Create a High Quality, Small File Size .mp4 from .mov

Recently, I helped a friend produce a short zombie comedy. He has now asked me to add it to the film's website as a digital download. I'm not having issues with the digital download. My issue is how ...
10 votes
1 answer
18k views

Video converted by FFMPEG has a different duration, why?

I convert videos using FFMPEG. My goal is to convert them to the MP4 container format (MPEG-4 Part 14) with AAC-encoded audio stream and MPEG-4 part 10-encoded video stream. I use the following line ...
  • 203
10 votes
3 answers
11k views

Need help to fix a broken MP4 which lacks a MOOV atom

Please be forgiving to a video file format newbie, who has travelled far and wide all over the Web in search of a relatively simple question and hoped to get an answer (even a fairly complicated one ...
10 votes
1 answer
32k views

Convert mp4 to avi while keeping frame rate and quality and being able to play in QuickTime?

I'm trying to convert an mp4 file to avi. I've tried this basic ffmpeg script: ffmpeg -i inputFile.mp4 outputFile.avi It works, but: the encoded avi file is very pixelated does not work with ...
  • 651
9 votes
3 answers
13k views

Corrupt MP4 [recording interrupted]

I was recording an MP4 file using PlaysTV, and my computer had a power fault half-way through the recording. I'm sure that the file contains valid data, it's just that no media player will recognize ...
9 votes
1 answer
7k views

Copying h.264 video from TS into MP4 changes frame rate and time

I have large MPEG-TS file that I am converting to MP4 using the below command. If I seek to the same time in the video in both the MP4 and the TS file, the MP4 will be a few frames behind the TS ...
  • 93
8 votes
3 answers
10k views

Do video formats support colour profiles?

Recently, I was reading a wiki, dedicated to one popular cartoon show and stumbled upon an interesting problem: From left to right: frames from the US iTunes, Australian iTunes and US iTunes version ...
7 votes
3 answers
86k views

Can I manually change an .mp4 to .m4v by changing the extension in the Finder (mac) or explorer (win)?

I need to change an .mp4 (h264, AAC-Audio) to an exactly same .m4v. Can I just rename it from "X.mp4" to "X.m4v"? By renaming, I mean clicking on it in Finder (Mac) or Explorer (Win) and renaming it.
  • 71
7 votes
2 answers
13k views

How to convert an MTS file without loosing quality?

I have shot some videos on a Panasonic v720 camcorder. The videos are huge. I used the internal feature of the camcorder to convert to MP4 and the quality was reduced very much. What is the best ...
  • 183
7 votes
1 answer
11k views

Removing / Overlaying logo on mp4 video format with ffmpeg on linux

I'm trying to remove a logo from an .MP4 video format with ffmpeg on a Linux machine without re-encoding (for preserving the same quality) with the following command: ffmpeg -i input.mp4 -vf delogo=x=...
7 votes
1 answer
20k views

How to force ffmpeg to insert keyframe at first frame when downsampling a framerate of a video with x264 vcodec

I have a mpeg4 video at 25fps. This video contains just one static frame. I'm trying to downsample the frame rate to 1fps and convert the video to x246 (mp4). I ran the following ffmpeg command: ...
  • 271
7 votes
3 answers
8k views

I changed the .mp4 extension of my video to .mpg and it still opens and plays fine (in VLC and in Windows Media Player). Why is this so?

I'm uploading a file to an external system that accepts only mpg or mpeg extension files. I had a mp4 file so I changed the mp4 extension to mpg and I was able to upload the file into the system. ...
  • 173
6 votes
2 answers
8k views

Removing MP4 encoding information

Is it possible to remove certain information form a MP4 file? Specifically things like tagging and encoding dates, Writing library and application, Encoding settings... No client needs to know when I ...
  • 145
6 votes
3 answers
20k views

How to extract MOOV atom/metadata from MP4 file?

Can one "dump"/extract the MOOV atom from an MP4 file? If so, how? Hoping for an obscure FFMPEG command. I need to be able to process/play a stream without searching for the MOOV atom over and over ...
6 votes
1 answer
9k views

ffmpeg concat introduces a/v sync problem

I have one 2-hour video file and want to add a 10-second title sequence to its start. The long file has perfect a/v sync from start to finish. However, when I use ffmpeg -f concat -i mylist.txt -c ...
  • 163
6 votes
2 answers
16k views

Adobe Premiere saves m4v instead of mp4

I have problems with my Premiere Pro. It is first time this has happened, and I cannot understand why. I am creating a timelapse from my images. When I want to export media, I choose format H.264 (...
  • 530
6 votes
2 answers
23k views

Howto Repaire or fix the duration of a mp4 video

I'm having a film that's ffmpeg and other progs claims to be 07:03:52 long, but the real playtime is actually more like 2:35:00 ffprobe video.mp4 ffprobe version 3.0.2 Copyright (c) 2007-2016 the ...
  • 61
5 votes
2 answers
4k views

mp4 - Codec or Container

Please explain, so confusing. I get that AVC is a video format, MKV is a container (that can contain mp4 video, FLAC audio etc.), but what is mp4 then?
  • 151
5 votes
1 answer
3k views

Lossless convert 3gp video to mp4 using ffmpeg

I'm trying to get lossless conversion of 3gp to mp4 using ffmpeg. I tried ffmpeg -i input.3gp -vcodec h264 -c:a aac output.mp4 I tried with "libx264" for the video codec, I tried just a ...
  • 153
5 votes
1 answer
515 views

Adding audio to picture: video too long even when using -shortest

I am trying to combine an audio (.wav) file and picture file (.png) into a video file. The video's length should be the same length as the input audio. Also, the output video should be youtube-...
  • 151
5 votes
1 answer
1k views

What is the colour range of most videos?

Colour range (Limited, Expanded) is something I've only thought of recently, and I'm worried I may have introduced colour banding into some of my videos. When doing a standard MP4 export from ffmpeg, ...
5 votes
2 answers
3k views

How do I change the audio on a H.264 MP4 without re-rendering the file?

Is there any way to swap out the audio track on a rendered H.264 MPEG-4 without having to re-render the entire video project? Can this be done with Premiere, MPEG Streamclip, ffmpeg, or some other ...
5 votes
1 answer
2k views

Avconv rotating mpeg4 - video loses quality

I'm a newbie in video editing on linux and am trying to rotate a video I took with my phone using AVCONV on an Ubuntu 12.04 machine. It all seems to go honky dory except the output is losing quality. ...
  • 151
5 votes
2 answers
2k views

Are the properties (bitrate, fps) of my h.264 video OK for the web?

I'm converting a Flash vector animation to an mp4 video for the web. After trying and failing with Swiffy, it's the only way I have of preserving the work "for posterity", once Flash is gone. When ...
5 votes
3 answers
7k views

Possible to use sRGB as mp4 colorspace?

I have an mp4 using h264 that i'm using in the background of a website. It has to blend in with the background image. I've already created ogv and webm videos for firefox and chrome and these work ...
5 votes
1 answer
2k views

Mp4 Video Container and the Codecs use with it

I have started to learn about mp4 file format, and I just learned that mp4 is nothing but just a container that defines the structure of the video file, and that it has different codecs inside it for ...
4 votes
1 answer
50k views

Big difference in the video file size after the conversion (.mov to .mp4)

After converting from .mov into .mp4, a video file is greatly reduced in size (.mov - 75,2mb .mp4 - 11,9mb) - does this mean that the converted video degraded (loss of color information, or the ...
  • 165
4 votes
2 answers
2k views

Store video files on USB, SD card, microSD, or external hard drive?

Working with raw .mts (MP4) video scenes that are about 6.5 GB in size each (but automatically partitioned by the camcorder into separate 10-minute chunks), what arguments are there for not storing ...
4 votes
2 answers
12k views

FFMPEG: Loop video to the length of audio

E.g. if video is 1 minute, but audio is 1 hour. Make video loop throughout for 1 hour of the audio track. I use this solution to loop image through the lenght of the audio ffmpeg -y -loop 1 -r 6 -i ...
4 votes
2 answers
8k views

Removing Metadata Title in mp4 files

I was able to remove metadata titles in mkv files through mkvtoolnix with this code @echo off for /r %%g in (*.mkv) do ("D:\Programs\MKVToolsNix\mkvpropedit" "%%~g" --tags all:"" --delete title ) I ...
  • 41
4 votes
3 answers
18k views

MKVToolNix equivalent for .MP4's

Good day! I'm looking for MKVToolNix equivalent software for .MP4's. I will use it in a video file without subtitles, I'll find it's subtitle and merge it with the video file just like what I did in ...
4 votes
7 answers
76k views

Is it possible to create a continuously looping video?

Is is possible to create a continuously looping video? Maybe by editing the container it's in so that it restarts automatically? I have a demonstration video that is playing on a TV in the lobby of ...
  • 143
4 votes
1 answer
304 views

Converting WMV to MP4

I just joined this community and hope my question is acceptable since it is quite "noob" like. I have a .wmv video file that is 1280x720 and causes windows media player to abort after excessive ...
  • 41
4 votes
1 answer
2k views

inserting video clip into another video but keep original audio

I need to replace video in a larger mp4 file with a smaller mp4 clip - but leaving the original (larger clip) audio intact. So for example I might want the first 2 seconds of SmallClip.mp4 to replace ...
4 votes
1 answer
6k views

Adding metadata for films/TV shows on Linux

I am looking for an open-source solution for automatically pulling films/TV shows informations. I've found MetaX (Windows only) and Subler (MacOSX only) from a post here. Apparently metadata sources ...
  • 238
4 votes
2 answers
3k views

How can I ensure that DaVinci Resolve will detect and/or load my .mp4 / .avi files?

New user of DaVinci Resolve, explain-like-I'm-five. =) Have installed and followed instructions for setting up Resolve 12 on my Windows 7 16gb ram computers with GeForce 760 gpu. Initially, Resolve ...
4 votes
1 answer
1k views

How to create a x264 (mp4) video with the smallest size using ffmpeg that has just 1 image through entire video?

I'm creating narrated mp4 (x264+aac) videos for books. Each video has just the book's cover as the background. I wonder what would be the most effective way to create such videos with ffmpeg? I've ...
  • 271
4 votes
0 answers
8k views

moov atom not found

I downloaded this video using youtube-dl's HLS downloader. The video was being HLS streamed using AES-128. Even though I could view it perfectly fine when it was being streamed in the browser, VLC ...
  • 55
3 votes
1 answer
3k views

Add multiple mp3 files to an mp4 file with ffmpeg

I would like to add multiple mp3 files to an mp4 file. For adding a single mp3 to an mp4, I used this command with success: "-i /path/to/mp4File -i /path/to/soundmp3File -codec copy -shortest path/to/...
  • 133
3 votes
3 answers
5k views

Gradient banding

I have a video with a gradient background, with silhouette vector animations on top. The gradient therefore stays exactly the same throughout the video. However, rendering the video as mp4, I'm ...
3 votes
1 answer
2k views

ffmpeg transpose=clock rotates 180 degrees instead 90

I have 2 similar videos created on the same mobile. The first one can be downloaded here. If I'm using the following command the result is correctly rotated by 90 degrees: ffmpeg -i 20180114_193135....
3 votes
2 answers
8k views

Is it possible to encode MP4 video with VP9 codec?

Does MP4 support VP9 codec or is it exclusive to WebM?
  • 141
3 votes
2 answers
381 views

QuickTime File Format (Atoms & Flags)

What is the purpose of Media Atom 'flags' within the QuickTime videos, I see for the most part they are set to zero but what does this achieve? Documentation I am reading is the following: https://...
3 votes
2 answers
3k views

How to extract each video scene with FFmpeg

I'm trying to detect scenes and save them as individual files with FFmpeg. I found this long command somewhere, but it fails with a good detection. I change the scenecut value, but I don't see any ...
  • 323
3 votes
1 answer
2k views

Why can't my video play from where I drag the playback bar?

I am stuck and really do not know how to explain it in correct manner. Thus I put it in the layman details. I have two 30~ second length mp4 videos saved in cloud storage. video1 is generated by ...
  • 153
3 votes
1 answer
2k views

Is H264 an actual file format?

Is there an actual H.264 file or is it just the codec that renders the video into an .mp4 or .mov file? For an application, I have to hand in a portfolio with videos. Their website says that, "...

1
2 3 4 5 6