<?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: AlphaDrama</title>
    <description>The latest articles on DEV Community by AlphaDrama (@getalphadrama).</description>
    <link>https://dev.to/getalphadrama</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%2F4264293%2F8c7a22e2-1447-43c5-948c-3dfbda335887.jpg</url>
      <title>DEV Community: AlphaDrama</title>
      <link>https://dev.to/getalphadrama</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/getalphadrama"/>
    <language>en</language>
    <item>
      <title>Check the first two frames and final cut of a vertical video with FFmpeg</title>
      <dc:creator>AlphaDrama</dc:creator>
      <pubDate>Wed, 25 Nov 2026 11:28:59 +0000</pubDate>
      <link>https://dev.to/getalphadrama/check-the-first-two-frames-and-final-cut-of-a-vertical-video-with-ffmpeg-15m2</link>
      <guid>https://dev.to/getalphadrama/check-the-first-two-frames-and-final-cut-of-a-vertical-video-with-ffmpeg-15m2</guid>
      <description>&lt;p&gt;A one-frame cover can be easy to lose when exporting a vertical tutorial. Extract the first two frames, inspect the cut into the finished video, and decode the complete file.&lt;/p&gt;

&lt;p&gt;Our team builds AlphaDrama. For our blinds-transition tutorial, the export was 1080×1920 at 30 fps, with a 12.5-second finished clip at the end. Use the commands below on a local MP4 you have permission to inspect.&lt;/p&gt;

&lt;h2&gt;
  
  
  Check 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="nv"&gt;stream&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;index,codec_type,codec_name,width,height,r_frame_rate -of json tutorial.mp4
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Confirm that the video is portrait, note the frame rate, and check that an audio stream exists. An audio stream does not prove the sound is audible or in sync.&lt;/p&gt;

&lt;h2&gt;
  
  
  Inspect the first two frames
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ffmpeg -i tutorial.mp4 -vf &lt;span class="s2"&gt;"select='eq(n,0)+eq(n,1)'"&lt;/span&gt; -fps_mode passthrough first-%02d.png
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Open both images. In this tutorial the first is the cover and the second begins the blinds effect. This catches a cover held too long or dropped during export.&lt;/p&gt;

&lt;h2&gt;
  
  
  Inspect the final cut
&lt;/h2&gt;

&lt;p&gt;Record the time where the finished clip begins and inspect each side. At 30 fps, a frame is about 0.033 seconds:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ffmpeg -ss 19.267 -i tutorial.mp4 -frames:v 1 before-cut.png
ffmpeg -ss 19.300 -i tutorial.mp4 -frames:v 1 after-cut.png
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;These timestamps belong to this specific 19.3-second tutorial segment. Replace them for your own export. Compare the first frame after the cut with the source and listen to the transition.&lt;/p&gt;

&lt;p&gt;Finally check that the complete file decodes:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ffmpeg -v error -xerror -i tutorial.mp4 -f null -
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Decoding checks cannot judge narration, subtitles or music rights. Review those separately.&lt;/p&gt;

&lt;p&gt;FFmpeg reference: &lt;a href="https://ffmpeg.org/ffmpeg.html" rel="noopener noreferrer"&gt;https://ffmpeg.org/ffmpeg.html&lt;/a&gt;&lt;/p&gt;

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