[FFmpeg-user] Errors in swscaler or broken video

2021-05-08 Thread WR

Hello community,

since some days I experience errormessages in ffplay:
(ffplay version 4.2.4-1ubuntu0.1 )

[swscaler @ 0x55c6a680c880] 82x0 -> 82x0 is invalid scaling dimension
Cannot initialize the conversion context
[swscaler @ 0x55c6a680c880] 82x0 -> 82x0 is invalid scaling dimension
Cannot initialize the conversion context
[swscaler @ 0x55c6a680c880] 82x0 -> 82x0 is invalid scaling dimension
Cannot initialize the conversion context
[swscaler @ 0x55c6a680c880] 82x0 -> 82x0 is invalid scaling dimension
Cannot initialize the conversion context
[swscaler @ 0x55c6a680c880] 82x0 -> 82x0 is invalid scaling dimension
Cannot initialize the conversion context
[swscaler @ 0x55c6a680c880] 82x0 -> 82x0 is invalid scaling dimension
Cannot initialize the conversion context
[swscaler @ 0x55c6a680c880] 291x0 -> 291x0 is invalid scaling dimension
Cannot initialize the conversion context
[swscaler @ 0x55c6a680c880] 291x0 -> 291x0 is invalid scaling dimension
Cannot initialize the conversion context
[swscaler @ 0x55c6a680c880] 291x0 -> 291x0 is invalid scaling dimension
Cannot initialize the conversion context
[swscaler @ 0x55c6a680c880] 291x0 -> 291x0 is invalid scaling dimension
Cannot initialize the conversion context
[swscaler @ 0x55c6a680c880] 291x0 -> 291x0 is invalid scaling dimension
Cannot initialize the conversion context
[swscaler @ 0x55c6a680c880] 291x0 -> 291x0 is invalid scaling dimension
Cannot initialize the conversion context
[swscaler @ 0x55c6a680c880] 291x0 -> 291x0 is invalid scaling dimension
Cannot initialize the conversion context
[swscaler @ 0x55c6a680c880] 291x0 -> 291x0 is invalid scaling dimension
Cannot initialize the conversion context

The messages arise in chunks and while they arise video output is black. 
between the chunks, the video runs fine.


It only happens, when I play a video, which I edited before with 
ffmpeg's crop-filter :

-c:v libx264 -preset medium  -filter:v crop=iw-0-0:ih-72-74:0:72

The source video comes from a DVD (from what I created a concat-file 
with dvd2concat-script from ffmpeg-sources)


I do that to cut the black stripes on the top and at the bottom.
When I don't use the crop filter, the result video runs fine in ffplay.

The cropped video (which produces the error messages) runs fine in other 
players (vlc, parole). I also (for test) took it as input for another 
transcoding in ffmpeg -> no errors while processing (but again errors 
while playing this result)


So my question is: can I be sure, that the cropped videofile is without 
scaling faults and only the ffplay has a problem while playing? Or is 
the cropped video really erroneous because the crop filter makes 
mistakes and all other players are a bit more "scaling problems friendly".


I think this appeared since one of the last ubuntu updates, I can't 
remember such an effect in former times, but I use the crop filter since 
a long time now.


(And another strange effect in the last days is, that video playback 
runs in double speed for some seconds, when I switch the audio-channels 
with key A. I've never seen this before.)


Thank you, RockfordC64

--

- may the source be with you -

--
May the source be with you
___
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] ERROR: libglslang not found

2021-05-08 Thread Dylan Fernando
On Tue, Apr 13, 2021 at 7:58 AM Carl Eugen Hoyos  wrote:

> Am Mo., 12. Apr. 2021 um 00:54 Uhr schrieb Dylan Fernando <
> dylanf...@gmail.com>:
>
> > Thanks, Now I am getting:
> >
> > /usr/bin/ld: cannot find -lMachineIndependent
> > /usr/bin/ld: cannot find -lGenericCodeGen
>
> It doesn't work here either, maybe you need a particular
> version of glslang.
>
> Hopefully somebody who knows what it is can help you.
>
> 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".


Managed to get it compiling using  https://vulkan.lunarg.com/sdk/home

I did:

wget -qO - https://packages.lunarg.com/lunarg-signing-key-pub.asc |
sudo apt-key add -
sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-1.2.176-focal.list
https://packages.lunarg.com/vulkan/1.2.176/lunarg-vulkan-1.2.176-focal.list
sudo apt update
sudo apt install vulkan-sdk

It doesn't work, however, It segfaults:

ffmpeg -v verbose -init_hw_device vulkan=gpu:0.0 -filter_hw_device gpu
-i atm.mp4 -filter_complex hwupload,avgblur_vulkan=10,hwdownload
atmvulkan.mp4
ffmpeg version N-102426-g553619eacb Copyright (c) 2000-2021 the FFmpeg
developers
  built with gcc 9 (Ubuntu 9.3.0-17ubuntu1~20.04)
  configuration: --enable-opencl --enable-vulkan --enable-libglslang
  libavutil  57.  0.100 / 57.  0.100
  libavcodec 59.  0.100 / 59.  0.100
  libavformat59.  0.101 / 59.  0.101
  libavdevice59.  0.100 / 59.  0.100
  libavfilter 8.  0.101 /  8.  0.101
  libswscale  6.  0.100 /  6.  0.100
  libswresample   4.  0.100 /  4.  0.100
INTEL-MESA: warning: Ivy Bridge Vulkan support is incomplete
[AVHWDeviceContext @ 0x55ac5bc3e7c0] GPU listing:
[AVHWDeviceContext @ 0x55ac5bc3e7c0] 0: GeForce RTX 2070 SUPER
(discrete) (0x1e84)
[AVHWDeviceContext @ 0x55ac5bc3e7c0] 1: Intel(R) HD Graphics 4000
(IVB GT2) (integrated) (0x162)
[AVHWDeviceContext @ 0x55ac5bc3e7c0] Using queue family 0 (total
queues: 16) for graphics
[AVHWDeviceContext @ 0x55ac5bc3e7c0] QF 0 flags: (graphics)
(compute) (transfers) (sparse)
[AVHWDeviceContext @ 0x55ac5bc3e7c0] Using queue family 2 (total
queues: 8) for compute
[AVHWDeviceContext @ 0x55ac5bc3e7c0] QF 2 flags: (compute)
(transfers) (sparse)
[AVHWDeviceContext @ 0x55ac5bc3e7c0] Using queue family 1 (total
queues: 2) for transfers
[AVHWDeviceContext @ 0x55ac5bc3e7c0] QF 1 flags: (transfers) (sparse)
[AVHWDeviceContext @ 0x55ac5bc3e7c0] Using device extension
"VK_KHR_external_memory_fd"
[AVHWDeviceContext @ 0x55ac5bc3e7c0] Using device extension
"VK_KHR_external_semaphore_fd"
[AVHWDeviceContext @ 0x55ac5bc3e7c0] Using device extension
"VK_EXT_external_memory_host"
[AVHWDeviceContext @ 0x55ac5bc3e7c0] Using device extension
"VK_KHR_push_descriptor"
[AVHWDeviceContext @ 0x55ac5bc3e7c0] Using device extension
"VK_EXT_host_query_reset"
[AVHWDeviceContext @ 0x55ac5bc3e7c0] Using device extension
VK_KHR_external_memory_fd
[AVHWDeviceContext @ 0x55ac5bc3e7c0] Using device extension
VK_KHR_external_semaphore_fd
[AVHWDeviceContext @ 0x55ac5bc3e7c0] Using device extension
VK_EXT_external_memory_host
[AVHWDeviceContext @ 0x55ac5bc3e7c0] Using device extension
VK_KHR_push_descriptor
[AVHWDeviceContext @ 0x55ac5bc3e7c0] Using device extension
VK_EXT_host_query_reset
[AVHWDeviceContext @ 0x55ac5bc3e7c0] Using device: GeForce RTX 2070 SUPER
[AVHWDeviceContext @ 0x55ac5bc3e7c0] Alignments:
[AVHWDeviceContext @ 0x55ac5bc3e7c0] optimalBufferCopyRowPitchAlignment: 1
[AVHWDeviceContext @ 0x55ac5bc3e7c0] minMemoryMapAlignment:  64
[AVHWDeviceContext @ 0x55ac5bc3e7c0]
minImportedHostPointerAlignment:4096
[h264 @ 0x55ac5c0621c0] Reinit context to 1024x576, pix_fmt: yuv420p
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'atm.mp4':
  Metadata:
major_brand : mp42
minor_version   : 0
compatible_brands: mp41isom
  Duration: 00:02:08.45, start: 0.00, bitrate: 1479 kb/s
  Stream #0:0(und): Video: h264 (Constrained Baseline), 1 reference
frame (avc1 / 0x31637661), yuv420p(left), 1024x576, 1386 kb/s, 25 fps,
25 tbr, 25k tbn (default)
Metadata:
  handler_name: VideoHandler
  vendor_id   : [0][0][0][0]
  encoder : AVC Coding
  Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz,
stereo, fltp, 90 kb/s (default)
Metadata:
  handler_name: SoundHandler
  vendor_id   : [0][0][0][0]
File 'atmvulkan.mp4' already exists. Overwrite? [y/N] y
Stream mapping:
  Stream #0:0 (h264) -> hwupload (graph 0)
  hwdownload (graph 0) -> Stream #0:0 (mpeg4)
  Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
[h264 @ 0x55ac5da9b040] Reinit context to 1024x576, pix_fmt: yuv420p
[graph_1_in_0_1 @ 0x55ac5ddd34c0] tb:1/48000 samplefmt:fltp
samplerate:48000 chlayout:0x3
[graph 0 input from stream 0:0 @ 0x55ac5de75500] w:1024 h:576