<p><code>ffmpeg -f rawvideo -pix_fmt gray -s:v 700x220 -i test1.bin -c:v rawvideo -pix_fmt gray -vf tinterlace,setpts=0.5*PTS out.avi</code></p>

<p>Do the trick for me.</p>

CC BY-SA 4.0
2018-11-23T12:02:54.350Z
2018-11-23T12:02:54.350Z
qqffx
<p>I have binary data stream from analogue camera and convert it to .avi with this</p>

<p><code>λ ffmpeg -f rawvideo -pix_fmt gray -s:v 700x220 -i orbita_d.bin -c:v rawvideo -pix_fmt yuv420p out.avi</code></p>

<p>what do I need to deinterlace it? I read about yadiff, but it looks like it doesn't work with raw pixel data.</p>

CC BY-SA 4.0
2018-11-23T10:06:03.277Z
yadif, by default, relies on frame signaling to determine whether and how to deinterlace. A raw stream won't have those details, so you have to manually set them.
Gyan
<ffmpeg><avi>
How to deinterlace GRAY video and convert it to .avi?
qqffx
# How to deinterlace GRAY video and convert it to .avi?

(Asked by: username_0 on 2018-11-23)

I have binary data stream from analogue camera and convert it to .avi with this

`λ ffmpeg -f rawvideo -pix_fmt gray -s:v 700x220 -i orbita_d.bin -c:v rawvideo -pix_fmt yuv420p out.avi`

what do I need to deinterlace it? I read about yadiff, but it looks like it doesn't work with raw pixel data.

**Tags:** ffmpeg, avi

> **Comments:**
> **username_1**: yadif, by default, relies on frame signaling to determine whether and how to deinterlace. A raw stream won't have those details, so you have to manually set them.  

---

## 1 answers

### Answer by username_0 on 2018-11-23. Score: -2

`ffmpeg -f rawvideo -pix_fmt gray -s:v 700x220 -i test1.bin -c:v rawvideo -pix_fmt gray -vf tinterlace,setpts=0.5*PTS out.avi`

Do the trick for me.


---

