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.

 

Go Back   Doom9's Forum > Video Encoding > MPEG-4 AVC / H.264

Reply
 
Thread Tools Search this Thread Display Modes
Old 11th April 2016, 22:51   #1  |  Link
mushahidh
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?
mushahidh is offline   Reply With Quote
Old 11th April 2016, 23:27   #2  |  Link
Sulik
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).
Sulik is offline   Reply With Quote
Old 14th April 2016, 09:03   #3  |  Link
mushahidh
Registered User
 
Join Date: Nov 2015
Posts: 29
Quote:
Originally Posted by Sulik View Post
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).
Which decoder should i use after that? And How to make a complete frames from RtP packets?
mushahidh is offline   Reply With Quote
Old 15th April 2016, 14:12   #4  |  Link
foxyshadis
ангел смерти
 
foxyshadis's Avatar
 
Join Date: Nov 2004
Location: Lost
Posts: 9,558
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.
foxyshadis is offline   Reply With Quote
Reply

Tags
h.264, packet loss simulator, rtp, ssim

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 19:03.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.