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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
18 views

Command to get only one audio track in output specified by language code with ffmpeg

Ffmpeg Command to get video with only English audio or only one language audio I tried running ffmpeg -i input_video.ext -map 0:v -map 0:a:language=eng -c:v copy -c:a copy -map_metadata -1 -sn output....
Killerlearner's user avatar
1 vote
1 answer
60 views

Using ffmpeg to download m3u8 video in two ways resulting in two vastly different sizes; Why?

I'm trying to download a m3u8 playlist (which contains 1.ts, 2.ts,..., xxx.ts) via ffmpeg. I'm doing it in two different ways: Directly download: ffmpeg -i "https://filelocation/chunked/myfile....
zyxwl2015's user avatar
1 vote
0 answers
50 views

view/export/modify a mp4 edit list

The .mp4 container format supports a feature called "edit lists" (aka "edit atom" or edts) that can change playback behavior without modifying the bitstream. Is there a way to view,...
goweon's user avatar
  • 1,638
1 vote
1 answer
57 views

Wrong video file header causes video players to fail. Any suggestions for recovering?

I have this video: Google Drive link, and it fails to be played by any video player. I tried fixing it with various tools like VLC, ffmpeg and gpac's mp4box, but none of them worked. More specifically,...
aleph's user avatar
  • 13
1 vote
1 answer
46 views

How do I accurately cut video and audio with ffmpeg

So when I try to cut out a portion of a video I do this ffmpeg -i originalClip.mp4 -ss 00:00:14 -t 00:00:21 -codec copy outputClip.mp4 And the video comes out with amazing quality and the sound is on ...
John V Dole's user avatar
0 votes
0 answers
46 views

How to "unconcatenate" MP4 file?

I used Losseless Cut (which uses ffmpeg) to concatenate a bunch of MP4 files using ffmpeg concat demuxer. Unfortunately I didn't check the result before deleting the source clips. The first clip had ...
arne's user avatar
  • 1
1 vote
1 answer
133 views

convert all ts files in a folder to mp4 with same name

I have a folder with several video files, some .mkv some .ts some .mp4, all different names. I want to convert all ts files into mp4 files with the same name. what do I type in the command line to use ...
testgcd's user avatar
  • 11
2 votes
1 answer
118 views

How to copy a data stream (non-A/V) from input MP4 file from a DJI drone with FFmpeg?

I've got an MP4 video file captured by DJI drone. The file contains the video stream (H.264) and also two data streams of unknown format. I would like to convert the video from h.264 to h.265 and also ...
darkshine's user avatar
1 vote
0 answers
25 views

adding date and time while converting m2ts to mp4 using ffmpeg?

I have many m2ts video files which were created by Sony camcorder. Because they are my family history, I want to see the date and time when I play them. But no players have such functions. I think I ...
Sanghyun Cho's user avatar
0 votes
1 answer
277 views

Extract video files embedded in an android app convert the .exo files to mp4 and save it to my PC

I wanted to extract video files embedded in an android app and save it to my PC. The videos are embedded in the app. There is no way to get the URL for the videos. I tried getting the .exo files and ...
Maura McLaren's user avatar
0 votes
1 answer
48 views

ffmpeg convert directory GIF in linux

Hi i'm trying to convert a directory of gifs to mp4 but i don't know how to i'm use this code for single file please help me !ffmpeg -i /content/drive/MyDrive/1/ -movflags faststart -pix_fmt yuv420p -...
user avatar
0 votes
1 answer
240 views

FFMPEG: how to correctly convert avi containing "rawvideo, bgr24" to mp4?

I have .avi file: $ ffprobe input.avi -hide_banner Input #0, avi, from 'input.avi': Duration: 00:01:08.05, start: 0.000000, bitrate: 182785 kb/s Stream #0:0: Video: rawvideo, bgr24, 1060x615, ...
pmor's user avatar
  • 268
0 votes
0 answers
121 views

