-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removing location metadata #131
Comments
ffmpeg -v error -i videoOutput.mp4 -f null - 2>error.log On original file this logs no errors, but on remuxed one I get: [h264 @ 0x561df75da4c0] decode_slice_header error BTW, thanks for the package 🙏 |
With ffmpeg I achieve this with:
ffmpeg -i in.FORMAT -map_metadata -1 -c:v copy -c:a copy out.FORMAT
It leaves width/height/bitrate etc and removes GPS location, which is what I want. Can I achieve the same using gmf?
I tried remuxing with the example, replaced CloseInput()/CloseOutput() with CloseInputAndRelease/CloseOutputAndRelease
https://github.com/3d0c/gmf/blob/master/examples/remuxing.go
Which did the job of removing that metadata but created a file 2 mb smaller than original and seems to be corrupt, vlc can't play it properly, video is skippy and vlc shows errors:
[h264 @ 0x7fe894004e80] get_buffer() failed
[h264 @ 0x7fe894004e80] thread_get_buffer() failed
[h264 @ 0x7fe894004e80] decode_slice_header error
[h264 @ 0x7fe894004e80] no frame!
I'm trying to figure it out myself but if anyone could point me in the right direction it would be very helpful.
The text was updated successfully, but these errors were encountered: