Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
0 answers
56 views

How can I remove every nth frame from raw video using ffmpeg?

I have many cine films that have been digitally converted. They have been converted as a 25 fps with 2 frames in every 23 duplicated. I need to remove the duplicated frames using a bitstream filter so ...
DaveB44's user avatar
  • 11
1 vote
2 answers
180 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=...
Sushil's user avatar
  • 111
0 votes
0 answers
117 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 -...
RayRay's user avatar
  • 1
0 votes
0 answers
74 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 ...
Tipa Riordan's user avatar
2 votes
1 answer
122 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'...
Nau's user avatar
  • 205
1 vote
1 answer
128 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 ...
Our Man in Bananas's user avatar
0 votes
0 answers
81 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, ...
Tor Suneson's user avatar
0 votes
0 answers
195 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 ...
infernal infernal 's user avatar
0 votes
0 answers
532 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 ...
Ecksters's user avatar
  • 145
1 vote
1 answer
464 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 ...
glipster's user avatar
0 votes
2 answers
487 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 ...
Christopher Shaw's user avatar
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 ...
Prince Charming's user avatar
2 votes
1 answer
9k 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
3 votes
1 answer
512 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,753
1 vote
1 answer
966 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
928 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
3 votes
2 answers
492 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
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 ...
Maura McLaren's user avatar
1 vote
1 answer
2k 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
  • 111
0 votes
0 answers
393 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
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 ...
Knight's user avatar
  • 3
1 vote
1 answer
350 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
4 votes
0 answers
5k 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
1 vote
0 answers
135 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
1 answer
146 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
  • 8,121
1 vote
1 answer
708 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
0 votes
0 answers
365 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
0 votes
1 answer
4k 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
  • 171
0 votes
0 answers
110 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
2 votes
0 answers
640 views

Subtitles misaligned/missing when cutting video using ffmpeg

TL;DR: After cutting a video with ffmpeg, subtitles are invisible in VLC player even though there is a subtitle stream. I have an MP4 file of a TV recording of a movie and I want to cut off the parts ...
Mophotla's user avatar
  • 141
0 votes
1 answer
52 views

Video is shown as audio after upload on server

I recorded a video (Ocam, Windows10) and tested it. It works fine but when I upload it, it only shows an audio file on the server. When I convert it with Windows Movie Maker, it works fine. Here are ...
scs's user avatar
  • 125
1 vote
1 answer
617 views

AV1 extract keyframes

Using this file [1], I can run this command with no problem: ffmpeg -i crushed-between-two-portals.mp4 %d.jpg but if I run either of these commands [2]: ffmpeg -i crushed-between-two-portals.mp4 -vf &...
Zombo's user avatar
  • 1
-2 votes
1 answer
3k views

How to convert exe to video?

I have a video with .exe extension. I tried renaming to to mp4, avi, mkv, ts and many more, tried opening it with vlc, none of which worked. I got the exe when I downloaded a video from a site using ...
Wilfred Almeida's user avatar
0 votes
3 answers
3k views

Downloading videos from Youtube doesn't work via `curl`

I have opened and downloaded via curl some mp4 file from Youtube via F12 hotkey (i.e. from developer menu) and have saved it into J.mp4 but it cannot be replayed. Someone knows Why ? It writes ...
user2925716's user avatar
1 vote
0 answers
1k views

Re-muxing .MKV to MP4\MV4 while retaining Dolby Digital Plus JOC with FFmpeg

Does anyone know how to remux and keep enhanced AC-3 with joint object control (JOC) with FFmpeg. I'm remuxing a number of video files from MKV to MP4\M4V so they play on the Apple platform (including ...
David F's user avatar
  • 11
3 votes
1 answer
8k views

ffmpeg hangs when using -fflags +genpts

I'm trying to remux a .vob file (which I got using vobcopy) into a mp4 container (mkv would do it as well) using ffmpeg 4.2.4-ubuntu0.1. Initially the remuxing finished, but I got these errors: [mp4 @ ...
d-k-bo's user avatar
  • 160
1 vote
0 answers
555 views

How do I "debug" strange mp4 issues?

