Skip to main content

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
114 votes
6 answers
280k 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 ...
Thomas King's user avatar
  • 1,251
34 votes
2 answers
29k 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 ...
ispiro's user avatar
  • 731
10 votes
1 answer
35k 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 ...
d13's user avatar
  • 671
6 votes
2 answers
9k 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 ...
eppic's user avatar
  • 145
5 votes
3 answers
9k 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 ...
adam daly's user avatar
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 ...
Emphram Stavanger's user avatar
2 votes
1 answer
2k views

Lower framerate without re-encode

I'm looking for a way to lower the framerate of an H264 mp4 video without re-encoding the video. Example: I have a 30 FPS input file and I need it to be 5 FPS. I want to avoid re-encoding because of ...
rxj's user avatar
  • 23
16 votes
3 answers
21k 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 ...
Gwyneth Llewelyn's user avatar
11 votes
1 answer
20k 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 ...
Zsolt's user avatar
  • 213
9 votes
3 answers
15k 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 ...
username_unavailable's user avatar
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 ...
Andy's user avatar
  • 93
7 votes
3 answers
87k 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.
Jac's user avatar
  • 71
7 votes
2 answers
14k 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 ...
Bick's user avatar
  • 183
6 votes
1 answer
10k 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 ...
trinkner's user avatar
  • 163
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 ...
plugincontainer's user avatar
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. ...
Shakus's user avatar
  • 151
4 votes
1 answer
3k 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 ...
WoogieBoogie's user avatar
4 votes
1 answer
52k 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 ...
Rumata's user avatar
  • 165
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 ...
Xi Xiao's user avatar
  • 153
2 votes
1 answer
7k views

FFmpeg No such filter error

I'm trying to use FFmpeg to create a new video with some frames repeated and black frames inserted inside. Here is my command: #! /bin/sh fn="Drifting with Cars.mp4" # ffmpeg -y -i "${fn}" -ss 00:00:...
angel_30's user avatar
  • 353
2 votes
1 answer
3k views

Trim audio stream to video stream length

I have an mp4 file (converted from an mkv file) that has a longer audio than video stream. This file doesn't play back nicely in my media streaming app (or MPC-HC) when I reach the end of the file. ...
Stephen Cleary's user avatar
2 votes
1 answer
5k views

How to choose the right bitrate, H.264 profile and level for Web Video presentation?

I want to start producing videos and looking around the internet for usual bitrate ranges (VBR) and H.264 profiles and levels for Web Video exports. I found some guides with Vimeo and YouTube and ...
burnersk's user avatar
  • 123
2 votes
3 answers
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 ...
abalter's user avatar
  • 145
1 vote
1 answer
840 views

ffmpeg cut same video to multiple pieces

For the project that I'm working on I have to cut some parts of same video with some subtitles. So I made a bash file that executes multiple ffmpeg commands like this. ffmpeg -i input.mp4 -vf scale="...
tanaydin's user avatar
  • 113
0 votes
1 answer
813 views

Combine mp4 video and a RTMP stream into 1 RTMP output stream via ffmpeg

I need a ffmpeg command to first feed a mp4 video into a RTMP output stream, then followed by a RTMP input subsequently; what should be the parameters to get it working?
Jason Lin's user avatar
0 votes
1 answer
6k views

Errors in converting mp4 to ts with FFmpeg

I was trying to convert a caption-embedded .mp4 file into a .ts file. Only command found after some search was this which uses FFmpeg: ffmpeg -i 1559066401592889640.mp4 -c copy -bsf h264_mp4toannexb ...
angel_30's user avatar
  • 353
0 votes
2 answers
4k views

Possible to stream/append images into an existing mp4?

I've been working on a service that downloads a number of images, saves them to disk, and then uses ffmpeg to create an animation (gif or mp4). This can be fairly intensive in terms of memory and CPU ...
Geuis's user avatar
  • 111