I have tried to use ffmpeg unsuccessfully, based on a tutorial i found on youtube.
First to create a list of all the files in the folder:
(for %i in (*.mp4) do @echo file â%iâ) > mylist.txt
then to join them using:
ffmpeg -f concat -i mylist.txt -c copy all.mp4
However this throws errors.
ffmpeg version N-54707-gaac57c7 Copyright (c) 2000-2013 the FFmpeg developers
built on Jul 13 2013 18:07:04 with gcc 4.7.3 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
libavutil 52. 39.100 / 52. 39.100
libavcodec 55. 18.102 / 55. 18.102
libavformat 55. 12.102 / 55. 12.102
libavdevice 55. 3.100 / 55. 3.100
libavfilter 3. 80.101 / 3. 80.101
libswscale 2. 3.100 / 2. 3.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 3.100 / 52. 3.100
[concat @ 00000000047cc7c0] Estimating duration from bitrate, this may be inaccurate
Guessed Channel Layout for Input Stream #0.0 : mono
Input #0, concat, from âmylist.txtâ:
Duration: 00:00:00.01, start: 0.000000, bitrate: 830 kb/s
Stream #0:0: Audio: pcm_alaw (alaw / 0x77616C61), 8000 Hz, mono, s16, 64 kb/s
Stream #0:1: Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x1080, 766 kb/s, 10 fps, 10 tbr, 90k tbn, 20 tbc
File â00all.mp4â already exists. Overwrite ? [y/N] y
[mp4 @ 0000000004683800] track 1: could not find tag, codec not currently supported in container
Output #0, mp4, to â00all.mp4â:
Metadata:
encoder : Lavf55.12.102
Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1920x1080, q=2-31, 766 kb/s, 10 fps, 90k tbn, 90k tbc
Stream #0:1: Audio: pcm_alaw (alaw / 0x77616C61), 8000 Hz, mono, 64 kb/s
Stream mapping:
Stream #0:1 â #0:0 (copy)
Stream #0:0 â #0:1 (copy)
Could not write header for output file #0 (incorrect codec parameters ?): Error number -1 occurred
C:\Users\cpt\Downloads\Baby\20190202\00>ffmpeg -f concat -i mylist.txt -c copy 00all.mp4
ffmpeg version N-93069-g6dc06e979c Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 8.2.1 (GCC) 20181201
configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt
libavutil 56. 26.100 / 56. 26.100
libavcodec 58. 46.100 / 58. 46.100
libavformat 58. 26.100 / 58. 26.100
libavdevice 58. 6.101 / 58. 6.101
libavfilter 7. 48.100 / 7. 48.100
libswscale 5. 4.100 / 5. 4.100
libswresample 3. 4.100 / 3. 4.100
libpostproc 55. 4.100 / 55. 4.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001f8e5263680] Auto-inserting h264_mp4toannexb bitstream filter
Guessed Channel Layout for Input Stream #0.0 : mono
Input #0, concat, from âmylist.txtâ:
Duration: N/A, start: 0.000000, bitrate: 830 kb/s
Stream #0:0(und): Audio: pcm_alaw (alaw / 0x77616C61), 8000 Hz, mono, s16, 64 kb/s
Metadata:
creation_time : 2019-02-02T05:00:03.000000Z
Stream #0:1(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x1080, 766 kb/s, 10 fps, 10 tbr, 90k tbn, 20 tbc
Metadata:
creation_time : 2019-02-02T05:00:03.000000Z
encoder : JVT/AVC Coding
[mp4 @ 000001f8e5830040] Could not find tag for codec pcm_alaw in stream #1, codec not currently supported in container
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
Stream mapping:
Stream #0:1 â #0:0 (copy)
Stream #0:0 â #0:1 (copy)
Last message repeated 1 times
I am very frustrated here, basically these 1 minute recordings are useless if I canât just join them into 1 hour or 24 hour video. What gives, how hard is it to provide this functionality, having to do this manually takes hoursâŠ