[Mjpeg-users] support for >8 bit video

2013-03-18 Thread Mark Heath
Does the mjpegtools support 9, 10 and 16 bit video? I noticed this post in ffmpeg repository http://git.videolan.org/?p=ffmpeg.git;a=commit;h=f7f6aaf988c224a10ad9ad67d7f7864746880c76 mentioning yuv4mpeg: support 9/10/16 bit pixel formats Is this also supported in mjpegtools? Mark -

Re: [Mjpeg-users] Help reading Muxing TS

2011-11-15 Thread Mark Heath
On 15/11/2011, at 4:47 PM, sam wrote: > Hi Mark, > > Thank you for your reply, > > I have hardware encoder , which gives IP out , and it has 8 > channels , each channel gives me 2 ts. > > ffmpeg will encode again , then it is no use of using my encoder. ffmpeg can be used to mux without encod

Re: [Mjpeg-users] Help reading Muxing TS

2011-11-14 Thread Mark Heath
On 14/11/2011, at 3:37 PM, sam wrote: > Dear Friend , > > I am a professor , i want to do it for my research project for > students.partial please help me. > > I want to Multiplex n number of TS using mplex, i got downloaded > from mjpeg.sourceforge.net and installed , how to mux continuousl

Re: [Mjpeg-users] writing multi threaded code

2011-09-22 Thread Mark Heath
On 23/09/2011, at 11:37 AM, Steven Boswell II wrote: If that's how you expect to use mutexes, an atomic integer would be a LOT more efficient, e.g. the g_atomic_int functions in glib. Those are implemented with processor instructions instead of OS system calls. I assume I'd need to use

Re: [Mjpeg-users] writing multi threaded code

2011-09-22 Thread Mark Heath
On 23/09/2011, at 1:52 PM, E Chalaron wrote: > > The files are in a quicktime container as raw RGB data from cinelerra. > But ... I suppose I can always denoise before rendering in X264 which > will be in YUV anyway. I was just thinking that if you were to implement yuvdenoise for RGB, how wou

Re: [Mjpeg-users] writing multi threaded code

2011-09-22 Thread Mark Heath
On 23/09/2011, at 12:20 PM, E Chalaron wrote: > Cine scan films such as 8, 9.5, super 8 , 16 mm etc ... > Either in 8 or 16 bits. Sorry I mean, what file format (or library) would you be reading this in as? yuv4mpeg is in yuv format. I'm not aware of an rgb stream format. Or would you be usi

Re: [Mjpeg-users] writing multi threaded code

2011-09-22 Thread Mark Heath
outweigh your processing time. Mutexes are by no means free. Hope that helps. Steven Boswell From: Mark Heath To: MJPEG-tools user list Sent: Wednesday, September 21, 2011 3:21 PM Subject: [Mjpeg-users] writing multi threaded code Hi Guys, I'm wondering if anyone has some skeleton C c

[Mjpeg-users] writing multi threaded code

2011-09-21 Thread Mark Heath
Hi Guys, I'm wondering if anyone has some skeleton C code for writing multithreaded filters. Similar to this kind of pseudo code; while not end of file { read frame create threads (number of CPUs) for y = 1 to height { while no available threads { w

Re: [Mjpeg-users] yuvdenoise

2010-11-14 Thread Mark Heath
Are both your CPU cores loaded? yuvdenoise is a bit of a complicated beast I don't think it'd be easy to optimise. A simple multithreaded optimisation technique is to use slices (less than full height sections of the frame, each section is given to a CPU) However yuvdenoise uses spatial ga

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

[Mjpeg-users] port of yadif?

2010-04-07 Thread Mark Heath
Has anyone ported yadif (yet another de interlacing filter) to mjpeg tools? it appears to be the "best" software deinterlace filter. Thanks Mark -- Download Intel® Parallel Studio Eval Try the new software tools for you

Re: [Mjpeg-users] y4mstabilizer segmentation fault

2009-06-04 Thread Mark Heath
e buffer size fixes the bug, then it's probably not as urgent. I need a video project to take my mind off work. > > And @Mark Heath... I had seen your tools before, and I > will have another look at them in future. You have some > really interesting code there, and with a b

Re: [Mjpeg-users] y4mstabilizer segmentation fault

2009-06-03 Thread Mark Heath
> >> Input #0, mpegvideo, from 'test.m2v': >> Duration: 00:00:46.50, bitrate: 3938 kb/s >>Stream #0.0: Video: mpeg2video, yuv420p, 720x576 [PAR 16:15 DAR >> 4:3], 3938 kb/s, 25 tbr, 1200k tbn, 50 tbc >> Output #0, yuv4mpegpipe, to 'pipe:': >>Stream #0.0: Video: rawvideo, yuv444p, 720x576

Re: [Mjpeg-users] mpeg2enc's bitrate parameter does not work properly

2009-04-01 Thread Mark Heath
On 31/03/2009, at 6:51 AM, Bob Forsman wrote: > (I am not sure if I am properly subscribed to this list yet. I have > not > received a confirmation email). I've CCd you, so you'll know if you receive 2 email. Sorry I can't help with the bitrate problem, but may be able to provide some tool

Re: [Mjpeg-users] y4m -> DV ??

2009-02-26 Thread Mark Heath
On 27/02/2009, at 8:15 AM, Roman V. Shaposhnik wrote: > > ffmpeg doesn't care what's the input: >$ ./ffmpeg -i test.dv -f yuv4mpegpipe test.yuv For conversion to Y4M, I'm gonna plug my avcodec to y4m tool: http://silicontrip.net/~mark/lavtools/index.php#libav2yuv As for converting y4m to D

Re: [Mjpeg-users] y4m -> DV ??

2009-02-26 Thread Mark Heath
On 27/02/2009, at 10:33 AM, Christian Ebert wrote: > > ... | ffmpeg -f yuv4mpegpipe -i - > > but ffmpeg probably guesses right without specifying -f for > input. ffmpeg uses the extension of the filename to determine the format. So if you are reading from a pipe/stdin you do need to specify the

Re: [Mjpeg-users] Good intermediate format to use

