Answers.Body: <p>You can use a free tool like the Moscow State University <a href="http://www.compression.ru/video/quality_measure/video_measurement_tool.html" rel="nofollow noreferrer">Video Quality Measurement Tool</a> or something like <a href="http://www.tek.com/aurora" rel="nofollow noreferrer">Tektronix Aurora</a> or <a href="http://www.interrasystems.com/file-based-qc.php" rel="nofollow noreferrer">Interra Baton</a> in a professional setting.</p>
  
  <p>However, you should always visually check at least the heads and tails of the video, in addition to any areas flagged by an automated QC tool. Spot checking the middle of the file is also a good idea. A specialty player like <a href="https://bavc.org/preserve-media/preservation-tools" rel="nofollow noreferrer">QCTools</a> is helpful.</p>
  
  <p>One thing to note: I've generally found that the amount of time needed to set up a good automated QC workflow is only worthwhile if you have a lot of material to QC (tens of hours or more) or you will use the workflow repeatedly for a long time. The <a href="http://thedoghousediaries.com/5412" rel="nofollow noreferrer">amount of work needed to automate the QC outweighs the time spent checking</a> short term, small workloads.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-04-18T00:18:11.233Z
Answers.LastActivityDate: 2017-04-18T00:18:11.233Z
Answers.UserDisplayName: Michael Liebman
Answers.Body: <p>There are several methods/algorithms to compare a transcoded file against its original. </p>
  
  <p>This is a good article which I believe covers what you're asking. It touches on algorithms such as Peak Signal-to-Noise (PSNR) ratio and Structural Similarity Index (SSIM) used to perform objective analysis -- without having to watch the actual video.</p>
  
  <p><a href="http://www.streamingmedia.com/Articles/ReadArticle.aspx?ArticleID=110206&amp;utm_source=RSS&amp;utm_medium=RSS&amp;utm_campaign=Article_Reads" rel="nofollow noreferrer">http://www.streamingmedia.com/Articles/ReadArticle.aspx?ArticleID=110206&amp;utm_source=RSS&amp;utm_medium=RSS&amp;utm_campaign=Article_Reads</a></p>
  
  <blockquote>
    <p>Without question, the gold standard for assessing video quality is a controlled subjective test, which, as previously mentioned, can be time-consuming and expensive to run. Objective quality benchmarks are algorithms that compare the compressed video with the source and render a value that predicts how the compressed file would fare in subjective tests. There are multiple algorithms, all rated according to how well they correspond with actual subjective evaluations. None are perfect, but some perform better than others.</p>
  </blockquote>
  
  <p>Jan Ozer, the article author, even links to a demo of the Moscow University Video Quality Measurement Tool showing good and bad frame-to-frame comparisons.</p>
  
  <p><div class="youtube-embed"><div>
                  <iframe width="640px" height="395px" src="https://www.youtube.com/embed/tfeQ2MLi3mg?start=0"></iframe>
              </div></div></p>
  
  <p>Cheers,</p>
  
  <p>Ian</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-04-17T23:34:35.057Z
