[FFmpeg-user] Overlaying subtitles using overlay_cuda filter

2022-01-16 Thread Andy Sheimo
Using the following command with ffmpeg:

ffmpeg -loglevel debug -stats -ss 0 -t 5187.893 -hwaccel cuda
-hwaccel_output_format cuda -i .mkv -filter_complex
[0:0][0:4]overlay_cuda[v] -map [v] -c:v hevc_nvenc -b:v 4000k -maxrate:v
12000k -bufsize:v 12000k -color_primaries:v bt709 -color_trc:v bt709
-colorspace:v bt709 -metadata:s:v title= -disposition:v default -map 0:1
-c:a:0 eac3 -disposition:a:0 default -map 0:2 -c:a:1 eac3 -disposition:a:1
0 -map 0:3 -c:s:0 copy -disposition:s:0 0 -metadata:g title= -default_mode
passthrough .mkv

Gives me the following error:

Impossible to convert between the formats supported by the filter 'graph 0
input from stream 0:4' and the filter 'auto_scale_0'
Error reinitializing filters!
Failed to inject frame into filter network: Function not implemented
Error while processing the decoded data for stream #0:0

>From what I am understanding this means that the format of the subtitles
which is S_HDMV/PGS is not able to be converted. from the vf_overlay_cuda.c

the
possible inputs are:

static const enum AVPixelFormat supported_overlay_formats[] = {
AV_PIX_FMT_NV12,
AV_PIX_FMT_YUV420P,
AV_PIX_FMT_YUVA420P,
AV_PIX_FMT_NONE,
};

I am assuming possibly incorrectly that a subtitle would be AV_PIX_FMT_NONE
and should be an acceptable input. Is this just a limitation of the
overlay_cuda filter? Is there a conversion that should be done on the
subtitle track to make it compatible? I'm at a loss as to the direction to
take as I have been unable to find examples of how to use this filter since
the updates to it in the last year. Any input is appreciated.
ffmpeg version N-104831-g4f44a218e5-ffmpeg-windows-build-helpers Copyright (c) 
2000-2021 the FFmpeg developers
  built with gcc 10.2.0 (GCC)
  configuration: --pkg-config=pkg-config --pkg-config-flags=--static 
--extra-version=ffmpeg-windows-build-helpers --enable-version3 --disable-debug 
--disable-w32threads --arch=x86_64 --target-os=mingw32 
--cross-prefix=/home/andy/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/bin/x86_64-w64-mingw32-
 --enable-libcaca --enable-gray --enable-libtesseract --enable-fontconfig 
--enable-gmp --enable-gnutls --enable-libass --enable-libbluray 
--enable-libbs2b --enable-libflite --enable-libfreetype --enable-libfribidi 
--enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug 
--enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb 
--enable-libopus --enable-libsnappy --enable-libsoxr --enable-libspeex 
--enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc 
--enable-libvorbis --enable-libwebp --enable-libzimg --enable-libzvbi 
--enable-libmysofa --enable-libopenjpeg --enable-libopenh264 
--enable-liblensfun --enable-libvmaf --enable-libsrt --enable-libxml2 
--enable-opengl --enable-libdav1d --enable-cuda-llvm --enable-libsvthevc 
--enable-libsvtav1 --enable-libaom --enable-libvpx --enable-nvenc 
--enable-nvdec --extra-libs=-lharfbuzz --extra-libs=-lm --extra-libs=-lpthread 
--extra-cflags=-DLIBTWOLAME_STATIC --extra-cflags=-DMODPLUG_STATIC 
--extra-cflags=-DCACA_STATIC --enable-amf --enable-libmfx --enable-gpl 
--enable-frei0r --enable-librubberband --enable-libvidstab --enable-libx264 
--enable-libx265 --enable-avisynth --enable-libaribb24 --enable-libxvid 
--enable-libdavs2 --enable-libxavs2 --enable-libxavs 
--extra-cflags='-mtune=generic' --extra-cflags=-O3 --enable-static 
--disable-shared 
--prefix=/home/andy/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32
  libavutil  57. 10.101 / 57. 10.101
  libavcodec 59. 14.100 / 59. 14.100
  libavformat59.  9.102 / 59.  9.102
  libavdevice59.  0.101 / 59.  0.101
  libavfilter 8. 19.100 /  8. 19.100
  libswscale  6.  1.101 /  6.  1.101
  libswresample   4.  0.100 /  4.  0.100
  libpostproc56.  0.100 / 56.  0.100
Splitting the commandline.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) 
with argument 'debug'.
Reading option '-stats' ... matched as option 'stats' (print progress report 
during encoding) with argument '1'.
Reading option '-ss' ... matched as option 'ss' (set the start time offset) 
with argument '0'.
Reading option '-t' ... matched as option 't' (record or transcode "duration" 
seconds of audio/video) with argument '5187.893'.
Reading option '-hwaccel' ... matched as option 'hwaccel' (use HW accelerated 
decoding) with argument 'cuda'.
Reading option '-hwaccel_output_format' ... matched as option 
'hwaccel_output_format' (select output format used with HW accelerated 
decoding) with argument 'cuda'.
Reading option '-i' ... matched as input url with argument 'J:\Remuxed\My 
Neighbor Totoro\My Neighbor Totoro.mkv'.
Reading option '-filter_complex' ... matched as option 'filter_complex' (create 
a complex filtergraph) with argument '[0:0][0:4]overlay_cuda[v]'.

[FFmpeg-user] error during conversion

2020-12-11 Thread Andy Sheimo
Trying to transcode a file and perform a pixel conversion from 8 to 10 bit.
The transcode errors with Impossible to convert between the formats
supported by the filter 'Parsed_null_0' and the filter 'auto_scaler_0'
Error reinitializing filters!
Failed to inject frame into filter network: Function not implemented
Error while processing the decoded data for stream #0:0

I have tried inserting scale_qsv into the command with no success either.
The original command line is as follows:

ffmpeg -loglevel debug -stats -qsv_device 1 -hwaccel qsv -c:v vc1_qsv -i
"F:\Testing 3\BLADE RUNNER\Blade Runner - The Final Cut.mkv" -map 0:0 -c:v
hevc_qsv -pix_fmt:v p010le -b:v 6000k -maxrate:v 18000k -load_plugin:v
hevc_hw -color_primaries:v bt709 -color_trc:v bt709 -colorspace:v bt709
-metadata:s:v title= -disposition:v default -map 0:1 -c:a:0 copy
-metadata:s:a:0 title= -disposition:a:0 default -sn -metadata:g title=
-default_mode passthrough "Blade Runner - The Final Cut.mkv"

here is the debug output:
ffmpeg version N-99979-gb0a8b40294-ffmpeg-windows-build-helpers Copyright
(c) 2000-2020 the FFmpeg developers
  built with gcc 10.1.0 (GCC)
  configuration: --pkg-config=pkg-config --pkg-config-flags=--static
--extra-version=ffmpeg-windows-build-helpers --enable-version3
--disable-debug --disable-w32threads --arch=x86_64 --target-os=mingw32
--cross-prefix=/home/asheimo/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/bin/x86_64-w64-mingw32-
--enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libopus --enable-libsoxr --enable-libvo-amrwbenc
--enable-libvorbis --enable-opengl --enable-libaom --enable-libvpx
--enable-nvenc --enable-nvdec --enable-cuda-llvm --extra-libs=-lharfbuzz
--extra-libs=-lm --extra-libs=-lpthread --extra-cflags=-DLIBTWOLAME_STATIC
--extra-cflags=-DMODPLUG_STATIC --extra-cflags=-DCACA_STATIC --enable-amf
--enable-libmfx --enable-gpl --enable-frei0r --enable-filter=frei0r
--enable-librubberband --enable-libvidstab --enable-libx264
--enable-libx265 --enable-libxvid --enable-libdavs2 --enable-libxavs2
--enable-libxavs --enable-avresample --extra-cflags='-mtune=generic'
--extra-cflags=-O3 --enable-static --disable-shared
--prefix=/home/asheimo/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32
  libavutil  56. 60.100 / 56. 60.100
  libavcodec 58.112.103 / 58.112.103
  libavformat58. 64.100 / 58. 64.100
  libavdevice58. 11.103 / 58. 11.103
  libavfilter 7. 90.100 /  7. 90.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale  5.  8.100 /  5.  8.100
  libswresample   3.  8.100 /  3.  8.100
  libpostproc55.  8.100 / 55.  8.100
Splitting the commandline.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging
level) with argument 'debug'.
Reading option '-stats' ... matched as option 'stats' (print progress
report during encoding) with argument '1'.
Reading option '-qsv_device' ... matched as option 'qsv_device' (set QSV
hardware device (DirectX adapter index, DRM path or X11 display name)) with
argument '1'.
Reading option '-hwaccel' ... matched as option 'hwaccel' (use HW
accelerated decoding) with argument 'qsv'.
Reading option '-c:v' ... matched as option 'c' (codec name) with argument
'vc1_qsv'.
Reading option '-i' ... matched as input url with argument 'F:\Testing
3\BLADE RUNNER\Blade Runner - The Final Cut.mkv'.
Reading option '-map' ... matched as option 'map' (set input stream
mapping) with argument '0:0'.
Reading option '-c:v' ... matched as option 'c' (codec name) with argument
'hevc_qsv'.
Reading option '-pix_fmt:v' ... matched as option 'pix_fmt' (set pixel
format) with argument 'p010le'.
Reading option '-b:v' ... matched as option 'b' (video bitrate (please use
-b:v)) with argument '6000k'.
Reading option '-maxrate:v' ... matched as AVOption 'maxrate:v' with
argument '18000k'.
Reading option '-load_plugin:v' ... matched as AVOption 'load_plugin:v'
with argument 'hevc_hw'.
Reading option '-color_primaries:v' ... matched as AVOption
'color_primaries:v' with argument 'bt709'.
Reading option '-color_trc:v' ... matched as AVOption 'color_trc:v' with
argument 'bt709'.
Reading option '-colorspace:v' ... matched as AVOption 'colorspace:v' with
argument 'bt709'.
Reading option '-metadata:s:v' ... matched as option 'metadata' (add
metadata) with argument 'title='.
Reading option '-disposition:v' ... matched as option 'disposition'
(disposition) with argument 'default'.
Reading option '-map' ... matched as option 'map' (set input stream
mapping) with argument '0:1'.
Reading option '-c:a:0' ... matched as option 'c' (codec name) with
argument 'copy'.
Reading option '-metadata:s:a:0' ... matched as option 'metadata' (add
metadata) with argument 'title='.
Reading option '-disposition:a:0' ... matched as option 'disposition'
(disposition) with argument 'default'.
Reading option '-sn' ... matched as option 'sn' (disable subtitle) with
argument '1'.
Reading option '-metadata:g' ... 

Re: [FFmpeg-user] Compilation Guide / MSVC on Wiki

2020-12-02 Thread Andy Sheimo
Adding on to what Gyan stated, if you really want to build your own there
are several projects on github that work well and could help you further
your education.

https://github.com/rdp/ffmpeg-windows-build-helpers

https://github.com/m-ab-s/media-autobuild_suite

good luck
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

Re: [FFmpeg-user] Uninstalling ffmpeg

2020-12-02 Thread Andy Sheimo
>
>
> i just don't get the stupidity of the OP which can be solved by a little
> child within 2 minutes of thinking in case of a slow brain
>
> having a static binary somewhere is a no-brainer - period
>

Actually having a static binary is not a no brainer. I know that I use a
static binary and I can make said static binary jump through hoops, but I
can't tell you why I use a static binary or the difference between that and
a shared binary. Someday I should probably learn but as of today I don't
know. if that makes me "a little child" with "a slow brain" then said
person is brilliant.

Also not everyone has great google-fu, sometimes finding the right keywords
is difficult, so in some cases why not ask a group of people that use the
software all the time? They will be able to answer quickly.

I've asked questions here and gotten zero responses, does that mean I have
been shunned? I doubt it, it's more likely that I have asked something that
no one has an answer for. Does that make everyone on this list "a little
child"?

Perspective is everything, I suggest you re-evaluate yours.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

[FFmpeg-user] HW 8bit to 10bit conversion

2020-11-22 Thread Andy Sheimo
Is it possible in a full hardware pipeline i.e. -hwaccel either nvidia or
intel(qsv) to convert a video from 8bit to 10bit. Currently we get errors:

Impossible to convert between the formats supported by the filter
'Parsed_null_0' and the filter 'auto_scaler_0'
Error reinitializing filters!
Failed to inject frame into filter network: Function not implemented
Error while processing the decoded data for stream #0:0

ffmpeg -loglevel error -stats -hwaccel qsv -c:v h264_qsv -i
 -map 0:0 -c:v hevc_qsv -pix_fmt:v p010le -b:v 6000k
-maxrate:v 18000k -load_plugin:v hevc_hw -color_primaries:v bt709
-color_trc:v bt709 -colorspace:v bt709 -metadata:s:v title\=
-disposition:v default -map 0:1 -c:a:0 ac3 -b:a:0 640k -metadata:s:a:0
title\= -disposition:a:0 default -sn -metadata:g title\= -default_mode
passthrough 
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

[FFmpeg-user] Fwd: Yadif_cuda and Pix_fmt

2020-09-14 Thread Andy Sheimo
I sent this message a couple times with zero response. Is there anyone that
can help with using NVDEC for decoding, converting 8bit to 10bit on the
GPU, then using NVENC to encode the video?


If I understand correctly, you want to first convert to 10 bit and then
> upload
> to cuda (and nvenc).


I am trying to keep the transcode completely on the GPU using CUDA to
decode then NVENC to encode, avoiding sending the data to the cpu and back
again.



> The "pix_fmt" option will try to convert the output of
> the filterchain which is impossible in your command line, you have to
> insert the format filter into the filterchain.
>
> Could you provide an example or point me toward documentation to help me
> understand how to do that please.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

Re: [FFmpeg-user] Yadif_cuda and Pix_fmt

2020-08-31 Thread Andy Sheimo
If I understand correctly, you want to first convert to 10 bit and then
> upload
> to cuda (and nvenc).


I am trying to keep the transcode completely on the GPU using CUDA to
decode then NVENC to encode, avoiding sending the data to the cpu and back
again.



> The "pix_fmt" option will try to convert the output of
> the filterchain which is impossible in your command line, you have to
> insert the format filter into the filterchain.
>
> Could you provide an example or point me toward documentation to help me
> understand how to do that please.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

Re: [FFmpeg-user] Yadif_cuda and Pix_fmt

2020-08-25 Thread Andy Sheimo
>
> If I understand correctly, you want to first convert to 10 bit and then
> upload
> to cuda (and nvenc).


I am trying to keep the transcode completely on the GPU using CUDA to
decode then NVENC to encode, avoiding sending the data to the cpu and back
again.



> The "pix_fmt" option will try to convert the output of
> the filterchain which is impossible in your command line, you have to
> insert the format filter into the filterchain.
>
> Could you provide an example or point me toward documentation to help me
> understand how to do that please.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

Re: [FFmpeg-user] Yadif_cuda and Pix_fmt

2020-08-25 Thread Andy Sheimo
Apologies for forgetting the command and output

ffmpeg -loglevel debug -stats -hwaccel cuda -i "F:\\Remuxed\\Robin Hood
Special Edition 2013\\Oo-de-lally Disney Sing-Along Song-featurette.mkv"
-map 0:0 -filter:v "yadif_cuda=deint=interlaced" -c:v hevc_nvenc -pix_fmt:v
p010le -b:v 1500k -maxrate:v 4500k -rc:v vbr_hq -spatial_aq:v 1
-color_primaries:v smpte170m -color_trc:v bt709 -colorspace:v smpte170m
-metadata:s:v "title=" -disposition:v default -map 0:1 -c:a:0 copy
-disposition:a:0 default -map 0:2 -c:s:0 copy -disposition:s:0 0
-metadata:g "title=" "Oo-de-lally Disney Sing-Along Song-featurette.mkv"
ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 10.2.1 (GCC) 20200726
  configuration: --enable-gpl --enable-version3 --enable-sdl2
--enable-fontconfig --enable-gnutls --enable-iconv --enable-libass
--enable-libdav1d --enable-libbluray --enable-libfreetype
--enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy
--enable-libsoxr --enable-libsrt --enable-libtheora --enable-libtwolame
--enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264
--enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma
--enable-zlib --enable-gmp --enable-libvidstab --enable-libvmaf
--enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa
--enable-libspeex --enable-libxvid --enable-libaom --enable-libgsm
--enable-librav1e --disable-w32threads --enable-libmfx --enable-ffnvcodec
--enable-cuda-llvm --enable-cuvid --enable-d3d11va --enable-nvenc
--enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt
--enable-amf
  libavutil  56. 51.100 / 56. 51.100
  libavcodec 58. 91.100 / 58. 91.100
  libavformat58. 45.100 / 58. 45.100
  libavdevice58. 10.100 / 58. 10.100
  libavfilter 7. 85.100 /  7. 85.100
  libswscale  5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
  libpostproc55.  7.100 / 55.  7.100
Splitting the commandline.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging
level) with argument 'debug'.
Reading option '-stats' ... matched as option 'stats' (print progress
report during encoding) with argument '1'.
Reading option '-hwaccel' ... matched as option 'hwaccel' (use HW
accelerated decoding) with argument 'cuda'.
Reading option '-i' ... matched as input url with argument
'F:\\Remuxed\\Robin Hood Special Edition 2013\\Oo-de-lally Disney
Sing-Along Song-featurette.mkv'.
Reading option '-map' ... matched as option 'map' (set input stream
mapping) with argument '0:0'.
Reading option '-filter:v' ... matched as option 'filter' (set stream
filtergraph) with argument 'yadif_cuda=deint=interlaced'.
Reading option '-c:v' ... matched as option 'c' (codec name) with argument
'hevc_nvenc'.
Reading option '-pix_fmt:v' ... matched as option 'pix_fmt' (set pixel
format) with argument 'p010le'.
Reading option '-b:v' ... matched as option 'b' (video bitrate (please use
-b:v)) with argument '1500k'.
Reading option '-maxrate:v' ... matched as AVOption 'maxrate:v' with
argument '4500k'.
Reading option '-rc:v' ... matched as AVOption 'rc:v' with argument
'vbr_hq'.
Reading option '-spatial_aq:v' ... matched as AVOption 'spatial_aq:v' with
argument '1'.
Reading option '-color_primaries:v' ... matched as AVOption
'color_primaries:v' with argument 'smpte170m'.
Reading option '-color_trc:v' ... matched as AVOption 'color_trc:v' with
argument 'bt709'.
Reading option '-colorspace:v' ... matched as AVOption 'colorspace:v' with
argument 'smpte170m'.
Reading option '-metadata:s:v' ... matched as option 'metadata' (add
metadata) with argument 'title='.
Reading option '-disposition:v' ... matched as option 'disposition'
(disposition) with argument 'default'.
Reading option '-map' ... matched as option 'map' (set input stream
mapping) with argument '0:1'.
Reading option '-c:a:0' ... matched as option 'c' (codec name) with
argument 'copy'.
Reading option '-disposition:a:0' ... matched as option 'disposition'
(disposition) with argument 'default'.
Reading option '-map' ... matched as option 'map' (set input stream
mapping) with argument '0:2'.
Reading option '-c:s:0' ... matched as option 'c' (codec name) with
argument 'copy'.
Reading option '-disposition:s:0' ... matched as option 'disposition'
(disposition) with argument '0'.
Reading option '-metadata:g' ... matched as option 'metadata' (add
metadata) with argument 'title='.
Reading option 'Oo-de-lally Disney Sing-Along Song-featurette.mkv' ...
matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument debug.
Applying option stats (print progress report during encoding) with argument
1.
Successfully parsed a group of options.
Parsing a group of options: input url F:\\Remuxed\\Robin Hood Special
Edition 2013\\Oo-de-lally Disney Sing-Along Song-featurette.mkv.
Applying option hwaccel (use HW 

[FFmpeg-user] Yadif_cuda and Pix_fmt

2020-08-24 Thread Andy Sheimo
I'm trying to use yadif_cuda during a transcode along with converting from
8bit to 10bit. The process errors out:

Impossible to convert between the formats supported by the filter
'Parsed_yadif_cuda_0' and the filter 'auto_scaler_0'
Error reinitializing filters!
Failed to inject frame into filter network: Function not implemented
Error while processing the decoded data for stream #0:0

If I don't set the pix_fmt then the transcode works without issue. I'm
trying to understand why I am getting that failure. It would seem to be
that the yadif_cuda filter would take the input stream, perform the
deinterlacing then the hevc_nvenc encoder should accept pix_fmt p010le.
What am I missing here.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

Re: [FFmpeg-user] question about fps filter

2020-05-27 Thread Andy Sheimo
The output file is how I noticed the issue it was reporting original frame
rate as 24000/1001 and current frame rate as 3/1001.

On Wed, May 27, 2020 at 1:43 AM Edward Park  wrote:

> Hi,
> > I found this in the debug output and am not sure why it sees what was
> > passed by the command line but then is ignored in the filter graph can
> > someone help me understand please? The complete debug output is available
> > but too big to include here.
> >
> > [Parsed_yadif_cuda_0 @ 0220ac5561c0] Setting 'deint' to value
> > 'interlaced'
> > [Parsed_fps_1 @ 0220ac74a500] Setting 'fps' to value '24000/1001'
> > [Parsed_fps_1 @ 0220ac74a500] fps=24000/1001
> > [graph 0 input from stream 0:0 @ 0220ac749f40] Setting 'video_size'
> to
> > value '720x480'
> > [graph 0 input from stream 0:0 @ 0220ac749f40] Setting 'pix_fmt' to
> > value '119'
> > [graph 0 input from stream 0:0 @ 0220ac749f40] Setting 'time_base' to
> > value '1/1000'
> > [graph 0 input from stream 0:0 @ 0220ac749f40] Setting 'pixel_aspect'
> > to value '186/157'
> > [graph 0 input from stream 0:0 @ 0220ac749f40] Setting 'frame_rate'
> to
> > value '3/1001'
> > [graph 0 input from stream 0:0 @ 0220ac749f40] w:720 h:480
> pixfmt:cuda
> > tb:1/1000 fr:3/1001 sar:186/157
>
> This doesn't necessarily mean the fps was ignored, it just means the input
> has that frame rate. As you've said it looks like the argument to the fps
> filter was parsed correctly, the message being logged before doesn't mean
> anything (it wasn't later overridden to 3/1001 or anything). Is the
> output file 3/1001 fps?
>
> Regards,
> Ted Park
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://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
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

Re: [FFmpeg-user] question about fps filter

2020-05-26 Thread Andy Sheimo
Thanks for the info Moritz that is helpful to me. I'll keep looking at
things and see if my issue goes away in the next couple weeks.

-Andy

On Tue, May 26, 2020 at 2:27 AM Moritz Barsnick  wrote:

> Hi Andy,
>
> On Mon, May 25, 2020 at 20:43:03 -0400, Andy Sheimo wrote:
> > How can I check if this version contains the changes you reference?
> > > ffmpeg.exe -version
> > > ffmpeg version N-97877-g1e8ed181e3-ffmpeg-windows-build-helpers
> Copyright (c) 2000-2020 the FFmpeg developers
>
> Simply speaking, by checking which git commit that version was built
> from. The so-called hash of the git commit is the hexadecimal part
> after the 'g' in the version:
> 1e8ed181e3
> (or rather, a shortened version of the hash - but it doesn't matter
> here).
>
> > >> What version of ffmpeg are you using?
> > >> There have been recent updates to the NVENC encoder's implementation
> in
> > >> ffmpeg that better handle frame rate, such as this commit:
> > >>
> > >>
> https://git.ffmpeg.org/gitweb/ffmpeg.git/commit/b18fd2b95b2fea10f0b5381333a1b4c032f010bc
> > >> Use the latest build and retest.
>
> If you replace the base part of this URL with said hash, as such:
> https://git.ffmpeg.org/gitweb/ffmpeg.git/commit/1e8ed181e3
> you will see the corresponding commit, and that you are using a build
> which includes something committed on Fri, 22 May 2020, while Dennis's
> link referenced a change made on Fri, 15 May 2020. So what you are
> using includes what Dennis pointed out.
>
> (In reality, it may be more complicated, because git isn't guaranteed
> to be linear, but this method suffices for checking how current a build
> is.)
>
> Cheers,
> Moritz
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://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
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

Re: [FFmpeg-user] question about fps filter

2020-05-25 Thread Andy Sheimo
How can I check if this version contains the changes you reference?

On Fri, May 22, 2020 at 9:07 PM Andy Sheimo  wrote:

> using this version created today using
> https://github.com/rdp/ffmpeg-windows-build-helpers
>
> ffmpeg.exe -version
> ffmpeg version N-97877-g1e8ed181e3-ffmpeg-windows-build-helpers Copyright
> (c) 2000-2020 the FFmpeg developers
> built with gcc 8.3.0 (GCC)
> configuration: --pkg-config=pkg-config --pkg-config-flags=--static
> --extra-version=ffmpeg-windows-build-helpers --enable-version3
> --disable-debug --disable-w32threads --arch=x86_64 --target-os=mingw32
> --cross-prefix=/home/asheimo/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/bin/x86_64-w64-mingw32-
> --enable-libcaca --enable-gray --enable-libtesseract --enable-fontconfig
> --enable-gmp --enable-gnutls --enable-libass --enable-libbluray
> --enable-libbs2b --enable-libflite --enable-libfreetype --enable-libfribidi
> --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug
> --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
> --enable-libopus --enable-libsnappy --enable-libsoxr --enable-libspeex
> --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc
> --enable-libvorbis --enable-libwebp --enable-libzimg --enable-libzvbi
> --enable-libmysofa --enable-libopenjpeg --enable-libopenh264
> --enable-liblensfun --enable-libvmaf --enable-libsrt --enable-demuxer=dash
> --enable-libxml2 --enable-opengl --enable-libdav1d --enable-cuda-llvm
> --enable-libsvthevc --enable-libaom --enable-libvpx --enable-nvenc
> --enable-nvdec --extra-libs=-lharfbuzz --extra-libs=-lm
> --extra-libs=-lpthread --extra-cflags=-DLIBTWOLAME_STATIC
> --extra-cflags=-DMODPLUG_STATIC --extra-cflags=-DCACA_STATIC --enable-amf
> --enable-libmfx --enable-gpl --enable-frei0r --enable-filter=frei0r
> --enable-librubberband --enable-libvidstab --enable-libx264
> --enable-libx265 --enable-libxvid --enable-libxavs --enable-avresample
> --extra-cflags='-mtune=generic' --extra-cflags=-O3 --enable-static
> --disable-shared
> --prefix=/home/asheimo/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32
> libavutil  56. 46.100 / 56. 46.100
> libavcodec 58. 87.100 / 58. 87.100
> libavformat58. 43.100 / 58. 43.100
> libavdevice58.  9.103 / 58.  9.103
> libavfilter 7. 82.100 /  7. 82.100
> libavresample   4.  0.  0 /  4.  0.  0
> libswscale  5.  6.101 /  5.  6.101
> libswresample   3.  6.100 /  3.  6.100
> libpostproc    55.  6.100 / 55.  6.100
>
> On Fri, May 22, 2020 at 6:24 PM Dennis Mungai  wrote:
>
>> On Sat, 23 May 2020 at 01:07, Andy Sheimo  wrote:
>>
>> > I am using the command line seen here but the fps filter is being
>> ignored.
>> >
>> > ffmpeg.exe -loglevel debug -stats -hwaccel cuda -hwaccel_output_format
>> cuda
>> > -i "Evanescence - Anywhere but Home.mkv" -map 0:0 -filter:v
>> > yadif_cuda=deint=interlaced,fps=24000/1001 -c:v h264_nvenc -b:v 2000k
>> > -maxrate:v 6000k -rc:v vbr_hq -spatial-aq:v 1 -temporal-aq:v 1
>> -profile:v
>> > high -color_primaries:v smpte170m -color_trc:v bt709 -colorspace:v
>> > smpte170m -metadata:s:v title= -disposition:v default -map 0:1 -c:a:0
>> eac3
>> > -b:a:0 256k -metadata:s:a:0 title= -disposition:a:0 default -map 0:2
>> -c:a:1
>> > copy -metadata:s:a:1 title= -disposition:a:1 0 -sn -metadata:g title=
>> > "Evanescence - Anywhere but Home 2.mkv"
>> >
>> > I found this in the debug output and am not sure why it sees what was
>> > passed by the command line but then is ignored in the filter graph can
>> > someone help me understand please? The complete debug output is
>> available
>> > but too big to include here.
>> >
>> > [Parsed_yadif_cuda_0 @ 0220ac5561c0] Setting 'deint' to value
>> > 'interlaced'
>> > [Parsed_fps_1 @ 0220ac74a500] Setting 'fps' to value '24000/1001'
>> > [Parsed_fps_1 @ 0220ac74a500] fps=24000/1001
>> > [graph 0 input from stream 0:0 @ 0220ac749f40] Setting 'video_size'
>> to
>> > value '720x480'
>> > [graph 0 input from stream 0:0 @ 0220ac749f40] Setting 'pix_fmt' to
>> > value '119'
>> > [graph 0 input from stream 0:0 @ 0220ac749f40] Setting 'time_base'
>> to
>> > value '1/1000'
>> > [graph 0 input from stream 0:0 @ 0220ac749f40] Setting
>> 'pixel_aspect'
>> > to value '186/157'
>> > [graph 0 input from stream 0:0 @ 0220ac749f40] Setting 'frame_rate'
>> to
>> > value '3/1001'
>> > [graph 0 input from stream 0:0 @ 0220ac749f40] w:720 h

Re: [FFmpeg-user] yadif-cuda issues

2020-05-23 Thread Andy Sheimo
Thanks for looking into this.

On Sat, May 23, 2020 at 12:12 AM Kyle Schwarz  wrote:

> I worked with Rodger to address this, and it's been resolved in his
> patch 'compat/cuda/ptx2c: fix BSD sed compatibility'
>
> It's sitting in the devel list, but hopefully it'll be committed soon
> to fix this.
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://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
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

Re: [FFmpeg-user] question about fps filter

2020-05-22 Thread Andy Sheimo
using this version created today using
https://github.com/rdp/ffmpeg-windows-build-helpers

ffmpeg.exe -version
ffmpeg version N-97877-g1e8ed181e3-ffmpeg-windows-build-helpers Copyright
(c) 2000-2020 the FFmpeg developers
built with gcc 8.3.0 (GCC)
configuration: --pkg-config=pkg-config --pkg-config-flags=--static
--extra-version=ffmpeg-windows-build-helpers --enable-version3
--disable-debug --disable-w32threads --arch=x86_64 --target-os=mingw32
--cross-prefix=/home/asheimo/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/bin/x86_64-w64-mingw32-
--enable-libcaca --enable-gray --enable-libtesseract --enable-fontconfig
--enable-gmp --enable-gnutls --enable-libass --enable-libbluray
--enable-libbs2b --enable-libflite --enable-libfreetype --enable-libfribidi
--enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug
--enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libopus --enable-libsnappy --enable-libsoxr --enable-libspeex
--enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc
--enable-libvorbis --enable-libwebp --enable-libzimg --enable-libzvbi
--enable-libmysofa --enable-libopenjpeg --enable-libopenh264
--enable-liblensfun --enable-libvmaf --enable-libsrt --enable-demuxer=dash
--enable-libxml2 --enable-opengl --enable-libdav1d --enable-cuda-llvm
--enable-libsvthevc --enable-libaom --enable-libvpx --enable-nvenc
--enable-nvdec --extra-libs=-lharfbuzz --extra-libs=-lm
--extra-libs=-lpthread --extra-cflags=-DLIBTWOLAME_STATIC
--extra-cflags=-DMODPLUG_STATIC --extra-cflags=-DCACA_STATIC --enable-amf
--enable-libmfx --enable-gpl --enable-frei0r --enable-filter=frei0r
--enable-librubberband --enable-libvidstab --enable-libx264
--enable-libx265 --enable-libxvid --enable-libxavs --enable-avresample
--extra-cflags='-mtune=generic' --extra-cflags=-O3 --enable-static
--disable-shared
--prefix=/home/asheimo/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32
libavutil  56. 46.100 / 56. 46.100
libavcodec 58. 87.100 / 58. 87.100
libavformat58. 43.100 / 58. 43.100
libavdevice58.  9.103 / 58.  9.103
libavfilter 7. 82.100 /  7. 82.100
libavresample   4.  0.  0 /  4.  0.  0
libswscale  5.  6.101 /  5.  6.101
libswresample   3.  6.100 /  3.  6.100
libpostproc55.  6.100 / 55.  6.100

On Fri, May 22, 2020 at 6:24 PM Dennis Mungai  wrote:

> On Sat, 23 May 2020 at 01:07, Andy Sheimo  wrote:
>
> > I am using the command line seen here but the fps filter is being
> ignored.
> >
> > ffmpeg.exe -loglevel debug -stats -hwaccel cuda -hwaccel_output_format
> cuda
> > -i "Evanescence - Anywhere but Home.mkv" -map 0:0 -filter:v
> > yadif_cuda=deint=interlaced,fps=24000/1001 -c:v h264_nvenc -b:v 2000k
> > -maxrate:v 6000k -rc:v vbr_hq -spatial-aq:v 1 -temporal-aq:v 1 -profile:v
> > high -color_primaries:v smpte170m -color_trc:v bt709 -colorspace:v
> > smpte170m -metadata:s:v title= -disposition:v default -map 0:1 -c:a:0
> eac3
> > -b:a:0 256k -metadata:s:a:0 title= -disposition:a:0 default -map 0:2
> -c:a:1
> > copy -metadata:s:a:1 title= -disposition:a:1 0 -sn -metadata:g title=
> > "Evanescence - Anywhere but Home 2.mkv"
> >
> > I found this in the debug output and am not sure why it sees what was
> > passed by the command line but then is ignored in the filter graph can
> > someone help me understand please? The complete debug output is available
> > but too big to include here.
> >
> > [Parsed_yadif_cuda_0 @ 0220ac5561c0] Setting 'deint' to value
> > 'interlaced'
> > [Parsed_fps_1 @ 0220ac74a500] Setting 'fps' to value '24000/1001'
> > [Parsed_fps_1 @ 0220ac74a500] fps=24000/1001
> > [graph 0 input from stream 0:0 @ 0220ac749f40] Setting 'video_size'
> to
> > value '720x480'
> > [graph 0 input from stream 0:0 @ 0220ac749f40] Setting 'pix_fmt' to
> > value '119'
> > [graph 0 input from stream 0:0 @ 0220ac749f40] Setting 'time_base' to
> > value '1/1000'
> > [graph 0 input from stream 0:0 @ 0220ac749f40] Setting 'pixel_aspect'
> > to value '186/157'
> > [graph 0 input from stream 0:0 @ 0220ac749f40] Setting 'frame_rate'
> to
> > value '3/1001'
> > [graph 0 input from stream 0:0 @ 0220ac749f40] w:720 h:480
> pixfmt:cuda
> > tb:1/1000 fr:3/1001 sar:186/157
> > [format @ 0220ac74bac0] Setting 'pix_fmts' to value
> > 'yuv420p|nv12|p010le|yuv444p|p016le|yuv444p16le|bgr0|rgb0|cuda|d3d11'
> > [AVFilterGraph @ 0220ac511d80] query_formats: 5 queried, 4 merged, 0
> > already done, 0 delayed
> > [h264_nvenc @ 0220ac561540] Using input frames context (format cuda)
> > with h264_nvenc encoder.
> > ___
> >
>
> 

[FFmpeg-user] question about fps filter

2020-05-22 Thread Andy Sheimo
I am using the command line seen here but the fps filter is being ignored.

ffmpeg.exe -loglevel debug -stats -hwaccel cuda -hwaccel_output_format cuda
-i "Evanescence - Anywhere but Home.mkv" -map 0:0 -filter:v
yadif_cuda=deint=interlaced,fps=24000/1001 -c:v h264_nvenc -b:v 2000k
-maxrate:v 6000k -rc:v vbr_hq -spatial-aq:v 1 -temporal-aq:v 1 -profile:v
high -color_primaries:v smpte170m -color_trc:v bt709 -colorspace:v
smpte170m -metadata:s:v title= -disposition:v default -map 0:1 -c:a:0 eac3
-b:a:0 256k -metadata:s:a:0 title= -disposition:a:0 default -map 0:2 -c:a:1
copy -metadata:s:a:1 title= -disposition:a:1 0 -sn -metadata:g title=
"Evanescence - Anywhere but Home 2.mkv"

I found this in the debug output and am not sure why it sees what was
passed by the command line but then is ignored in the filter graph can
someone help me understand please? The complete debug output is available
but too big to include here.

[Parsed_yadif_cuda_0 @ 0220ac5561c0] Setting 'deint' to value
'interlaced'
[Parsed_fps_1 @ 0220ac74a500] Setting 'fps' to value '24000/1001'
[Parsed_fps_1 @ 0220ac74a500] fps=24000/1001
[graph 0 input from stream 0:0 @ 0220ac749f40] Setting 'video_size' to
value '720x480'
[graph 0 input from stream 0:0 @ 0220ac749f40] Setting 'pix_fmt' to
value '119'
[graph 0 input from stream 0:0 @ 0220ac749f40] Setting 'time_base' to
value '1/1000'
[graph 0 input from stream 0:0 @ 0220ac749f40] Setting 'pixel_aspect'
to value '186/157'
[graph 0 input from stream 0:0 @ 0220ac749f40] Setting 'frame_rate' to
value '3/1001'
[graph 0 input from stream 0:0 @ 0220ac749f40] w:720 h:480 pixfmt:cuda
tb:1/1000 fr:3/1001 sar:186/157
[format @ 0220ac74bac0] Setting 'pix_fmts' to value
'yuv420p|nv12|p010le|yuv444p|p016le|yuv444p16le|bgr0|rgb0|cuda|d3d11'
[AVFilterGraph @ 0220ac511d80] query_formats: 5 queried, 4 merged, 0
already done, 0 delayed
[h264_nvenc @ 0220ac561540] Using input frames context (format cuda)
with h264_nvenc encoder.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

Re: [FFmpeg-user] yadif-cuda issues

2020-05-22 Thread Andy Sheimo
I've been trying those scripts and been getting errors which I have a
ticket open on.

On Fri, May 22, 2020 at 11:43 AM Kyle Schwarz  wrote:

> On Fri May 22 2020 at 06:44:40 Andy Sheimo  wrote:
> > I tried to report this issue to Zeranoe's forums but they have since
> closed
> > down and a message pointing to the official ffmpeg contact messages is in
> > the forums place. Could you please advise if official support for
> > Zeranoe's builds is available here or are windows users trying to use
> those
> > builds out of luck?
>
> So far I'm unable to reproduce this as apparently my GTX 1060 "is lacking
> required capabilities". I tried:
> > ffmpeg -hwaccel nvdec -hwaccel_output_format cuda -i i.mkv -vf
> yadif_cuda=0:-1:1 -c:v h264_nvenc o.mkv
>
> On Tue Apr 21 2020 at 00:43:07, Dennis Mungai 
> wrote:
> > I've seen a similar issue here on the "CUDA_ERROR_INVALID_IMAGE: device
> > kernel image is invalid error" posted on this mailing list related to
> > Zeranoe's builds.
>
> I'm not able to find other mailing list posts that contain
> "CUDA_ERROR_INVALID_IMAGE" related to the Zeranoe builds. There is however
> an
> open bug that contains it (https://trac.ffmpeg.org/ticket/8457), which is
> not
> Windows related.
>
> If this is indeed a Windows/Zeranoe issue, it's rather specific and would
> implicate my cross-compiler itself. I'll need to be able to reproduce this
> to
> confirm, but you could try Rogers build script to see if it happens there
> too.
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://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
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

Re: [FFmpeg-user] yadif-cuda issues

2020-05-21 Thread Andy Sheimo
I tried to report this issue to Zeranoe's forums but they have since closed
down and a message pointing to the official ffmpeg contact messages is in
the forums place. Could you please advise if official support for
Zeranoe's builds is available here or are windows users trying to use those
builds out of luck?

Thanks

On Mon, Apr 20, 2020 at 6:12 PM Andy Sheimo  wrote:

> OK will report. Thanks!
>
> On Mon, Apr 20, 2020 at 6:11 PM Dennis Mungai  wrote:
>
>> On Tue, 21 Apr 2020, 00:59 Andy Sheimo,  wrote:
>>
>> > Here is the output from nvidia-smi:
>> > Mon Apr 20 17:56:48 2020
>> >
>> >
>> +-+
>> > | NVIDIA-SMI 442.92   Driver Version: 442.92   CUDA Version:
>> 10.2
>> >   |
>> >
>> >
>> |---+--+--+
>> > | GPU  NameTCC/WDDM | Bus-IdDisp.A | Volatile
>> Uncorr.
>> > ECC |
>> > | Fan  Temp  Perf  Pwr:Usage/Cap| Memory-Usage | GPU-Util
>> Compute
>> > M. |
>> >
>> >
>> |===+==+==|
>> > |   0  GeForce GTX 106... WDDM  | :01:00.0  On |
>> >  N/A |
>> > | 41%   31CP8 8W / 120W |341MiB /  3072MiB |  0%
>> >  Default |
>> >
>> >
>> +---+--+--+
>> >
>> >
>> >
>> >
>> +-+
>> > | Processes:   GPU
>> > Memory |
>> > |  GPU   PID   Type   Process name Usage
>> >|
>> >
>> >
>> |=|
>> > |0  3588C+G   Insufficient Permissions   N/A
>> >|
>> > |0  5432C+G   ...osoft.LockApp_cw5n1h2txyewy\LockApp.exe N/A
>> >|
>> > |0  6580C+G   ...t_cw5n1h2txyewy\ShellExperienceHost.exe N/A
>> >|
>> > |0  7292C+G   ...3.0.0_x64__8wekyb3d8bbwe\Calculator.exe N/A
>> >|
>> > |0 11704C+G   ...AppData\Local\slack\app-4.4.2\slack.exe N/A
>> >|
>> > |0 12492C+G   ...w5n1h2txyewy\InputApp\TextInputHost.exe N/A
>> >|
>> > |0 13628C+G   ...\bin\cef\cef.win7x64\steamwebhelper.exe N/A
>> >|
>> > |0 13888C+G   ...x64__8wekyb3d8bbwe\Microsoft.Photos.exe N/A
>> >|
>> > |0 13960C+G   C:\Windows\explorer.exeN/A
>> >|
>> > |0 14424C+G   ...s (x86)\DisplayFusion\DisplayFusion.exe N/A
>> >|
>> > |0 15028C+G   ...mmersiveControlPanel\SystemSettings.exe N/A
>> >|
>> > |0 16680C+G   ...6)\Google\Chrome\Application\chrome.exe N/A
>> >|
>> > |0 17068C+G   110.0_x64__8wekyb3d8bbwe\YourPhone.exe N/A
>> >|
>> > |0 18020C+G   ...5n1h2txyewy\StartMenuExperienceHost.exe N/A
>> >|
>> > |0 18268C+G   ...dows.Search_cw5n1h2txyewy\SearchApp.exe N/A
>> >|
>> >
>> >
>> +-+
>> >
>> > 2. the build is a Zeranoe build: ffmpeg-20200417-889ad93-win64-static
>> >
>> > On Mon, Apr 20, 2020 at 5:51 PM Dennis Mungai 
>> wrote:
>> >
>> > > On Tue, 21 Apr 2020 at 00:31, Andy Sheimo  wrote:
>> > >
>> > > > I'm trying to use the yadif_cuda deinterlace but I have not been
>> able
>> > to
>> > > > get it to work. Every option I.ve tried fails, I'm pretty sure I'm
>> > > getting
>> > > > something wrong so I'm looking for some advice.
>> > > >
>> > > > Here is my version:
>> > > > ffmpeg version git-2020-04-17-889ad93 Copyright (c) 2000-2020 the
>> > FFmpeg
>> > > > developers
>> > > > built with gcc 9.3.1 (GCC) 20200328
>> > > > configuration: --enable-gpl --enable-version3 --enable-sdl2
>> > > > --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass
>> > > > --enable-libdav1d --enable-libbluray --enable-libfreetype
>> > > > --enable-

Re: [FFmpeg-user] yadif-cuda issues

2020-04-20 Thread Andy Sheimo
OK will report. Thanks!

On Mon, Apr 20, 2020 at 6:11 PM Dennis Mungai  wrote:

> On Tue, 21 Apr 2020, 00:59 Andy Sheimo,  wrote:
>
> > Here is the output from nvidia-smi:
> > Mon Apr 20 17:56:48 2020
> >
> >
> +-+
> > | NVIDIA-SMI 442.92   Driver Version: 442.92   CUDA Version: 10.2
> >   |
> >
> >
> |---+--+--+
> > | GPU  NameTCC/WDDM | Bus-IdDisp.A | Volatile Uncorr.
> > ECC |
> > | Fan  Temp  Perf  Pwr:Usage/Cap| Memory-Usage | GPU-Util
> Compute
> > M. |
> >
> >
> |===+==+==|
> > |   0  GeForce GTX 106... WDDM  | :01:00.0  On |
> >  N/A |
> > | 41%   31CP8 8W / 120W |341MiB /  3072MiB |  0%
> >  Default |
> >
> >
> +---+--+--+
> >
> >
> >
> >
> +-+
> > | Processes:   GPU
> > Memory |
> > |  GPU   PID   Type   Process name Usage
> >|
> >
> >
> |=|
> > |0  3588C+G   Insufficient Permissions   N/A
> >|
> > |0  5432C+G   ...osoft.LockApp_cw5n1h2txyewy\LockApp.exe N/A
> >|
> > |0  6580C+G   ...t_cw5n1h2txyewy\ShellExperienceHost.exe N/A
> >|
> > |0  7292C+G   ...3.0.0_x64__8wekyb3d8bbwe\Calculator.exe N/A
> >|
> > |0 11704C+G   ...AppData\Local\slack\app-4.4.2\slack.exe N/A
> >|
> > |0 12492C+G   ...w5n1h2txyewy\InputApp\TextInputHost.exe N/A
> >|
> > |0 13628C+G   ...\bin\cef\cef.win7x64\steamwebhelper.exe N/A
> >|
> > |0 13888C+G   ...x64__8wekyb3d8bbwe\Microsoft.Photos.exe N/A
> >|
> > |0 13960C+G   C:\Windows\explorer.exeN/A
> >|
> > |0 14424C+G   ...s (x86)\DisplayFusion\DisplayFusion.exe N/A
> >|
> > |0 15028C+G   ...mmersiveControlPanel\SystemSettings.exe N/A
> >|
> > |0 16680C+G   ...6)\Google\Chrome\Application\chrome.exe N/A
> >|
> > |0 17068C+G   110.0_x64__8wekyb3d8bbwe\YourPhone.exe N/A
> >|
> > |0 18020C+G   ...5n1h2txyewy\StartMenuExperienceHost.exe N/A
> >|
> > |0 18268C+G   ...dows.Search_cw5n1h2txyewy\SearchApp.exe N/A
> >|
> >
> >
> +-+
> >
> > 2. the build is a Zeranoe build: ffmpeg-20200417-889ad93-win64-static
> >
> > On Mon, Apr 20, 2020 at 5:51 PM Dennis Mungai  wrote:
> >
> > > On Tue, 21 Apr 2020 at 00:31, Andy Sheimo  wrote:
> > >
> > > > I'm trying to use the yadif_cuda deinterlace but I have not been able
> > to
> > > > get it to work. Every option I.ve tried fails, I'm pretty sure I'm
> > > getting
> > > > something wrong so I'm looking for some advice.
> > > >
> > > > Here is my version:
> > > > ffmpeg version git-2020-04-17-889ad93 Copyright (c) 2000-2020 the
> > FFmpeg
> > > > developers
> > > > built with gcc 9.3.1 (GCC) 20200328
> > > > configuration: --enable-gpl --enable-version3 --enable-sdl2
> > > > --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass
> > > > --enable-libdav1d --enable-libbluray --enable-libfreetype
> > > > --enable-libmp3lame --enable-libopencore-amrnb
> > --enable-libopencore-amrwb
> > > > --enable-libopenjpeg --enable-libopus --enable-libshine
> > > --enable-libsnappy
> > > > --enable-libsoxr --enable-libsrt --enable-libtheora
> --enable-libtwolame
> > > > --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264
> > > > --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma
> > > > --enable-zlib --enable-gmp --enable-libvidstab --enable-libvmaf
> > > > --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa
> > > > --enable-libspeex --enable-libxvid --enable-libaom
> --disable-w32threads
> > > > --enable-libmfx --enable-ffnvcodec --enable-cuda-llvm --enable

Re: [FFmpeg-user] yadif-cuda issues

2020-04-20 Thread Andy Sheimo
Here is the output from nvidia-smi:
Mon Apr 20 17:56:48 2020
+-+
| NVIDIA-SMI 442.92   Driver Version: 442.92   CUDA Version: 10.2
  |
|---+--+--+
| GPU  NameTCC/WDDM | Bus-IdDisp.A | Volatile Uncorr.
ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap| Memory-Usage | GPU-Util  Compute
M. |
|===+==+==|
|   0  GeForce GTX 106... WDDM  | :01:00.0  On |
 N/A |
| 41%   31CP8 8W / 120W |341MiB /  3072MiB |  0%
 Default |
+---+--+--+


+-+
| Processes:   GPU
Memory |
|  GPU   PID   Type   Process name Usage
   |
|=|
|0  3588C+G   Insufficient Permissions   N/A
   |
|0  5432C+G   ...osoft.LockApp_cw5n1h2txyewy\LockApp.exe N/A
   |
|0  6580C+G   ...t_cw5n1h2txyewy\ShellExperienceHost.exe N/A
   |
|0  7292C+G   ...3.0.0_x64__8wekyb3d8bbwe\Calculator.exe N/A
   |
|0 11704C+G   ...AppData\Local\slack\app-4.4.2\slack.exe N/A
   |
|0 12492C+G   ...w5n1h2txyewy\InputApp\TextInputHost.exe N/A
   |
|0 13628C+G   ...\bin\cef\cef.win7x64\steamwebhelper.exe N/A
   |
|0 13888C+G   ...x64__8wekyb3d8bbwe\Microsoft.Photos.exe N/A
   |
|0 13960C+G   C:\Windows\explorer.exeN/A
   |
|0 14424C+G   ...s (x86)\DisplayFusion\DisplayFusion.exe N/A
   |
|0 15028C+G   ...mmersiveControlPanel\SystemSettings.exe N/A
   |
|0 16680C+G   ...6)\Google\Chrome\Application\chrome.exe N/A
   |
|0 17068C+G   110.0_x64__8wekyb3d8bbwe\YourPhone.exe N/A
   |
|0 18020C+G   ...5n1h2txyewy\StartMenuExperienceHost.exe N/A
   |
|0 18268C+G   ...dows.Search_cw5n1h2txyewy\SearchApp.exe N/A
   |
+-+

2. the build is a Zeranoe build: ffmpeg-20200417-889ad93-win64-static

On Mon, Apr 20, 2020 at 5:51 PM Dennis Mungai  wrote:

> On Tue, 21 Apr 2020 at 00:31, Andy Sheimo  wrote:
>
> > I'm trying to use the yadif_cuda deinterlace but I have not been able to
> > get it to work. Every option I.ve tried fails, I'm pretty sure I'm
> getting
> > something wrong so I'm looking for some advice.
> >
> > Here is my version:
> > ffmpeg version git-2020-04-17-889ad93 Copyright (c) 2000-2020 the FFmpeg
> > developers
> > built with gcc 9.3.1 (GCC) 20200328
> > configuration: --enable-gpl --enable-version3 --enable-sdl2
> > --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass
> > --enable-libdav1d --enable-libbluray --enable-libfreetype
> > --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
> > --enable-libopenjpeg --enable-libopus --enable-libshine
> --enable-libsnappy
> > --enable-libsoxr --enable-libsrt --enable-libtheora --enable-libtwolame
> > --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264
> > --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma
> > --enable-zlib --enable-gmp --enable-libvidstab --enable-libvmaf
> > --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa
> > --enable-libspeex --enable-libxvid --enable-libaom --disable-w32threads
> > --enable-libmfx --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid
> > --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2
> > --enable-avisynth --enable-libopenmpt --enable-amf
> > libavutil  56. 42.102 / 56. 42.102
> > libavcodec 58. 80.100 / 58. 80.100
> > libavformat58. 42.100 / 58. 42.100
> > libavdevice58.  9.103 / 58.  9.103
> > libavfilter 7. 77.101 /  7. 77.101
> > libswscale  5.  6.101 /  5.  6.101
> > libswresample   3.  6.100 /  3.  6.100
> > libpostproc55.  6.100 / 55.  6.100
> >
> > here are the commands I am using:
> > ffmpeg -loglevel debug -stats -hwaccel nvdec -hwaccel_output_format cuda
> -i
> > "L:\Sheimo_Originals\Star Trek Into Darkness\Star Trek Into Darkness -
> > 1080p.mkv" -map 0:0 -vf yadif_cuda=0:-1:1 -c:v h264_nvenc -map 0:1 -c:a:0
> > eac3 -b:a:0 640k -metadata:s:a:0 title= -disposition:a:0 default -sn
> > -metadata:g title= "Star Trek Into Darkness - 1080p.mkv"
> >
> > or
> > ffmpeg -loglevel debug -stats -hwaccel nvdec -hwaccel_output_format cuda
> -i
> &g

[FFmpeg-user] yadif-cuda issues

2020-04-20 Thread Andy Sheimo
I'm trying to use the yadif_cuda deinterlace but I have not been able to
get it to work. Every option I.ve tried fails, I'm pretty sure I'm getting
something wrong so I'm looking for some advice.

Here is my version:
ffmpeg version git-2020-04-17-889ad93 Copyright (c) 2000-2020 the FFmpeg
developers
built with gcc 9.3.1 (GCC) 20200328
configuration: --enable-gpl --enable-version3 --enable-sdl2
--enable-fontconfig --enable-gnutls --enable-iconv --enable-libass
--enable-libdav1d --enable-libbluray --enable-libfreetype
--enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy
--enable-libsoxr --enable-libsrt --enable-libtheora --enable-libtwolame
--enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264
--enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma
--enable-zlib --enable-gmp --enable-libvidstab --enable-libvmaf
--enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa
--enable-libspeex --enable-libxvid --enable-libaom --disable-w32threads
--enable-libmfx --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid
--enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2
--enable-avisynth --enable-libopenmpt --enable-amf
libavutil  56. 42.102 / 56. 42.102
libavcodec 58. 80.100 / 58. 80.100
libavformat58. 42.100 / 58. 42.100
libavdevice58.  9.103 / 58.  9.103
libavfilter 7. 77.101 /  7. 77.101
libswscale  5.  6.101 /  5.  6.101
libswresample   3.  6.100 /  3.  6.100
libpostproc55.  6.100 / 55.  6.100

