I have saved a video call to a .pcap file with Wireshark, and I want to acquire the video from RTP packets. RTP packets payload type is vp8, I could find out the vp8 RTP packets by using libpcap library in C++. Then I saved the contents of all RTP vp8 packets to a file. But i can not convert this raw vp8 data to .mp4 by using ffmpeg. ffmpeg gives error during conversion. ffmpeg conversion error : Invalid data found when processing input
What are the steps to get .mp4 or .webm video file from vp8 RTP packets?
Edit : I could get raw VP8 data excluding VP8 payload descriptor, payload header and keyframe header. Then I added ivf header and frame header for each vp8 raw frame, according to ivf document IVF Document
But When I want to convert my ivf file (output1) to output1.mp4 by using ffmpeg
ffmpeg -i output1 -c:v vp8 output1.mp4
I get errors