I have a collection of MP4 files which have been recorded during a live stream. They play just fine in VLC (on Windows) but when I try to import them into Premiere Pro the programs just hangs. I ...
Zeta Two's user avatar
  • 155
1 vote
0 answers
209 views

Concatinate mkv from segmented recordings of rtsp

I recorded an rtsp stream to a series of segmented files via the following ffmpeg -t $((5*60*60)) \ -i 'rtsp://[email protected]:88/videoMain' \ -c copy -map 0 \ -f segment -segment_time 60 -...
Huckle's user avatar
  • 568
2 votes
1 answer
4k views

How to let ffmpeg use back same bitrate when encode video?

I have an mp4 file encoded using mpeg4 with a size of 20MB When I checked the details of it, it said it has a 308k variable bitrate Then, when I encoded it into h264, ffmpeg converted it with a ...
Med Lexo's user avatar
  • 111
1 vote
1 answer
461 views

Where are GoPro Highlight Tags stored?

I want to extract the (manually set) highlights from my GoPro-footage (HERO6-Black). I want to do this to mark the highlights on vacation and can use them to edit in Premiere Pro later. I found that ...
icegoogles's user avatar
0 votes
1 answer
1k views

How to convert .mp4v to .mp4 using ffmpeg?

I have two files: file.mp4 and file.mp4v How to convert mp4v to mp4 using ffmpeg without loss quality?
Nikto's user avatar
  • 140
-1 votes
1 answer
3k views

How do I embed ttml caption files inside mp4 video files?

In this situation, I know ffmpeg is the general answer by doing something like ffmpeg -i 40\ Days\ Falling\ Apart-55db1e546b66d1421b2cb43c.mp4 -i 40\ Days\ Falling\ Apart-55db1e546b66d1421b2cb43c.en....
user2284570's user avatar
  • 1,873
3 votes
1 answer
5k views

How can I limit the number of colors used in a GIF file while converting a MP4 to a GIF with FFmpeg?

I have this command that I found somewhere on SuperUser that converts an MP4 to a GIF: ffmpeg -i INPUT_FILE.MP4 -vf "fps=16,scale=160:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]...
Unsigned_Arduino's user avatar
0 votes
1 answer
287 views

Broken MP4 file

So I was filming with my phone (Nokia 6.2) and one of the video files was corrupted because the storage of the sd-card was full after almost 20 minutes. The file is about 4 GB, but doesn't work. I ...
Tom's user avatar
  • 1
0 votes
1 answer
2k views

batch remove first 30 seconds of video file with ffmpeg

There are a lot of examples of ffmpeg -ss [start] -i in.mp4 -t [duration] -c copy out.mp4 But if I want to use that command for a folder with multiple files (ffmpeg ... *.mp4 ...), how can I specify ...
RadOD's user avatar
  • 3
-1 votes
2 answers
474 views

ffmpeg: recommend baseline options on bad results

I am running windows services to convert about 10k videos per year. Most of videos make no problem, but there are some videos where I didnt see the problem: Source Video Video after conversion => ...
user2029101's user avatar
0 votes
1 answer
1k views

Downloaded mp4 file wont play under any video player

I downloaded a video using Youtube-dlg its was a HLS stream and it downloaded fully except Youtube-dlg told me there was an error when it finished.. I presume that the site i downloaded from made it ...
Hosa 's user avatar
  • 95
2 votes
2 answers
10k views

How to embed cover art into MP4 without errors?

I want to add artwork to my MP4 file. How do I do this successfully / without errors? I've tried these methods with numerous MP4 files, none worked. If you would like to replicate the errors / bugs, ...
symonxd's user avatar
  • 71
1 vote
1 answer
633 views

ffmpeg MOOV Atom on a ProRes file?

We have been asked by a client to create a ProRes QT file (.mov) but specifically asked to "The moov atom (movie index file) should be placed at the beginning of the file." I have been reading around ...
Yannis's user avatar
  • 15
1 vote
1 answer
3k views

No sound on certain mp4 videos (audio codec: MPEG-4 AAC) in Windows 10 that work in Android (with earphones only) & Linux

Update: in Android there is only sound on these videos when I have earphones plugged in. No sound will play on my phone's speakers. The audio works on a set of mp4 videos when I play them in Ubuntu ...
izn's user avatar
  • 337