[FFmpeg-user] Can't concat Garmin DashCam videos with telemetry (GPS data)
Micael Silva
micaelsilva at gmail.com
Thu Jul 29 01:49:11 EEST 2021
On Wed, Jul 28, 2021 at 7:15 PM Suporte JM <jmgeosuporte at gmail.com> wrote:
> Hi,
>
> I have a Garmin 66W dashcam for my work (street mapping surveyor) which
> produces several 1min. MP4 videos of my journey (60 min. = 60 videos). All
> these videos have telemetry data on it as metadata (GPS location, speed,
> etc...).
>
> I want to concatenate every 5 files excluding the audio but preserving the
> video and the telemetry in the metadata.
>
> What I have tried so far:
>
>
> - Export GPS information as GPX file (result: successful)
>
> *exiftool -p gpx.fmt -ee X:\video_place\videos_1m\GRMN0005.mp4 >
> GRMN0005.gpx*
>
>
> - Merge MP4 videos as a single MP4 video (result: partially successful)
>
> *ffmpeg -f concat -safe 0 -i X:\video_place\videos_1m\mylist.txt -c copy
> X:\video_place\videos_1m\GRMN0005to0011.mp4*
>
> When I use the above command on ffmpeg *I lose all my telemetry data*.
>
> I tried in several different ways for days, searching on several forums, I
> even tried to export all GPS data from each single 1min. file merge them,
> and then merge the videos and put the telemetry back.
>
> The ffprobe output of my 1min. video is as following:
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *Metadata:major_brand : avc1minor_version : 0compatible_brands:
> avc1isomcreation_time : 2021-07-26T17:08:23.000000ZDuration: 00:01:00.06,
> start: 0.000000, bitrate: 19553 kb/sStream #0:0(eng): Video: h264 (Main)
> (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080, 19182 kb/s, 29.97 fps,
> 29.97 tbr, 30k tbn (default)Metadata:creation_time :
> 2021-07-26T17:08:23.000000Zhandler_name : Ambarella AVCvendor_id :
> [0][0][0][0]encoder : Ambarella AVC encoderStream #0:1(eng): Audio: aac
> (LC) (mp4a / 0x6134706D), 48000 Hz, mono, fltp, 128 kb/s
> (default)Metadata:creation_time : 2021-07-26T17:08:23.000000Zhandler_name :
> Ambarella AACvendor_id : [0][0][0][0]Stream #0:2(eng): Subtitle: mov_text
> (text / 0x74786574), 0 kb/s (default)Metadata:creation_time :
> 2021-07-26T17:08:23.000000Zhandler_name : Ambarella EXT*
>
> I have tried as well with following code, but none of them seems to work:
>
>
> *ffmpeg -f concat -safe 0 -i X:\video_place\videos_1m\mylist.txt -c copy
> -scodec copy X:\video_place\videos_1m\GRMN0005to0011_scodec.mp4*
>
>
> *ffmpeg -f concat -safe 0 -i X:\video_place\videos_1m\mylist.txt -c:s copy
> -c:v copy X:\video_place\videos_1m\GRMN0005to0011.mp4*
>
> *ffmpeg -f concat -safe 0 -i X:\video_place\videos_1m\mylist.txt -c copy
> -c:s mov_text X:\video_place\videos_1m\GRMN0005to0011.mp4*
>
> What am I missing?
>
> Thanks.
> Rodrigo
>
MP4 files are not concatenable by nature by the concat DEMUXER. You can use
the concat FILTER or demux them to MPEG-TS and then use the concat demuxer.
More information about the ffmpeg-user
mailing list