2009-01-23 Thread Mark Heath
On 23/01/2009, at 5:54 AM, Bernhard Praschinger wrote: > The mjpegtools cannot create DV encoded files (at least I don't know > how). They can only read them. The the best quality is a mjpeg encoded > AVI/MOV at a high quality factor of 95. (100 might cause problems) if you are wanting to use D

Re: [Mjpeg-users] mpeg2enc: any hope of further development?

2008-12-21 Thread Mark Heath
Does mpeg2enc support encoding 422 video? Thanks Mark -- ___ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Re: [Mjpeg-users] mplex "file mov03d.m2v unrecogniseable!"

2008-10-17 Thread Mark Heath
On 18/10/2008, at 1:31 AM, Curt Howland wrote: >> Are you able to make the file available? > > http://pages.suddenlink.net/curthowland/mov018.m2v > http://pages.suddenlink.net/curthowland/mov018.mpg > > This is the original right off the camera, and the file created with > mplayer -dumpfile "mov0

Re: [Mjpeg-users] mplex "file mov03d.m2v unrecogniseable!"

2008-10-16 Thread Mark Heath
On 15/10/2008, at 6:00 AM, Curt Howland wrote: > > $ mplex -f 8 -S > 0 -M -o "/tmp/Test/mov03d/mov03d.mpeg2" "/tmp/Test/mov03d/ > mov03d.m2v" "/tmp/Test/mov03d/mov03d.m2a" > INFO: [mplex] mplex version 1.8.0 (2.2.4 $Date: 2005/08/28 17:50:54 > $) > **ERROR: [mplex] File /tmp/Test/mov03d/mov03d.

Re: [Mjpeg-users] Y4mhist

2008-09-18 Thread Mark Heath
f anyone has any recommendations about making a package, I wouldn't mind hearing. There is a gcc build command in the comments: gcc -O3 yuvdiag.c -L/sw/lib -I/sw/include/mjpegtools -lmjpegutils -o yuvdiag just replace the location of your mjpeg include and libraries. Mark > > Cheers > E &

Re: [Mjpeg-users] Y4mhist

2008-09-16 Thread Mark Heath
I'm not sure about y4mhist, But it sounds like you are looking for something similar to my yuvdiag tool. renders a realtime histogram (among other things) suitable for displaying with a yuv player of some sort. http://silicontrip.net/~mark/lavtools/index.php#yuvdiag Let me know if this is w

Re: [Mjpeg-users] Building Cross platform binaries

2008-06-22 Thread Mark Heath
On 22/06/2008, at 3:03 PM, Bernhard Praschinger wrote: >>> >>> I am guessing to build universal binaries is going to require >>> some serious hacking of the build scripts. Can anyone help? >> I discovered that adding the following option to configure helped >> this issue: >> --disable-depen

Re: [Mjpeg-users] Building Cross platform binaries

2008-06-16 Thread Mark Heath
On 12/06/2008, at 11:23 PM, Mark Heath wrote: > > As you can see here it has attempted to tune for pentium3 and gcc > spits it over command line options... > > I would like to have universal binaries as I do use a mixture of PPC > and Intel macs. > > I am guessing to

[Mjpeg-users] Building Cross platform binaries

2008-06-12 Thread Mark Heath
Hi all, I've been using mjpeg tools under OSX for some time now. I have recently begun attempting to integrate the tools with Apple Core services. However Xcode wants the mjpeg libraries to be universal or it won't link against them. I have tried the path of forcing Xcode to only produce

Re: [Mjpeg-users] frame rate conversion

2008-05-26 Thread Mark Heath
On 25/05/2008, at 6:43 PM, Christian Ebert wrote: > * Mark Heath on Saturday, May 24, 2008 at 08:47:53 +1000 >> By the way I have my own blending framerate converter (yuvaifps) >> available on my lavtools site >> http://silicontrip.net/~mark/lavtools/index.php#yuvafps >

Re: [Mjpeg-users] frame rate conversion

2008-05-24 Thread Mark Heath
On 23/05/2008, at 8:03 AM, Florin Andrei wrote: > I'm looking for a way to convert a 60fps video stream to true NTSC > frame > rate (29.97i). Converting frames to fields to half the frame rate and > interlace is easy, but it's the shaving off of the 0.1% of the frame > rate that worries me. > >

Re: [Mjpeg-users] Zig-zag pattern on every frame...

2008-03-13 Thread Mark Heath
> > I wouldn't see that it would be difficult to write a yuvtool to copy > the chroma channels into the luma and show the video image this way. > Maybe include it in a set of video tools to display more engineering > information about a yuv stream... > I have written a channel splitter availab

Re: [Mjpeg-users] Zig-zag pattern on every frame...

2008-03-12 Thread Mark Heath
Hi Andrea, Since you mention that your camcorder, with the 1.2m S-Video cable, produces the same pattern, it is unlikely to be a source of external interference. However you did mention you changed something recently inside your computer? This change could be causing the interference. I

Re: [Mjpeg-users] Zig-zag pattern on every frame...

2008-03-08 Thread Mark Heath
I've split this image into it's Y-U-V channels, There appears to be no noise in the chroma channels only the Luma channel. This could be due to: * the chroma channels being half resolution, not enough resolution to represent the noise pattern. (below the nyquist value) * the interference fr

Re: [Mjpeg-users] workaround (PPC) for mpeg2enc's buggyness

2008-01-23 Thread Mark Heath
On 23/01/2008, at 5:16 AM, Florin Andrei wrote: > Mark Heath wrote: >> >> Anyway I've been using the mpeg2 encoder in ffmpeg and have been >> happy with the results. > > I asked recently on their mailing list if they solved the rate control > issues and they

Re: [Mjpeg-users] workaround (PPC) for mpeg2enc's buggyness

2008-01-17 Thread Mark Heath
On 17/01/2008, at 3:34 PM, Steven M. Schultz wrote: > > On Wed, 16 Jan 2008, Christian Ebert wrote: > >> I get buffer underflows for longer stuff when encoding from dv to >> mpeg2 for dvd with ffmpeg, and i really played around a lot with > > That's the rate control issue(s) I had in mind.

Re: [Mjpeg-users] workaround (PPC) for mpeg2enc's buggyness

2008-01-16 Thread Mark Heath
On 16/01/2008, at 2:28 AM, Christian Ebert wrote: > * Steven M. Schultz on Friday, March 23, 2007 at 00:48:14 -0700 >> If you're using a PPC and OS/X there is a fantastically high quality >> workaround for mpeg2enc's current buggy state. >> >> The BitVice encoder from: >> >>http://www.innobit

Re: [Mjpeg-users] how can i figure out if ppmtoy4m has a option 420mpeg2

2007-12-05 Thread Mark Heath
Hi Martin, The output from the help of ppmtoy4m is appearing on stderr not stdout. You will need to redirect stderr through your pipe. Depending on what shell you are using this is done in different ways. tcsh: ppmtoy4m -h | grep 420mpeg2 |& wc -l bash: ppmtoy4m -h | grep 420mpeg2 2>&1 | wc -

Re: [Mjpeg-users] yuvdeinterlace bug?

2007-09-13 Thread Mark Heath
On 14/09/2007, at 3:23 PM, David McNab wrote: > >> I am thinking about doing something more intelligent than line >> doubling. (maybe adaptive blending) > > Oh yes, please do! :) > >> And making better support for different chroma subsampling, but maybe >> next week. > > Less urgent, since many y

Re: [Mjpeg-users] yuvdeinterlace bug?

2007-09-13 Thread Mark Heath
On 14/09/2007, at 12:50 PM, David McNab wrote: > There's an alternative implementation of yuvdeinterlace, unfortunately > with the same name, at: > > http://silicontrip.net/~mark/lavtools/ :-) yeah that's my version. It was for non interlace aware temporal filters, such as my original yuvafps

[Mjpeg-users] yuvdeinterlace bug?

2007-09-13 Thread Mark Heath
I haven't looked thoroughly into this but it appears that the version of yuvdeinterlace crashes on 480 height files, while works fine on 576 height files. I'm not sure which version I am using, the tool doesn't have any version information, it is the Motion-Compensating-Deinterlacer. I d

Re: [Mjpeg-users] keyframe automation with yuv4mpegpipe-style tools

2007-08-29 Thread Mark Heath
On 30/08/2007, at 1:06 PM, David McNab wrote: > On Thu, 2007-08-30 at 00:20 +1200, David McNab wrote: >> Hi, >> >> Is there a sane way to perform, with the various yuv4mpegpipe-based >> tools, something comparable to the keyframe-based automation found in >> graphical video editors such as Cinele

Re: [Mjpeg-users] "mpeg2enc is currently broken"

2007-07-23 Thread Mark Heath
I have been using ffmpeg with the mjpeg tools for some time. To convert from the myriad of formats that ffmpeg supports to yuv use this command: ffmpeg -i myfile.ext -f yuv4mpegpipe - | yuvmytool | etc. To convert to another format from yuv4mpeg use this style of command: yuvmytool | ffmpeg

Re: [Mjpeg-users] does mplex support MPEG2 transport stream?

2007-05-28 Thread Mark Heath
ffmpeg will produce transport streams. To convert an existing program stream use this command: ffmpeg -i file.mpg -acodec copy -vcodec copy file.ts where file.ts is the output file. ffmpeg uses extensions to recognise what format to write the file in. Though this can be overridden with th

Re: [Mjpeg-users] mpeg2enc: status of low quality settings on ix86

2007-05-10 Thread Mark Heath
Interestingly enough I attempted using mpeg2enc as a change (from ffmpeg) just to see how things were progressing. I had just compiled the mjpeg suite on my g5, to do some NTSC to PAL conversion. I used the following settings: mpeg2enc -f 8 -q 2 -M 8 I couldn't get it using more than 2 of m

[Mjpeg-users] Standards converter?

2007-05-08 Thread Mark Heath
Hi, I was wondering if a yuv format standards converter exists? I know that one could be pieced together with y4mscaler and a frame rate converter. Though I was wondering about doing adaptive interlace detection and changing the behaviour of the scaling and frame rate interpolation based o

Re: [Mjpeg-users] Reasonable targets for Video8 sources...

2006-09-07 Thread Mark Heath
I purchased a D8 camera to do the capturing. It is able to read video 8 tapes and send it via firewire. I've been archiving the tapes on disk as DV files. I'll edit the files together one day and burn them onto DVD. Mark On 07/09/2006, at 9:38 PM, Andrea Giuliano wrote: > Hi, > > I hope this

Re: [Mjpeg-users] B ... [WAS: y4mscaler: Upsampling to widescreen]

2005-12-19 Thread Mark Heath
Andrew Stevens wrote: For the same x2 special-case asd your algorithm there is also some very interesting work based on ideas from some Sony researchers. Here you again choose your weights dynamically based on context in which your new pixel appears. However, the weight-selection function

Re: [Mjpeg-users] mpeg2enc 1.6.2: how to use -p for 24fps source?

2005-12-14 Thread Mark Heath
On 14/12/2005, at 4:21 PM, Trent Piepho wrote: When you use -F 4 -p, the mpeg file has its framerate set to 30 fps, but there are only 24 frames encoded per second. The encoder puts in repeat field flags that tell the decoder to do the pulldown, which has the effect of converting 24 fr

Re: [Mjpeg-users] mpeg2enc 1.6.2: how to use -p for 24fps source?

2005-12-13 Thread Mark Heath
Joe Friedrichsen wrote: Hi! I have a DV stream that I'm trying to encode for DVD. I have an NTSC DV camera, and it shoots in 3/1001. I can encode it perfectly well into 3:1001 MPEG-2. As an experiment, I wanted to make a 24000/1001 encoding (I didn't really care about the output quali

Re: [Mjpeg-users] Too many frame drops

2005-11-20 Thread Mark Heath
Anne Wilson wrote: On using the commant mplex 1_title.mp2 1_title.m2v -o 1_title.mpg You need to add '-f 8' to the mplex command line. -f 8 has the same meaning as -f 8 in mpeg2enc, which is to produce a DVD compatible MPEG file. Since your m2v file is DVD compatible, you also must tell

Re: [Mjpeg-users] No a bug

2005-11-02 Thread Mark Heath
E.Chalaron wrote: Or perhaps not? The thing you most likely are experiencing is that find list all matches i filesystem order, which may or may not be what you want. You may be better off with find . -name \*|sort, or, if you don't need the recursion, simply ls *. The recursion wont work, as fi

Re: [Mjpeg-users] A bug ?

2005-11-02 Thread Mark Heath
E.Chalaron wrote: Hi all This may not be relevant to everybody but ... I am capturing here YUV frames using Coriander. On my Athlon 32 it works fine and the used script to buld my movies back is : (find . -name \* | xargs cat) | yuyvto4m -k -w 1244 -h 934 -a 1:1 -i p -r 16:1 | bunch_of_filte

Re: [Mjpeg-users] fixing fields order in encoded mpeg2(vob)

2005-11-01 Thread Mark Heath
Aleksander V. Dyomin wrote: Hi! Sorry for my poor english. I have made misstake while writing script to encode my DV to MPEG2. Exporting stream with mplayer I used "-vo yuv4mpeg:interlaced" option. Later, on hw dvd player, I have seen "buggy" video, as described at mjpeg-howto(wrong field orde

Re: [Mjpeg-users] Converting back from DVD

2005-10-17 Thread Mark Heath
Bernhard Frühmesser wrote: >>So far i have the vob file on the HDD, and mpeg2dec reads it, but do i >> have to use a pipe here to store the output in a file? Right now the >> video displays on the desktop. With -o pgm i get a pgm for each >>frame. >Why not use 'mpeg2dec -o pgmpip

Re: [Mjpeg-users] Converting back from DVD

2005-10-16 Thread Mark Heath
Bernhard Frühmesser wrote: Hello, I have a small problem :-) I used the mjpegtools to record a movie from a VHS Video a while ago, unfortunately i don´t have the VHS tape anymore, but i have all the stuff on DVD. I would need a short sequence of the Video to use on another DVD. Just a short

Re: [Mjpeg-users] more - splitting an MJPEG to a series of JPEGs

2005-10-09 Thread Mark Heath
On 09/10/2005, at 2:43 PM, Bernhard Praschinger wrote: AnY good way to batCh process this on the CLI besides a for loop and ppntojpeg? I would use convert this way: for i in *.pnm; do convert $i `basename $i pnm`jpg; done convert can do the conversation to nearly every picture format.

Re: [Mjpeg-users] Fwd:ms-ima-adpcm import module?

2005-10-06 Thread Mark Heath
[EMAIL PROTECTED] wrote: I want to extract an audio track from an avi to a wav file The video stream is RGB uncompressed the audio stream use ms-ima-adpcm codec I've tried the work with various tools (mjpegtools, ffmpeg, transcode and avidemux...) The mjpegtools works fine on my video stream, bu

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 str

Re: [Mjpeg-users] how to encode an MPEG from an AVI?

2005-07-27 Thread Mark Heath
On 27/07/2005, at 7:24, Torsten Mohr wrote: Hi, i did not encode any MPEGs from an AVI for a longer time. I find that ffmpeg is good for doing this. It can read pretty much any file format, though I have come across a few that it cannot read. And it can write to a large number of format