Answers.Text: There is also [PEVQ and ITU-­‐T G.1070](https://www.ietf.org/proceedings/88/slides/slides-88-rmcat-5.pdf).
Answers.UserDisplayName: Michael Liebman
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-04-17T23:57:36.787Z
Answers.Text: True! There are several. Each has its own strengths and weaknesses.
Answers.UserDisplayName: iangetz
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-04-17T15:20:28.783Z
Answers.LastActivityDate: 2017-04-17T15:30:04.190Z
Answers.LastEditDate: 2017-04-17T15:30:04.190Z
Answers.UserDisplayName: iangetz
Answers.Body: <p>I used to do everything in AviSynth. I would mix my Videos and call Batch Files to compress with x.264/5.</p>
  
  <p>AviSynth also has Math Functions like Compare which compares Frames: <a href="http://avisynth.nl/index.php/Compare" rel="nofollow noreferrer">http://avisynth.nl/index.php/Compare</a> - Not difficult to write a Script that grabs a few Frames whenever there's much of a difference and create a Visual Report (a Video of the excess differences).</p>
  
  <p>A Program that did everything perfectly is likely to be expensive due to a limited Market (with rich customers) and a Test that simply gives you one number doesn't necessarily mean much nor does it identify the problem - if it's a single dropped Frame would you want to spend hours recoding (possibly with the same result).</p>
  
  <p>If you want to Automate for a low cost you'll have to learn to write the Program or simply do it with Scripting - AviSynth is designed for this sort of problem.</p>
  
  <p>There's a reasonable chance of finding the Script written for you but the URL above gives a couple of examples of how easy the Language is to learn.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-04-19T03:33:07.780Z
Answers.LastActivityDate: 2017-04-19T03:33:07.780Z
Answers.UserDisplayName: Rob
Body: <p>I have to encode (transcode) many video files (usually from AVI to MP4). But to see if the encoded files are correct or not I will play all the files manually, which is rather tedious.</p>
  
  <p>Is there any tool to check if an encoded file is perfect or not?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-04-18T04:53:50.077Z
Comments.Text: Your question is unclear. Do you want to assess the quality of the output, which is what the current answers address? Or see if all frames were encoded and without any errors during processing?
Comments.UserDisplayName: Gyan
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-04-18T09:49:34.330Z
Comments.Text: @Mulvya Thanks for your comment. In fact, both answers are very helpful, I am battling with myself to decide which one is better (please give me some time). You mentioned that if some frames are not encoded, I consider the file to be incorrect if some frames are not encoded. I wonder if those tools are able to detect that?
Comments.UserDisplayName: shintaroid
Tags: <encoding><transcoding>
Title: How do I know if a video file is encoded perfectly or not?
UserDisplayName: shintaroid
ThreadText: # How do I know if a video file is encoded perfectly or not?
  
  (Asked by: username_0 on 2017-04-17)
  
  I have to encode (transcode) many video files (usually from AVI to MP4). But to see if the encoded files are correct or not I will play all the files manually, which is rather tedious.
  
  Is there any tool to check if an encoded file is perfect or not?
  
  **Tags:** encoding, transcoding
  
  > **Comments:**
  > **username_1**: Your question is unclear. Do you want to assess the quality of the output, which is what the current answers address? Or see if all frames were encoded and without any errors during processing?  
  > **username_0**: @Mulvya Thanks for your comment. In fact, both answers are very helpful, I am battling with myself to decide which one is better (please give me some time). You mentioned that if some frames are not encoded, I consider the file to be incorrect if some frames are not encoded. I wonder if those tools are able to detect that?  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_2 on 2017-04-18. Score: 1 | Accepted answer
  
  You can use a free tool like the Moscow State University [Video Quality Measurement Tool](http://www.compression.ru/video/quality_measure/video_measurement_tool.html) or something like [Tektronix Aurora](http://www.tek.com/aurora) or [Interra Baton](http://www.interrasystems.com/file-based-qc.php) in a professional setting.
  
  However, you should always visually check at least the heads and tails of the video, in addition to any areas flagged by an automated QC tool. Spot checking the middle of the file is also a good idea. A specialty player like [QCTools](https://bavc.org/preserve-media/preservation-tools) is helpful.
  
  One thing to note: I've generally found that the amount of time needed to set up a good automated QC workflow is only worthwhile if you have a lot of material to QC (tens of hours or more) or you will use the workflow repeatedly for a long time. The [amount of work needed to automate the QC outweighs the time spent checking](http://thedoghousediaries.com/5412) short term, small workloads.
  
  
  ---
  
  ### Answer by username_3 on 2017-04-17. Score: 2
  
  There are several methods/algorithms to compare a transcoded file against its original.
  
  This is a good article which I believe covers what you're asking. It touches on algorithms such as Peak Signal-to-Noise (PSNR) ratio and Structural Similarity Index (SSIM) used to perform objective analysis -- without having to watch the actual video.
  
  <http://www.streamingmedia.com/Articles/ReadArticle.aspx?ArticleID=110206&utm_source=RSS&utm_medium=RSS&utm_campaign=Article_Reads>
  
  > Without question, the gold standard for assessing video quality is a controlled subjective test, which, as previously mentioned, can be time-consuming and expensive to run. Objective quality benchmarks are algorithms that compare the compressed video with the source and render a value that predicts how the compressed file would fare in subjective tests. There are multiple algorithms, all rated according to how well they correspond with actual subjective evaluations. None are perfect, but some perform better than others.
  
  Jan Ozer, the article author, even links to a demo of the Moscow University Video Quality Measurement Tool showing good and bad frame-to-frame comparisons.
  
  Cheers,
  
  Ian
  
  > **Comments:**
  > **username_2**: There is also [PEVQ and ITU-­‐T G.1070](https://www.ietf.org/proceedings/88/slides/slides-88-rmcat-5.pdf).  
  > **username_3**: True! There are several. Each has its own strengths and weaknesses.  
  
  ---
  
  ### Answer by username_4 on 2017-04-19. Score: 0
  
  I used to do everything in AviSynth. I would mix my Videos and call Batch Files to compress with x.264/5.
  
  AviSynth also has Math Functions like Compare which compares Frames: <http://avisynth.nl/index.php/Compare> - Not difficult to write a Script that grabs a few Frames whenever there's much of a difference and create a Visual Report (a Video of the excess differences).
  
  A Program that did everything perfectly is likely to be expensive due to a limited Market (with rich customers) and a Test that simply gives you one number doesn't necessarily mean much nor does it identify the problem - if it's a single dropped Frame would you want to spend hours recoding (possibly with the same result).
  
  If you want to Automate for a low cost you'll have to learn to write the Program or simply do it with Scripting - AviSynth is designed for this sort of problem.
  
  There's a reasonable chance of finding the Script written for you but the URL above gives a couple of examples of how easy the Language is to learn.
  
  
  ---
  
  