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
64
votes
4answers
149k 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 ...
23
votes
2answers
21k 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 ...
10
votes
3answers
116k 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
1answer
13k 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 ...
10
votes
1answer
6k 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 ...
9
votes
3answers
10k 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 ...
8
votes
1answer
21k 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 ...
7
votes
3answers
7k 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
3answers
78k 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.
7
votes
1answer
17k 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: ...
7
votes
3answers
7k 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. ...
6
votes
3answers
15k 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
3answers
25k 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 ...
6
votes
2answers
14k 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 (...
6
votes
2answers
12k 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 ...
5
votes
2answers
6k 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 ...
5
votes
1answer
6k 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 ...
5
votes
2answers
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
1answer
574 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
1answer
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. ...
5
votes
2answers
1k 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 ...
4
votes
2answers
2k 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?
4
votes
7answers
56k 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 ...
4
votes
1answer
223 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 ...
4
votes
1answer
5k 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 ...
4
votes
2answers
4k 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 ...
4
votes
2answers
2k 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
1answer
6k views

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

I'm trying to remove logo from an .mp4 video format with ffmpeg on linux machine without re-encoding (for preserving the same quality) with the following command: ffmpeg -i input.mp4 -vf delogo=x=270:...
4
votes
1answer
1k 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
1answer
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 ...
3
votes
1answer
37k 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 ...
3
votes
3answers
4k 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
1answer
7k 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 ...
3
votes
1answer
177 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-...
3
votes
1answer
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
1answer
1k 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 ...
3
votes
1answer
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 ...
3
votes
1answer
3k views

How can I generate a color-correct h264/MP4 from a DPX sequence using ffmpeg?

We are converting a sequence of DPX files into an MP4. When the artist uses Adobe Media Encoder CC to generate the video, the colors match the original DPX. When we use ffmpeg, the video has a reddish ...
3
votes
1answer
2k views

How to auto-tune the audio track of a video file to produce a modified video file

I would like to auto-tune the audio track of an mp4 video file. I know I can convert the mp4 to mp3 first and auto-tune the mp3 file, but I want the output to be a modified video clip with the audio ...
3
votes
1answer
540 views

Lightworks detects aspect ratio incorrectly and clips video from ShadowPlay

I'm using Nvidia's ShadowPlay to record some game footage, and I am trying to edit it in Lightworks. When I import it, it clips off the edges of the content. I have the project set at 1080p 30fps (I ...
3
votes
1answer
89 views

Clear and informative tutorial on video file formats

...I think I will want to make a tutorial that covers video file formats, and their relationship to video codecs. There seems to always be a lot of confusion around these topics for emerging media ...
3
votes
2answers
13k 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 ...
2
votes
5answers
535 views

Utility or method for joining MP4 files

I have two MP4 files that I generated with Camtasia Studio. I need to join them together post rendering with Camtasia (it can't be done during the Camtasia rendering process). Looking for a utility or ...
2
votes
3answers
2k views

Quality of VHS converted to DVD

I work for a small library. We have a collection of VHS tapes that we have recorded to DVD using a Magnavox VHS HQ DVD recorder. They came in as .ogg, They came in a a set of files including some .VOB ...
2
votes
3answers
518 views

What is the difference between mkv and mp4 files?

I don't know if this is the correct exchange site to ask this question. I would like to know what is the difference between mkv and mp4 files?
2
votes
1answer
875 views

How to batch covert a folder of mp4 files to avi?

I'm trying to batch convert a folder of MP4 files to AVI using this script: for f in *.mp4; do ffmpeg -i "$f" -q:v 6 "encoded/${f%.*}.avi”; done (This is based an earlier question that was helpfully ...
2
votes
1answer
588 views

Does the MP4 HTML5 compatible video type allow for mono audio?

I'm doing some rendering in Vegas Pro and notice that if I select MainConcept (which gives me an HTML5 compatible MP4) the audio tab only has options for the bit rate and the sample rate. Before ...
2
votes
1answer
2k 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/...
2
votes
1answer
160 views

Is MP4 a valid or common container for ProRes?

Is MP4 a valid or common container for ProRes? I've only seen it in MOVs and MXFs.
2
votes
2answers
10k views

Why when you specify a video bitrate with ffmpeg does the resulting files displayed bit rate differ?

I'm fairly new to transcoding.I've been generating some mp4's from mxf files. I've been playing around with some settings on ffmpeg and been specifying various bitrate's for audio and video with the -...

1
2 3 4 5