user11740: I use this to cut a part out of a mp4 file:
ffmpeg -i input.mp4 -vcodec copy -acodec copy -ss 00:36:18 -to 00:39:50 output.mp4

It works good but the video image is always freezed in the beginning for 1 second.
Doesnt matter which video file I try and cut a part out of, it takes like 1 second before the video start.
Heres an example: 


Why?

user1871: The video freezes because you aren't cutting at an I-frame, while using stream-copy mode. You'll have to re-encode the video, or choose a different start point, which happens to be an I-frame.

user11871: The order of the parameters is very important on ffmpeg.
Try this:
ffmpeg -ss 00:36:18 -i input.mp4 -vcodec copy -acodec copy -to 00:39:50 output.mp4

It seems that setting the -ss parameter before -i sets a keyframe at the beginning of the newly generated video.
Or so I understand from the Wiki page here.

11740: <p>I use this to cut a part out of a mp4 file:</p>

<pre><code>ffmpeg -i input.mp4 -vcodec copy -acodec copy -ss 00:36:18 -to 00:39:50 output.mp4
</code></pre>

<p>It works good but the video image is always freezed in the beginning for 1 second.</p>

<p>Doesnt matter which video file I try and cut a part out of, it takes like 1 second before the video start.</p>

<p>Heres an example: <div class="youtube-embed"><div>
                <iframe width="640px" height="395px" src="https://www.youtube.com/embed/nhRTwhFc7Os?start=0"></iframe>
            </div></div></p>

<p>Why?</p>
 1871: <p>The video freezes because you aren't cutting at an <a href="https://en.wikipedia.org/wiki/Video_compression_picture_types" rel="nofollow">I-frame</a>, while using stream-copy mode. You'll have to re-encode the video, or choose a different start point, which happens to be an I-frame.</p>
 11871: <p>The <strong>order of the parameters</strong> is very important on <code>ffmpeg</code>.<br>
Try this:</p>

<pre><code>ffmpeg -ss 00:36:18 -i input.mp4 -vcodec copy -acodec copy -to 00:39:50 output.mp4
</code></pre>

<p>It seems that setting the <code>-ss</code> parameter <strong>before</strong> <code>-i</code> sets a keyframe at the beginning of the newly generated video.<br>
Or so I understand from the Wiki page <a href="https://trac.ffmpeg.org/wiki/Seeking" rel="noreferrer">here</a>.</p>
