I have a video file captured with a smartphone. I want to remove the GPS location data written into it, leaving all other information intact. I tried some sed commands, but nothing seems to work.
You need to remux the video, removing the GPS location metadata.
You can use ffmpeg:
ffmpeg -i input.mp4 -metadata location="" -metadata location-eng="" -acodec copy -vcodec copy output.mp4
Then you can verify with ffprobe: