Re: [Mjpeg-users] yuvdenoise

2010-11-14 Thread Herve Flores

Le 14 nov. 2010 à 21:04, E Chalaron a écrit :

 Hello Bernhard
 Thanks for the reply.
 That is a normal behaviour both programms use only one CPU/Core and are 
 not multithreaded.
 
 
 Ok so if I understand properly does it mean that y4munsharp will get 1
 core and the yuvdenoise the oher one ? or both on 1 core that will
 alternate from time to time ?
 If so is there a chance that both (and maybe the other mjpegtools) can
 be multithreaded ?

(hello, sorry I'm not english native)

If I well readed your mail: you only have 2 core and you want some speedup
but you have 4 processes : decoder, yuvdenoise, y4munsharp, ffmpeg
The good hardware for this process will be to have 4 core (one for each process)

Theorically, if you had more core/proc (than 4), you could add some threads 
more to the most consumming processes parts (aka yuvdenoise and ffmpeg enc) and 
to obtain some speed / optimizations
But you don't have ;-)

The most efficient way for me (empiric way) is not to distribute processes 
between so few cores, but to limit threads to the exact number of your 
processors. 
(was my 2 cents ;))

bye

Hervé
--
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] yuvdenoise

2010-11-14 Thread Mark Heath

The simple solution to worrying about the need to optimise the code  
for your cpu is to look at the output from top.
(I am actually interested in seeing the %CPU each of your processes  
take up.)

Are both your CPUs fully loaded?

Yes - multi threading is not needed but you could always optimise the  
heaviest hitting process to increase FPS. And then the next heaviest  
etc etc.

No - The heaviest hitting process is causing the bottle neck.  Look at  
optimising this process to better utilise your machine, multithreading  
may help.   There is no point optimising the low %CPU processes if  
this is the case.

Mark

On 14/11/2010, at 11:15 AM, E Chalaron wrote:

 Hello all
 Just a quick question : using mjpegtools through ffmpeg piping.
 are they (or not) multi threaded ?

 ffmpeg -threads 2 -y -i - -f yuv4mpegpipe - | \
 yuvdenoise -t 2,8,8 -m 2,8,8 |
 y4munsharp |\
 ffmpeg -y -threads 2 -i - -b 22k -vcodec dnxhd -threads 2 $fichier

 On (for say) a dual core (AMD or Intel) the gkrellm histogram shows a
 smaller activity on 1 core then alternates to the other core from time
 to time.


 Thanks a lot
 Edouard

 --
 Centralized Desktop Delivery: Dell and VMware Reference Architecture
 Simplifying enterprise desktop deployment and management using
 Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
 client virtualization framework. Read more!
 http://p.sf.net/sfu/dell-eql-dev2dev
 ___
 Mjpeg-users mailing list
 Mjpeg-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/mjpeg-users


--
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] yuvdenoise

2010-11-14 Thread E Chalaron
Thanks Mark

 No - The heaviest hitting process is causing the bottle neck.  Look at  
 optimising this process to better utilise your machine, multithreading  
 may help.   There is no point optimising the low %CPU processes if  
 this is the case.
   

This is the case.
It seems to be yuvdenoise but I may be wrong.
As for optimising/recoding : in another life, I have not a clue about that.
Cheers
E

--
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] yuvdenoise

2010-11-14 Thread E Chalaron


 Are both your CPU cores loaded?
   
Well one is 20 % the other  65 % (or so) and then swap from time to time.

cheers
E

--
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] yuvdenoise Was: Video is green if i use yuvdeinterlace

2006-08-11 Thread Michael Hanke
Am Mittwoch, 12. Juli 2006 10:18 schrieb stefan:
 stefan schrieb:
  Steven M. Schultz schrieb:

  On Wed, 5 Jul 2006, Michael Hanke wrote:
  
  Hmmm... Please excuse my dumb question. Here are you puzzling me a 
little bit.
[snip]

Hi Steven and Stefan,

being back from my vacations I found your long explanations. Thanks a lot for 
them!

Michael

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] yuvdenoise Was: Video is green if i use yuvdeinterlace

2006-07-12 Thread stefan
stefan schrieb:
 Steven M. Schultz schrieb:
   
 On Wed, 5 Jul 2006, Michael Hanke wrote:
 
 Hmmm... Please excuse my dumb question. Here are you puzzling me a little 
 bit.
 
   
 It is not dumb at all!  You raise some very interesting points that
 people should be aware of.
   
 
 Yes, indeed.
   
 My model of thinking with respect to interlacing/deinterlacing is as 
 follows:
 - If the material is tv life (say a football match with very fast motion) 
 then
 I think that is is a good idea to let the material interlaced because of 
 the 
 kammeffekt (Sorry, I don't know the correct english word).
 
   
 Well, I was quite satisfied with such an answer for a long time, too,
 but nowadays, I'm not.

 1. Deinterlacing has nothing to do with destroying temporal resolution.
 yuvdeinterlace has (as any other good deinterlacer, I know) the option
 to deliver 50 frames interpolated from 50 fields. As it does *not* alter
 the original scanlines in this case, the quality is higher than what any
 other, freely available deinterlaciner does do in this case. This is OK,
 even for fast moving sport-events. You get 50 frames out of 50 fields.
 Subjective Quality in this case is a lot *better* than before. You can
 use this for nice slow-motion-effects, too...

 2. Most people can not distinguish temporaly decimated material from
 50(60) to 25(30) fps, if it is progressive. Yes, if it is interlaced,
 they can. But this is because of the *defects* of interlaced images.
 Yes, I agree that 50 fps progressive material would even be a little
 better than 25 fps progressive material, but this is somewhat like the
 discussion if we really need 24 Bit 96 kHz audio (which we clearly do
 *not* really need... as we are no bats) to get a more analog listening
 expirience. The physiological limit of visual temporal resolution which
 leads to the impression of fluent motion is about 12-15 fps depending on
 the individual. 25 fps is so much above this that (for most people) we
 can forget about 50 fps. 50 fields/s just remains an excuse for 1920s
 technology in this context.

   
 temporal resolution is the appropriate phrase.  And 60 (or 50)
 fields/sec will give better motion than 25 (30) frames/sec. 
   
 
 Correct.
   
 Of course 60 (or 50 for Europe) _frame_/second progressive would
 be fantastic for sporting (high action) events - and in the US some
 stations do indeed broadcast 1280x720p HDTV at 60 frames/sec.
   
 
 I do agree, too.

   
 direction. The critical thing happens if I use my Canopus to digitize to dv 
 which has 420 subsampling. If I would deinterlace in that case, the 
 vertical 
 chroma resolution becomes wrong. Am I wrong here?
 
   
  You are CORRECT.  Deinterlacing 4:2:0 is TRICKY and complicated by
  the fact there are 3 variants of 4:2:0
   
 
 No, not completely. For 2 of that 3 variants the result will be correct.
 The 3rd variant is caused by a bug in the kernel-implementation of
 interlaced 4:2:0 with the BTTV-chipsets. The 4:2:0 subsampling of the
 canopus is correct and does not cause problems. The BTTV-driver (the
 chipset can do it correctly...) is wrong here. This is known for ages,
 now. But as it seems that no-one notices it...

   
 See 
  http://www.mir.com/DMG/chroma.html

 for a good explanation of the 420 layouts.
   
 
 This does not refer to the problem he discribes. This does refer to the
 different spatial positions of the chroma-samples relative to the
 luminance-samples-position. The relative spatial position of
 chrominace-samples is irrelevant to a deinterlacer. The relative
 *temporal* position however is not (and this gets severely damaged with
 a BTTV in 4:2:0 mode...).
   
 BTW. Sometimes I have the feeling that the fields are shifted by one frame 
 in 
 the dv capturing. Can this happen?
 
   
 Only if it's a VHS-deck, you record from. Signal quality is bad then.
 This is true for the sync impulses, too. In any other cases I would
 agree with Steven and say no.

   
 often used commercial VHS tape for my archive.
   
 I hope it has more than 240 lines of horizontal resolution...

   
  It had an unusual high noise 
 
   
 does not surprise me...
   
 level. Playing around with the different denoiser settings my test audience 
 had a very strange view: The best impression made the noisy tape because of 
 its sharpness! When using yuvdenoise (without any tuning) the picture was 
 considered blurred, unsharp, unviewable
 
   
 Hmm, do you use the current CVS version? I guess, not, as the current
 CVS version is preset to not filter at all. The old version had some
 default values set, mainly to let people see the filtering happen and
 then finetune it to their needs, but this quickly came out as a bad
 idea: People allways tried to use the default-settings to filter
 everything with the result of blurred, flat images... So I set all
 defaults to zero. The user is forced to choose values 

Re: [Mjpeg-users] yuvdenoise Was: Video is green if i use yuvdeinterlace

2006-07-10 Thread Steven M. Schultz

On Wed, 5 Jul 2006, Michael Hanke wrote:

 Hmmm... Please excuse my dumb question. Here are you puzzling me a little bit.

It is not dumb at all!  You raise some very interesting points that
people should be aware of.

 My model of thinking with respect to interlacing/deinterlacing is as follows:
 - If the material is tv life (say a football match with very fast motion) then
 I think that is is a good idea to let the material interlaced because of the 
 kammeffekt (Sorry, I don't know the correct english word).

temporal resolution is the appropriate phrase.  And 60 (or 50)
fields/sec will give better motion than 25 (30) frames/sec. 

Of course 60 (or 50 for Europe) _frame_/second progressive would
be fantastic for sporting (high action) events - and in the US some
stations do indeed broadcast 1280x720p HDTV at 60 frames/sec.

 - If the source is a movie, then it depends. If I have recorded with lavrec 
 from my bt787, I have 422 subsampling. So there is no loss in the vertical 

Is that the same as a Bt878?  I knew the chipset was capable of
4:2:2 but I have not heard of anyone actually using 4:2:2.  That is
probably because at some point there needs to be a quality 
4:2:2 - 4:2:0 conversion done and that is not trivial to do properly.

 direction. The critical thing happens if I use my Canopus to digitize to dv 
 which has 420 subsampling. If I would deinterlace in that case, the vertical 
 chroma resolution becomes wrong. Am I wrong here?

You are CORRECT.  Deinterlacing 4:2:0 is TRICKY and complicated by
the fact there are 3 variants of 4:2:0

See 

http://www.mir.com/DMG/chroma.html

for a good explanation of the 420 layouts.

 BTW. Sometimes I have the feeling that the fields are shifted by one frame in 
 the dv capturing. Can this happen?

I would say no.  


BUT DV is bottom field first while other capture
cards are top field first (TFF).  I do not know if the the field order
is TFF for the Bt878 but it could be.  For MJPEG cards (DC30, etc)
the field order is TFF.  For AJA equipment (www.aja.com) everything
is bottom field first.

I am away from the references at the moment BUT I do remember that
DV is defined to be digitized 1 line offset/different from 
standard video.  For NTSC (525 line video system) the active area
being digitized for DV does NOT start at the same  line as 
SD (8bit uncompressed 4:2:2 720x486 video.  It's a long   
story - recommended reading is Charles Poynton's book Digital
Video and HDTV Algorithms and Interfaces:

http://www.amazon.com/gp/product/1558607927/sr=8-1/qid=1152590390/ref=pd_bbs_1/103-9617851-7557445?ie=UTF8

 often used commercial VHS tape for my archive. It had an unusual high noise 
 level. Playing around with the different denoiser settings my test audience 
 had a very strange view: The best impression made the noisy tape because of 
 its sharpness! When using yuvdenoise (without any tuning) the picture was 
 considered blurred, unsharp, unviewable

If I read that correctly you're saying that the NOT-denoised video
was preferred to the 'denoised' version.

Correct? 

If so then I have come to the same conclusion.  In many cases I will
omit the *denoise processing _or_ using more conservative settings
(with yuvdenoise that means omit/not-use -g, use -t 2,6,6 instead of 
-t 4,8,8).

But then I pre-condition the data with the plugins/filters available
with (or added to) FinalCutPro ;)

 This seems to be a psychological question: Better noisy than unsharp.

It depends on the person of course.  But yes,  excessive denoising 
seems to blur / soften the image too much.  

 Do you have an idea about a good compromise? It should allow for low bit rate 
 encoding, too.

Yes.  It is, as you have mentioned, often preferable to not denoise
the data.  But that means using many bits to encode the noise - which
means fewer bits for the image.

The solution is to either 1) use higher capacity media (dual layer)
or 2) use half D1 (that is a misnomer but the term has become common 
usage) frame size - for PAL that's 352x576 (for NTSC it is 
352x480) and a high bitrate.

Believe it or not you probably will NOT notice the difference, 
ESPECIALLY if you're using a (noisy/old) VHS tape!  VHS doesn't have
700+ lines of resolution anyhow - rarely gets much over 240 or so
(with a good tape, good deck, etc).  So 352xN is a good choice
for encoding (noisy) VHS tapes.

As it happens 352xN is also known as CVD (or China Video Disc)
and 'y4mscaler' has a preset for CVD.  -O preset=CVD and y4mscaler
will do the right thing when 

Re: [Mjpeg-users] yuvdenoise -S and -b

2005-10-10 Thread Frank Albrecht
On Oct 04,13:36, Steven M. Schultz wrote:

[...Segmentation fault with sttreamer and libquicktime...]

  ./configure --enable-debug

I've done that. See below...

  I woldn't have expected it's an audio related problem. It' the
  same with rpm package and self-compiled.
 
   Ok - that's a good start.  It's something in how xawtv/streamer is
   initializing or writing the audio track.
 
   The audio track handling is something that did change in libquicktime
   as I recall.

   The other thing that can be done is find where streamer is calling
   'quicktime_set_audio' and find out if it is setting things up
   correctly for what libquicktime is expecting.

I inspected the sources of 0.9.7 and 0.9.2 and it differs
completely. I'm not a C Programmer ;-)
/
 (gdb) run streamer -t 0:30 -o movie.mov -f yv12 -F mono16
 qt / video: 12 bit YUV 4:2:0 (planar) / audio: 16bit mono
 (BE)
 [New Thread 1078692784 (LWP 7557)]
 [New Thread 1080794032 (LWP 7558)]

 Program received signal SIGSEGV, Segmentation fault.
 [Switching to Thread 1075430496 (LWP 7554)]
 0x4022c534 in quicktime_set_audio (file=0x806bbf8, channels=1, 
 sample_rate=44100, bits=16, compressor=0x40215d6c twos)
 at lqt_quicktime.c:408
408 lqt_set_audio(file, channels, sample_rate, bits, *info)
\--

I think there is no chance until Gerd fixes the problem. I
think, he is unreachable because of spam filtering. At
September, 30th, there was a new release, xawtv-3.95, error
remains the same.

Thank you very much. I will do some experiments with mencoder.

mit freundlichen Grüßen,
Frank Albrecht


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] yuvdenoise -S and -b

2005-10-06 Thread Dave Dodge
On Tue, Oct 04, 2005 at 01:30:03PM -0700, Steven M. Schultz wrote:
   Is this from a VHS tape deck?  Maybe a signal stabilizer would help,
   something like:
 
 http://www.kramerelectronics.com/indexes/item.asp?desc=98
 
   or a TBC but that's probably more money than you want to spend ;)

One option for NTSC might be the JVC SR-V101US.  This is an S-VHS deck
from their pro line, has Y/C output and a built-in TBC.  It can be
found online for under $300 in the US.  I don't know if they have a PAL
equivalent, though.

  -Dave Dodge


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] yuvdenoise -S and -b

2005-10-06 Thread Steven M. Schultz
Hi -

 On Thu, 6 Oct 2005, Dave Dodge wrote:
 
  One option for NTSC might be the JVC SR-V101US.  This is an S-VHS deck
  from their pro line, has Y/C output and a built-in TBC.  It can be

I've the JVC HRS-9911 ($319) that also lists a TBC as a feature (in
addition to DNR [Digital Noise Reduction]).

Better than nothing but still wasn't quite stable enough for my needs.

  found online for under $300 in the US.  I don't know if they have a PAL
  equivalent, though.

The only PAL ('multisystem' actually) S-VHS deck I've found is the
JVC HRS-6970 but it doesn't list TBC or DNR.

One thing that a TBC will do that no VCR will do is get rid of
the instability caused by embedded/corrupted teletext or copyguard 
schemes.  Some capture cards shutdown or refused to capture when faced 
with those signals while others (pro gear expects SDI or a TBC 
controlled analog signal) see the perturbed sync/color info as an 
unsteady source outside their lock range.

Cheers,
Steven Schultz



---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] yuvdenoise -S and -b

2005-10-05 Thread Frank Albrecht
On Oct 04,18:28, Joe Friedrichsen wrote:

Thank you  all for your suggestions.

[...]

 Mplayer and ffmpeg can both produce a yuv4mpeg stream which works  
 nicely with mjpeg tools.

 ffmpeg -i input_file.ext -f yuv4mpegpipe  outfile.yuv

 mplayer -vo yuv4mpeg   input_file.ext
 
 mplayer -nosound -noframedrop -benchmark -vo yuv4mpeg:interlaced infile

Streamer can create a raw output either. The comfort of mov or
avi container is, you can easily cut with glav. Great tool,
simple and efficient.

If you have a yuv and, perhaps a wav/mp3, how to cut that? 
In my desperation I gopchopped the mpg, which it isn't frame
accurate.

mit freundlichen Grüßen,
Frank Albrecht


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] yuvdenoise -S and -b

2005-10-05 Thread Frank Albrecht
On Oct 02,09:33, Steven M. Schultz wrote:
 
 On Sun, 2 Oct 2005, Frank Albrecht wrote:
 
 What does a gdb backtrace look show?  Perhaps knowing where the
 fault is happening will provide an idea what area to investigate.
 
  Puh, I don't know how to do that.

[...manual for dummies such as me...]
   That wasn't so hard, was it? :-)

Thank you.
/--
(gdb) run streamer -t 0:30 -o movie.mov -f yv12 -F mono16
Starting program: /usr/local/bin/streamer streamer -t 0:30 -o
movie.mov -f yv12 -F mono16
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 1075430496 (LWP 7168)]
(no debugging symbols found)
...
(no debugging symbols found)
qt / video: 12 bit YUV 4:2:0 (planar) / audio: 16bit mono (BE)
[New Thread 1078692784 (LWP 7171)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1075430496 (LWP 7168)]
0x4022f1d9 in quicktime_set_audio () from
/usr/local/lib/libquicktime.so.0
(gdb) where
#0  0x4022f1d9 in quicktime_set_audio () from
/usr/local/lib/libquicktime.so.0
#1  0x402a0af7 in ?? () from /usr/local/lib/libquicktime.so.0
#2  0x0001 in ?? ()
#3  0x4022f1b8 in quicktime_set_audio () from /usr/local/lib/libquicktime.so.0
#4  0x402140ff in ?? () from /usr/local/lib/xawtv/write-qt.so
#5  0x0806bbf8 in ?? ()
#6  0x0001 in ?? ()
#7  0xac44 in ?? ()
#8  0x0010 in ?? ()
#9  0x40215d6c in ?? () from /usr/local/lib/xawtv/write-qt.so
#10 0x in ?? ()
#11 0x0001 in ?? ()
#12 0x in ?? ()
#13 0x00201000 in ?? ()
#14 0x080611a0 in ?? ()
#15 0x406b9bb0 in ?? ()
#16 0x08065238 in ?? ()
#17 0x0010 in ?? ()
#18 0x40215e40 in ?? () from /usr/local/lib/xawtv/write-qt.so
#19 0xb2f8 in ?? ()
#20 0x0805387b in movie_writer_init ()
#21 0x0805387b in movie_writer_init ()
#22 0x0804c6de in main ()
\---

I woldn't have expected it's an audio related problem. It' the
same with rpm package and self-compiled.

Thank you for the gdb hints, i've learnt a lot.

mit freundlichen Grüßen,
Frank Albrecht


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] yuvdenoise -S and -b

2005-10-04 Thread Joe Friedrichsen

Hi!

Mark Heath wrote:



On 02/10/2005, at 6:35 PM, Frank Albrecht wrote:



Is it possible to use mencoder or ffmpeg for capturing for
mjpegtools? I couldn't figure out how to create an input
satifying lav2yuv/mpeg2.



Hopefully this is will answer what you are asking.

Mplayer and ffmpeg can both produce a yuv4mpeg stream which works  
nicely with mjpeg tools.


the command lines would be like this:

ffmpeg -i input_file.ext -f yuv4mpegpipe  outfile.yuv

you can replace outfile.yuv with - if you want to use standard out.


mplayer will only write to a file called stream.yuv, so if you want  
to pipe it, you have to use mkfifo.  It messes up the interlacing  
field, it says that every file is progressive and the aspect field  
saying that the file is 0:0


mplayer -vo yuv4mpeg   input_file.ext


It's been my experience with mplayer 1.0pre7-3.3.5 and later (cvs) that 
interlacing isn't messed up. However, you must specify that the piped 
output should be interlaced. When piping to mpeg2enc, it detects when 
the input file is interlaced and encodes appropriately. My command line 
looks like:


mplayer -nosound -noframedrop -benchmark -vo yuv4mpeg:interlaced infile

If your source video is bottom-first, then change interlaced to 
interlaced_bf.


Joe


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] yuvdenoise -S and -b

2005-10-04 Thread Steven M. Schultz

On Tue, 4 Oct 2005, Frank Albrecht wrote:

What does a gdb backtrace look show?...
 
 [...manual for dummies such as me...]

 Thank you.

You're welcome.

Oh, I forgot to mention chapter 2 in the manual ;)

When you configure libquicktime add the --enable-debug:

   ./configure --enable-debug

that will provide more info

 (gdb) run streamer -t 0:30 -o movie.mov -f yv12 -F mono16
...
 (gdb) where
 #0  0x4022f1d9 in quicktime_set_audio () from
 /usr/local/lib/libquicktime.so.0
 #1  0x402a0af7 in ?? () from /usr/local/lib/libquicktime.so.0
 #2  0x0001 in ?? ()
 #3  0x4022f1b8 in quicktime_set_audio () from /usr/local/lib/libquicktime.so.0
 #4  0x402140ff in ?? () from /usr/local/lib/xawtv/write-qt.so

 I woldn't have expected it's an audio related problem. It' the
 same with rpm package and self-compiled.

Ok - that's a good start.  It's something in how xawtv/streamer is
initializing or writing the audio track.

The audio track handling is something that did change in libquicktime
as I recall.

 Thank you for the gdb hints, i've learnt a lot.

Happy to be of service.

I think the next steps are to build both streamer and libquicktime
with debug symbol information.  For libquicktime that is easy (just
add --enable-debug at ./configure time).  

The other thing that can be done is find where streamer is calling
'quicktime_set_audio' and find out if it is setting things up
correctly for what libquicktime is expecting.

Cheers,
Steven Schultz



---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] yuvdenoise -S and -b

2005-10-04 Thread E.Chalaron
On Wednesday 05 Oct 2005 09:30, Steven M. Schultz wrote:
  or a TBC but that's probably more money than you want to spend ;)


Unless you are familiar with electronics :

http://www.astro.uu.se/~marcus/private/newvidproc.html


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] yuvdenoise -S and -b

2005-10-04 Thread Steven M. Schultz

On Wed, 5 Oct 2005, E.Chalaron wrote:

 Unless you are familiar with electronics :
 
 http://www.astro.uu.se/~marcus/private/newvidproc.html

Nice looking unit - wonder how much he would charge to build one?
(soldering irons and I do not get along ;))

I noticed it was done in 2001 and there are a couple comments about
specific chips being hard to get even then - not a problem for a
digital electronics engineer but way out of my area of expertise.

Stabilizing the signal can be an important thing to do - if the
capture card is struggling with sync then the probability of dropped
frames increases dramatically.  Sometimes the signal sync is lost
completely - and then the capture is worthless after that point.

It's not a certainty that's what the problem is - but it is a
possibility worth considering.

Cheers,
Steven Schultz



---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] yuvdenoise -S and -b

2005-10-03 Thread Frank Albrecht
On Sep 28,08:51, Steven M. Schultz wrote:
 
 On Wed, 28 Sep 2005, Frank Albrecht wrote:
 
  It doesn't work. Segmentation fault with libquicktime, with
  all versions of streamer, self-compiled or not.
 
   What does a gdb backtrace look show?  Perhaps knowing where the
   fault is happening will provide an idea what area to investigate.

Puh, I don't know how to do that.
My idea was to do ltrace because of library related problem:

 $ ltrace streamer -t 0:30 -o movie.mov -f yv12 -F mono16
 pthread_cond_init(0x0806a6a8, 0, 0, 0, 0x401a3104) = 0
 malloc(960)  = 0x08064e70
 malloc(1264) = 0x08065238
 pthread_mutex_init(0x08065238, 0, 0, 0, 1)   = 0
 pthread_mutex_init(0x080656c0, 0, 0x400388af, 0x08065238, 16) = 0
 pthread_cond_init(0x080656d8, 0, 0x400388af, 0x08065238, 16) = 0
 pthread_create(0x08065708, 0, 0x080529d0, 0x08065238, 0x080655a4) = 0
 pthread_mutex_init(0x080653b0, 0, 0xb318, 0x08065238, 16) = 0
 pthread_cond_init(0x080653c8, 0, 0xb318, 0x08065238, 16) = 0
 pthread_create(0x080653f8, 0, 0x080527c0, 0x08065238, 0x08065294) = 0
 --- SIGSEGV (Segmentation fault) ---
 +++ killed by SIGSEGV +++

  I will write to Gerd Knorr.
 
   Excellent idea.  My guess is that the API changed somehow between
   libquicktime 0.9.3 and later versions and xawtv/streamer has not
   caught up with the changes.  mjpegtools works with libquicktime 0.9.4
   or newer.
 
   It would appear to be a xawtv/streamer problem at this point.  If Gerd
   suspects it is a libquicktime problem then you might join the
   libquicktime mailing list (low volume - and just as friendly as this
   list ;))

No answer yet. Perhaps he is busy or emails are going into
spamflter.
Is it possible to use mencoder or ffmpeg for capturing for
mjpegtools? I couldn't figure out how to create an input
satifying lav2yuv/mpeg2.

mit freundlichen Grüßen,
Frank Albrecht


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] yuvdenoise -S and -b

2005-10-03 Thread Mark Heath


On 02/10/2005, at 6:35 PM, Frank Albrecht wrote:



Is it possible to use mencoder or ffmpeg for capturing for
mjpegtools? I couldn't figure out how to create an input
satifying lav2yuv/mpeg2.


Hopefully this is will answer what you are asking.

Mplayer and ffmpeg can both produce a yuv4mpeg stream which works  
nicely with mjpeg tools.


the command lines would be like this:

ffmpeg -i input_file.ext -f yuv4mpegpipe  outfile.yuv

you can replace outfile.yuv with - if you want to use standard out.


mplayer will only write to a file called stream.yuv, so if you want  
to pipe it, you have to use mkfifo.  It messes up the interlacing  
field, it says that every file is progressive and the aspect field  
saying that the file is 0:0


mplayer -vo yuv4mpeg   input_file.ext

you can use some other option in mplayer to turn off the sound and to  
run at full speed rather than at the frame rate that the file  
determines.


eg -ao null -benchmark -noframedrop

I hope this is what you were after.
Mark


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] yuvdenoise -S and -b

2005-10-02 Thread Steven M. Schultz

On Sun, 2 Oct 2005, Frank Albrecht wrote:

  What does a gdb backtrace look show?  Perhaps knowing where the
  fault is happening will provide an idea what area to investigate.
 
 Puh, I don't know how to do that.

gdb yourprogram
run program_args

when the fault happens type 'where':

where

That wasn't so hard, was it? :-)

 My idea was to do ltrace because of library related problem:

That's a good start.  One problem with tracing system calls is that
a program doesn't fault at a system call (such as read(), write()
or pthread_create()) but further on.

  $ ltrace streamer -t 0:30 -o movie.mov -f yv12 -F mono16
  pthread_cond_init(0x0806a6a8, 0, 0, 0, 0x401a3104) = 0
  malloc(960)  = 0x08064e70
  malloc(1264) = 0x08065238
  pthread_mutex_init(0x08065238, 0, 0, 0, 1)   = 0
  pthread_mutex_init(0x080656c0, 0, 0x400388af, 0x08065238, 16) = 0
  pthread_cond_init(0x080656d8, 0, 0x400388af, 0x08065238, 16) = 0
  pthread_create(0x08065708, 0, 0x080529d0, 0x08065238, 0x080655a4) = 0
  pthread_mutex_init(0x080653b0, 0, 0xb318, 0x08065238, 16) = 0
  pthread_cond_init(0x080653c8, 0, 0xb318, 0x08065238, 16) = 0
  pthread_create(0x080653f8, 0, 0x080527c0, 0x08065238, 0x08065294) = 0
  --- SIGSEGV (Segmentation fault) ---
  +++ killed by SIGSEGV +++

It could be a threading issue - but all we know at this point is
that the program faulted sometime _after_ creating a thread.

instead of ltrace try something like this:

gdb streamer
run -t 0:30 -o movie.mov -f yv12 -F mono16

when the program faults use either the 'where' or 'bt' (backtrace) - 
they are the same command, just different names.

 Is it possible to use mencoder or ffmpeg for capturing for
 mjpegtools? I couldn't figure out how to create an input
 satifying lav2yuv/mpeg2.

Perhaps others who capture to mjpeg can help with some ideas - but
I thought 'lavrec' was the usual method used to capture mjpeg data.

I have not had success with ffmpeg and MJPEG data - on a big endian
system (PPC) a solid green screen, and on little endian system (AMD,
Intel) only one of the fields appears.

I think 'lavrec' would be your best choice - perhaps Bernhard will
have time to help you with some suggestions.

Cheers,
Steven



---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] yuvdenoise -S and -b

2005-09-28 Thread Frank Albrecht
On Sep 27,04:45, Frank Albrecht wrote:
 On Sep 26,10:19, Steven M. Schultz wrote:
  
  On Mon, 26 Sep 2005, Frank Albrecht wrote:
 
   I had to use mjpegtools 1.6.x because of several quicktime
   issues. I wasn't successfull in using streamer with
   libquicktime-0.9.4:
  
   Using libquicktime-0.9.3 streamer works fine. Does anyone
   know how to use streamer(xawtv) with libquicktime-0.9.4?
  
  You might try upgrading to a newer libquicktime -
  current released version is 0.9.7.   If that still
  doesn't work then I suspect 'streamer' might have a
  bug.
 
 Oh, i only looked on my favourite site: 
 http://packman.links2linux.de/?action=460
 There is 0.9.4 so I have to compile for myself. I'll try out
 and post the result here. Thank you for the hint.

It doesn't work. Segmentation fault with libquicktime, with
all versions of streamer, self-compiled or not. I will write
to Gerd Knorr.
 
mit freundlichen Grüßen,
Frank Albrecht


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] yuvdenoise -S and -b

2005-09-28 Thread Steven M. Schultz

On Wed, 28 Sep 2005, Frank Albrecht wrote:

 It doesn't work. Segmentation fault with libquicktime, with
 all versions of streamer, self-compiled or not.

Sigh :(

What does a gdb backtrace look show?  Perhaps knowing where the
fault is happening will provide an idea what area to investigate.

 I will write to Gerd Knorr.

Excellent idea.  My guess is that the API changed somehow between
libquicktime 0.9.3 and later versions and xawtv/streamer has not
caught up with the changes.  mjpegtools works with libquicktime 0.9.4
or newer.

It would appear to be a xawtv/streamer problem at this point.  If Gerd
suspects it is a libquicktime problem then you might join the
libquicktime mailing list (low volume - and just as friendly as this
list ;))

Cheers,
Steven Schultz



---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] yuvdenoise -S and -b

2005-09-27 Thread Frank Albrecht
On Sep 26,10:19, Steven M. Schultz wrote:
 
 On Mon, 26 Sep 2005, Frank Albrecht wrote:

  I had to use mjpegtools 1.6.x because of several quicktime
  issues. I wasn't successfull in using streamer with
  libquicktime-0.9.4:
 
  Speicherzugriffsfehler

   ...error but my German is not good enough to translate
   Speicherzugriffs

Sorry for that. segmentation fault.

  Using libquicktime-0.9.3 streamer works fine. Does anyone
  know how to use streamer(xawtv) with libquicktime-0.9.4?
 
   You might try upgrading to a newer libquicktime -
   current released version is 0.9.7.   If that still
   doesn't work then I suspect 'streamer' might have a
   bug.

Oh, i only looked on my favourite site: 
http://packman.links2linux.de/?action=460
There is 0.9.4 so I have to compile for myself. I'll try out
and post the result here. Thank you for the hint.

The newest xawtv-cvs has the same problem.

  Thank you very much.
 
   You're welcome.

Nice and friendly list. I love reading it.

mit freundlichen Grüßen,
Frank Albrecht


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] yuvdenoise -S and -b

2005-09-26 Thread Steven M. Schultz

On Mon, 26 Sep 2005, Frank Albrecht wrote:

 I had to use mjpegtools 1.6.x because of several quicktime
 issues. I wasn't successfull in using streamer with libquicktime-0.9.4:

 Speicherzugriffsfehler

...error but my German is not good enough to translate Speicherzugriffs

;)

 Using libquicktime-0.9.3 streamer works fine. Does anyone know
 how to use streamer(xawtv) with libquicktime-0.9.4?

You might try upgrading to a newer libquicktime - current released
version is 0.9.7.   If that still doesn't work then I suspect
'streamer' might have a bug.

 mjpegtools = 1.7 require libquicktime-0.9.4, I think.

True.   There are some features in the cvs version (0.9.8pre1) I'd
like to use but I'll wait unti 0.9.8 is released.

  man y4munsharp
 
  y4mshift -b xoff,yoff,xsize,ysize
 
 Thank you very much.

You're welcome.

Steven Schultz



---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] yuvdenoise -S and -b

2005-09-26 Thread Bernhard Praschinger
Hallo

  I had to use mjpegtools 1.6.x because of several quicktime
  issues. I wasn't successfull in using streamer with libquicktime-0.9.4:
 
  Speicherzugriffsfehler
 ...error but my German is not good enough to translate 
 Speicherzugriffs
Error is close, actually it is translated with segmentation fault. 

auf hoffentlich bald,

Berni the Chaos of Woodquarter

Email: [EMAIL PROTECTED]
www: http://www.lysator.liu.se/~gz/bernhard


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] yuvdenoise -S and -b

2005-09-26 Thread Steven M. Schultz

On Mon, 26 Sep 2005, Bernhard Praschinger wrote:

   Speicherzugriffsfehler
  ...error but my German is not good enough to translate 
  Speicherzugriffs
 Error is close, actually it is translated with segmentation fault. 

Ah, thank you!  I knew I'd seen that before but couldn't remember
the exact translation.

Segment fault could be a bug in libquicktime-0.9.4 that was fixed in
a later release.  If that is true then upgrading to a newer libquicktime
would be the fix.   If that is not true then there's a bug in
streamer - perhaps a newer version of 'xawtv' (if available) would
be a good thing to try. 

Cheers,
Steven Schultz



---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] yuvdenoise -S and -b

2005-09-25 Thread Steven M. Schultz

On Mon, 26 Sep 2005, Luca Bonissi wrote:

 Make attenction: by default, the new yuvdenoise has a gaussian filter
 and a spatial filter on...
 
 I usually disable the spatial and gaussian filter (-s 0,0,0 -g 0,0,0).
 Maybe you can keep the gaussian filter for chroma only (-g 0,255,255).

It is not a good idea to dismiss those options too quickly.

When enhancing still images a well known technique is to apply a mild
blur followed by sharpening (most often with the unsharp mask filter).

Guess what?  That technique works for motion pictures (video) as well.

For 'noisy' video data (and almost anything coming from the analog
domain is noisy) you can greatly enhance the visual quality by using
all of yuvdenoise's options (with moderate settings) followed by
'y4munsharp'.

'-g N,255,255' for values of N =16 are almost identical and mild,
the effect increases slightly at N=32.  It's only at 64 that the
softening becomes noticeable.

I was doing some test encoding using a DV capture of an old video
from a laserdisc.  I won't bore you with the entire script (unless
you're curious ;)) but the yuvdenoise step was

... | yuvdenoise -s 3,4,4 -g N,255,255 -t 2,2,2 | \
  y4munsharp | \
  ...
mpeg2enc -D 10 -G 12 -p --dualprime-mpeg2 -c -E -10 -f 8 -q 2 
 -K file=hi-tmpgenc -4 1 -2 1 -o rhrh.m2v

(hi-tmpgenc is a custom table combining tmpgenc and hi-res tables)

And I varied N thru 1, 2, 4, 8, 16, 32 and 64 and tabulated the
average bitrate of the final .m2v file.  In all cases the visual
quality was excellent,  at N=64 there the smallest degree of
softening beginning to be noticed.  I did not try a N=128 (which
happens to be the default) though 

(B frame size is 0 since I turn B frames off):
  Average  I Frame Size P Frame Size
N bits/sec   bytes bytes
--  -
00:   433840038985 21130
01:   402800037376 19513
02:   402800037376 19513
08:   402800037376 19513
16:   402760037373 19510
32:   400680037292 19400
64:   387600036727 18706

Even at the lowest bitrate the 'watchability' quality is very high.

yuvdenoise can be 'fine tuned' - I could have been a little less
agressive, perhaps '-s 2,4,4' would have given me a higher bitrate

Seems my problem these days is getting the bitrate high enough so
I don't waste space on a piece of DVD media :-)

The combination of yuvdenoise + y4munsharp is amazingly effective
at enhancing the image.  And as an added bonus yuvdenoise is about 4x 
faster than y4mdenoise - the speed is quite acceptable to me. For a 
2hr movie (what's 8 hours of encoding time after 24 hours of render 
time? ;))

Cheers,
Steven Schultz



---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] yuvdenoise -S and -b

2005-09-24 Thread Steven M. Schultz

On Sun, 25 Sep 2005, Frank Albrecht wrote:

 I use yuvdenoise for a long time with the options -S and -b.
 Are these gone in mjpegtools 1.8.x?

Yes, they are gone in 1.8 (actually they have been gone in the cvs
version for almost 2 years ;)).

 I don't see an equivalence in other yuv-tools.

'-b' has a 100% equivalent in 'y4mshift'.

 How can I(little) sharpen the video?

man y4munsharp

;)

y4munsharp is effectively the GIMP unsharpmask plugin for YUV4MPEG2
streams.  It is also much better than the '-S' option was with the
old yuvdenoise g.

The defaults are sane but feel free to experiment (if you know how
to use the GIMP's unsharpmask filter then you know how to use
y4munsharp - the parameters and thei meanings are the same as in the
GIMP).

 How can I set a black border for the overscan area?

y4mshift -b xoff,yoff,xsize,ysize

y4mshift can also be used to center the 704 active pixels in the
720 pixel frame.  Both vertical and horizontal centering can be
performed and you can use '-n', '-N' and '-b' all at the same time.

However if you are going to DVD you can crop to 704x576 (which is a
valid DVD frame size) - just thought I'd mention that.

Cheers,
Steven Schultz



---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] [yuvdenoise] question about one option.

2005-08-10 Thread CPM


 In Kino, they use yuvdenoise like that:


...|yuvdenoise -F -f | yuvscaler -v 0 -O VCD -n p | mpeg2enc -v 0 -f 1 
-I 0 -n p -a 2  -o 'cliptestc'.mpv'


or like that:

...|yuvdenoise -F | yuvscaler -v 0 -O VCD -n p | mpeg2enc -v 0 -f 1 -I 0 
-n p -a 2  -o 'cliptestc'.mpv'



 As mjpeg has changed, which is the good new version?

1) yuvdenoise -F = ... | yuvdeinterlace | yuvdenoise | ...
2) yuvdenoise -F -f = ... | yuvdeinterlace | ...
3) yuvdenoise -F = ... | yuvdeinterlace | yuvdenoise | ...
4) yuvdenoise -F -f = ... | yuvdeinterlace | ...

 The goal is to transform DV file in a mpeg file (VCD, SVCD, DVD).

 Thanks :-)

 Cpm.


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] [yuvdenoise] question about one option.

2005-08-10 Thread Steven M. Schultz

On Thu, 11 Aug 2005, CPM wrote:

   In Kino, they use yuvdenoise like this:
 
 ...|yuvdenoise -F -f | yuvscaler -v 0 -O VCD -n p | mpeg2enc -v 0 -f 1 
 -I 0 -n p -a 2  -o 'cliptestc'.mpv'
 
 or like this:
 
 ...|yuvdenoise -F | yuvscaler -v 0 -O VCD -n p | mpeg2enc -v 0 -f 1 -I 0 
 -n p -a 2  -o 'cliptestc'.mpv'
 
   As mjpeg has changed, which is the good new version?

None of the above :)

 1) yuvdenoise -F = ... | yuvdeinterlace | yuvdenoise | ...
 2) yuvdenoise -F -f = ... | yuvdeinterlace | ...
 3) yuvdenoise -F = ... | yuvdeinterlace | yuvdenoise | ...
 4) yuvdenoise -F -f = ... | yuvdeinterlace | ...

yuvdenoise does not support -F so the correct usage is simply
yuvdenoise (slightly old versions may support -f but the cvs
version has neither -F or -f).

   The goal is to transform DV file in a mpeg file (VCD, SVCD, DVD).

Oh, ok - so you will be doing the encoding multiple times (once for
each format).

VCDs (mpeg2enc -f 1) is progressive MPEG-1.  'yuvscaler' will
automatically deinterlace when -O VCD is used - thus 'yuvdeinterlace'
is not needed.  I think, from a very quick look at the yuvscaler code,
that the two fields are blended together during the downscaling.  It
may be preferable to use 'y4mscaler -O preset=VCD '-I ilace=BOTTOM_ONLY'
(y4mscaler can be found at http://www.mir.com/DMG/Software/)

SVCDs use MPEG-2 and one of the big avantages of MPEG-2 over MPEG-1
is the support for interlaced video!  So in this case also you probably
do not want to use 'yuvdeinterlace'.  For SVCDs:

   ... | yuvdenoise | mpeg2enc -f 4 -q 5 ... |  ...

Similarily for DVD it is probably better to not deinterlace (that
can be done at playback time in most MPEG playing software).  Simply
denoise and go into the encoder:

... | yuvdenoise | mpeg2enc -f 8 -q 4 ... | ...

Another denoising program that is part of mjpegtools is 'y4mdenoise',
you may want to experiment with that and see how it works for you.

DVD (and to a slightly lesser extent) encoding parameters have been
the subject of MUCH discussion on this list.  I think if you browse
the mailinglist archives you will find some useful information about
setting the bitrate, selecting the quality (-q) and other options.

My personal preference is to never deinterlace at encoding time
(NOTE: this is not the same thing as removing the NTSC 2:3 pulldown
for material which originated on film).  Deinterlacing can be done
at playback time (MPlayer for example has numerous filters to do this).

Good Luck!

Cheers,
Steven Schultz



---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] [yuvdenoise] question about one option.

2005-08-10 Thread Steven M. Schultz

On Wed, 10 Aug 2005, Steven M. Schultz wrote:
   DVD (and to a slightly lesser extent) encoding parameters have been

(and to a slightly lesser extent SVCD) - left out a word there.

Much has been written about encoding with mpeg2enc - I think you'll
find much useful info in the archives.  If you've further questions
you're in the right place to ask to get more info/hints/help ;)

Cheers,
Steven Schultz



---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] [yuvdenoise] question about one option.

2005-08-10 Thread Christian P. MOMON

Steven M. Schultz wrote:
 On Wed, 10 Aug 2005, CPM wrote:
An easier way to get the set of options that yuvdenoise accepts would
be with

   yuvdenoise -h

 Good solution it is. :-)

  So, my question: where is the problem?

The problem is in the yuvdenoise manpage ;)  yuvdenoise has not
accepted -F in quite a while.

If possible tell kino to not use -F.  If you really want to deinterlace
the video there is 'yuvdeinterlace' which can be used.

 Ok, I am suscribing to their mailing-list to talk about that.

 Thank's you! :-)

 Cpm.
--
   ______
 (o_  | |__|  |  | CPM est Christian P. M.('
 /)   |__ . |   . |  | .   [EMAIL PROTECTED]   ,',)


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] [yuvdenoise] question about one option.

2005-08-09 Thread Steven M. Schultz

On Wed, 10 Aug 2005, CPM wrote:

   I have a problem with Kino when it using yuvdenoise because
 yuvdenoise doesn't accept the -F option. In the manpage, this
 option is available but read error message below:

The manpage is outdated.  When yuvdenoise went thru a couple 
rewrites the manpage was not updated.

An easier way to get the set of options that yuvdenoise accepts would
be with

   yuvdenoise -h

   So, my question: where is the problem?

The problem is in the yuvdenoise manpage ;)  yuvdenoise has not
accepted -F in quite a while. 

If possible tell kino to not use -F.  If you really want to deinterlace
the video there is 'yuvdeinterlace' which can be used.

Cheers,
Steven Schultz



---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] [yuvdenoise] question about one option.

2005-08-09 Thread CPM

Steven M. Schultz wrote:
 On Wed, 10 Aug 2005, CPM wrote:
 An easier way to get the set of options that yuvdenoise accepts would
 be with

yuvdenoise -h

 Good solution it is. :-)

  So, my question: where is the problem?

 The problem is in the yuvdenoise manpage ;)   yuvdenoise has not
 accepted -F in quite a while.

 If possible tell kino to not use -F.  If you really want to 
deinterlace

 the video there is 'yuvdeinterlace' which can be used.

 Ok, I am suscribing to their mailing-list to talk about that.

 Thank's you! :-)

 Cpm.

(P.S.: sorry for double post.)


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: Re: Re: [Mjpeg-users] yuvdenoise

2005-08-05 Thread Odile Planquelle
Hello,

I get the main.c ( 1.42 ) and the makefile.am ( 1.24 ) of /yuvdenoise and 
compile another time. Now everything is fine. Thanks for help



 De: Odile Planquelle [EMAIL PROTECTED]
 A: Bernhard Praschinger [EMAIL PROTECTED]
 Objet: Re: Re: [Mjpeg-users] yuvdenoise
 Date: Wed,  3 Aug 2005 19:55:48 + (GMT)

 Hello,
 I've done some more test. It seems that with a video the end of encoding 
 appears at frame 264 :
INFO: [mpeg2enc] Signaling last frame = 264
 I've done some trim from 240 to 280, and the encodeing end at frame : 24
INFO: [mpeg2enc] Signaling last frame = 24
 Last trim is from 260 to 270. I've copy you all the information :
 [EMAIL PROTECTED] premiere]# smil2yuv example4003.dv | yuvdenoise | mpeg2enc 
 -f 8 -o test2.mpg -v 2
INFO: [mpeg2enc] SETTING EXTENDED MMX for MOTION!
INFO: [mpeg2enc] SETTING SSE and MMX for TRANSFORM!
INFO: [mpeg2enc] SETTING EXTENDED MMX for PREDICTION!
INFO: [lt-yuvdenoise] yuvdenoise version 1.6.3-rc1
INFO: [lt-yuvdenoise] Y4M-Stream is flagged to be 720x576(4:2:0 MPEG1)
INFO: [lt-yuvdenoise]
INFO: [lt-yuvdenoise] Processing Mode : 4:2:0 interlaced
INFO: [lt-yuvdenoise] Luma-Plane  : 720x576 pixels
INFO: [lt-yuvdenoise] Chroma-Plane: 360x288 pixels
INFO: [mpeg2enc] Selecting DVD output profile
INFO: [mpeg2enc] Assuming norm PAL
INFO: [mpeg2enc] Interlaced input - selecting interlaced encoding.
INFO: [mpeg2enc] Encoding MPEG-2 video to test2.mpg
INFO: [mpeg2enc] Horizontal size: 720 pel
INFO: [mpeg2enc] Vertical size: 576 pel
INFO: [mpeg2enc] Aspect ratio code: 2 = 4:3 display
INFO: [mpeg2enc] Frame rate code:   3 = 25.0 (PAL/SECAM VIDEO / converted 
 FILM)
INFO: [mpeg2enc] Bitrate: 7500 KBit/s
INFO: [mpeg2enc] Quality factor: 8 (Quantisation = 9) (1=best, 31=worst)
INFO: [mpeg2enc] Field order for input: bottom-field-first
INFO: [mpeg2enc] Sequence unlimited length
INFO: [mpeg2enc] Search radius: 16
INFO: [mpeg2enc] DualPrime: no
INFO: [mpeg2enc] Using one-pass rate controller
INFO: [mpeg2enc] GOP SIZE RANGE 9 TO 15
INFO: [mpeg2enc] Setting colour/gamma parameters to PAL B/G
INFO: [mpeg2enc] Progressive format frames = 0
INFO: [mpeg2enc] Using default unmodified quantization matrices
INFO: [mpeg2enc] Buffering 33 frames
INFO: [lt-yuvdenoise] Buffers allocated.
INFO: [lt-yuvdenoise] SETTING EXTENDED MMX for MOTION!
 --DEBUG: [mpeg2enc] End of input stream detected
INFO: [mpeg2enc] Signaling last frame = 4
INFO: [mpeg2enc] SETTING MMX and MMX for QUANTIZER!
 --DEBUG: [mpeg2enc] Split len = 0
INFO: [mpeg2enc] NEW GOP INIT length 15
 --DEBUG: [mpeg2enc] Start 0 I 0 0
 --DEBUG: [mpeg2enc] FIRST GOP INIT
 --DEBUG: [mpeg2enc] Frame I T=60907 A=562500  Xi=0.00 Xp=0.00 Xb=0.00
 --DEBUG: [mpeg2enc] Frame I A= 33212 2125568.00: I =  33212 P =   nan B =   
 nan
INFO: [mpeg2enc] Frame 0 0 I q=8.00 sum act=148.73654
 --DEBUG: [mpeg2enc] Start 1 P 1 1
 --DEBUG: [mpeg2enc] Frame P T=35828 A=562500  Xi=2125568.00 Xp=0.00 Xb=0.00
 --DEBUG: [mpeg2enc] Frame P A= 11315 724160.00: I =  33212 P = 11315 B =   nan
INFO: [mpeg2enc] Frame 1 1 P q=8.00 sum act=179.97138
 --DEBUG: [mpeg2enc] Start 2 P 2 2
 --DEBUG: [mpeg2enc] Frame P T=33214 A=562500  Xi=2125568.00 Xp=724160.00 
 Xb=0.00
 --DEBUG: [mpeg2enc] Frame P A= 11032 706048.00: I =  33212 P = 11174 B =   nan
INFO: [mpeg2enc] Frame 2 2 P q=8.00 sum act=207.90353
 --DEBUG: [mpeg2enc] Start 3 P 3 3
 --DEBUG: [mpeg2enc] Frame P T=33189 A=562500  Xi=2125568.00 Xp=720985.73 
 Xb=0.00
 --DEBUG: [mpeg2enc] Frame P A=  9860 631040.00: I =  33212 P = 10736 B =   nan
INFO: [mpeg2enc] Frame 3 3 P q=8.00 sum act=234.40419
 --DEBUG: [mpeg2enc] Start 4 P 4 4
 --DEBUG: [mpeg2enc] Frame P T=33060 A=562500  Xi=2125568.00 Xp=705222.05 
 Xb=0.00
 --DEBUG: [mpeg2enc] Frame P A=  9447 604608.00: I =  33212 P = 10414 B =   nan
INFO: [mpeg2enc] Frame 4 4 P q=8.00 sum act=260.31464
INFO: [mpeg2enc] Sequence end inserted
INFO: [mpeg2enc] Guesstimated final muxed size = 74875
 [EMAIL PROTECTED] premiere]# smil2yuv example4003.dv | mpeg2enc -f 8 -o 
 test2.mpg -v 2
INFO: [mpeg2enc] SETTING EXTENDED MMX for MOTION!
INFO: [mpeg2enc] SETTING SSE and MMX for TRANSFORM!
INFO: [mpeg2enc] SETTING EXTENDED MMX for PREDICTION!
INFO: [mpeg2enc] Selecting DVD output profile
INFO: [mpeg2enc] Assuming norm PAL
INFO: [mpeg2enc] Interlaced input - selecting interlaced encoding.
INFO: [mpeg2enc] Encoding MPEG-2 video to test2.mpg
INFO: [mpeg2enc] Horizontal size: 720 pel
INFO: [mpeg2enc] Vertical size: 576 pel
INFO: [mpeg2enc] Aspect ratio code: 2 = 4:3 display
INFO: [mpeg2enc] Frame rate code:   3 = 25.0 (PAL/SECAM VIDEO / converted 
 FILM)
INFO: [mpeg2enc] Bitrate: 7500 KBit/s
INFO: [mpeg2enc] Quality factor: 8 (Quantisation = 9) (1=best, 31=worst)
INFO: [mpeg2enc] Field order for input

Re: Re: [Mjpeg-users] yuvdenoise

2005-08-03 Thread Odile Planquelle
Hello,
(forgot CC the list )
I think I run the last version of the tool ;
   INFO: [lt-yuvdenoise] yuvdenoise version 1.6.3-rc1
I've got it from yum ( I'm running fedora core 4 )
I won't get any debug message from yuvdenoise :
   INFO: [lt-yuvdenoise]  -v [n]   temporal V-filter-threshold
-v is not for verbose :

output from mpeg2enc :

   INFO: [mpeg2enc] NEW GOP INIT length 15
--DEBUG: [mpeg2enc] Start 60 I 0 60
--DEBUG: [mpeg2enc] REST GOP INIT
--DEBUG: [mpeg2enc] Frame I T=73357 A=562500  Xi=2120263.11 Xp=1009839.46 
Xb=0.00
--DEBUG: [mpeg2enc] Frame I A= 31233 1998912.00: I =  32273 P = 13641 B =   nan
   INFO: [mpeg2enc] Frame6060 I q=8.00 sum act=2858.60202
--DEBUG: [mpeg2enc] Start 61 P 1 61
--DEBUG: [mpeg2enc] Frame P T=45235 A=726455  Xi=2079812.74 Xp=1009839.46 
Xb=0.00
--DEBUG: [mpeg2enc] Frame P A= 14216 909824.00: I =  32273 P = 13651 B =   nan
   INFO: [mpeg2enc] Frame6161 P q=8.00 sum act=2889.33410
--DEBUG: [mpeg2enc] Start 62 P 2 62
--DEBUG: [mpeg2enc] Frame P T=2 A=714744  Xi=2079812.74 Xp=998726.63 Xb=0.00
--DEBUG: [mpeg2enc] Frame P A= 15350 982400.00: I =  32273 P = 13680 B =   nan
   INFO: [mpeg2enc] Frame6262 P q=8.00 sum act=2921.68916
--DEBUG: [mpeg2enc] Start 63 P 3 63
--DEBUG: [mpeg2enc] Frame P T=43703 A=703032  Xi=2079812.74 Xp=996912.56 Xb=0.00
--DEBUG: [mpeg2enc] Frame P A= 16180 1035520.00: I =  32273 P = 13722 B =   nan
   INFO: [mpeg2enc] Frame6363 P q=8.00 sum act=2955.03025
--DEBUG: [mpeg2enc] End of input stream detected
   INFO: [mpeg2enc] Signaling last frame = 65
--DEBUG: [mpeg2enc] Start 64 P 4 64
--DEBUG: [mpeg2enc] Frame P T=42999 A=691320  Xi=2079812.74 Xp=1001202.28 
Xb=0.00
--DEBUG: [mpeg2enc] Frame P A= 17103 1094592.00: I =  32273 P = 13779 B =   nan
   INFO: [mpeg2enc] Frame6464 P q=8.00 sum act=2989.38710
--DEBUG: [mpeg2enc] Start 65 P 5 65
--DEBUG: [mpeg2enc] Frame P T=42327 A=679608  Xi=2079812.74 Xp=1011578.91 
Xb=0.00
--DEBUG: [mpeg2enc] Frame P A= 16653 1065792.00: I =  32273 P = 13826 B =   nan
   INFO: [mpeg2enc] Frame6565 P q=8.00 sum act=3022.99847
   INFO: [mpeg2enc] Sequence end inserted
   INFO: [mpeg2enc] Guesstimated final muxed size = 1004795

I've compiled this morning the source of yuvdenoise and the pb is still the 
same. I also try with another video but it's the same. Should I try to get an 
older version of yuvdenoise ?

Regards

 De: Bernhard Praschinger [EMAIL PROTECTED]
 A: Odile Planquelle [EMAIL PROTECTED]
 Objet: Re: [Mjpeg-users] yuvdenoise
 Date: Wed, 03 Aug 2005 07:11:01 +0200

 Odile Planquelle wrote:
  
  Hello, I'm trying to use yuvdenoise with files created wiyh kino :
  
  smil2yuv input.dv | yuvdenoise | mpeg2enc -f8 -o test01.mv2
  the mpeg2enc end at frame 90 with informtaion :
INFO: [mpeg2enc] Frame8787 P q=8.00 sum act=4086.08653
INFO: [mpeg2enc] Signaling last frame = 90
INFO: [mpeg2enc] Frame8888 P q=8.00 sum act=4141.24284
INFO: [mpeg2enc] Frame8989 P q=8.00 sum act=4197.93833
INFO: [mpeg2enc] NEW GOP INIT length 15
INFO: [mpeg2enc] Frame9090 I q=8.00 sum act=4416.26467
INFO: [mpeg2enc] Sequence end inserted
INFO: [mpeg2enc] Guesstimated final muxed size = 1566656
  
  when I remove yuvdenoise all the file is processed. I also try with
  yuvmedianfilter and it's also working. Any idea ?
 Try to add a -v 2 to yuvdenoise and mpeg2enc. And add the whole output
 to your mail. 
 What you have added is just the message from mpeg2enc but we don't see
 the last few yuvdenoise messages !!!
 
 Which version of the mjpegtools do you use ?
 
 auf hoffentlich bald,
 
 Berni the Chaos of Woodquarter
 
 Email: [EMAIL PROTECTED]
 www: a 
 href=http://www.lysator.liu.se/~gz/bernhardhttp://www.lysator.liu.se/~gz/bernhard/a

Protek-on: CaraMail met en oeuvre un nouveau Concept de Sécurité Globale - 
www.caramail.com

Re: [Mjpeg-users] yuvdenoise

2005-08-03 Thread Bernhard Praschinger
Hallo

 I think I run the last version of the tool ;
INFO: [lt-yuvdenoise] yuvdenoise version 1.6.3-rc1
 I've got it from yum ( I'm running fedora core 4 )
Was that package compiled for a special architecture ? Intel AMD MAC ?
There is a known problem with MAC running Fedora core 4, which seems to
be related to the gcc 4 Fedora (Redhat) uses. 

 I won't get any debug message from yuvdenoise :
INFO: [lt-yuvdenoise]  -v [n]   temporal V-filter-threshold
 -v is not for verbose :
Ok, but it seems that mpeg2enc isn't causing the problem. At least not
in the last 5 frames. I asked you to send the whole output. So we can
take a look at it. The last 5 frames doesn't show anything, because
mpeg2enc is buffering frames. And if yuvdenoise outputs a error message
you have not sent it to the mailinglist. Either send the whole output or
add the -v 0 option to mpeg2enc

  output from mpeg2enc :
 
INFO: [mpeg2enc] NEW GOP INIT length 15
[...]
INFO: [mpeg2enc] Guesstimated final muxed size = 1004795
 
 I've compiled this morning the source of yuvdenoise 
 and the pb is still the same. I also try with another
 video but it's the same. Should I try to get an older 
 version of yuvdenoise ?
Unlikely, what whould help is the configuration output of the mjpegtools
(after running configure), and maybe a backtrace of the chrash
yuvdenoise made. That should show the line in the code where it
chrashed. 

Does it fail every time after a different number of encoded frames ?

auf hoffentlich bald,

Berni the Chaos of Woodquarter

Email: [EMAIL PROTECTED]
www: http://www.lysator.liu.se/~gz/bernhard


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] yuvdenoise

2005-08-02 Thread Steven M. Schultz
From: Odile Planquelle [EMAIL PROTECTED]

--=_NextPart_Lycos_307751847992422_ID
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

htmlheadstyle type=3Dtext/cssbody{font:12px Arial;margin:3px;over=
flow-y:auto;overflow-x:auto}p{margin:0px;}blockquote, ol, ul{margin-top:0=
px;margin-bottom:0px;}/style/head

It'd be a lot easier to read if it wasn't HTML.  Some mailinglists
ban HTML mail - this isn't one of them but it's still discouraged.

Steven Schultz


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] yuvdenoise

2005-08-02 Thread Bernhard Praschinger
Odile Planquelle wrote:
 
 Hello, I'm trying to use yuvdenoise with files created wiyh kino :
 
 smil2yuv input.dv | yuvdenoise | mpeg2enc -f8 -o test01.mv2
 the mpeg2enc end at frame 90 with informtaion :
   INFO: [mpeg2enc] Frame8787 P q=8.00 sum act=4086.08653
   INFO: [mpeg2enc] Signaling last frame = 90
   INFO: [mpeg2enc] Frame8888 P q=8.00 sum act=4141.24284
   INFO: [mpeg2enc] Frame8989 P q=8.00 sum act=4197.93833
   INFO: [mpeg2enc] NEW GOP INIT length 15
   INFO: [mpeg2enc] Frame9090 I q=8.00 sum act=4416.26467
   INFO: [mpeg2enc] Sequence end inserted
   INFO: [mpeg2enc] Guesstimated final muxed size = 1566656
 
 when I remove yuvdenoise all the file is processed. I also try with
 yuvmedianfilter and it's also working. Any idea ?
Try to add a -v 2 to yuvdenoise and mpeg2enc. And add the whole output
to your mail. 
What you have added is just the message from mpeg2enc but we don't see
the last few yuvdenoise messages !!!

Which version of the mjpegtools do you use ?

auf hoffentlich bald,

Berni the Chaos of Woodquarter

Email: [EMAIL PROTECTED]
www: http://www.lysator.liu.se/~gz/bernhard


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] yuvdenoise

2005-06-09 Thread Steven M. Schultz

On Fri, 10 Jun 2005, E.Chalaron wrote:

 Was wondering in yuvdenoise :
 
 -Y 2 -U 5 -V 1 -y 2 -u 5 -v 1
 Is it considered as agressive filtering ? 

I think that is moderate to mild filtering.  I think the '-V' and 
'-v' could be safely increased to 2 but that's not critical.

 and if yuvcorrect -Y CONFORM should be placed before or after ?

My preference has been to put the conform (range limiting) as one
of the last steps in the processing.  It's OK for intermediate 
calculations to be outside the range - just the final data going to
the encoder needs to be in bounds.

Cheers,
Steven Schultz



---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61 plasma display: http://www.necitguy.com/?r=20
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] yuvdenoise

2005-06-09 Thread E.Chalaron

Thanks Steven ... 

That may save me some time actually to put it at the end.. Instead of 
conforming the big frames at the beginning.

Cheers
E


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61 plasma display: http://www.necitguy.com/?r=20
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] yuvdenoise problems when SSE instructions used?

2004-06-22 Thread Steven M. Schultz

On Wed, 23 Jun 2004, Jonathan Woithe wrote:

 I have encountered something rather odd about yuvdenoise from mjpegtools
 1.6.2 and the way it works on two different machines.  In short, I encoded
 a video in two 90 minute sections using the same command line - one was on a
 (PII-vintage) Celeron 466 and one on a 3.0GHz P4 with hyperthreading. The

Wow - you must have the patience of a saint to do encoding on a
Celeron 466! :)

 Has anyone else noticed this effect?  It doesn't seem right that the output

No, can't say I've seen the effect but then I've been experimenting
with y4mdenoise (from cvs) or working with digital data that doesn't
require denoising at all.

 of yuvdenoise differs depending on what CPU you run the program on.  Any
 thoughts?

Makes perfect sense - if there's a bug in the SSE routines ;)

There's also a chance that the bug has been fixed in the cvs version -
don't suppose you could give that a go and see if the problem's
still lurking about?

The vintage Celeron doesn't have SSE capability (I think the newer
ones do have it) so it uses only the MMX routines.  The P4 on the
other hand does have SSE (and SSE2) and will use the SSE based routines.

You can probably speed things up a little on the P4 by disabling the
hyperthreading.   I tried it and on a good day the speed hit was only
10 or 15% but some job mixes the system slowed down by closer to 30%.
When Intel comes out with their new true dual core cpus then that'll 
be nice but till then I haven't had much success with the 
hyperthreading's quasi 2nd cpu.

Cheers,
Steven Schultz



---
This SF.Net email sponsored by Black Hat Briefings  Training.
Attend Black Hat Briefings  Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] yuvdenoise

2004-02-12 Thread Steven M. Schultz
On Thu, 12 Feb 2004, Bernhard Praschinger wrote:

 I have a strange effect, using when I don't use yuvdenoise, I get smaller
 files than when I use yuvdenoise -f. Using only yuvdenoise makes smaller
 file than without the usage of yuvdenoise. 

Hmmm, is it possible that when you use yuvdenoise that the 
sharpening (-S) default is the reason for the higher bitrate?

yuvdenoise -f on the other hand might not be doing the -S (sharpen)
processing.

What happens if you compare yuvdenoise -S 0 to yuvdenoise -f?

Cheers,
Steven Schultz



---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps  Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356alloc_id=3438op=click
___
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] yuvdenoise interlaced source?

2003-05-30 Thread scholnik

Can yuvdenoise cope with an interlaced source (VHS tape) and keep it
interlaced.  Only it says:

and then into the filter. (Well, the other way would work, too,
  except that the filter doesn't do interlaced MC yet and doesn't do a
  good job on interlaced frames that way... I'll fix that!)

It can denoise an interlaced source, and keep it deinterlaced, but
only by treating the 2 fields as independent progressive movies.  I
think that note was saying that it would be better to denoise both
fields together using motion compensation that takes the interlacing
into account, which I assume is true.

Dan


---
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
___
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] yuvdenoise interlaced source?

2003-05-29 Thread Steven M. Schultz
Hi -

From: Scott Waye [EMAIL PROTECTED]

Can yuvdenoise cope with an interlaced source (VHS tape) and keep it
interlaced.  Only it says:

Yes indeed.   I've lost count of the VHS  8mm tapes I've converted
to DVD/SVCD.

Cheers,
Steven Schultz


---
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
___
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] yuvdenoise parameter handling bug as well

2003-03-09 Thread Ronald Bultje
Hey Richard,

On Fri, 2003-03-07 at 14:13, Richard Ellis wrote:
 Note, w/h appear to be the result of subtracting two from unsigned int's
 that were initialized to zero, instead of being initialized to the
 incoming frame width/height from the yuv4mpeg header.

Yup, they're uint16_t's (see yuvdenoise/global.h). They'd need to be
signed in order for this to work. Simple remove the 'u' and it'll work.

Stefan, can I change this in CVS or is there a specific reason why
they're signed?

Ronald

-- 
Ronald Bultje [EMAIL PROTECTED]
Linux Video/Multimedia developer



---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
___
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] yuvdenoise -l

2003-02-12 Thread Robert Kesterson
On Wed, 12 Feb 2003, Edouard Chalaron wrote:

 Hi all,
 What the -l stands for in yuvdenoise ?

low-pass threshold.  See yuvdenoise --help.

--
  Robert Kesterson
  [EMAIL PROTECTED]




---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users



Re: [Mjpeg-users] yuvdenoise -l

2003-02-12 Thread Edouard Chalaron
Hi Robert 
  Hi all,
  What the -l stands for in yuvdenoise ?

 low-pass threshold.  See yuvdenoise --help.

Thanks,
I was not really sure if I can understand that as antialiasing, my question 
was not to the point. Is it the case ?
Edouard


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users