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.
162
questions with no upvoted or accepted answers
10
votes
1
answer
5k
views
Combine/concatenate multiple MP4 files, making each file into a chapter
I am looking to use handbrake to combine 43 short mp4 files into one larger file. However, I want to ensure that the start of each file is recognized as a chapter. I'd be using vlc to play the file.
5
votes
1
answer
7k
views
How to add “chapters” or “bookmarks” to movies?
Is there an easy way to add chapters to existing movie files?
Note:
Actually, I’m not 100% sure if they’re called “chapters” in video files, but it’s the same concept as DVDs.
I assume this differs ...
4
votes
0
answers
701
views
Why is the resulting file unplayable when I use FFMPEG to convert a MP4 video to ASF?
I want to convert an .mp4 file to an .asf file, but I need to keep the size of the file below 150 mb (the server I need to upload the file to can only take files under 150 mb). Basically I want to ...
4
votes
1
answer
3k
views
Not able to play a mp4 video purchased from Google Play
I purchased a movie from Google Play, then used Ant Video Player to download it. It's in MP4 format (or, at least, has an MP4 extension). When I try to open it in Windows Media Player, I get the error
...
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 ...
3
votes
0
answers
4k
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 ...
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
0
answers
128
views
Why does Google Chrome automatically play MP4 videos (and is that a good thing?)
I am working on a home media server running nginx. I navigated to one of the .mp4 files I have to test it and it started streaming just by clicking on it.
Is this... performance-wise... the best ...
3
votes
0
answers
1k
views
IE11 not playing mp4 file
I am using ffmpeg to convert a freely available public RTSP stream to a mp4 file. I can play the file quite well in Chrome using a standard HTML5 video client on a windows 7 machine but not in IE11. ...
3
votes
0
answers
385
views
FFmpeg & iPhone: don't display audio language button
I'm creating an MP4 file with FFmpeg 1.1.1, using life and aevalsrc to generate some test video and audio:
ffmpeg -f lavfi -i life -f lavfi -i aevalsrc=0 -frames:v 750 life.mp4
If I play it on an ...
2
votes
0
answers
824
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
0
answers
935
views
What is the difference between .m4s and .ts media files?
From my understanding they can both contain media segments and are meant to be reconstructed at the client but what is the difference between the two?
Edit: This is in the context of HLS
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 ...
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 ...
2
votes
0
answers
1k
views
Merge MP4 Files and Add Chapters For Each One
On Windows, I'd like to merge a group of MP4 files and add a chapter marker for each file in the resulting MKV/MP4. Does anyone know how to do this? I've tried using mkvtoolnix but I'm not sure if it'...
2
votes
0
answers
510
views
FFMPEG / x264: Single pass: how do you raise start time bitrates?
When using single-pass mode with a VBV size specified, libx264 will initially "sandbag" the bitrate, presumably due to lack of evidence (or perhaps even a bug). (This is an ironic followup to this ...
2
votes
2
answers
5k
views
H.265 and Opus in Mp4 container - is it possible?
I have an MKV file with HEVC video and OPUS audio. It plays great in all players. The problem is that I need it to be streamable. When VLC plays an MKV from the web, it first downloads it and then ...
2
votes
0
answers
6k
views
using ffmpeg to repair corrupted MP4 video files from Xiaomi Yi
did not know wether to create a new thread or to post in an existing one. Decided for the first option, as my case seems to be a little different as I do not have one video corrupted but plenty of ...
2
votes
1
answer
1k
views
Does ffmpeg support setting the description tag on a per-stream basis?
I'm attempting to set a description tag for each of two audio streams within an mp4 file. I'm using a command line similar to this (I've simplified):
ffmpeg -i old_movie.mp4 -map 0:0 -c:v copy -map 0:...
2
votes
0
answers
91
views
Any empirical length limits or caveats about MP4's of 7400 seconds?
I was investigating a curious issue I have with the playback of certain MP4 files on my BluRay player; in particular, it seemed files over two hours simply would not play (player locked up).
As I ...
2
votes
0
answers
3k
views
Failed to convert a wmv file to mp4 with ffmpeg
i need a help with this command
FFMPEG COMMAND:
ffmpeg -y -i /input.wmv -vcodec libx264 -acodec libfaac -ac 2 -bufsize 20M -sameq -f mp4 /output.mp4
Output:
ffmpeg version 1.0 Copyright (c) 2000-...
2
votes
1
answer
772
views
auto tag video and add to itunes on windows
I'm looking for an app similar to Auto TV Tagger that monitors a folder and auto magically tags the file either through a webservice or by the file name given then adds it to itunes in the proper ...
1
vote
0
answers
227
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. ...
1
vote
1
answer
577
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
70
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 ...
1
vote
0
answers
84
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 ...
1
vote
0
answers
115
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.
...
1
vote
1
answer
591
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....
1
vote
0
answers
325
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 ...
1
vote
1
answer
254
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 ...
1
vote
0
answers
119
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 ...
1
vote
0
answers
493
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, ...
1
vote
1
answer
335
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 ...
1
vote
0
answers
84
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 ?
1
vote
0
answers
34
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. ...
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 ...
1
vote
0
answers
575
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 ...
1
vote
1
answer
448
views
FFMpeg Mp4 cover art shows on Windows but not in Android
I'm decrypting an audible audiobook using this command:
ffmpeg -audible_key KEY -audible_iv IV -i book.aax -c copy out.m4b
The output file seems fine on my Windows machine. Metadata and cover are are ...
1
vote
0
answers
1k
views
File explorer hangs when right clicking mp4 files?
Right-clicking Mp4s in file explorer freezes the window. A temporary fix is a restart until I right-click another MP4 file.
I've tried cmd commands:
Dism /Online /Cleanup-Image /CheckHealth
Dism /...
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 ...
1
vote
0
answers
498
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 ...
1
vote
0
answers
192
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 -...
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 ...
1
vote
1
answer
4k
views
Video-Codecs in Chromium missing
I use a Version 81.0.4032.0 (Entwickler-Build) (64-Bit) Chromium Browser on my Windows 10 computer.
On Facebook Videos and some Gifs are not running. So I opened the Console and found this logs:
...
1
vote
0
answers
898
views
Which versions of ffmpeg support "Encrypted fmp4"?
Using ffmpeg version 3.4.6-0ubuntu0.18.04.1, I think it successfully converted an input mp4 file to encrypted files: list_1080p_0000.m4s list_1080p_0001.m4s list_1080p_0002.m4s list_1080p.m3u8 ...
1
vote
0
answers
4k
views
"Non-monotonous DTS in output stream" error in FFmpeg, previous and current values are equal
I have a number of .ts segments (AES-128 encrypted), .m3u8 chunklist for them and a key to decrypt them.
My goal is to remux these .ts files into one .mp4. I also obviously don't want to modify the ...
1
vote
1
answer
210
views
Track 2 and Sub-titles lost in FFMpeg conversion
I want to convert my video library to MP4 using:
ffmpeg -i inputfile.ts -c copy outputfile.mp4
However, outputfile appears to contain one audio track which is the NAR track from the inputfile.
The ...
1
vote
1
answer
188
views
Cut out the start and end of a .mp4 file
I have been using ffmpeg to remove the first 5 seconds of a video clip with the following code.
for %%a in ("*.mp4") do ffmpeg -i "%%a" -ss 05 -acodec copy -vcodec copy "newfiles\%%~na.mp4"
pause
Is ...
1
vote
0
answers
149
views
How to convert a video stream to mp3 file while downloading using Streamlink?
How to convert a video stream to mp3 file while downloading using Streamlink? is it possible using ffmpeg or other?