sannies / mp4parser

A Java API to read, write and create MP4 files
Apache License 2.0
2.74k stars 563 forks source link

Do the same as ffmpeg copy #394

Open wscholar opened 4 years ago

wscholar commented 4 years ago

Hello. I have a an mp4 created from recording an rtsp stream on easyplayer client (android). The file wasn't playable until i used ffmpeg copy

ffmpeg -i 6ade1f3d-917d-4273-8667-5c6d609ca2bb.mp4 -c copy test3.mp4

I understand that ffmpeg copy only manipulates the container. So I was trying to figure out how can I use mp4parser todo the same thing?

I tried examples/src/main/java/com/Repair.java and it did not work.

Thank you!

Wayne 6ade1f3d-917d-4273-8667-5c6d609ca2bb.mp4.zip

wscholar commented 4 years ago

Solved it using https://github.com/WritingMinds/ffmpeg-android-java