Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
|
![]() |
|
Thread Tools | Search this Thread | Display Modes |
![]() |
#1 | Link |
Registered User
Join Date: Nov 2015
Posts: 29
|
Calculate SSIM or PSNR of video file with lost packets
Hi experts,
I am encoding my video using JM and with packetization mode RTP. I want to test effect of different videos under different packet loss ratios. But unfortunately only videos with 1% packet loss ratios are decode-able. The decoder fails to decode the video file if packet loss ratio is greater than 1%. But i want to see the effect of packet loss under 5% and 10% packet loss ratios by calculating their PSNR or SSIM after decoding with packet loss. As ffmpeg not able to decode the video file with RTP header appended i have none other option than to decode using JM only. IS there a way i can achieve this? |
![]() |
![]() |
![]() |
#2 | Link |
Registered User
Join Date: Jan 2002
Location: San Jose, CA
Posts: 216
|
Remove the RTP header and convert the file to a raw elementary stream.
You shouldn't use JM for this, it will easily crash when facing bitstream errors. Unless you have no motion PSNR will likely be quite low, as bitstream errors will usually be detected much later than where they actually occur (potentially causing a very different output than the original). |
![]() |
![]() |
![]() |
#3 | Link | |
Registered User
Join Date: Nov 2015
Posts: 29
|
Quote:
|
|
![]() |
![]() |
![]() |
#4 | Link |
Angel of Night
![]() Join Date: Nov 2004
Location: Tangled in the silks
Posts: 9,562
|
ffmpeg tries the hardest to recover from an error. Just stream it in and compare what it spits out with what you started with. Nearly all other decoders will just skip frames or to the next GOP if they encounter any corruption.
|
![]() |
![]() |
![]() |
Tags |
h.264, packet loss simulator, rtp, ssim |
Thread Tools | Search this Thread |
Display Modes | |
|
|