[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] Errors in swscaler or broken video

2021-05-09 Thread WR

Am 09.05.2021 um 23:12 schrieb Carl Eugen Hoyos:

Am Sa., 8. Mai 2021 um 10:58 Uhr schrieb WR :


since some days I experience errormessages in ffplay:


Is the issue also reproducible with ffmpeg?


No, as I wrote, I took the same (maybe erroneous) file, which produces 
this errors in ffplay as input for ffmpeg, but there have been no 
errors. The result of this second ffmpeg transcoding had the same errors 
on output of ffplay like the first one.

Can I increase the debug output somehow?



If the issue is reproducible with current FFmpeg git head,
please provide the command line you tested together


I hope I will get it compiled, I think there's no deb package or 
ubuntu-repos for git head. I'm not so experienced with compiling in 
linux, only with VS and Windows.



with the complete, uncut console output, never post an
excerpt of the console output.
And please point us to an input sample.


I'll be back, when git head runs.
Thank 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] Errors in swscaler or broken video

2021-05-11 Thread WR

Am 08.05.2021 um 10:58 schrieb 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



Hello Again,

I think I've got it. The problem is really a playback-problem. And it 
has nothing to do with a software-update.
The reason is, that I learnt, how to save the subtitles from the DVD to 
my videofile. And the combination of subtitlestreams and cropped video 
stream is the reason of the swscaler-errors.
I believe that after cropping the video, and leaving the subtitles, as 
they are, the bitmaps of the subtitles are to large to fit on the video.
When I switch off subtitles in ffplay, errors and black screen gaps 
don't occure.
Maybe, there is a way, to scale the subtitles in that way, that they 
would fit the videos size.

Please correct me, if I'm wrong.

Thank you, RockfordC64


--
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] Errors in swscaler or broken video

2021-05-13 Thread WR

Am 12.05.21 um 22:00 schrieb Carl Eugen Hoyos:

Am Mi., 12. Mai 2021 um 08:39 Uhr schrieb WR :


Maybe, there is a way, to scale the subtitles in that way, that they
would fit the videos size.


Yes, this is supposed to work fine.
Please provide the command line you tested together with
the complete, uncut console output to allow us to better
understand your issue.


[snip]

Hello,

at first the commandline and output of the conversion:

ffmpeg -analyzeduration 400M -probesize 400M -fflags +genpts -safe 0 
-protocol_whitelist subfile,file,concat -f concat -ss 00:20:14  -i 
i.concat -t 00:08:00  -map 0 -c copy -c:v libx264 -preset medium 
-filter:v crop=iw-0-0:ih-70-70:0:70 ./Spielfilme/Indiana\ Jones\ Itest.mkv
ffmpeg version 4.2.4-1ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg 
developers

  built with gcc 9 (Ubuntu 9.3.0-10ubuntu2)
  configuration: --prefix=/usr --extra-version=1ubuntu0.1 
--toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu 
--incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl 
--disable-stripping --enable-avresample --disable-filter=resample 
--enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom 
--enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca 
--enable-libcdio --enable-libcodec2 --enable-libflite 
--enable-libfontconfig --enable-libfreetype --enable-libfribidi 
--enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame 
--enable-libmysofa --enable-libopenjpeg --enable-libopenmpt 
--enable-libopus --enable-libpulse --enable-librsvg 
--enable-librubberband --enable-libshine --enable-libsnappy 
--enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora 
--enable-libtwolame --enable-libvidstab --enable-libvorbis 
--enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 
--enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi 
--enable-lv2 --enable-omx --enable-openal --enable-opencl 
--enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm 
--enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r 
--enable-libx264 --enable-shared

  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
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale  5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc55.  5.100 / 55.  5.100
Input #0, concat, from 'i.concat':
  Duration: 01:50:36.60, start: 0.00, bitrate: 0 kb/s
Stream #0:0: Video: mpeg2video (Main), yuv420p(tv, bt470bg, 
progressive), 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 90k tbc

Stream #0:1: Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s
Stream #0:2: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
Stream #0:3: Subtitle: dvd_subtitle
Stream #0:4: Subtitle: dvd_subtitle
Stream #0:5: Subtitle: dvd_subtitle
Stream #0:6: Subtitle: dvd_subtitle
File './Spielfilme/Indiana Jones Itest.mkv' already exists. Overwrite ? 
[y/N] y

Stream mapping:
  Stream #0:0 -> #0:0 (mpeg2video (native) -> h264 (libx264))
  Stream #0:1 -> #0:1 (copy)
  Stream #0:2 -> #0:2 (copy)
  Stream #0:3 -> #0:3 (copy)
  Stream #0:4 -> #0:4 (copy)
  Stream #0:5 -> #0:5 (copy)
  Stream #0:6 -> #0:6 (copy)
Press [q] to stop, [?] for help
[libx264 @ 0x563b99fd0c40] using SAR=64/45
[libx264 @ 0x563b99fd0c40] using cpu capabilities: MMX2 SSE2Fast LZCNT
[libx264 @ 0x563b99fd0c40] profile High, level 3.0
[libx264 @ 0x563b99fd0c40] 264 - core 155 r2917 0a84d98 - H.264/MPEG-4 
AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - 
options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 
psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 
8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=3 
lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 
bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 
b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 
keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf 
mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 
aq=1:1.00

Output #0, matroska, to './Spielfilme/Indiana Jones Itest.mkv':
  Metadata:
encoder : Lavf58.29.100
Stream #0:0: Video: h264 (libx264) (H264 / 0x34363248), yuv420p, 
720x436 [SAR 64:45 DAR 256:109], q=-1--1, 25 fps, 1k tbn, 25 tbc

Metadata:
  encoder : Lavc58.54.100 libx264
Side data:
  cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, 5.1(side), 
fltp, 448 kb/s
Stream #0:2: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, stereo, 
fltp, 192 kb/s

Stream #0:3: Subtitle: dvd_subtitle ([255][255][255][255] / 0x)
Stream #0:4: Subtitle: dvd_subtitle ([255][255][255][255] / 0x)