Re: [FFmpeg-user] Convert images to DNXHD 444

2018-04-10 Thread Lou Logan
On Tue, Apr 10, 2018, at 1:51 PM, Gonzalo Garramuño wrote:

> For DNxHR 444, this line should do it:
> 
> $ ffmpeg -i test.%04d.tif -r 6/1001 -codec:v dnxhd -profile:v 
> dnxhr_444 -b:v 880M  -pix_fmt yuv444p10 -y test_hr444.mov

Use:

ffmpeg -framerate 6/1001 -i test.%04d.tif -codec:v dnxhd -profile:v 
dnxhr_444 -b:v 880M  -pix_fmt yuv444p10 -y test_hr444.mov

...to avoid 25 to 6/1001 conversion. 
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Convert images to DNXHD 444

2018-04-10 Thread Gonzalo Garramuño



El 10/04/18 a las 18:14, Paul B Mahol escribió:

On 4/10/18, Matt Kitcat  wrote:


But I would also like to be able to generate DNxHR 444 and hqx as well.


Both are already supported, update your obsolete ffmpeg version.
I verified they are supported, but you need to be extremely careful with 
the flags you pass to ffmpeg.  You also need to be careful with the 
resolution of your images as that effects the bitrate ( -b:v ). And as 
Carl pointed out, the frame rate must be a fraction and that fraction 
must be a valid fraction by the AVID specs.


For DNxHR 444, this line should do it:

$ ffmpeg -i test.%04d.tif -r 6/1001 -codec:v dnxhd -profile:v 
dnxhr_444 -b:v 880M  -pix_fmt yuv444p10 -y test_hr444.mov


For DNxHQX, the following line should do it:

$ ffmpeg -i test.%04d.tif -r 6/1001 -codec:v dnxhd -profile:v 
dnxhr_hqx -b:v 880M  -pix_fmt yuv420p10 -y test_hqx.mov


--
Gonzalo Garramuño

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

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Convert images to DNXHD 444

2018-04-10 Thread Paul B Mahol
On 4/10/18, Matt Kitcat  wrote:
> Hi Guys.
> I am waiting for some test footage I can share because I have since
> discovered that creating YUV444 might not solve my underlying problem. This
> started when I generated a yuv422p10 DNxHD and the colours were different to
> the original tiff sequence (saturation down).
> I assumed it was due to it not being 444 but in fact a quicktime generated
> through Quicktime API produces "perfect" DNxHD with no discernable colour
> difference to the original MOV. I spent a day searching for an answer but
> nothing made a difference.  Like I say I will upload some examples as soon
> as I can get them, maybe tomorrow.
>
> But I would also like to be able to generate DNxHR 444 and hqx as well.
>

Both are already supported, update your obsolete ffmpeg version.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Convert images to DNXHD 444

2018-04-10 Thread Matt Kitcat

Hi Guys.
I am waiting for some test footage I can share because I have since 
discovered that creating YUV444 might not solve my underlying problem. This 
started when I generated a yuv422p10 DNxHD and the colours were different to 
the original tiff sequence (saturation down).
I assumed it was due to it not being 444 but in fact a quicktime generated 
through Quicktime API produces "perfect" DNxHD with no discernable colour 
difference to the original MOV. I spent a day searching for an answer but 
nothing made a difference.  Like I say I will upload some examples as soon 
as I can get them, maybe tomorrow.


But I would also like to be able to generate DNxHR 444 and hqx as well.

Matt
-Original Message- 
From: Gonzalo Garramuño

Sent: Tuesday, April 10, 2018 5:56 PM
To: ffmpeg-user@ffmpeg.org
Subject: Re: [FFmpeg-user] Convert images to DNXHD 444



El 10/04/18 a las 07:37, Carl Eugen Hoyos escribió:

2018-04-09 23:08 GMT+02:00, Wayne Poll :

It is possible but the 440 profile isn't valid for 23.98fps material - 
you

should be using DNxHD 350x for 10-bit 4:4:4 RGB @ 23.98fps. The DNxHD 440
(8-bit) and DNxHD 440x (10-bit) are only valid at higher frame rates, 
such

as 29.97p, 59.94p and 60p

How can I reproduce this?

$ ffmpeg -i explosion_FG_040_persp.%04d.exr -r 24000/1001 -codec:v dnxhd
-profile:v dnxhd -bit_rate 120Mbps -pix_fmt yuv422p10 -bit_rate 90Mbps
-y test.mov

ffmpeg version N-90206-g8aa3007 Copyright (c) 2000-2018 the FFmpeg
developers
  built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.9) 20160609
  configuration: --enable-gpl --enable-shared --enable-gray
--enable-runtime-cpudetect --enable-bzlib --enable-libfreetype
--enable-libmp3lame --enable-libtheora --enable-libvorbis
--enable-libass --enable-libvpx --enable-libx264 --enable-libx265
  libavutil  56.  7.101 / 56.  7.101
  libavcodec 58. 13.100 / 58. 13.100
  libavformat58. 10.100 / 58. 10.100
  libavdevice58.  2.100 / 58.  2.100
  libavfilter 7. 12.100 /  7. 12.100
  libswscale  5.  0.101 /  5.  0.101
  libswresample   3.  0.101 /  3.  0.101
  libpostproc55.  0.100 / 55.  0.100
Input #0, image2, from 'explosion_FG_040_persp.%04d.exr':
  Duration: 00:00:02.84, start: 0.00, bitrate: N/A
Stream #0:0: Video: exr, rgb48le, 1280x720 [SAR 1:1 DAR 16:9], 25
tbr, 25 tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (exr (native) -> dnxhd (native))
Press [q] to stop, [?] for help

[dnxhd @ 0x2183c40] video parameters incompatible with DNxHD. Valid
DNxHD profiles:
[dnxhd @ 0x2183c40] Frame size: 1920x1080p; bit_depth=10; bitrate:
175Mbps; pixel format: yuv422p10
...etc...
[dnxhd @ 0x2183c40] Frame size: 1280x720p; bit_depth=10; bitrate:
90Mbps; pixel format: yuv422p10
...etc...

Assuming a resolution of 1280x720, the video parameters are okay, but
the bit rate gets passed as 20 always and that makes the check for
resolution and yuv not run.  I modified the code to print the bit rate
and that's how I found out.  I am hunting where the avctx->bit_rate gets
set to 20.  Maybe you can help, Carl?

--
Gonzalo Garramuño

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

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". 


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

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Convert images to DNXHD 444

2018-04-10 Thread Gonzalo Garramuño



El 10/04/18 a las 07:37, Carl Eugen Hoyos escribió:

2018-04-09 23:08 GMT+02:00, Wayne Poll :


It is possible but the 440 profile isn't valid for 23.98fps material - you
should be using DNxHD 350x for 10-bit 4:4:4 RGB @ 23.98fps. The DNxHD 440
(8-bit) and DNxHD 440x (10-bit) are only valid at higher frame rates, such
as 29.97p, 59.94p and 60p

How can I reproduce this?
$ ffmpeg -i explosion_FG_040_persp.%04d.exr -r 24000/1001 -codec:v dnxhd 
-profile:v dnxhd -bit_rate 120Mbps -pix_fmt yuv422p10 -bit_rate 90Mbps 
-y test.mov


ffmpeg version N-90206-g8aa3007 Copyright (c) 2000-2018 the FFmpeg 
developers

  built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.9) 20160609
  configuration: --enable-gpl --enable-shared --enable-gray 
--enable-runtime-cpudetect --enable-bzlib --enable-libfreetype 
--enable-libmp3lame --enable-libtheora --enable-libvorbis 
--enable-libass --enable-libvpx --enable-libx264 --enable-libx265

  libavutil  56.  7.101 / 56.  7.101
  libavcodec 58. 13.100 / 58. 13.100
  libavformat    58. 10.100 / 58. 10.100
  libavdevice    58.  2.100 / 58.  2.100
  libavfilter 7. 12.100 /  7. 12.100
  libswscale  5.  0.101 /  5.  0.101
  libswresample   3.  0.101 /  3.  0.101
  libpostproc    55.  0.100 / 55.  0.100
Input #0, image2, from 'explosion_FG_040_persp.%04d.exr':
  Duration: 00:00:02.84, start: 0.00, bitrate: N/A
    Stream #0:0: Video: exr, rgb48le, 1280x720 [SAR 1:1 DAR 16:9], 25 
