<p>I have 226 sequenced images (TIFF, 6.2MB each) and i would like loseless save them like video by using H265. </p>

<p>Here is command which I used:</p>

<pre><code>ffmpeg -f image2 -framerate 25 -i IMG_%03d.tif -vcodec libx265 -x265-params lossless -strict experimental -pix_fmt yuv420p -report movie_newh265yuv420.mp4
</code></pre>

<p>And here is output video: <a href="http://chmura.rarez.pl/index.php/s/kek6ZYzyDklfZjP" rel="nofollow">Broken Output Video</a></p>

<p>I really don't know how to fix it. Video should looks like this one <a href="https://youtu.be/hFei6iaO4zo" rel="nofollow">Good Video</a> If u have any idea I will be very glad. </p>

<p>Report from FFMPEG below: </p>

<p>Thank you </p>

CC BY-SA 3.0
2016-01-09T22:40:52.330Z
http://pastebin.com/7sMn1Vye - Report
Rarez
CC BY-SA 3.0
2016-01-10T05:58:07.163Z
You have 261 frames but only 226 frames have been encoded. 35 frames are missing. Cycle through the image sequence at slow speed in a image browser and see if the jumps still occur.
Gyan
CC BY-SA 3.0
2016-01-10T11:33:27.533Z
My bad, I have 226 frames so all have been encoded. Where is mistake now ? Maybe I should add something specific -x265-params ?
Rarez
CC BY-SA 3.0
2016-01-10T11:53:25.727Z
What do the image filenames look like?
Gyan
CC BY-SA 3.0
2016-01-10T12:32:58.260Z
IMG_001.tif to IMG_226.tif
Rarez
CC BY-SA 3.0
2016-01-10T12:40:43.143Z
Run `ffmpeg -f image2 -framerate 25 -i IMG_%03d.tif -vcodec rawvideo -pix_fmt yuv420p raw_newh265yuv420.avi` and see if the jumps occur.
Gyan
CC BY-SA 3.0
2016-01-10T12:44:03.767Z
The same :/ maybe something wrong with my ffmpeg ?
Rarez
CC BY-SA 3.0
2016-01-10T13:01:14.560Z
No. the files seem to be picked out of order. Scan through them manually to check continuity but take care to note the file being scanned.
Gyan
CC BY-SA 3.0
2016-01-10T13:20:01.247Z
I made mistake in change name script /facepalm. Now everything it's ok. Sorry mate for my brainless and Thank you so much for your perseverance
Rarez
<ffmpeg><compression>
FFMPEG Tiff images to losseless video (H265) lags, broken output
Rarez
# FFMPEG Tiff images to losseless video (H265) lags, broken output

(Asked by: username_0 on 2016-01-09)

I have 226 sequenced images (TIFF, 6.2MB each) and i would like loseless save them like video by using H265. 
Here is command which I used:
ffmpeg -f image2 -framerate 25 -i IMG_%03d.tif -vcodec libx265 -x265-params lossless -strict experimental -pix_fmt yuv420p -report movie_newh265yuv420.mp4

And here is output video: Broken Output Video
I really don't know how to fix it. Video should looks like this one Good Video If u have any idea I will be very glad. 
Report from FFMPEG below: 
Thank you

**Tags:** ffmpeg, compression

> **Comments:**
> **username_0**: http://pastebin.com/7sMn1Vye - Report  
> **username_1**: You have 261 frames but only 226 frames have been encoded. 35 frames are missing. Cycle through the image sequence at slow speed in a image browser and see if the jumps still occur.  
> **username_0**: My bad, I have 226 frames so all have been encoded. Where is mistake now ? Maybe I should add something specific -x265-params ?  
> **username_1**: What do the image filenames look like?  
> **username_0**: IMG_001.tif to IMG_226.tif  
> **username_1**: Run `ffmpeg -f image2 -framerate 25 -i IMG_%03d.tif -vcodec rawvideo -pix_fmt yuv420p raw_newh265yuv420.avi` and see if the jumps occur.  
> **username_0**: The same :/ maybe something wrong with my ffmpeg ?  
> **username_1**: No. the files seem to be picked out of order. Scan through them manually to check continuity but take care to note the file being scanned.  
> **username_0**: I made mistake in change name script /facepalm. Now everything it's ok. Sorry mate for my brainless and Thank you so much for your perseverance  

---

## 0 answers

