[Mjpeg-users] y4m -> DV ??

2009-02-26 Thread Marko Cebokli
Hello,

I am trying to transcode yuv4mpeg into DV - the idea is to use y4mstabilizer 
to stabilize some clips before editing in Kino.
I would like to avoid an intermediate high-compression (inter-frame) format.

So far I had little success
Mencoder and ffmpeg can output yuv4mpeg, but won't eat it.
I only had some "success" with transcode - but the results are very strange 
indeed!

-y dvraw   dies with a "Floating point exception", so not useful.

-y dv  survives the task, but the output looks like this:

-in the top half of the frame, two 1/4 size pictures side by side (1/4 by 
area, 1/2h by 1/2v linear), identical (same channelmaybe Y but shown in 
magenta/green)
-below that, four 1/4 horizontally by 1/8 vertically sized pics side by side,  
identical (same channelmaybe one chroma channel, but shown in 
magenta/green)
-below that, four 1/4 horizontally by 1/8 vertically sized pics side by side,  
identical (same channelmaybe the other chroma channel, but shown in 
magenta/green)
-bottom quarter of screen green 

I use yuvdeinterlace and y4mscaler to 444 before stabilizing, and y4mscaler to 
420_MPEG2 after it, feeding the result to transcode.
If I watch the stream before trancode with yuvplay, it is perfectly OK.

Maybe someone on the list has encountered this problem and solved it?
Do I need to "reinterlace", and how to do it?

Marko Cebokli

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


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

2009-02-26 Thread Roman V. Shaposhnik
On Thu, 2009-02-26 at 21:01 +0100, Marko Cebokli wrote:
> Hello,
> 
> I am trying to transcode yuv4mpeg into DV - the idea is to use y4mstabilizer 
> to stabilize some clips before editing in Kino.
> I would like to avoid an intermediate high-compression (inter-frame) format.
> 
> So far I had little success
> Mencoder and ffmpeg can output yuv4mpeg, but won't eat it.

Sure ffmpeg does:

  $ ./ffmpeg -i test.mpeg -f yuv4mpegpipe test.yuv

> I only had some "success" with transcode - but the results are very strange 
> indeed!

Don't go there as far as DV is concerned. There'll be dragons.

Thanks,
Roman.


--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


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

2009-02-26 Thread Marko Cebokli
On Thursday 26 February 2009 21:38, Roman V. Shaposhnik wrote:
>
> Sure ffmpeg does:
>
>   $ ./ffmpeg -i test.mpeg -f yuv4mpegpipe test.yuv

I don't understand - wouldn't this be for mpeg into yuv? No DV here?
What I would like to do is turn yuv into DV without an intermediate MPEG step.

Marko Cebokli


>
> ---
>--- Open Source Business Conference (OSBC), March 24-25, 2009, San
> Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing
> the Enterprise -Strategies to boost innovation and cut costs with open
> source participation -Receive a $600 discount off the registration fee with
> the source code: SFAD http://p.sf.net/sfu/XcvMzF8H
> ___
> Mjpeg-users mailing list
> Mjpeg-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mjpeg-users

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


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

2009-02-26 Thread Roman V. Shaposhnik
On Thu, 2009-02-26 at 21:59 +0100, Marko Cebokli wrote:
> On Thursday 26 February 2009 21:38, Roman V. Shaposhnik wrote:
> >
> > Sure ffmpeg does:
> >
> >   $ ./ffmpeg -i test.mpeg -f yuv4mpegpipe test.yuv
> 
> I don't understand - wouldn't this be for mpeg into yuv? No DV here?
> What I would like to do is turn yuv into DV without an intermediate MPEG step.

ffmpeg doesn't care what's the input:
 $ ./ffmpeg -i test.dv -f yuv4mpegpipe test.yuv

Thanks,
Roman.


--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


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

2009-02-26 Thread Christian Ebert
* Marko Cebokli on Thursday, February 26, 2009 at 21:01:46 +0100
> I am trying to transcode yuv4mpeg into DV - the idea is to use y4mstabilizer 
> to stabilize some clips before editing in Kino.
> I would like to avoid an intermediate high-compression (inter-frame) format.
> 
> So far I had little success
> Mencoder and ffmpeg can output yuv4mpeg, but won't eat it.

... | ffmpeg -f yuv4mpegpipe -i -

but ffmpeg probably guesses right without specifying -f for
input.



> I use yuvdeinterlace and y4mscaler to 444 before stabilizing, and y4mscaler 
> to 
> 420_MPEG2 after it, feeding the result to transcode.
> If I watch the stream before trancode with yuvplay, it is perfectly OK.

Something like

... | yuvdeinterlace \
| y4mscaler -v 0 -O sar=src -O chromass=444 \
| y4mstabilizer \
| y4mscaler -v 0 -O sar=src -O chromass=420_MPEG2 \
| ffmpeg -i - -target pal-dv -y test.dv

might get you going.

> Maybe someone on the list has encountered this problem and solved it?
> Do I need to "reinterlace",

I don't know.

> and how to do it?

I don't know.

c
-- 
\black\trash movie_C O W B O Y_  _C A N O E_  _C O M A_
Ein deutscher Western/A German Western
-->> http://www.blacktrash.org/underdogma/ccc.html
-->> http://www.blacktrash.org/underdogma/ccc-en.html

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


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  
format.

Mark

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


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 DV.

Make sure you are using a supported resolution and frame rate. DV is  
very inflexible when it comes to this.

FFMpeg will read y4m and write a dv file...

libav2yuv yourfile.avi | yourstabilizer | ffmpeg -f yuv4mpegpipe -i -  
yourdv.dv

However I have had marginal success with FFMPEG reading DV files.   
Many of the DV files I have ffmpeg (libavcodec) will skip large  
amounts of frames.  Quicktime works fine with the DV files.

If you want the sound copied from the source you'll need to use some  
mapping magic, unfortunately I don't remember the exact command line,  
but this might get you started:

libav2yuv yourfile.avi | yourstabilizer | ffmpeg -f yuv4mpegpipe -i - - 
i yourfile.avi -map 0.0 -map 1.1 yourdv.dv


Mark

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users