Questions tagged [mp4]

MP4 specifically refers to the MPEG-4 part 14. A standard audio and video container that is part of the MPEG-4 specification developed by ISO / IEC.

A MP4 is similar to the popular AVI, but has several advantages:

  • Native support for embedded subtitles (AVI can also have, but only through hacks like the one used in DivX6).
  • Better support for video coding standard H.264, also known as MPEG4 AVC.
  • Being encoded, an MP4 file may have been created with several different types of codecs, including DivX and XviD But as DivX and XviD are relatively well served by the encoded AVI file (which is much more popular), you're more likely to find a MP4 which consists of streams created by codecs uncommon.
501 questions
133
votes
7 answers

In ffmpeg, how to delay only the audio of a .mp4 video without converting the audio?

In my .mp4 file the audio delay is -3840 ms. I synced it in KMplayer, and I don't want to use MKVGUI to make a .mkv file. I just need to delay the audio by 3840 ms, everything else should be left intact. What would be the right command to accomplish…
Alireza
  • 1,331
108
votes
9 answers

Use ffmpeg copy codec to combine *.ts files into a single mp4

I've got a bunch of ts segments described by a single index.m3u8 file: index.m3u8 segment1_0_av.ts segment2_0_av.ts segment3_0_av.ts segment4_0_av.ts segment5_0_av.ts I know they are all encoded the same way. ffprobe gives me the…
Ana
  • 1,783
  • 4
  • 20
  • 21
98
votes
10 answers

How can I remove multiple segments from a video using FFmpeg?

I am trying to delete a few sections of a video using FFmpeg. For example, imagine if you recorded a show on television and wanted to cut out the commercials. This is simple with a GUI video-editor; you just mark the beginning and ending of each…
Matias
  • 1,289
82
votes
3 answers

FFMPEG Splitting MP4 with Same Quality

I have one large MP4 file. I am attempting to split it into smaller files. ffmpeg -i largefile.mp4 -sameq -ss 00:00:00 -t 00:50:00 smallfile.mp4 I thought using -sameq would keep the same quality settings. However, I must not understand what that…
Chris Weber
  • 1,325
77
votes
7 answers

How to open and repair an m4v or mp4 video file?

Yesterday I was filming a scene with my phone but suddenly the application crashed and when I try to open the m4v generated it says that is corrupted. I have downloaded the video files (around 36MB) on my PC and I am trying to open and repair it.…
Drake
  • 5,734
69
votes
6 answers

FFMPEG convert flv to mp4 without losing quality

Currently I'm converting .flv flash files to .webm and .mp4 files to be used with an HTML5 video player. _ I use this ffmpeg command for WEBM: ffmpeg -i filename.flv -vcodec libvpx -acodec libvorbis filename.webm which works great and the file size…
68
votes
4 answers

Best settings for FFMpeg with NVENC

I'm using my FFMPEG with the suport of my GPU (NVENC) to convert files from my satelite receiver (SD, mpeg2 .TS-Files) into h264 .mp4-files Here is the line i'm using ffmpeg -i "e:\input.ts" -vcodec h264_nvenc -preset slow -level 4.1 -qmin 10…
Dr. Snail
  • 727
  • 4
  • 9
  • 12
59
votes
2 answers

Handbrake settings to convert MKV to MP4 while retaining the original quality

I have a ton of MKV files I need to convert to MP4 and my chosen software is Handbrake. I'm stuck on which settings would be best for the conversion. I want to retain full quality. Do I just convert with the original settings and not change anything…
orange
  • 920
56
votes
9 answers

How to convert WMV to MP4?

How can a set of WMV files be converted to MP4 so I can import them to my Apple TV?
burnt1ce
  • 1,257
56
votes
8 answers

How can I merge two mp4 files without losing quality?

I have two high-quality mp4 files, which are of two parts of the same show. I want to merge them together into 1 file, and I usually use VirtualDub to merge my files... But it doesn't seem to support mp4. What alternatives are available (especially…
52
votes
2 answers

How to extract subtitles from MP4 and MKV movies

I'm trying to extract subtitles from MP4 and MKV movies. I'm using mp4box (on OS X) but cannot figure out how it works. Any hints?
Open the way
  • 9,221
50
votes
2 answers

Remove .mp4 video top and bottom black bars using ffmpeg

I'm new to ffmpeg and I have heard that it has a filter for black. I want to remove black bars on top and bottom of the video so the video will be cropped to the remaining video without black bars. Thanks:)
user360123
48
votes
7 answers

Join mp4 files in linux

I want to join two mp4 files to create a single one. The video streams are encoded in h264 and the audio in aac. I can not re-encode the videos to another format due to computational reasons. Also, I cannot use any GUI programs, all processing must…
44
votes
2 answers

How to extract an audio track from an MP4 video file on Windows?

Having an MP4 video file I'd like to get just the audio track of it. What makes my question different from the others is that I don't want to convert it (like to MP3 or anything) - I'd prefer to keep exactly the same AAC audio stream that is…
Ivan
  • 7,863
44
votes
5 answers

Joining H264 *without* re-encoding

I have two halves of a single show in two .MP4 files, encoded in H264. I would like to join them without re-encoding. Is this possible? I managed to create a joined video as a Quicktime file (.mov) using Quicktime Pro, but then Quicktime Pro will…
jdmuys
  • 861
1
2 3
33 34