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.
490
questions
1
vote
1
answer
3k
views
The number of audio channels in a given mp4 with Mediainfo
I am trying to find the number of channels in a given .mp4 file. I run mediainfo, but it shows it as 8! Basically it should either be a 2 channel, or 5.1 showing as 6. And many of my files look like ...
-1
votes
1
answer
1k
views
How to include soft subtitles when encoding from DVD
I'm using MakeMKV to encode DVDs to .mkv files and from there I was using VLC Player to enclode to .mp4. However I found that .mp4 seemed not to be able to host 'soft' subtitles (i.e. available as an ...
2
votes
0
answers
32
views
How to find out if some videos of many are corrupt?
My question is:
Are there any ways to "scan" a library for corrupted files, so that I can delete or fix them?
I have a plex mediaserver running, but when I wanted to see one of my series it had a ...
3
votes
0
answers
3k
views
Edit MP4 Hex data to vertically or horizontally flip video in a lossless manner
I am trying to do something similar to the questions here and here, but with a small difference. I am trying to flip the video along the Y or X axes instead of doing a rotation.
The solution in those ...
3
votes
2
answers
7k
views
Changing Duration of Mp4 - Hex Editor
Is there a way to make my mp4 file seem to have a longer or shorter duration than it actually has?
I tried playing around with an Hex Editor, but being a noob i couldn't make it work.
1
vote
0
answers
6k
views
FFMPEG How to extract frames of a video at a certain time frame? [duplicate]
I am working on laying out video stills in a book. I am pretty new to using the command line and discovered ffmpeg just yesterday.
Right now, I want to extract 8fps from a video between, for example, ...
2
votes
2
answers
5k
views
How to capture first X frames every X seconds into a PNG with FFmpeg?
I am new to using the command line. It is pretty cool and exciting to learn, but I am stuck.
I have a video where, for example, I want to capture the first 8 frames every 5 seconds into an image.
I'...
0
votes
0
answers
68
views
FFmpeg: how to concat 2 videos? (1 with no audio tracks, 1 with 2 audio tracks)?
ffmpeg -i NoAudio.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate1.ts
ffmpeg -i 2Audio.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate2.ts
ffmpeg -i "concat:intermediate1.ts|...
1
vote
0
answers
375
views
Unable to play video in IE 11
When I try to access a mp4 video url in IE 11 it prompts the user to download the video instead of playing it in the browser. But I am able to play the video in Chrome/Firefox. Here is a sample url,
...
0
votes
1
answer
325
views
Issue with SRT file on Handbrake
I keep having this odd issue with Handbrake. Every time I burn in Captions, it skips the first one. So when I export the movie, all captions appear except the first one. I have seen others reporting ...
1
vote
0
answers
577
views
VLC command line or other ways to convert .mp3 to .mp4 with an image file for uploading to Youtube
I have 2 to 6 .mp3 files every day (I'm on Windows 10), and I need to convert them to .mp4 files with an image (same image every day for all files), those mp4 files are to be uploaded to YouTube. File ...
0
votes
1
answer
71
views
What are available software to cut multiple clips out of a single video? [closed]
I'm looking for a software application to cut videos into multiple clips, typically by giving it the start and end time of the clip. Sometimes I need to cut about twenty clips from a single video, it ...
1
vote
1
answer
161
views
Why am I listening to different "piano notes" on Videos?
I have a number of MP4 files which are also available on YouTube, since long ago.
These videos are basically showing Music Sheets while a Piano is playing them.
The piano is not real, so this is ...
1
vote
1
answer
324
views
MPEG video not pausing at accurate timestamp
We are using xuggle API to create MP4 file with variable duration between images. Following is the sample code
final com.xuggle.mediatool.IMediaWriter writer = com.xuggle.mediatool.ToolFactory....
2
votes
1
answer
4k
views
ffmpeg throwing "Non-monotonous DTS in output stream"
So I'm trying to concatenate 3 video files. I'm running Linux, and the command line looks like this:
ffmpeg -f concat -safe 0 -i blist.txt -c copy output.mp4
blist.txt contains this:
file 'btest/00 ...
2
votes
3
answers
4k
views
How do I get Picasa showing MP4 videos?
My research suggests that in order to get MP4s visible in Picasa (on Windows 10) I need to either install QuickTime or a codec pack.
[Edit 16 Jan 2020] To save you trying, it turns out that this is ...
0
votes
1
answer
814
views
MP4 date on windows 10 explorer
I have several MP4 videos.
On windows explorer, under the column "Date", I see the wrong time stamp, it is always 3 hours LATER than the EXIF fields:
QuickTime:CreateDate
QuickTime:ModifyDate
...
0
votes
1
answer
164
views
Deinterlacing failed when encoding a file with h264
Tried using several different h264 encoders but all of them make it have this problem where there are horizontal glitches near movement. I tried using ffmpeg but couldn't figure out how to do it ...
0
votes
1
answer
107
views
Why does AAC render grainy output on my system?
I have two different systems (Windows 10 LTSB and Windows Server 2012) running the same version of ffmpeg and I'm running the following command in both of them:
ffmpeg -i input.mp3 -vn -c:a aac -b:a ...
1
vote
1
answer
91
views
Efficently join audio tracks from avi to mp4
I have around 100 videos (episodes of a series) twice.
[avi] 720p video resolution with my preferred audio tracks
[mp4] 1080p but the wrong language
Obviously, I ...
1
vote
0
answers
847
views
ffmpeg mp4 video not working on iphone
I have ffmpeg working on my site to let users create various mp4s, and they all work fine on all devices except for one of my conversion functions, which isnt allowing the video to play on my iphone. ...
1
vote
1
answer
3k
views
FFMPEG - convert WMV to MP4 Fails
I tried some other recommended conversion commands but none of them worked. Here's the basic command:
ffmpeg -i wmvfile.wmv somefile6.mp4
Output:
ffmpeg version N-91548-g481741ece0 Copyright (c) ...
0
votes
1
answer
705
views
Using ffmpeg to convert file to same as another
For some background, I'm making a webpage which adjusts the playback position in an embedded video when the user scrolls, so if you scroll down, the video will advance and vice versa. This works ...
0
votes
1
answer
2k
views
Google Drive won't play my videos after upgrading to windows 10
I finally got around to upgrading to windows 10 on my PCs. But now my videos that I had stored in Google Drive won't play. They're MP4. So then I tried using VLC media player because that was ...
0
votes
1
answer
794
views
How to efficiently set the duration of the first frame of an mp4 movie?
I have a self-coded app that utilizes the Camera2Video sample Google published on GitHub. Unfortunately, there seems to be an issue from Android 6 on upwards that causes recorded videos to be broken. ...
2
votes
1
answer
2k
views
mp4 files unplayable after renaming or copy pasting
I have a Windows 7 machine and for a few months now I have a strange thing going on on my PC. When I rename or copy and paste it in a new folder, an .mp4 video it becomes unplayable by any video ...
0
votes
1
answer
2k
views
VLC can but Instagram and "Gallery" cannot play my videos
I've been busy over the past few days trying to compile a timelapse from a string of images using FFMPEG. After initial issues, I've got it working and have a perfect MP4 that plays in VLC player. It ...
2
votes
1
answer
111
views
Why do people still backup their movies as mkv today? [closed]
Why anyone would use the matroska container when mp4 is way more compatible and has at least all mkv features as a container?
Am I missing something ?
9
votes
1
answer
32k
views
What archive compression makes .mp4 files the smallest?
Is there an archive-based compression format that is known to make the smallest .mp4 videos?
I did a test 1080p 0:12 duration video with the only archival formats I know about:
(python3) Joshs-MBP:...
0
votes
0
answers
1k
views
Concatenate mp4 files with different fps and sar using ffmpeg
I need to merge six mp4 files into one. Here is the information on the files:
pt1.mp4
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 854x480 [SAR 1:1 DAR 427:240], 998 kb/s, 23....
0
votes
1
answer
334
views
How can I add watermark and set the output bitrate and video size, also doing bulk using ffmpeg?
I was able to add watermark to multiple video using
for %%a in ("*.ts") do ffmpeg -i "%%a" -i logoCopy.png -filter_complex "overlay=main_w-overlay_w-40:40" "Logo\%%~na.mp4"
And now I'm trying to ...
1
vote
1
answer
524
views
How can I remove the first 30 second of 40 min video and add watermark also doing bulk using ffmpeg?
I was able to add watermark to multiple video using
for %%a in ("*.ts") do ffmpeg -i "%%a" -i logoCopy.png -filter_complex "overlay=main_w-overlay_w-40:40" "Logo\%%~na.mp4"
And now I'm trying to ...
0
votes
0
answers
169
views
How do I use ffmpeg to hide a png randomly in one frame of the video?
I like to hide little Easter eggs in all my videos, but it is rather tedious. Is it possible to hide a png in one frame preferably at random locations/orientations within said frame using ffmpeg?
0
votes
1
answer
77
views
Why does the -to option sometimes behave differently?
Two different videos are giving me troubles when coming up with code to cut them
at a given time, because the same code does not clip the videos in the same way when processed through the same ffmpeg ...
0
votes
0
answers
2k
views
How to save an edited video with the same quality as the original?
All I need to do is to crop a videoclip. Not sure how to do this. After a little Googling I installed Avidemux and its Crop filter works great, BUT...
How do I save the modified video clip without ...
2
votes
0
answers
288
views
FFMPEG trimming videos on a docker low cpu setup
So I've been trying to combine multiple mp4s within a docker container running debian Stretch. I have the constraint of not being able to write the output mp4 file to disk, so I need to pipe ffmpeg ...
65
votes
4
answers
210k
views
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 ...
0
votes
1
answer
615
views
Using mediainfo/MOVmediaedit to mimic GoPro video format
GoPro has cool "quick edit" video editor, called Quik Desktop. It'll only import videos generated with GP's own cameras. As long as I use GP's camera's Quik is fabulous.
However, sometimes I want to ...
1
vote
2
answers
3k
views
Using ffmpeg to convert stream with delayed audio stream
I am trying to use ffmpeg to convert this TS stream file to MP4. Note how there is no audio until around the 10-second mark. Whenever I try to convert (or copy) this TS file, I get no audio. I suspect ...
4
votes
1
answer
2k
views
ffmpeg is not even cutting this and other mp4s to the nearest second [duplicate]
I have a file
Other - Analogue Clock-JEJqy1Wlovw.mp4 which is just a download from https://www.youtube.com/watch?v=JEJqy1Wlovw
It's 2 minutes 13 seconds long.
I had some issues cutting it to the ...
0
votes
1
answer
68
views
MP4 video working on desktop, not on mobile
I embedded a video in the following URL: https://www.speurtochten.nl/over-ons/ I made it with Premiere Pro CC, exported it as H.264.
The code I use in WordPress: [video src="https://speurtochten.nl/...
0
votes
1
answer
984
views
Blu-Ray backup -> MP4 with optional subtitles?
I have a number of BluRay discs which I have backed up to my Windows 10 Pro 64 computer using MakeMKV, resulting in folders with BDMV, CERTIFICATE, and MAKEMKV subfolders. I want to re-encode and ...
0
votes
2
answers
4k
views
FFMPEG encoding issue with "mp42" video (conversion to H264 mp4)
I am having problems encoding an "mp42" file to mp4 (H264) with the encoding options:
-vcodec libx264 -bufsize 32M -b:v 2800k -maxrate 3800k -g 63 -vf "scale=1280:720" -acodec aac -ab 192k -ar 44100 -...
0
votes
1
answer
2k
views
Ffmpeg - save bmp file as different extension
I want to save a bmp file as 1.mp4 using Ffmpeg, how to achieve it?
The question is very simple. I have some source file, lets call it source.png and I want to encode it as bmp, but to save it as a ...
1
vote
1
answer
1k
views
Trim and concat two videos with audio streams
I was trying to trim and concat two videos using the command below:
ffmpeg -i nadal.mp4 -i 711.mp4 -filter_complex "[0:v]trim=0:10,setpts=PTS-STARTPTS[v0]; [0:a]atrim=0:10,asetpts=PTS-STARTPTS[a0]; [...
1
vote
2
answers
13k
views
How do you install an MPEG-4 AAC decoder plugin for Linux Mint Debian Edition?
How do you install an MPEG-4 AAC decoder plugin for Linux Mint Debian Edition? In Ubuntu they say it's sudo apt-get install ubuntu-restricted-extras but LMDE uses Debian. Anybody knows?
1
vote
1
answer
2k
views
How to keep original video file header in FFmpeg [closed]
I'm trying to use FFMpeg to do some processing on my input video files which is then given to an emulator software (a packetization software) for further processing. The emulator is basically a ...
24
votes
1
answer
29k
views
FFmpeg split video and merge back
I'm trying to use FFmpeg to split video based on some start_time and end_time inputs, and replace those with other video files. For instance, for input 10 15 I will need to replace EXACT seconds 10 to ...
0
votes
1
answer
168
views
Cannot play a particular MP4 file
I need to play an MP4 file that I received. I tried to play that on Mac and PC both also tried to play it with VLC media player, windows media player, QuickPlay etc. However, It just does not play. ...
0
votes
0
answers
4k
views
How to change audio bitrate to exactly 85 Kbps and preserve video setting?
When I try to change the audio bitrate for my video, also my video output is lower than it should be. Also my output video should be in MOV format.
I tried:
./ffmpeg -i myvideo.mov.mp4 -b:a 85k ...