I have created an Rtp Depacketization h264,aac
i have tested it ffmpeg -re -i input.mp4 -c:a aac -vn -f rtp rtp://127.0.0.1:11111
it worked for aac 100%
when test it ffmpeg -re -i input.mp4 -c:v h264 -an -f rtp rtp://127.0.0.1:11112
it is not as 100% it has something error
i have implemented the rtp to nalu handling all STAP A , MTAP 24 , FU B
and get the final NALU
correctly
when trying to store NALU
to external file with prefix 0x00000001
@Override
public void accept(NALU nalu) {
try {
stream.write(new byte[]{0x00, 0x00, 0x00, 0x01});
stream.write(nalu.getData());
} catch (IOException e) {
e.printStackTrace();
}
}
when play out.h264 using vlc player it show corrupted images
what should i do with sps and pps
User contributions licensed under CC BY-SA 3.0