Transcoding interlaced video

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
JoeBarnett
New Cone
New Cone
Posts: 2
Joined: 20 Mar 2019 11:17

Transcoding interlaced video

Postby JoeBarnett » 20 Mar 2019 12:08

I am trying to transcode interlaced 720x576 50i Matrox MJPEG video into 720x576 50i H264. This video is mute, no audio. I can not see how to disable the deinterlacing filter.
I have tried via the graphical interface but the output file is always progressive. As I wish to produce a script to automate the task I would prefer the command line.

I wish to retain the interlacing and field order. I have tried vlc -I dummy source.avi --sout='#transcode{vcodec=h264, vb=4096, nodeinterlace}:standard{access=file, mux=ts, dst=destination.mp4}' vlc://quit and vlc -I dummy source.avi --sout='#transcode{vcodec=h264, vb=4096, -deinterlace}:standard{access=file, mux=ps, dst=destination.mp4}' vlc://quit both of which produce a progressive output. I have checked the deinterlace setting in preferences but I understand this setting is only for playback.

Is there a way to turn off deinterlacing on the command line?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Transcoding interlaced video

Postby Jean-Baptiste Kempf » 20 Mar 2019 16:05

--sout-deinterlace-mode discard
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

JoeBarnett
New Cone
New Cone
Posts: 2
Joined: 20 Mar 2019 11:17

Re: Transcoding interlaced video

Postby JoeBarnett » 20 Mar 2019 17:27

According to the documentation, Discard means "Only display one of the half-pictures, discard the other. Other name: "single field". Both temporal and vertical spatial resolutions are halved."
I need to process the video as interlaced source file to interlaced destination file.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Transcoding interlaced video

Postby Jean-Baptiste Kempf » 21 Mar 2019 19:40

Ah right, sorry. What if you disable auto-deinterlacing ?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: Google [Bot] and 22 guests