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.
492
questions
0
votes
0
answers
2
views
ffmpeg scale2ref with overlay complex filters returning audio only mp4 output
I am trying to find out why the result of using scale2ref with overlay complex filters is returning audio-only mp4 output.
ffmpeg -i input.mp4 -i watermark.png -filter_complex "[1][0]scale2ref=w=...
0
votes
0
answers
49
views
FFMPEG: Why MKV video converted to MP4 only plays on VLC Media Player?
I have a video in MKV format that I wanted to convert to MP4, so I used ffmpeg to convert it. The command I used was pretty simple:
ffmpeg -i <path_and_name_of_file>.mkv <...
0
votes
0
answers
83
views
FFmpeg batch compressing mp4s and changing them to gifs
I want to take a folder of mp4s and with ffmpeg compress them and turn them into gifs.
I do this for each file using this code:
ffmpeg -i input.mp4 -c:v libx264 -tune zerolatency -preset ultrafast -...
0
votes
0
answers
59
views
How to post-process these Blu-Ray files?
I have downloaded some video files (MP4) from the web and want to create a BD from them. I've used ConvertXtoHD3 for that, and it does basically a nice job, with menus and all that. Unfortunately the ...
0
votes
0
answers
39
views
HDR Metadata Tag for MacOS TV App / Apple TV
When importing Media in the MacOS TV App there have to be certain Tags in the Metadata of the Mp4/M4v file so that TV registers it as 4K. I want to have imported Movies with HDR10, HDR10+ or Dolby ...
0
votes
0
answers
90
views
Disable subtitles by default in a MP4 file using FFmpeg
Is there a way to disable (not to remove) subtitles by default using FFmpeg, I tried:
ffmpeg -i input.mkv -map 0:0 -map 0:1 -map 0:2 -c:v copy -c:a copy -c:s mov_text -disposition:s:s:0 0 output.mp4
...
2
votes
1
answer
72
views
I cannot seem to add subtitles to MP4 using FFmpeg
I have a video called test_video.mp4 downloaded from YouTube
This is the information of the video obtained by running ffmpeg -i test_video.mp4:
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test_video.mp4'...
1
vote
1
answer
105
views
Unexpected output when using FFMPEG to add multiple English Subtitles to MP4 file
I am trying to soft-encode 3 subtitle files into my film.
I extracted the subtitles from the DVD using ByteCopy
I am using this command to add the files:
ffmpeg -i BloodDiamond.mp4 -i ...
0
votes
0
answers
270
views
no access to m3u8 when using ffmpeg
I have a code that allows me to download videos from .m3u8, but for some reason it hasn't worked since yesterday
ffmpeg -user_agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (...
0
votes
0
answers
201
views
Converting ALAC inside .mp4 file to FLAC without quality loss with FFmpeg
So, I have a .mp4 video file recorded with OBS, and I realised that Sony Vegas does not accept the audio format because it is from Apple (it basically imports the video just fine, but the audio is 6 ...
0
votes
0
answers
70
views
How to fix broken mp4 and retain all streams including gyrodata?
I think I have tried just about all open source projects on github but I can not get anyone to do exactly what I want.
I have a SMO 4k which is based on Insta360 R camera that suffered batteryloss, ...
0
votes
0
answers
166
views
How is it possible to edit video duration on an mp4?
I recently came across a few videos that have their duration length edited. Some increase as the video is playing; for example when you start the video the duration reads 0:01/0:02, and as the video ...
0
votes
0
answers
473
views
Set the default Audio track and Subtitle Track with MP4Box
I was recently remuxing some multilingual MP4s and I noticed that in the original audio track, most media players will recognize an audio stream as having some kind of "default" flag, they ...
1
vote
1
answer
383
views
Fuji .mov file converted to .mp4 using ffmpeg -pix_fmt yuv420p "overexposed" in MP and Movies&TV
I hope this is the right forum for this question; StackOverflow directed me here.
My Fuji X-T3 generates an FHD movie as a .mov with HEVC video and PPM audio (plus a QuickTime TC stream). The new ...
0
votes
2
answers
435
views
Trying to Batch Merge MP3 Audio and MP4 Video files
This is what I got so far...
for %%a in ("*.mp4") do _ffmpeg -i ("*.mp3") -c copy "__newfiles\%%~na.mp4"
But doesnt quite work...
ffmpeg -i video.mp4 -i audio.wav -c ...
0
votes
1
answer
2k
views
Video MP4 missing metadata
I can play the video just I don't have the metadata like video thumbnail or frame width length etc can't be seen win windows explorer and properties detail
Is there anyway to recover such MP4 to have ...
1
vote
0
answers
240
views
Audio not playing in VLC for one specific video only
Playing a specific .mp4 file in VLC plays the video fine, but not the audio. According to VLC's codec information the audio codec is mp4a. But the statistics say decoded 0 blocks and played 0 buffers. ...
0
votes
1
answer
318
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....
2
votes
1
answer
7k
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....
3
votes
1
answer
420
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,...
1
vote
1
answer
896
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,...
1
vote
1
answer
725
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 ...
1
vote
0
answers
72
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 ...
1
vote
2
answers
1k
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 ...
3
votes
2
answers
424
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 ...
1
vote
0
answers
88
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 ...
0
votes
1
answer
2k
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 ...
0
votes
1
answer
119
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 -...
0
votes
1
answer
1k
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, ...
0
votes
2
answers
628
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 ...
1
vote
1
answer
1k
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
├───...
0
votes
0
answers
325
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 ...
1
vote
0
answers
129
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.
...
0
votes
1
answer
2k
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 ...
1
vote
1
answer
858
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
)
...
29
votes
1
answer
7k
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 ...
1
vote
1
answer
644
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....
0
votes
0
answers
590
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 ...
0
votes
0
answers
1k
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 ...
1
vote
0
answers
339
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 ...
2
votes
0
answers
878
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 ...
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 ...
1
vote
1
answer
300
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 ...
0
votes
1
answer
254
views
How to repair a mp4 file?
The end of the file is damaged because 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 ...
3
votes
0
answers
4k
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 ...
1
vote
2
answers
6k
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 ...
0
votes
0
answers
3k
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 ...
1
vote
0
answers
129
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 ...
0
votes
1
answer
2k
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 "...
1
vote
0
answers
527
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, ...