GTA Driver
Well-Known Member
- Joined
- Apr 5, 2015
- Messages
- 1,264
- Reaction score
- 602
- Location
- Greater Toronto Area
- Country
- Canada
- Dash Cam
- Iroad 3300CH, G1W-c, Mobius C, A119 v1 & v3, A118-c2
I wrote two scripts that split multi channel mp4 files that use ffmpeg
chanSplit.sh
This was written for my dash cam which uses mp4 files , has channel 0 for audio, 1 for front and 2 for rear. You will need to change accordingly.
The files will need to be copied somewhere in your $PATH and of course you need ffmpeg.
chanSplit.sh
Splits a mp4 file to a suddirectory (folder) called chanSplit. Before running, you need to define a variable called input. Example :
input=myfile.mp4
chanSplitAll.shSplits all MP4 files in current directory (folder) to a subfolder called chanSplit. You do NOT need to define the input variable as it runs all mp4 files in the directory.
Edit: I mentioned earlier you need to set the input variable. That was wrong.
This was written for my dash cam which uses mp4 files , has channel 0 for audio, 1 for front and 2 for rear. You will need to change accordingly.
The files will need to be copied somewhere in your $PATH and of course you need ffmpeg.
Edit July 1, 2018The chansplit script files can be acquired from Google drive and box.net
Last edited: