Re: [Libav-user] Encoding depth video from Kinect

2012-02-11 Thread Carl Eugen Hoyos
Daniel Henell  writes:

> ffmpeg -r10 -i data/d-%06d.pgm -sameq -vsync1 -vcodec ffv1 vid.mov

For 16bit encoding, "-coder 1" is needed.
(FFmpeg's output tells you anyway.)

> Is ffv1 really supporting GRAY16?

It was only supported since shorty before you wrote your mail 
(which I didn't realize), but did not work in all cases:
A problem that made encoding difficult (it did not work with above 
command line) has been fixed, please test current git head!

Carl Eugen

___
Libav-user mailing list
Libav-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user


Re: [Libav-user] Encoding depth video from Kinect

2012-02-09 Thread Carl Eugen Hoyos
Daniel Henell  writes:

> I tried encoding the depth frames as ffv1 using the following command:
> 
> ffmpeg -r10 -i data/d-%06d.pgm -sameq -vsync1 -vcodec ffv1 vid.mov
> 
> However I got the following output and errors:
> 
> Incompatible pixel format 'gray16le' for codec 'ffv1', auto-selecting
> format 'yuv420p16le'

Complete, uncut console output missing.

Carl Eugen

___
Libav-user mailing list
Libav-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user


Re: [Libav-user] Encoding depth video from Kinect

2012-02-09 Thread Daniel Henell
> Daniel Henell  writes:
>
>> However there doesn't seem to be any video codec that can handle >8
>> bit grayscale video.
>
> grep GRAY16 libavcodec/*.c
> shows jpegls, ffv1 and libopenjpeg as codecs that do support >8 bit
> grayscale video.
>
> Carl EUgen
>
> ___
> Libav-user mailing list
> Libav-user@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user

Hi,

I tried encoding the depth frames as ffv1 using the following command:

ffmpeg -r10 -i data/d-%06d.pgm -sameq -vsync1 -vcodec ffv1 vid.mov

However I got the following output and errors:

Incompatible pixel format 'gray16le' for codec 'ffv1', auto-selecting
format 'yuv420p16le'
[buffer @ 0x9bc8980] w:640 h:480 pixfmt:gray16be tb:1/100 sar:0/1 sws_param:
[buffersink @ 0x9bdb4c0] auto-inserting filter 'auto-inserted scale 0'
between the filter 'src' and the filter 'out'
[scale @ 0x9bdba40] w:640 h:480 fmt:gray16be -> w:640 h:480
fmt:yuv420p16le flags:0x4
[ffv1 @ 0x9bc83e0] bits_per_raw_sample invalid
Output #0, mov, to 'vid.mov':
Stream #0:0: Video: ffv1, yuv420p16le, 640x480, q=2-31, 200 kb/s,
90k tbn, 10 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (pgm -> ffv1)
Error while opening encoder for output stream #0:0 - maybe incorrect
parameters such as bit_rate, rate, width or height


Is ffv1 really supporting GRAY16?

-- Daniel
___
Libav-user mailing list
Libav-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user


Re: [Libav-user] Encoding depth video from Kinect

2012-02-09 Thread Carl Eugen Hoyos
Daniel Henell  writes:

> However there doesn't seem to be any video codec that can handle >8
> bit grayscale video.

grep GRAY16 libavcodec/*.c
shows jpegls, ffv1 and libopenjpeg as codecs that do support >8 bit 
grayscale video.

Carl EUgen

___
Libav-user mailing list
Libav-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user