Re: [Mjpeg-users] Combining interlaced and progressive video

2004-11-01 Thread Richard Ellis
On Sat, Oct 30, 2004 at 11:30:29PM +0200, Dik Takken wrote: > Fact is that using MPlayer's post processing can make compressed > material look better to the human spectator, but the question is > still if an encoder like mpeg2enc will also like the post-processed > stream better. That's a question

Re: [Mjpeg-users] Combining interlaced and progressive video

2004-11-01 Thread Richard Ellis
On Sat, Oct 30, 2004 at 06:42:18PM +0200, Dik Takken wrote: > I have done a bit of testing, comparing these two encoding > pipelines: > > png images -> yuv4mpeg -> mjpeg -> mpeg2 > > png images -> yuv4mpeg -> mpeg2 > > The quality produced by the second pipeline is clearly a lot > better. The mj

Re: [Mjpeg-users] Combining interlaced and progressive video

2004-10-30 Thread Steven M. Schultz
On Sat, 30 Oct 2004, Dik Takken wrote: > Well, that was actually your suggestion. :) You suggested that the process > of removing compression artifacts from yuv4mpeg data (caused by prior > mjpeg compression) could best be done in the frequency domain. This makes Oh, I guess it was -

Re: [Mjpeg-users] Combining interlaced and progressive video

2004-10-30 Thread Dik Takken
On Sat, 30 Oct 2004, Steven M. Schultz wrote: I should try using mplayer to feed the mjpeg file to mpeg2enc and see if that yields a better mpeg2 stream. If that works, mpeg2enc could benefit from the MPlayer pp filters as well. I did try it now. I took a photograph and fed it to a script that gen

Re: [Mjpeg-users] Combining interlaced and progressive video

2004-10-30 Thread Dik Takken
On Sat, 30 Oct 2004, Steven M. Schultz wrote: I should try using mplayer to feed the mjpeg file to mpeg2enc and see if that yields a better mpeg2 stream. If that works, mpeg2enc could benefit from the MPlayer pp filters as well. Ummm, but mplayer's a _de_coder ;) Exactly. :) I guess I'm not

Re: [Mjpeg-users] Combining interlaced and progressive video

2004-10-30 Thread Steven M. Schultz
On Sat, 30 Oct 2004, Dik Takken wrote: > I have done a bit of testing, comparing these two encoding pipelines: > > png images -> yuv4mpeg -> mjpeg -> mpeg2 > > png images -> yuv4mpeg -> mpeg2 > > The quality produced by the second pipeline is clearly a lot better. The That is what is

Re: [Mjpeg-users] Combining interlaced and progressive video

2004-10-30 Thread Dik Takken
On Fri, 29 Oct 2004, Steven M. Schultz wrote: This is a task well suited for the various yuv* tools; yuvdenoise, yuvcorrect, Hmmm, if it's "post encoding" processing you're talking about would it be better to do that in the encoder rather than the filtering the input stream prio

Re: [Mjpeg-users] Combining interlaced and progressive video

2004-10-29 Thread Steven M. Schultz
On Fri, 29 Oct 2004, Martin Samuelsson wrote: > On Friday 29 October 2004 12:31, Dik Takken wrote: > > This leads me to another question: Does lav2yuv do any postprocessing on > > the MJPEG data to reduce compression artifacts? > > >This would make mpeg2enc's > > job a bit easier. I know MPlaye

Re: [Mjpeg-users] Combining interlaced and progressive video

2004-10-29 Thread Martin Samuelsson
On Friday 29 October 2004 12:31, Dik Takken wrote: > This leads me to another question: Does lav2yuv do any postprocessing on > the MJPEG data to reduce compression artifacts? As far as I know: None whatsoever. lav2yuv's purpose in this world is to convert lav files into yuv files, nothing more.

Re: [Mjpeg-users] Combining interlaced and progressive video

2004-10-29 Thread Dik Takken
On Thu, 28 Oct 2004, Matto Marjanovic wrote: >STEP 2: > >I use lavtrans to 'grow' a new avi file by adding 'single_picture.avi' to >itself and repeat that 100 times, like so (pseudo code): ... Or, cat picture.ppm | ppmtoy4m -n 100 -r -F 25:1 -I t -L | ... That would work in this particular case, b

Re: [Mjpeg-users] Combining interlaced and progressive video

2004-10-29 Thread Dik Takken
On Fri, 29 Oct 2004, Martin Samuelsson wrote: A better strategy, albeit more space consuming, would be to convert them into YUV4MPEG2 (if it still is called that nowadays; the raw YUV files produced by lav2yuv) instead. If you have more CPU than disk, you could convert-stream-and-feed-the-encoder v

Re: [Mjpeg-users] Combining interlaced and progressive video

2004-10-28 Thread Matto Marjanovic
[I have time for one easy question --- here's the easy answer:] >have a bit of captured interlaced video and a ppm picture. I want to >combine them into a single interlaced MPEG2 stream that looks like this: ... >STEP 1: ... >cat picture.ppm | ppmtoy4m -F 25000:1000 -I t -L | yuv2lav -f a

Re: [Mjpeg-users] Combining interlaced and progressive video

2004-10-28 Thread Martin Samuelsson
On Thursday 28 October 2004 23:00, Dik Takken wrote: > In order to combine all of this into one MPEG2 stream, I start with > converting all three components to MJPEG files. All three MJPEG files need > to have the same resolution, interlacing and so on, or else lavtrans won't > be able to merge the

[Mjpeg-users] Combining interlaced and progressive video

2004-10-28 Thread Dik Takken
The thread about interlaced vs progressive video quality contained a lot of useful info about how to deal with progressive and interlaced video. Now I want to try appying it do something useful, I hope. :) Suppose I want to mix progressive and interlaced video material. For example, I have a bi