M (2).mp4 NEW!
For .mp4 files (which I obtained from DailyMotion.com: a 50 minute tv episode, downloadable only in three parts, as three .mp4 video files) the following was an effective solution for Windows 7, and does NOT involve re-encoding the files.
m (2).mp4
The batch file, and ffmpeg.exe, must both be put in the same folder as the .mp4 files to be joined. Then run the batch file. It will typically take less than ten seconds to run..
...it is because "ffmpeg does not support PCM (pcm_alaw, pcm_s16le, etc) in the MP4 container." See here: codec not currently supported in container and here. So, run time ffmpeg -f concat -safe 0 -i inputs.txt -c:v copy -c:a aac output.mp4 instead, to re-encode the audio into AAC format. Or, run time ffmpeg -f concat -safe 0 -i inputs.txt -c copy output.mkv to write into a .mkv container instead of into a .mp4 container.
Note that these are not two different pieces of video content, or a playlist; rather, they are the same video, provided in two different codecs. Browsers that support webm will preferentially download the (smaller, faster to load) .webm file; browsers that do not will load the .mp4 version. Attributes in the video tag will apply to both versions.
MP4 is a container format written as .mp4, the full name of which is MPEG-4 Part 14. MP4 is undoubtedly the most popular video format at present, because it allows a combination of audio, video, subtitles, and still images to be held in one single file. Moreover, it can be played on nearly all devices and media players, leaving other formats like AVI, WMV, MOV far behind; it can be shared and distributed on many online video sites like YouTube. It is usually encoded with H.264/HEVC/MPEG-4 video codec and AAC audio codec.
H.264 is currently one of the frequently-used video codecs for recording, compression, and distribution of video content. It is a popular compression standard for HD video, and even supports resolutions up to and including 8K UHD. Since H.264 can achieve high quality video at relatively lower bitrates than previous standards like MPEG2, H,263, etc, it's commonly used in AVCHD camcorders, HDTV, Blu-ray, and HD DVD. MP4(.mp4) is one of the H.264 encoded video formats.
I'm trying to do as the title states. I have a server with a daily rotating movie list while I'm low on storage. I have a script that goes through and deletes the oldest .mp4. I'm left with left over files that were related to that movie just taking up space. I'd like to delete the entire folder.
There are several ways to test for the "directories that do not include *.mp4" condition; one that comes to mind is to use another glob with the shell set builtin, and test the resulting number of positional parameters $#. 041b061a72