Some 1 minute recordings were split into 2 to 3 parts such as 05.01_05.23, 05.23_06.00, etc. And also when i join the files together using MKVTOOLNIX (for ease of viewing), at some point in the video, there’s just random flashing colors (idk the technical term for that), But the individual file has no problem. The mSD card is in exFAT and its SanDisk 256GB High Endurance (lightly previously used). Is this sign of card going bad or the WYZE BATTERY CAM PRO ?
You can use ffmpeg for join video.
Create a file, e.g., file_list.txt,
Inside the txt, paste
file ‘05.01_05.11.mp4’
file ‘05.11_06.00.mp4’
file ‘05.01_05.11.mp4’
file ‘05.11_06.00.mp4’
ffmpeg -f concat -safe 0 -i file_list.txt -c copy output.mp4
I have one question:
How did you get access to the these files?
I record it to local storage aka micro SD card.
I have one question:
I am very new at this. How do I generate a text file that has 24 hours with 60 1-minute files for each hour.
If you use continuous recording, they should all be 1 minute videos. If event only, then you may be having multiple events in the 1 minute that each get recorded separately. Not sure if smart detections have any impact on that, it may start a new file for each one (if you’re using those).
To generate a list of flies you can go to a command prompt on a PC and do a “dir” of the SD card, then drop it in excel or google sheets and grab just the column with file names covering the range of time you want.
i got this error :
[mp4 @ 00000225c9023b80] Could not find tag for codec pcm_mulaw in stream #1, codec not currently supported in container
[out#0/mp4 @ 00000225c8fff0c0] Could not write header (incorrect codec parameters ?): Invalid argument
Conversion failed!
Are you using the latest version? According to this thread they added support for that years ago
mine is this … ffmpeg-2025-01-02-git-0457aaf0d3-essentials_build, i guess it is ?
May not be included in the essentials build.
Can you show me which one to download, Im at the site right now but theres so many things. I dont know where to go to. Thankyou
I just downloaded the FULL build and got this error. I put a sample of 3 video files AND the txt file in the same folder as the ffmpeg program itself (inside the BIN folder).
[mp4 @ 000001e58778e6c0] Could not find tag for codec pcm_mulaw in stream #1, codec not currently supported in container
[out#0/mp4 @ 000001e58719a900] Could not write header (incorrect codec parameters ?): Invalid argument
Conversion failed!
Are your videos with audio? Maybe ffmpeg is having problems with convert the audio.
You can check
Terminal / console
ffmpeg -i and paste the paste one video path (like C:\Folder/video.mp4.
This is from MEDIAINFO program, if you can help me in any possible way:
General
Complete name : C:\Users\R\Documents\20250123\20250123_00_02.01_03.01.mp4
Format : MPEG-4
Format profile : Base Media / Version 2
Codec ID : mp42 (mp42/isom)
File size : 12.2 MiB
Duration : 1 min 0 s
Overall bit rate : 1 700 kb/s
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L5.1
Format settings : CABAC / 1 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference : 1 frame
Format settings, GOP : M=1, N=20
Muxing mode : Container profile=Main@4.1
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 1 min 0 s
Bit rate : 1 633 kb/s
Width : 2 560 pixels
Height : 1 440 pixels
Display aspect ratio : 16:9
Frame rate mode : Variable
Frame rate : 19.941 FPS
Minimum frame rate : 10.000 FPS
Maximum frame rate : 20.833 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.022
Stream size : 11.7 MiB (96%)
Codec configuration box : avcC
Audio
ID : 2
Format : ADPCM
Format profile : U-Law
Codec ID : ulaw
Duration : 1 min 0 s
Bit rate mode : Constant
Bit rate : 64.0 kb/s
Sampling rate : 8 000 Hz
Stream size : 470 KiB (4%)
Default : Yes
Alternate group : 1
FFMPEG seems to be mis-interpreting the audio format. ULAW is the one you need. Someone else was asking about this in here a while back. I thought ffmpeg actually used ULAW as standard so surprised it isn’t recognizing it. But may need to use a different joiner program that has support for that.
Ok. Try this
ffmpeg -f concat -safe 0 -i file_list.txt -c:v copy -an output.mp4
Will ignore join the audio. Latter you can add the audio, after convert into other format
I have so many questions.
@Alfred10 How do I add back audio when the files are all combined ? and how do I even convert the audio format
@dave27 how do I input whole video file path in the text file, instead of just its name.extension, because when I put in the folder path, the backslashes are all gone and it becomes a new name…
There are many ways to do this in batch. You can create a script to extract only the audio and convert it into AAC or MP3.
Then, you can merge the audio with the video
If you want the audio, there is no point in merging them without the audio then going to more work to try and extract, merge, and line up the audio again. You’ll need to find software that can handle the audio CODEC in use.
The path will depend on what operating system you’re using but you can also use a spreadsheet to re-add the path to the beginning of the file name easily.
You may want to search in some reddit forums on video editing to find software that supports both the video and audio codecs you need. U-LAW is also known as G.711.
how do I use ffmpeg to split the joined video in to 20 minute segments ?
You can try with this:
ffmpeg -i input.mp4 -c copy -map 0 -segment_time 1200 -f segment output%03d.mp4
If you are trying to join or split MP4 files, try MP4Joiner and MP4Splitter Free, open source and works on Windows, Mac and Linux.