Closed davitf closed 6 years ago
The problem is that the SPS Unit needs to be decoded before the slices are. I added default values for the SpsInfo but this is only a quick fix. Please try if it works for you now.
It worked! It seemed that the output file was larger than the one generated by ponchio's original code, but I haven't really stopped to analyze.
Hi! As you requested in my pull request, I've uploaded a sample video which is fixed correctly by ponchio's master, but when I run it on your master, the output is a broken video. Here are the files.
Running:
./untrunc ok.mp4 broken_sample.mp4
The original code produces the file I've renamed
output_original.mp4
, and this version producesoutput_corrupted.mp4
.Let me know if I can help!