Chrome is opening mp4's in browser instead of downloading

I'm having this problem on both the Pexels and Envato websites, when downloading stock videos. Chrome has randomly started opening them in a new tab, instead of downloading them to my machine. Also ...
mttpl's user avatar
  • 1
0 votes
2 answers
82 views

What is the reason for size reduction after conversion from mkv to mp4 with ffmpeg

I converted a larger group of mkvs to mp4 (with the commandline: for i in $(ls *.mkv); do ffmpeg -i $i ${i/mkv/mp4}; done but also some with ffmpeg -i video.mkv video.mp4 The outcome differs in size ...
user1767140's user avatar
0 votes
1 answer
128 views

Can you detect silent parts in a mp4 by inspecting the file structure?

So I've been looking into the mp4 file structure a bit and there seems to be quite a lot to it. And from what I understand, this is how things are laid out. video.mp4 ├───general file metadata ├───...
JohnA's user avatar
  • 101
0 votes
0 answers
127 views

Using ffmpeg to create mp4 file from video stream

I'm reading data from a video stream and using ffmpeg to create a mp4 file. After writing data for a period of time I always get a file with a shorter duration. For example, if I write data for 10 ...
Claudio Montenegro's user avatar
1 vote
0 answers
48 views

Is there some way to losslessly "cut off" from the beginning and/or end in an .mp4 file?

First of all, yes, I know that .mp4 videos are lossy. Many of them contain annoying unwanted stuff in the beginning or end, which I neither want to see nor want to take up storage space on my disks. ...
Burleigh's user avatar
0 votes
1 answer
409 views

Windows 10 Movies & TV app opens up to a black screen with no trackbar or menu options

figured I'd try my luck asking here, since google gave no helpful results. It's as the title suggests, Windows 10 Movies & TV app opens up to a black screen with no trackbar or menu options, but ...
Knight's user avatar
  • 3
1 vote
1 answer
205 views

Disable all subtitles (softsub) in .mkv, .mp4 files

I have several Movies/Animes with many subtitles, and I want disable all (not remove) subtitles in a batch (.bat file); below current code: for %%a in (*.mkv, *.mp4) do ( REM disable subtitles ) ...
Ricardo's user avatar
  • 115
29 votes
1 answer
5k views

What makes a MP4 streamable?

I'm digging into the Telegram bot API, and it show this option for sendVideo: supports_streaming Boolean Optional Pass True if the uploaded video is suitable for streaming This suggests that ...
Maarten's user avatar
  • 593
1 vote
1 answer
300 views

How can I batch convert a directory of subfolders, maintaining similar filestructure for the output

Right now I am converting using the following in Command Prompt: FOR /F "tokens=*" %G IN ('dir /b /s *.mp4') DO (ffmpeg -i "%G" -c:v libvpx-vp9 -crf 30 -b:v 0 -b:a 128k "%~nG....
Michael's user avatar
  • 11
0 votes
0 answers
184 views

How to fix Windows Media Player not selecting correct audio track when playing an MP4 file?

Windows Media Player does not play back the correct audio track when one is selected from the Audio menu. This is for MP4 files with multiple audio tracks (around 32-64). VLC does the correct thing in ...
Thomas Bratt's user avatar
0 votes
0 answers
662 views

FFMPEG throws error while converting WEBM/MP4 audio files from MediaRecorder to MP3

I use MediaRecorder to record the audio from the browser and then upload it to my server (ARM-based Linux machine - AWS Lambda Function, if it matters). Based on the browser type, I get either an MP4 ...
Sahil Malik's user avatar
1 vote
0 answers
199 views

PTS timecode in milliseconds tweak to roll over at 60 seconds?

I'm using FFMPEG to extract images from an MP4. I have a large project where I need to extract a few hundred images. I've cobbled together a working solution from various sites since I'm not an FFMPEG ...
Kittmaster's user avatar
0 votes
0 answers
254 views

how to change bitrate/pitch using asetrate throughout audio file

how can I combine ffmpeg -i original_song.mp3 -af "asetrate=36000" out.mp3 with ffmpeg -i input.mp3 -af "volume=enable='between(t,1,2)':volume=0" output.mp3 I want to increase the ...
blenderuser0's user avatar
2 votes
0 answers
389 views

Encrypt and fragment an MP4 file with FFmpeg

I want to encrypt and fragment an MP4 file with FFmpeg. For this, I use the following command: ffmpeg \ -i input.mp4 \ -c copy \ -encryption_scheme cenc-aes-ctr \ -encryption_kid ...
Felix Schütz's user avatar
2 votes
3 answers
2k views

Is AV scanning zip files with non-exe contains re-assuring/reliable?

I was wondering how safe is scanning a .zip file and depending on the AV report on what to do with it. So specifically: If I have a .zip file and I run a scan using a good antivirus and does not ...
Jim's user avatar
  • 139
0 votes
0 answers
99 views

ffmpeg on low framerate. First frames

I am trying to convert a .mp3 file to a mp4 file with an image, using a low framerate (-r ) because it's faster. But now the frame of the first second is blank and so the video starts late (after ...
ang_rq's user avatar
  • 1
0 votes
0 answers
66 views

FFMPEG - rewarp MPEGDash to MP4 changes audio bitrate mode

I'm rewrapping some MPEGDash to MP4 wrapper and some files are outputed with variable audio bitrate where others with constant bitrate,and both sources looks exactly the same. For reference: I'm using ...
Matthieu Ducorps's user avatar
1 vote
1 answer
58 views

Trying to create an .MP4 from .TIF frames, syntax works on MacOS but not Windows 10

I currently use FFMPEG to create .GIFs from a set of .TIF frames and now my use case is making me need to instead make an .MP4 video from the same set of .TIF frames. This syntax works just fine on my ...
Randal S.'s user avatar
0 votes
0 answers
135 views

How to repair a mp4 file?

The end of the file is damaged cause battery of digicam became empty. I tried to repair it with ffmpeg -i input.mp4 -c copy output.mp4 It crashed. How can I copy a destroyed file without checking it ...
ffmbeginner's user avatar
2 votes
0 answers
1k views

how to fix mp4 file with missing moov atom?

I have a video file (mp4) and I want to load it in a video editor. However, it shows an error which says, "file format not recognized." So, I used the file command and the output is just ...
binary10's user avatar
0 votes
1 answer
2k views

How to change mp4 windows file creation date to create date from QuickTime

I have seen many similar questions to this, but can't sus out this exact problem: I take a lot of GoPro videos during my motorcycle adventures. While on the road I will upload video files to a cloud ...
slane6's user avatar
  • 1
0 votes
1 answer
2k views

How can I force a subtitle track to be set as active on an MP4 video?

I'm converting .mkv's to mp4 and it's working, however the issue is that when I open the .mp4, the subtitle track is disabled by default. I have to manually select it as such: How can I make it so ...
Mnea's user avatar
  • 1
1 vote
0 answers
89 views

Progressively adjust audio volume over time

I have two audio tracks and what I need to do is at some time to start lowering first audio track and progressively tune second audio track. This change in audio tracks should take for example 2 ...
Cospel's user avatar
  • 111
0 votes
0 answers
921 views

Recursively set Title property of all MP4 files based on filename in a folder and subfolders

I am looking for a way to set "Title" property of all MP4 files in a folder and subfolder based on the filename. e.g. It should change the title of "Sample Video.mp4" file to "...
Electrifyings's user avatar
1 vote
0 answers
223 views

ffmpeg - Redownload missing fragments to fix downloaded stream

I have dowloaded an H.264 video stream using ffmpeg -i <URL> -c copy <name>.mp4 but ffmpeg reports that it has skipped some fragments. Since the stream is still online (with, I suppose, ...
Arch Stanton's user avatar
0 votes
1 answer
90 views

MP4 - Many of my family videos are suddenly side by side and green

As mentioned in the title, many of my family videos are suddenly side by side and green. They are normal 2D videos. I don't understand why this happened, it is very sad since beautiful memories are ...
Black's user avatar
  • 7,220
1 vote
1 answer
225 views

FFMPEG - COPY MKV to MP4 but add 2.0 Stream

Morning All, Using FFMPEG currently just to re-container UHD MKV into MP4 with... ffmpeg -i File1.mkv -c:v copy -c:a copy -strict -2 File1.mp4 But these MKV only have TrueHD or DTS-HD which is fine ...
Josh's user avatar
  • 11
0 votes
1 answer
344 views

Output videos are not overwritten. Automatically rename output video with ffmpeg

I'm having problems with my videos coming out. Every time I create a new video they always overwrite the old one. I want to find a way to automatically rename the output video every time I render so ...
Lea... FFmpeg's user avatar
1 vote
0 answers
53 views

mediastreamvalidator throws "Error Injecting Segment data"

mediastreamvalidator throws "Error Injecting Segment data" for fMP4+hevc+HLS file. here is the attached screenshot. How to fix it to make it playable ?
SKV's user avatar
  • 19
0 votes
0 answers
209 views

What is the difference between download, progressive-download, streaming and pseudo-streaming

Let me put my understanding first, lets say we are referring to a video file. download => In general download, file cannot be played unless it completely downloaded. progressive-download => Here,...
SKV's user avatar
  • 19
1 vote
0 answers
26 views

Using FFMpeg with Twilight Render

I have installed FFmpeg for creating mp4 files from a sequence of images generated with the animation editor in Twilight Render. I then try to generate an mp4 file, but I do not get a valid mp4 file. ...
ntxdave's user avatar
  • 11
0 votes
1 answer
1k views

How can I fix a (possibly corrupt?) mp4 file?

I'm afraid I don't know (can someone help me diagnose?) whether this file is corrupt or not. I'm just guessing. I'm using Linux, Lubuntu 20.04LTS, and VLC v 3.0.9.2. Unlike the other mp4 files in ...
confused's user avatar
  • 161
1 vote
1 answer
3k views

Fix/remux mp4 to get correct video length

I captured a roughly two hour MS Teams video session using vlc. No audio, that is fine. When I open the file in a video player, it erroneously reports a length of 36 minutes, however it keeps playing ...
JohnDoe's user avatar
  • 123
0 votes
1 answer
281 views

FFmpeg transcode piped mp4 with MOOV at end - but I can read it twice

I need to transcoding an MP4 file using that I can only access via a stream. The MOOV atom is at the end of the file. I do not have the ability to seek to a specific part of the file, only read a pipe ...
Steven Waterman's user avatar
0 votes
0 answers
101 views

audio and video not correctly sync after concatenation

totally new to video editing in general and in need of some help =) command that I'm using (windows batch): (echo file cucca.jpg.mp4 & echo file cucca.fade.mp4 & echo file cucca.jpg.mp4)>...
Robson's user avatar
  • 101
1 vote
0 answers
3k views

Convert Dolby Vision file in MKV container to MP4 container

I have a 5GB Dolby Vision file encoded in MKV container. If I play this file in my LG CX TV, there is a discoloration all over the display. Apparently the default WebOS media player that comes with ...
anishjp's user avatar
  • 11
1 vote
0 answers
2k views

ffmpeg Major_Brand and Minor_Version

I've found that certain videos I encode are unplayable on my LG TV streaming via Plex. I think the issue may have something to do with the Major_Brand and Minor_Version. Files that play are ...
Huston's user avatar
  • 71
0 votes
2 answers
345 views

How to convert old PEF pentax raw format to jpg or mp4?

I have some old pentax .PEF files and I want to convert it updated jpg or mp4 formats. How do I go about this?
Patoshi パトシ's user avatar

1
2 3 4 5
10