sannies / mp4parser

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

RuntimeException when attempting to mux #405

Closed laurencedawson closed 4 years ago

laurencedawson commented 4 years ago

When following the instructions in the README and trying to mux two files I'm getting the following error.

Any ideas?

java.lang.RuntimeException: PPS with ids  available but not 2
    at org.mp4parser.muxer.tracks.h264.SliceHeader.<init>(SliceHeader.java:73)
    at org.mp4parser.muxer.tracks.h264.H264TrackImpl$1FirstVclNalDetector.<init>(H264TrackImpl.java:242)
    at org.mp4parser.muxer.tracks.h264.H264TrackImpl.readSamples(H264TrackImpl.java:314)
    at org.mp4parser.muxer.tracks.h264.H264TrackImpl.parse(H264TrackImpl.java:138)
    at org.mp4parser.muxer.tracks.h264.H264TrackImpl.<init>(H264TrackImpl.java:98)
    at org.mp4parser.muxer.tracks.h264.H264TrackImpl.<init>(H264TrackImpl.java:103)
    at org.mp4parser.muxer.tracks.h264.H264TrackImpl.<init>(H264TrackImpl.java:107)
milapchokshi-simformsolutions commented 3 years ago

@laurencedawson did you get any solutions for the same? i am getting the same error, if you can help me then it would be so great. thanks