Re: [FFmpeg-user] Cant find proper code for using complex filter and overlay with VAAPI

2020-06-07 Thread KoreanFanOfficial
For record with vaapi i use command:

>DRI_PRIME=1 LIBVA_DRIVER_NAME=radeonsi ffmpeg -y -hwaccel vaapi
-vaapi_device /dev/dri/renderD128 -hwaccel_output_format vaapi \
-framerate 30 -video_size 1920x1080 -f x11grab -i :0.0 -f pulse -ac 2 -i
default \
-vf 'hwupload,scale_vaapi=w=1280:h=720:format=nv12' \
-vcodec h264_vaapi -g 60 -sei identifier+timing+recovery_point \
-bsf:v extract_extradata -b:v 3M -maxrate 3M -bf 0 -movflags +faststart
-c:a aac -b:a 128k -ar 44100 \
-f flv vaapi.flv< and it works.

>Try use complex filter with vaapi:
DRI_PRIME=1 LIBVA_DRIVER_NAME=radeonsi ffmpeg -y -hwaccel vaapi
-vaapi_device /dev/dri/renderD128 -hwaccel_output_format vaapi \
-framerate 30 -video_size 1920x1080 -f x11grab -i :0.0 -f pulse -ac 2 -i
default \
-filter_complex \
"[0:v]hwupload,scale_vaapi=w=1280:h=720:format=nv12,setpts=PTS-STARTPTS[bg]"
\
-map "[bg]" -map 1:a -c:v h264_vaapi -g 60 -sei
identifier+timing+recovery_point \
-bsf:v extract_extradata -b:v 3M -maxrate 3M -bf 0 -movflags +faststart
-c:a aac -b:a 128k -ar 44100 \
-f flv vaapi_complex.flv< and it works.

Try use complex filter with vaapi and overlay
1)DRI_PRIME=1 LIBVA_DRIVER_NAME=radeonsi ffmpeg -y -loglevel debug -hwaccel
vaapi -vaapi_device /dev/dri/renderD128 -hwaccel_output_format vaapi \
-framerate 30 -video_size 1920x1080 -f x11grab -i :0.0 -f pulse -ac 2 -i
default -i logo.png \
-filter_complex \
"[0:v]hwupload,scale_vaapi=w=1280:h=720:format=nv12,setpts=PTS-STARTPTS[bg];
\
[bg][2:v]overlay=0:H-h[bg2]" \
-map "[bg2]" -map 1:a -c:v h264_vaapi -g 60 -sei
identifier+timing+recovery_point \
-bsf:v extract_extradata -b:v 3M -maxrate 3M -bf 0 -movflags +faststart
-c:a aac -b:a 128k -ar 44100 \
-f flv test1.flv and i got error:

>DRI_PRIME=1 LIBVA_DRIVER_NAME=radeonsi ffmpeg -y -loglevel debug
-hwaccel vaapi -vaapi_device /dev/dri/renderD128 -hwaccel_output_format
vaapi \
> -framerate 30 -video_size 1920x1080 -f x11grab -i :0.0 -f pulse -ac 2 -i
default -i logo.png \
> -filter_complex \
>
"[0:v]hwupload,scale_vaapi=w=1280:h=720:format=nv12,setpts=PTS-STARTPTS[bg];
\
> [bg][2:v]overlay=0:H-h[bg2]" \
> -map "[bg2]" -map 1:a -c:v h264_vaapi -g 60 -sei
identifier+timing+recovery_point \
> -bsf:v extract_extradata -b:v 3M -maxrate 3M -bf 0 -movflags +faststart
-c:a aac -b:a 128k -ar 44100 \
> -f flv test1.flv
ffmpeg version n4.2.3 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 10.1.0 (GCC)
  configuration: --prefix=/usr --disable-debug --disable-static
--disable-stripping --enable-avisynth --enable-fontconfig --enable-gmp
--enable-gnutls --enable-gpl --enable-ladspa --enable-libaom
--enable-libass --enable-libbluray --enable-libdav1d --enable-libdrm
--enable-libfreetype --enable-libfribidi --enable-libgsm
--enable-libiec61883 --enable-libjack --enable-libmfx --enable-libmodplug
--enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb
--enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libsoxr
--enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora
--enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-libvorbis
--enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265
--enable-libxcb --enable-libxml2 --enable-libxvid --enable-nvdec
--enable-nvenc --enable-omx --enable-shared --enable-version3
  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
Splitting the commandline.
Reading option '-y' ... matched as option 'y' (overwrite output files) with
argument '1'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging
level) with argument 'debug'.
Reading option '-hwaccel' ... matched as option 'hwaccel' (use HW
accelerated decoding) with argument 'vaapi'.
Reading option '-vaapi_device' ... matched as option 'vaapi_device' (set
VAAPI hardware device (DRM path or X11 display name)) with argument
'/dev/dri/renderD128'.
Reading option '-hwaccel_output_format' ... matched as option
'hwaccel_output_format' (select output format used with HW accelerated
decoding) with argument 'vaapi'.
Reading option '-framerate' ... matched as AVOption 'framerate' with
argument '30'.
Reading option '-video_size' ... matched as AVOption 'video_size' with
argument '1920x1080'.
Reading option '-f' ... matched as option 'f' (force format) with argument
'x11grab'.
Reading option '-i' ... matched as input url with argument ':0.0'.
Reading option '-f' ... matched as option 'f' (force format) with argument
'pulse'.
Reading option '-ac' ... matched as option 'ac' (set number of audio
channels) with argument '2'.
Reading option '-i' ... matched as input url with argument 'default'.
Reading option '-i' ... matched as input url with argument 'logo.png'.
Reading option '-filter_complex' ... matched as option 

[FFmpeg-user] Slow seeking for GB-scale MOVs?

2020-06-07 Thread John Hawkinson
When I try to seek within a 5 GB MOV file (24 hours 12 minutes of video; 
someone screwed up) over http, it seems that ffmpeg downloads a lot more data 
than is necessary, and so is fairly slow to start (delay of minutes on a 
medium-speed network connection), seemingly unnecessarily so. In particular, it 
seems that in the search for the moov atom, it may end up downloading the final 
69 MB of the file, and that takes quite a while.

(I'm not quite sure of this -- the http traces from libavformat appear to 
indicate the start of HTTP byte-range queries, but don't indicate  the end of 
such a transfer. For instance, iniially there is a GET for "Range: bytes=0-" 
and shortly thereafter there is a GET for "Range: bytes=605088-" and it's 
clear that the first could not have downloaded the entire 5 GB file before 
turning to the second. So maybe I am missing when http transfer stops and maybe 
that matters here.)

I spent a while staring at libavformat/mov.c and I wasn't able to discern 
exactly how/when it decides to do this seeking, although empirically it would 
appear that the offset it begins to retrieve is a function of the 'sz' reported 
in the 'mdat' trace line, and it finds the 'moov' atom quite quickly. Yet there 
is long delay (again, a minute-ish, depending on connection speed) before any 
playback starts. There are a few stages along the way, with a lot of AvIndex 
output about halfway before playback begins, but that don't seem correlated 
with http GETs.

My example is trying to seek 30 minutes into 
http://mediadownload.iqm2.com/CambridgeMA/2288.mpeg4 , the 5 GB video.
So, for instance:

bash$ ffplay -ss 30:00 -loglevel trace 
http://mediadownload.iqm2.com/CambridgeMA/2288.mpeg4
...
2020-06-07 18:56:30.112945500 nan:  0.000 fd=   0 aq=0KB vq=0KB 
sq=0B f=0/0   
2020-06-07 18:56:30.112945500 Probing mov,mp4,m4a,3gp,3g2,mj2 score:100 
size:2048
2020-06-07 18:56:30.127791500 Probing mp3 score:1 size:2048
2020-06-07 18:56:30.129018500 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f9253000600] Format 
mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100
2020-06-07 18:56:30.129069500 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f9253000600] 
type:'ftyp' parent:'root' sz: 32 8 6124146041
2020-06-07 18:56:30.129287500 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f9253000600] ISO: 
File Type Major Brand: isom
2020-06-07 18:56:30.129304500 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f9253000600] 
type:'mdat' parent:'root' sz: 6050885515 48 6124146041
...
2020-06-07 18:56:30.172001500 [http @ 0x7f9252c2e700] request: GET 
/CambridgeMA/2288.mpeg4 HTTP/1.1
2020-06-07 18:56:30.172002500 User-Agent: Lavf/58.29.100
2020-06-07 18:56:30.172002500 Accept: */*
2020-06-07 18:56:30.172002500 Range: bytes=605088-
2020-06-07 18:56:30.172003500 Connection: close
2020-06-07 18:56:30.172003500 Host: mediadownload.iqm2.com
2020-06-07 18:56:30.172003500 Icy-MetaData: 1
2020-06-07 18:56:30.172003500 
2020-06-07 18:56:30.172004500 
2020-06-07 18:56:30.177046500 nan:  0.000 fd=   0 aq=0KB vq=0KB 
sq=0B f=0/0   
2020-06-07 18:56:30.177046500 [http @ 0x7f9252c2e700] header='HTTP/1.1 206 
Partial Content'
2020-06-07 18:56:30.195744500 [http @ 0x7f9252c2e700] http_code=206
2020-06-07 18:56:30.195745500 [http @ 0x7f9252c2e700] header='Server: Apache'
2020-06-07 18:56:30.195765500 [http @ 0x7f9252c2e700] header='Accept-Ranges: 
bytes'
2020-06-07 18:56:30.195766500 [http @ 0x7f9252c2e700] 
header='Content-Disposition: attachment'
2020-06-07 18:56:30.195766500 [http @ 0x7f9252c2e700] header='Content-Type: 
application/octet-stream'
2020-06-07 18:56:30.195767500 [http @ 0x7f9252c2e700] header='Content-Range: 
bytes 605088-6124146040/6124146041'
2020-06-07 18:56:30.195768500 [http @ 0x7f9252c2e700] header='Age: 35458'
2020-06-07 18:56:30.195773500 [http @ 0x7f9252c2e700] header='Date: Sun, 07 Jun 
2020 22:56:30 GMT'
2020-06-07 18:56:30.195774500 [http @ 0x7f9252c2e700] header='Last-Modified: 
Wed, 03 Jun 2020 15:15:47 GMT'
2020-06-07 18:56:30.195779500 [http @ 0x7f9252c2e700] header='X-LLID: 
0194500ec1fe9a05fa8c3f10d9a198d9'
2020-06-07 18:56:30.195784500 [http @ 0x7f9252c2e700] header='Content-Length: 
73260486'
2020-06-07 18:56:30.195788500 [http @ 0x7f9252c2e700] header='Connection: close'
2020-06-07 18:56:30.195792500 [http @ 0x7f9252c2e700] header=''
2020-06-07 18:56:30.201315500 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f9253000600] 
type:'moov' parent:'root' sz: 73260486 6050885563 6124146041
2020-06-07 18:56:30.201338500 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f9253000600] 
type:'mvhd' parent:'moov' sz: 108 8 73260478
2020-06-07 18:56:30.201339500 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f9253000600] time 
scale = 1000
2020-06-07 18:56:30.201369500 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f9253000600] 
type:'trak' parent:'moov' sz: 46942399 116 73260478
2020-06-07 18:56:30.201475500 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f9253000600] 
type:'tkhd' parent:'trak' sz: 92 8 46942391
2020-06-07 18:56:30.201487500 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f9253000600] 
type:'edts' parent:'trak' sz: 

Re: [FFmpeg-user] Cant find proper code for using complex filter and overlay with VAAPI

2020-06-07 Thread Ted Park
Hi there,

> Always i got error:
> >Impossible to convert between the formats supported by the filter
> 'Parsed_format_' and the filter 'auto_scaler_' Error reinitializing
> filters! Failed to inject frame into filter network: Function not
> implemented

There is an automatic format conversion being attempted that is not happening. 
What is the input format of x11grab? The command is too complicated right now 
to investigate efficiently. Can you try a simple screen capture and single 
overlay with increased verbosity (-loglevel debug)?

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

Re: [FFmpeg-user] libaom - first frame not lossless when > 7 frames in source

2020-06-07 Thread Kieran O Leary
On Sun, Jun 7, 2020 at 10:06 PM pdr0  wrote:

> Intra only compression , using -g 1 makes it lossless . Maybe a clue there
>

Aye - I can confirm that -g 1 produces matching framemd5s.

K
___
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] libaom - first frame not lossless when > 7 frames in source

2020-06-07 Thread pdr0
Intra only compression , using -g 1 makes it lossless . Maybe a clue there

Not sure why there is a discrepancy between aomenc, and ffmpeg libaom-av1




--
Sent from: http://www.ffmpeg-archive.org/
___
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] libaom - first frame not lossless when > 7 frames in source

2020-06-07 Thread Kieran O Leary
Hi Carl,


On Sun, Jun 7, 2020 at 9:18 PM Carl Eugen Hoyos  wrote:

> Am So., 7. Juni 2020 um 19:16 Uhr schrieb Kieran O Leary
> :
>
> > On Sun 7 Jun 2020, 17:56 pdr0,  wrote:
> >
> > > Kieran O Leary wrote
> > > > Any idea what's happening? Will I get the libx264-style answer:
> 'this is
> > > > googles issue,
> > >
> > > I can replicate the ffmpeg issue (and with other sources), but I don't
> know
> > > what the problem is
> > >
> > > It's not a "google"  issue, because AOM aomenc.exe works, and produces
> > > lossless output correctly
> > >
> >
> > This is great to know! I wonder if the number 8 is significant here?
>
> Could it be the number of cores in your system / is the issue reproducible
> with -threads 1 ?
>

I'm on a 4 core i5, and -threads 1 didn't have any difference - first frame
has different framemd5s to the source:
$ ./ffmpeg -threads 1 -i ~/source.mkv -c:v av1 -crf 0   av1.mkv
ffmpeg version N-98060-g1c32d7d Copyright (c) 2000-2020 the FFmpeg
developers
  built with gcc 9 (Ubuntu 9.3.0-10ubuntu2)
  configuration: --prefix=/home/kieranjol/ffmpeg_build
--pkg-config-flags=--static
--extra-cflags=-I/home/kieranjol/ffmpeg_build/include
--extra-ldflags=-L/home/kieranjol/ffmpeg_build/lib --extra-libs='-lpthread
-lm' --bindir=/home/kieranjol/bin --enable-libaom
  libavutil  56. 50.100 / 56. 50.100
  libavcodec 58. 90.100 / 58. 90.100
  libavformat58. 44.100 / 58. 44.100
  libavdevice58.  9.103 / 58.  9.103
  libavfilter 7. 84.100 /  7. 84.100
  libswscale  5.  6.101 /  5.  6.101
  libswresample   3.  6.100 /  3.  6.100
Input #0, matroska,webm, from '/home/kieranjol/source.mkv':
  Metadata:
ENCODER : Lavf58.29.100
  Duration: 00:00:01.00, start: 0.00, bitrate: 43022 kb/s
Stream #0:0: Video: v210 (v210 / 0x30313276), yuv422p10le, 320x240, SAR
1:1 DAR 4:3, 25 fps, 25 tbr, 1k tbn, 1k tbc (default)
Metadata:
  ENCODER : Lavc58.54.100 v210
  DURATION: 00:00:01.0
File 'av1.mkv' already exists. Overwrite? [y/N] y
Stream mapping:
  Stream #0:0 -> #0:0 (v210 (native) -> av1 (libaom-av1))
Press [q] to stop, [?] for help
[libaom-av1 @ 0x563f62937900] v2.0.0
Output #0, matroska, to 'av1.mkv':
  Metadata:
encoder : Lavf58.44.100
Stream #0:0: Video: av1 (libaom-av1) (AV01 / 0x31305641), yuv422p10le,
320x240 [SAR 1:1 DAR 4:3], q=-1--1, 25 fps, 1k tbn, 25 tbc (default)
Metadata:
  DURATION: 00:00:01.0
  encoder : Lavc58.90.100 libaom-av1
Side data:
  cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
frame=   20 fps= 11 q=0.0 size=   1kB time=00:00:00.04 bitrate=
106.7kbits/sframe=   21 fps=6.9 q=0.0 size=   1kB time=00:00:00.08
bitrate=  54.0kbits/sframe=   25 fps=4.8 q=0.0 Lsize=  68kB
time=00:00:00.96 bitrate= 579.1kbits/s speed=0.185x
video:67kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 1.026751%

kieranjol@POWERVIRUS:~/ffmpeg_sources/ffmpeg$ ./ffmpeg -threads 1 -i
av1.mkv -f framemd5 -
ffmpeg version N-98060-g1c32d7d Copyright (c) 2000-2020 the FFmpeg
developers
  built with gcc 9 (Ubuntu 9.3.0-10ubuntu2)
  configuration: --prefix=/home/kieranjol/ffmpeg_build
--pkg-config-flags=--static
--extra-cflags=-I/home/kieranjol/ffmpeg_build/include
--extra-ldflags=-L/home/kieranjol/ffmpeg_build/lib --extra-libs='-lpthread
-lm' --bindir=/home/kieranjol/bin --enable-libaom
  libavutil  56. 50.100 / 56. 50.100
  libavcodec 58. 90.100 / 58. 90.100
  libavformat58. 44.100 / 58. 44.100
  libavdevice58.  9.103 / 58.  9.103
  libavfilter 7. 84.100 /  7. 84.100
  libswscale  5.  6.101 /  5.  6.101
  libswresample   3.  6.100 /  3.  6.100
[libaom-av1 @ 0x55f041f33880] v2.0.0
Input #0, matroska,webm, from 'av1.mkv':
  Metadata:
ENCODER : Lavf58.44.100
  Duration: 00:00:01.00, start: 0.00, bitrate: 556 kb/s
Stream #0:0: Video: av1 (Professional), yuv422p10le(tv), 320x240, SAR
1:1 DAR 4:3, 25 fps, 25 tbr, 1k tbn, 1k tbc (default)
Metadata:
  ENCODER : Lavc58.90.100 libaom-av1
  DURATION: 00:00:01.0
[libaom-av1 @ 0x55f041f41800] v2.0.0
Stream mapping:
  Stream #0:0 -> #0:0 (av1 (libaom-av1) -> rawvideo (native))
Press [q] to stop, [?] for help
#format: frame checksums
#version: 2
#hash: MD5
#software: Lavf58.44.100
#tb 0: 1/25
#media_type 0: video
#codec_id 0: rawvideo
#dimensions 0: 320x240
#sar 0: 1/1
#stream#, dts,pts, duration, size, hash
Output #0, framemd5, to 'pipe:':
  Metadata:
encoder : Lavf58.44.100
Stream #0:0: Video: rawvideo (Y3[10][10] / 0xA0A3359), yuv422p10le,
320x240 [SAR 1:1 DAR 4:3], q=2-31, 38400 kb/s, 25 fps, 25 tbn, 25 tbc
(default)
Metadata:
  DURATION: 00:00:01.0
  encoder : Lavc58.90.100 rawvideo
0,  0,  0,1,   307200,
82afca7a233d492b3be65f53e97883e0
0,  1,  1,1,   307200,
8213a857506c099160fffb2f606f3590
0,  2,  

Re: [FFmpeg-user] libaom - first frame not lossless when > 7 frames in source

2020-06-07 Thread pdr0
Carl Eugen Hoyos-2 wrote
> Could it be the number of cores in your system / is the issue reproducible
> with -threads 1 ?

Issue is still present with -threads 1

Does not appear to be related to pixel format (eg. affects yuv420p source
test as well) 



--
Sent from: http://www.ffmpeg-archive.org/
___
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] libaom - first frame not lossless when > 7 frames in source

2020-06-07 Thread Carl Eugen Hoyos
Am So., 7. Juni 2020 um 19:16 Uhr schrieb Kieran O Leary
:

> On Sun 7 Jun 2020, 17:56 pdr0,  wrote:
>
> > Kieran O Leary wrote
> > > Any idea what's happening? Will I get the libx264-style answer: 'this is
> > > googles issue,
> >
> > I can replicate the ffmpeg issue (and with other sources), but I don't know
> > what the problem is
> >
> > It's not a "google"  issue, because AOM aomenc.exe works, and produces
> > lossless output correctly
> >
>
> This is great to know! I wonder if the number 8 is significant here?

Could it be the number of cores in your system / is the issue reproducible
with -threads 1 ?

Carl Eugen
___
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] libaom - first frame not lossless when > 7 frames in source

2020-06-07 Thread Kieran O Leary
Hi

On Sun 7 Jun 2020, 17:56 pdr0,  wrote:

> Kieran O Leary wrote
> > Any idea what's happening? Will I get the libx264-style answer: 'this is
> > googles issue,
>
> I can replicate the ffmpeg issue (and with other sources), but I don't know
> what the problem is
>
> It's not a "google"  issue, because AOM aomenc.exe works, and produces
> lossless output correctly
>

This is great to know! I wonder if the number 8 is significant here?

K
___
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] libaom - first frame not lossless when > 7 frames in source

2020-06-07 Thread pdr0
Kieran O Leary wrote
> Any idea what's happening? Will I get the libx264-style answer: 'this is
> googles issue, 

I can replicate the ffmpeg issue (and with other sources), but I don't know
what the problem is

It's not a "google"  issue, because AOM aomenc.exe works, and produces
lossless output correctly




--
Sent from: http://www.ffmpeg-archive.org/
___
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] hwaccel pssible nvenc+decklink ??

2020-06-07 Thread Matthew Reus
*ffmpeg -fflags +genpts -vsync 0 -hwaccel_device 1 -hwaccel_output_format
cuda -format_code pal -f decklink -i 'DeckLink Quad (4)' -vf
"format=yuv420p|cuda,yadif_cuda=0:-1:0,scale_npp=1280:720"  -b:v 3M -bf 2
-aspect 16:9 -profile:v main -preset:v medium -c:v h264_nvenc -c:a aac -b:a
128k -ar 44100 -strict -2 -f flv -f flv
 'rtmp://admin:admin@192.168.0.44:1935/nettv/netMOVIESOK1500.stream
'*
ffmpeg version N-97249-gfc12d6c Copyright (c) 2000-2020 the FFmpeg
developers
  built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)
  configuration: --prefix=/root/ffmpeg_build --pkg-config-flags=--static
--extra-cflags='-I/root/ffmpeg_build/include
-I/root/ffmpeg_sources/BMD_SDK/include'
--extra-ldflags=-L/root/ffmpeg_build/lib --extra-libs='-lpthread -lm'
--bindir=/root/bin --enable-cuda --enable-cuda-nvcc --enable-cuvid
--enable-libnpp --extra-cflags=-I../nv_sdk --extra-ldflags=-L../nv_sdk
--extra-cflags=-I/usr/local/cuda/include/
--extra-ldflags=-L/usr/local/cuda/lib64/ --enable-decklink
--extra-cflags=-I/usr/local/sdk/Linux/include/
--extra-ldflags=-L/usr/local/sdk/Linux/include/ --enable-gpl
--enable-libaom --enable-libass --enable-libfdk-aac --enable-vaapi
--enable-libfreetype --enable-libmp3lame --enable-libopus
--enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265
--enable-nonfree --enable-nvenc
  libavutil  56. 42.102 / 56. 42.102
  libavcodec 58. 78.100 / 58. 78.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
[decklink @ 0x556bb09229c0] Found Decklink mode 720 x 576 with rate 25.00(i)
[decklink @ 0x556bb09229c0] Frame received (#1) - No input signal detected
- Frames dropped 1
Guessed Channel Layout for Input Stream #0.0 : stereo
Input #0, decklink, from 'DeckLink Quad (4)':
  Duration: N/A, start: 0.00, bitrate: 167424 kb/s
Stream #0:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
Stream #0:1: Video: rawvideo (UYVY / 0x59565955), uyvy422(top first),
720x576, 165888 kb/s, 25 fps, 25 tbr, 1000k tbn, 1000k tbc
[rtmp @ 0x556bb0964a00] Ignoring unsupported var reason
Stream mapping:
  Stream #0:1 -> #0:0 (rawvideo (native) -> h264 (h264_nvenc))
  Stream #0:0 -> #0:1 (pcm_s16le (native) -> aac (native))
Press [q] to stop, [?] for help
Impossible to convert between the formats supported by the filter
'Parsed_format_0' and the filter 'auto_scaler_1'
Error reinitializing filters!
Failed to inject frame into filter network: Function not implemented
Error while processing the decoded data for stream #0:1
Conversion failed!
___
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".