I have a IP Camera which sends 8000hz Sampling rate configured audio and H264 video. I made a program generating TS-file from this IP camera and it works fine on VLC, Android Media player except IPhone, Mac OSX Safari. (The program works with HLS Server that I made.)
Video playing in Iphone, Safari is fine, but Audio isn't. (I can hear sound, but it's not played smoothly)
I understand that Audio PTS in the TS packet should be MPEG2 Sytem PCR Clock based (90000hz). Timestamp value IP camera sends is based Sampling rate based(8000hz), so I multiply 90000/8000 to Timestamp to make PTS be MPEG2 PCR clock when I write audio's PTS in TS-file.
Is the wrong way multiplying 90000/8000 to Audio PTS? any help will be appreciated.