tbr, 25 tbn, 25 tbc

Stream mapping:
  Stream #0:0 -> #0:0 (exr (native) -> dnxhd (native))
Press [q] to stop, [?] for help

[dnxhd @ 0x2183c40] video parameters incompatible with DNxHD. Valid 
DNxHD profiles:
[dnxhd @ 0x2183c40] Frame size: 1920x1080p; bit_depth=10; bitrate: 
175Mbps; pixel format: yuv422p10

...etc...
[dnxhd @ 0x2183c40] Frame size: 1280x720p; bit_depth=10; bitrate: 
90Mbps; pixel format: yuv422p10

...etc...

Assuming a resolution of 1280x720, the video parameters are okay, but 
the bit rate gets passed as 20 always and that makes the check for 
resolution and yuv not run.  I modified the code to print the bit rate 
and that's how I found out.  I am hunting where the avctx->bit_rate gets 
set to 20.  Maybe you can help, Carl?


--
Gonzalo Garramuño

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

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] MPEG-DASH

2018-04-10 Thread Carl Eugen Hoyos
2018-04-10 4:48 GMT+02:00, Jeff Jones :
> I'm trying to decipher the documentation to create a manifest for a series
> of mpeg-dash files.  I've created the h.264 encoded videos and the aac
> encoded audio file.  It is't real clear on how to create the manifest file
> associated with this format.  There are a few examples for webm formatted
> manifests, but nothing for mpeg.
>
> I have the following from the documentation:
>
> ffmpeg -re -i  -map 0 -map 0 -c:a libfdk_aac -c:v libx264
> -b:v:0 800k -b:v:1 300k -s:v:1 320x170 -profile:v:1 baseline
> -profile:v:0 main -bf 1 -keyint_min 120 -g 120 -sc_threshold 0
> -b_strategy 0 -ar:a:1 22050 -use_timeline 1 -use_template 1
> -window_size 5 -adaptation_sets "id=0,streams=v id=1,streams=a"
> -f dash /path/to/out.mpd
>
> It appears to be creating the h.264 video and aac audio from a live stream
> as well as creating the manifest, but the arguments don't appear to be
> defined.  I don't see any info about the what the -use_timeline 1 -
> use_template 1 options are

https://ffmpeg.org/ffmpeg-formats.html#dash-2

Carl Eugen
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Convert images to DNXHD 444

2018-04-10 Thread Carl Eugen Hoyos
2018-04-09 19:38 GMT+02:00, Matt Kitcat :

> ffmpeg -r 23.976 -i
> C:\Users\Matt\Desktop\Newfolder\104_0020gn_01_X1_0%3d.tif
> -c:v dnxhd -profile:v 3  -s 1920x1080

> -r 23.976

I suspect this is not a valid frame-rate for any real-world video,
-r 24000/1001 is.

Carl Eugen
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Convert images to DNXHD 444

2018-04-10 Thread Carl Eugen Hoyos
2018-04-09 23:08 GMT+02:00, Wayne Poll :

>> ffmpeg -r 23.976 -i
>> C:\Users\Matt\Desktop\Newfolder\104_0020gn_01_X1_0%3d.tif -c:v dnxhd
>> -profile:v dnxhr_444  -s 1920x1080 -r 23.976  -y
>> C:\Users\Matt\Desktop\Newfolder\bt.mov
>>
>> This creates a file similar to quicktime export setting: 1080/23.976
>> DNxHD
>> 444 10 bit
>>
>> ffmpeg reports
>> Supported pixel formats: yuv422p yuv422p10le yuv444p10le gbrp10le
>>
>> So in fact I don't really want to create DNxHR but DNxHD 444 format. I
>> would have thought that could be possible?
>
> It is possible but the 440 profile isn't valid for 23.98fps material - you
> should be using DNxHD 350x for 10-bit 4:4:4 RGB @ 23.98fps. The DNxHD 440
> (8-bit) and DNxHD 440x (10-bit) are only valid at higher frame rates, such
> as 29.97p, 59.94p and 60p

How can I reproduce this?
Apart from being unmaintainable and outdated, I removed the
frame-rates from the help text of the encoder because I couldn't
find a player that refuses "invalid" frame-rates.

Carl Eugen
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".