here are the commands I am using:
ffmpeg -loglevel debug -stats -hwaccel nvdec -hwaccel_output_format cuda -i
"L:\Sheimo_Originals\Star Trek Into Darkness\Star Trek Into Darkness -
1080p.mkv" -map 0:0 -vf yadif_cuda=0:-1:1 -c:v h264_nvenc -map 0:1 -c:a:0
eac3 -b:a:0 640k -metadata:s:a:0 title= -disposition:a:0 default -sn
-metadata:g title= "Star Trek Into Darkness - 1080p.mkv"

or
ffmpeg -loglevel debug -stats -hwaccel nvdec -hwaccel_output_format cuda -i
"L:\Sheimo_Originals\Star Trek Into Darkness\Star Trek Into Darkness -
1080p.mkv" -map 0:0 -vf yadif_cuda=deint=interlaced -c:v h264_nvenc -map
0:1 -c:a:0 eac3 -b:a:0 640k -metadata:s:a:0 title= -disposition:a:0 default
-sn -metadata:g title= "Star Trek Into Darkness - 1080p.mkv"

or
ffmpeg -loglevel debug -stats -hwaccel nvdec -hwaccel_output_format cuda -i
"L:\Sheimo_Originals\Star Trek Into Darkness\Star Trek Into Darkness -
1080p.mkv" -map 0:0 -filter:v yadif_cuda=deint=interlaced -c:v h264_nvenc
-b:v 2000k -maxrate:v 6000k -rc:v vbr_hq -profile:v high -color_primaries:v
smpte170m -color_trc:v bt709 -colorspace:v smpte170m -metadata:s:v title=
-disposition:v default -map 0:1 -c:a:0 eac3 -b:a:0 640k -metadata:s:a:0
title= -disposition:a:0 default -sn -metadata:g title= "Star Trek Into
Darkness - 1080p.mkv"

The most common error I receive is:
[Parsed_yadif_cuda_0 @ 020bd180a2c0]
cu->cuModuleLoadData(>cu_module, vf_yadif_cuda_ptx) failed ->
CUDA_ERROR_INVALID_IMAGE: device kernel image is invalid
[Parsed_yadif_cuda_0 @ 020bd180a2c0] Failed to configure output pad on
Parsed_yadif_cuda_0
Error reinitializing filters!
Failed to inject frame into filter network: Generic error in an external
library
Error while processing the decoded data for stream #0:0

full log attached as output.txt

The other common error is:
[auto_scaler_0 @ 020daa1ac880] Setting 'flags' to value 'bicubic'
[auto_scaler_0 @ 020daa1ac880] w:iw h:ih flags:'bicubic' interl:0
[Parsed_yadif_cuda_0 @ 020da98bedc0] auto-inserting filter
'auto_scaler_0' between the filter 'graph 0 input from stream 0:0' and the
filter 'Parsed_yadif_cuda_0'
Impossible to convert between the formats supported by the filter 'graph 0
input from stream 0:0' and the filter 'auto_scaler_0'
Error reinitializing filters!
Failed to inject frame into filter network: Function not implemented
Error while processing the decoded data for stream #0:0

full log attached as output2.txt.

The second error I am pretty sure has to do with me calling some software
filter in a full hardware pipeline but I am unsure what it is. I also heard
rumor of auto_scale being inserted when it doesn't need to be but I will
let the experts tell me if they see that.

My goal is to be able to use yadif_cuda so that I can keep a complete gpu
pipeline. Any and all help is appreciated. Thanks
ffmpeg version git-2020-04-17-889ad93 Copyright (c) 2000-2020 the FFmpeg 
developers
  built with gcc 9.3.1 (GCC) 20200328
  configuration: --enable-gpl --enable-version3 --enable-sdl2 
--enable-fontconfig --enable-gnutls --enable-iconv --enable-libass 
--enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame 
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg 
--enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr 
--enable-libsrt --enable-libtheora --enable-libtwolame --enable-libvpx 
--enable-libwavpack --enable-libwebp --enable-libx264 

Re: [FFmpeg-user] Issue with hwaccel cuvid

2020-04-08 Thread Andy Sheimo
Dennis, Thank you. Lesson learned, check latest builds before submitting
questions. Using the latest static build has resolved the issue.

Cheers, -Andy

On Wed, Apr 8, 2020 at 12:14 PM Dennis Mungai  wrote:

> On Wed, 8 Apr 2020 at 19:04, Andy Sheimo  wrote:
>
> > This still produces the same error;
> >
> > ffmpeg -threads 1 -loglevel verbose -hwaccel cuvid
> > -hwaccel_output_format cuda -c:v mpeg2_cuvid -extra_hw_frames 3 -i
> > "l:\welter_originals\gamera the brave\Latatude Zero-trailer.mkv" -c:a
> copy
> > -c:v h264_nvenc test.mkv
> >
> > But this works to complete the job;
> >
> > ffmpeg -threads 1 -loglevel verbose -hwaccel cuda
> > -hwaccel_output_format cuda -extra_hw_frames 3 -i
> > "l:\welter_originals\gamera the brave\Latatude Zero-trailer.mkv" -c:a
> copy
> > -c:v h264_nvenc test.mkv
> >
> > By not specifying  -c:v mpeg2_cuvid do we know what decoder is being
> used?
> > Is the process still completely in hardware? Do you think this is a
> > limitation of the cuvid decoder?
> >
> > Thanks for your help. -Andy
> >
>
> NVDEC (an alias to the CUDA hwaccel) handles GPU memory quite differently
> from CUVID, and when its' in use, the decoder is not specified.
> CUVID, however, was never a true hwaccel, but rather a "wrapper" that
> "brings up"/initializes a specific decoder by name passed to it via -c:v,
> in a similar fashion to the bring-up seen with QuickSync (-hwaccel qsv).
>
> I cannot speak much about why CUVID is failing on your end. I migrated all
> my workflows to NVDEC an year ago.
>
> Perhaps omitting the hwacccel_output_format with CUVID will help?
>
> Try this:
>
> ffmpeg -threads 1 -loglevel verbose -hwaccel cuvid
> -c:v mpeg2_cuvid -extra_hw_frames 3 -i
> "l:\welter_originals\gamera the brave\Latatude Zero-trailer.mkv" -c:a copy
> -c:v h264_nvenc test.mkv
>
> Then report back.
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://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
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

Re: [FFmpeg-user] Issue with hwaccel cuvid

2020-04-08 Thread Andy Sheimo
This still produces the same error;

ffmpeg -threads 1 -loglevel verbose -hwaccel cuvid
-hwaccel_output_format cuda -c:v mpeg2_cuvid -extra_hw_frames 3 -i
"l:\welter_originals\gamera the brave\Latatude Zero-trailer.mkv" -c:a copy
-c:v h264_nvenc test.mkv

But this works to complete the job;

ffmpeg -threads 1 -loglevel verbose -hwaccel cuda
-hwaccel_output_format cuda -extra_hw_frames 3 -i
"l:\welter_originals\gamera the brave\Latatude Zero-trailer.mkv" -c:a copy
-c:v h264_nvenc test.mkv

By not specifying  -c:v mpeg2_cuvid do we know what decoder is being used?
Is the process still completely in hardware? Do you think this is a
limitation of the cuvid decoder?

Thanks for your help. -Andy

On Wed, Apr 8, 2020 at 11:36 AM Dennis Mungai  wrote:

> On Wed, 8 Apr 2020 at 17:57, Andy Sheimo  wrote:
>
> > I keep getting an error on some files and it appears to be due to a
> > scaler being inserted but I don't know how to fix it. Any help would be
> > appreciated. logging below:
> >
> > K:\Video\GAMERA THE BRAVE>ffmpeg -loglevel verbose -hwaccel cuvid
> > -hwaccel_output_format yuv420p -c:v mpeg2_cuvid -i
> > "l:\welter_originals\gamera the brave\Latatude Zero-trailer.mkv" -c:a
> copy
> > -c:v h264_nvenc test.mkv
> > ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
> >   built with gcc 9.2.1 (GCC) 20200122
> >   configuration: --enable-gpl --enable-version3 --enable-sdl2
> > --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass
> > --enable-libdav1d --enable-libbluray --enable-libfreetype
> > --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
> > --enable-libopenjpeg --enable-libopus --enable-libshine
> --enable-libsnappy
> > --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx
> > --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265
> > --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib
> --enable-gmp
> > --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc
> > --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom
> > --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid
> > --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2
> > --enable-avisynth --enable-libopenmpt
> >   libavutil  56. 31.100 / 56. 31.100
> >   libavcodec 58. 54.100 / 58. 54.100
> >   libavformat58. 29.100 / 58. 29.100
> >   libavdevice58.  8.100 / 58.  8.100
> >   libavfilter 7. 57.100 /  7. 57.100
> >   libswscale  5.  5.100 /  5.  5.100
> >   libswresample   3.  5.100 /  3.  5.100
> >   libpostproc55.  5.100 / 55.  5.100
> > Input #0, matroska,webm, from 'l:\welter_originals\gamera the
> > brave\Latatude Zero-trailer.mkv':
> >   Metadata:
> > encoder : libmakemkv v1.15.0 (1.3.5/1.4.7) win(x64-release)
> > creation_time   : 2020-03-05T18:41:29.00Z
> >   Duration: 00:02:28.75, start: 0.00, bitrate: 4685 kb/s
> > Stream #0:0(eng): Video: mpeg2video (Main), 1 reference frame,
> > yuv420p(tv, top first, left), 720x480 [SAR 32:27 DAR 16:9], SAR 186:157
> DAR
> > 279:157, 29.97 fps, 29.97 tbr, 1k tbn, 59.94 tbc
> > Metadata:
> >   BPS-eng : 4488094
> >   DURATION-eng: 00:02:28.74860
> >   NUMBER_OF_FRAMES-eng: 3567
> >   NUMBER_OF_BYTES-eng: 83449382
> >   SOURCE_ID-eng   : 0100E0
> >   _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.0 win(x64-release)
> >   _STATISTICS_WRITING_DATE_UTC-eng: 2020-03-05 18:41:29
> >   _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
> > SOURCE_ID
> > Stream #0:1(eng): Audio: ac3, 48000 Hz, mono, fltp, 192 kb/s
> (default)
> > Metadata:
> >   title   : Mono
> >   BPS-eng : 192000
> >   DURATION-eng: 00:02:28.70400
> >   NUMBER_OF_FRAMES-eng: 4647
> >   NUMBER_OF_BYTES-eng: 3568896
> >   SOURCE_ID-eng   : 0180BD
> >   _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.0 win(x64-release)
> >   _STATISTICS_WRITING_DATE_UTC-eng: 2020-03-05 18:41:29
> >   _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
> > SOURCE_ID
> > File 'test.mkv' already exists. Overwrite ? [y/N] y
> > [mpeg2_cuvid @ 01ec985dfbc0] Initializing cuvid hwaccel
> > [mpeg2_cuvid @ 01ec985dfbc0] CUVID capabilities for mpeg2_cuvid:
> > [mpeg2_cuvid @ 01ec985dfbc0] 8 bit: supported: 1, min_width: 48,
> > max_width: 4080, min_height: 16, max_height: 4080
> > [mpeg2_cuvid @ 01ec985dfbc0] 10 bit: supported: 0, min_width: 0,
> > max_widt

[FFmpeg-user] Issue with hwaccel cuvid

2020-04-08 Thread Andy Sheimo
I keep getting an error on some files and it appears to be due to a
scaler being inserted but I don't know how to fix it. Any help would be
appreciated. logging below:

K:\Video\GAMERA THE BRAVE>ffmpeg -loglevel verbose -hwaccel cuvid
-hwaccel_output_format yuv420p -c:v mpeg2_cuvid -i
"l:\welter_originals\gamera the brave\Latatude Zero-trailer.mkv" -c:a copy
-c:v h264_nvenc test.mkv
ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 9.2.1 (GCC) 20200122
  configuration: --enable-gpl --enable-version3 --enable-sdl2
--enable-fontconfig --enable-gnutls --enable-iconv --enable-libass
--enable-libdav1d --enable-libbluray --enable-libfreetype
--enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy
--enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx
--enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265
--enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp
--enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc
--enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom
--enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid
--enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2
--enable-avisynth --enable-libopenmpt
  libavutil  56. 31.100 / 56. 31.100
  libavcodec 58. 54.100 / 58. 54.100
  libavformat58. 29.100 / 58. 29.100
  libavdevice58.  8.100 / 58.  8.100
  libavfilter 7. 57.100 /  7. 57.100
  libswscale  5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc55.  5.100 / 55.  5.100
Input #0, matroska,webm, from 'l:\welter_originals\gamera the
brave\Latatude Zero-trailer.mkv':
  Metadata:
encoder : libmakemkv v1.15.0 (1.3.5/1.4.7) win(x64-release)
creation_time   : 2020-03-05T18:41:29.00Z
  Duration: 00:02:28.75, start: 0.00, bitrate: 4685 kb/s
Stream #0:0(eng): Video: mpeg2video (Main), 1 reference frame,
yuv420p(tv, top first, left), 720x480 [SAR 32:27 DAR 16:9], SAR 186:157 DAR
279:157, 29.97 fps, 29.97 tbr, 1k tbn, 59.94 tbc
Metadata:
  BPS-eng : 4488094
  DURATION-eng: 00:02:28.74860
  NUMBER_OF_FRAMES-eng: 3567
  NUMBER_OF_BYTES-eng: 83449382
  SOURCE_ID-eng   : 0100E0
  _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.0 win(x64-release)
  _STATISTICS_WRITING_DATE_UTC-eng: 2020-03-05 18:41:29
  _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
SOURCE_ID
Stream #0:1(eng): Audio: ac3, 48000 Hz, mono, fltp, 192 kb/s (default)
Metadata:
  title   : Mono
  BPS-eng : 192000
  DURATION-eng: 00:02:28.70400
  NUMBER_OF_FRAMES-eng: 4647
  NUMBER_OF_BYTES-eng: 3568896
  SOURCE_ID-eng   : 0180BD
  _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.0 win(x64-release)
  _STATISTICS_WRITING_DATE_UTC-eng: 2020-03-05 18:41:29
  _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
SOURCE_ID
File 'test.mkv' already exists. Overwrite ? [y/N] y
[mpeg2_cuvid @ 01ec985dfbc0] Initializing cuvid hwaccel
[mpeg2_cuvid @ 01ec985dfbc0] CUVID capabilities for mpeg2_cuvid:
[mpeg2_cuvid @ 01ec985dfbc0] 8 bit: supported: 1, min_width: 48,
max_width: 4080, min_height: 16, max_height: 4080
[mpeg2_cuvid @ 01ec985dfbc0] 10 bit: supported: 0, min_width: 0,
max_width: 0, min_height: 0, max_height: 0
[mpeg2_cuvid @ 01ec985dfbc0] 12 bit: supported: 0, min_width: 0,
max_width: 0, min_height: 0, max_height: 0
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg2video (mpeg2_cuvid) -> h264 (h264_nvenc))
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[mpeg2_cuvid @ 01ec985dfbc0] Initializing cuvid hwaccel
[mpeg2_cuvid @ 01ec985dfbc0] Formats: Original: cuda | HW: cuda | SW:
nv12
[graph 0 input from stream 0:0 @ 01ec98632f00] w:720 h:480 pixfmt:cuda
tb:1/1000 fr:3/1001 sar:186/157 sws_param:flags=2
[h264_nvenc @ 01ec985efe00] Loaded Nvenc version 10.0
[h264_nvenc @ 01ec985efe00] Nvenc initialized successfully
Output #0, matroska, to 'test.mkv':
  Metadata:
encoder : Lavf58.29.100
Stream #0:0(eng): Video: h264 (h264_nvenc) (Main), 1 reference frame
(H264 / 0x34363248), cuda(left), 720x480 [SAR 186:157 DAR 279:157],
q=-1--1, 2000 kb/s, 29.97 fps, 1k tbn, 29.97 tbc
Metadata:
  BPS-eng : 4488094
  DURATION-eng: 00:02:28.74860
  NUMBER_OF_FRAMES-eng: 3567
  NUMBER_OF_BYTES-eng: 83449382
  SOURCE_ID-eng   : 0100E0
  _STATISTICS_WRITING_APP-eng: MakeMKV v1.15.0 win(x64-release)
  _STATISTICS_WRITING_DATE_UTC-eng: 2020-03-05 18:41:29
  _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
SOURCE_ID
  encoder : Lavc58.54.100 h264_nvenc
Side data:
  cpb: bitrate max/min/avg: 0/0/200 buffer size: 400 vbv_delay:
-1
Stream #0:1(eng): Audio: ac3 ([0] [0][0] / 0x2000), 48000