<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Musa Musa</title>
    <description>The latest articles on DEV Community by Musa Musa (@musa_musa_f893abe136a85d8).</description>
    <link>https://dev.to/musa_musa_f893abe136a85d8</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4248061%2F4cbcae6a-8b60-43cb-a2f0-f792ea1b993c.png</url>
      <title>DEV Community: Musa Musa</title>
      <link>https://dev.to/musa_musa_f893abe136a85d8</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/musa_musa_f893abe136a85d8"/>
    <language>en</language>
    <item>
      <title>How to verify an MP4 export with ffprobe and FFmpeg</title>
      <dc:creator>Musa Musa</dc:creator>
      <pubDate>Mon, 16 Nov 2026 15:32:49 +0000</pubDate>
      <link>https://dev.to/musa_musa_f893abe136a85d8/how-to-verify-an-mp4-export-with-ffprobe-and-ffmpeg-22ag</link>
      <guid>https://dev.to/musa_musa_f893abe136a85d8/how-to-verify-an-mp4-export-with-ffprobe-and-ffmpeg-22ag</guid>
      <description>&lt;p&gt;An MP4 can open in a player and still have missing audio, an unexpected resolution, or damaged frames near the end. If you're building a media workflow, run a quick structural check first and reserve full decoding for the exports you need to validate.&lt;/p&gt;

&lt;h2&gt;
  
  
  Check the streams
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ffprobe -v error \
  -show_entries &lt;span class="s1"&gt;'format=duration:stream=codec_type,codec_name,width,height'&lt;/span&gt; \
  -of json export.mp4
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Look for a video stream with the dimensions you expected and an audio stream if the export should have sound. Compare the reported duration with the source or the intended trim. The JSON output is suitable for a script that rejects files with missing streams or unexpected dimensions. Use a small tolerance for duration comparisons so that frame rounding doesn't raise false alarms.&lt;/p&gt;

&lt;h2&gt;
  
  
  Decode the entire file when integrity matters
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ffmpeg -v error -xerror -i export.mp4 \
  -map 0:v:0 -map &lt;span class="s1"&gt;'0:a:0?'&lt;/span&gt; -f null -
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The null output discards decoded frames. The optional audio map also works for silent files. Use the exit status to flag decoding failures, and check the stream list separately if audio is mandatory. A clean decode still leaves subjective checks such as lip sync and whether the intended edit made it into the export.&lt;/p&gt;

&lt;p&gt;Run the same checks on files from a &lt;a href="https://youtubeultra.com/" rel="noopener noreferrer"&gt;youtube video downloader&lt;/a&gt; when you own the video or have permission to save it. Keep the original export when you have it, since platform copies can be recompressed.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Disclosure: I'm affiliated with YouTubeUltra. This post was prepared with AI assistance.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>automation</category>
      <category>cli</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
