Skip to content
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

Open
SandroJijavadze opened this issue Nov 27, 2020 · 1 comment
Open

Removing location metadata #131

SandroJijavadze opened this issue Nov 27, 2020 · 1 comment

Comments

@SandroJijavadze
Copy link

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.

@SandroJijavadze
Copy link
Author

SandroJijavadze commented Nov 27, 2020

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
[h264 @ 0x561df75da4c0] no frame!
[h264 @ 0x561df75da4c0] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0x561df75da4c0] decode_slice_header error
[h264 @ 0x561df75da4c0] no frame!
[h264 @ 0x561df75da4c0] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0x561df75da4c0] decode_slice_header error
[h264 @ 0x561df75da4c0] no frame!
[h264 @ 0x561df75da4c0] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0x561df75da4c0] decode_slice_header error
[h264 @ 0x561df75da4c0] no frame!
[null @ 0x561df77f3bc0] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 1001 >= 702
[null @ 0x561df77f3bc0] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 1001 >= 703
[null @ 0x561df77f3bc0] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 1001 >= 704
[null @ 0x561df77f3bc0] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 1001 >= 705
[null @ 0x561df77f3bc0] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 1001 >= 706
[null @ 0x561df77f3bc0] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 1001 >= 707
[null @ 0x561df77f3bc0] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 1001 >= 708
[null @ 0x561df77f3bc0] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 1001 >= 709
[null @ 0x561df77f3bc0] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 1001 >= 710
[null @ 0x561df77f3bc0] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 1001 >= 711
[null @ 0x561df77f3bc0] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 1001 >= 712
[null @ 0x561df77f3bc0] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 1001 >= 713
[null @ 0x561df77f3bc0] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 1001 >= 714
[null @ 0x561df77f3bc0] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 1001 >= 715
[null @ 0x561df77f3bc0] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 1001 >= 716
[null @ 0x561df77f3bc0] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 1001 >= 717

error.log

BTW, thanks for the package 🙏
I'll look into transcode.go, might get better idea

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant