Re: [FFmpeg-user] ffmpeg complains that late SEI is not implemented

2022-09-12 Thread Dmitry Katsubo via ffmpeg-user
I will appreciate if somebody could give me a hint if I can ignore "Late SEI is 
not implemented" warnings. Thanks a lot!

On 2022-09-07 00:32, Dmitry Katsubo wrote:
> Dear ffmpeg community,
>
> I have the ffmpeg v5.1-full for Windows x64 downloaded from 
> https://www.gyan.dev/ffmpeg/builds/
>
> When I start video encoding:
>
> ffmpeg.exe -i in.mkv -c:v libx264 -crf 28 -profile:v high -an out.mkv
>
> it dumps so many messages like this to console:
>
> ffmpeg version 5.1-full_build-www.gyan.dev Copyright (c) 2000-2022 the FFmpeg 
> developers
> ...
> [h264 @ 0142dcc60c40] sps_id 1 out of range
> Input #0, matroska,webm, from './HOW TO TRAIN YOUR DRAGON 3D_t01.mkv':
> ...
> Stream mapping:
>   Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
> [h264 @ 0142dcd05180] sps_id 1 out of range
> [h264 @ 0142de85e600] Late SEI is not implemented. Update your FFmpeg 
> version to the newest one from Git. If the problem still occurs, it means 
> that your file has a feature which has not been
> implemented.
> [h264 @ 0142de85e600] If you want to help, upload a sample of this file 
> to https://streams.videolan.org/upload/ and contact the ffmpeg-devel mailing 
> list. (ffmpeg-de...@ffmpeg.org)
> [h264 @ 0142dd30ee80] Late SEI is not implemented. Update your FFmpeg 
> version to the newest one from Git. If the problem still occurs, it means 
> that your file has a feature which has not been
> implemented.
> [h264 @ 0142dd30ee80] If you want to help, upload a sample of this file 
> to https://streams.videolan.org/upload/ and contact the ffmpeg-devel mailing 
> list. (ffmpeg-de...@ffmpeg.org)
> ... repeated thousands of times ...
>
> I am not sure if output video at the end will be consistent, or am I wrong 
> and I can silently ignore the messages?
>
> When I start x264 from CLI, it shows few warnings, but generally runs more 
> smoother:
>
> x264.exe --crf 28 --profile high444 -o out.mkv in.mkv
>
> lavf [info]: 1920x1080p 1:1 @ 24000/1001 fps (vfr)
> x264 [info]: using SAR=1/1
> x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 
> AVX2
> x264 [info]: profile High, level 4.1, 4:2:0, 8-bit
> [h264 @ 02757a80] sps_id 1 out of range
> [h264 @ 02757a80] sps_id 1 out of range
>
> Is "Late SEI (Supplemental enhancement information)[1]" feature 
> implementation specific to ffmpeg? Or is it codec-specific feature and the 
> difference is only the way how warnings are logged?
>
> Any comment is warmly welcomed.
>
> [1] https://en.wikipedia.org/wiki/Advanced_Video_Coding#Overall_history
>

___
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] Combining xfade and drawtext

2022-09-12 Thread Paul B Mahol
On 9/12/22, Cecil Westerhof via ffmpeg-user  wrote:
> Cecil Westerhof via ffmpeg-user  writes:
>
>> I am using xfade and drawtext without problems. But now I want to use
>> both. But combining the two goes wrong.
>>
>> I use:
>> ffmpeg -ss 308 -t 4 -i 00011-00016.MTS -ss 329 -to 374 -i 00011-00016.MTS
>> -pix_fmt yuv420p -vcodec libx264 -crf 26 -acodec libmp3lame -qscale:a 9
>> -preset veryfast -filter_complex
>> 'xfade=transition=hlslice:duration=4:offset=0;acrossfade=d=4,drawtext=
>>box= 1:
>> boxborderw = 6: boxcolor   = black@0.2:
>>  fontcolor  = white@0.4: fontfile   =
>> FreeSerifBold.ttf: fontsize   = 32:text
>>= © 2022 Cecil Westerhof - ce...@decebal.nl: x  =
>> ((main_w - text_w) / 2):   y  = main_h - (text_h * 2)'
>> xfadeMusicalTestTemp/accordeonmuziek.ts
>
> I should have thought a little longer. :'-(
>
> Found something that works:
> ffmpeg -ss 308 -t 4 -i 00011-00016.MTS -ss 329 -to 374 -i 00011-00016.MTS
> -pix_fmt yuv420p -vcodec libx264 -crf 26 -acodec libmp3lame -qscale:a 9
> -preset veryfast -filter_complex '
> [0:v][1:v] xfade=transition=hlslice:
>  duration=4:
>  offset=0
>[v01];
> [0:a][1:a] acrossfade=d=4
>[a01];
> [v01]  drawtext=
>box= 1:
>boxborderw = 6:
>boxcolor   = black@0.2:
>fontcolor  = white@0.4:
>fontfile   = FreeSerifBold.ttf:
>fontsize   = 32:
>text   = © 2022 Cecil Westerhof - ce...@decebal.nl:
>x  = ((main_w - text_w) / 2):
>y  = main_h - (text_h * 2)
>[v02]
>  ' -map '[v02]' -map '[a01]' xfadeMusicalTestTemp/accordeonmuziek.ts
>
>
> It looks and sounds OK to me. But I do get:
> [h264 @ 0x56182acb1a00] reference picture missing during reorder
> [h264 @ 0x56182acb1a00] Missing reference picture, default is 2147483647
> [h264 @ 0x56182aca9140] Found reference and non-reference fields in the same
> frame, which is not implemented. Update your FFmpeg version to the newest
> one from Git. If the problem still occurs, it means that your file has a
> feature which has not been implemented.
> [h264 @ 0x56182aca9140] If you want to help, upload a sample of this file to
> https://streams.videolan.org/upload/ and contact the ffmpeg-devel mailing
> list. (ffmpeg-de...@ffmpeg.org)
> [h264 @ 0x56182aca9140] decode_slice_header error
> [h264 @ 0x56182add8340] reference picture missing during reorder
> [h264 @ 0x56182add8340] Missing reference picture, default is 2147483647
> [h264 @ 0x56182acb1a00] reference picture missing during reorder
> [h264 @ 0x56182acb1a00] Missing reference picture, default is 2147483647
> [h264 @ 0x56182aca9140] mmco: unref short failure
> [h264 @ 0x56182ae6a4c0] mmco: unref short failure
> [h264 @ 0x56182b03f880] reference picture missing during reorder
> [h264 @ 0x56182b03f880] Missing reference picture, default is 2147483647
> [h264 @ 0x56182b031280] Found reference and non-reference fields in the same
> frame, which is not implemented. Update your FFmpeg version to the newest
> one from Git. If the problem still occurs, it means that your file has a
> feature which has not been implemented.
> [h264 @ 0x56182b031280] If you want to help, upload a sample of this file to
> https://streams.videolan.org/upload/ and contact the ffmpeg-devel mailing
> list. (ffmpeg-de...@ffmpeg.org)
> [h264 @ 0x56182b031280] decode_slice_header error
> [h264 @ 0x56182aca4080] reference picture missing during reorder
> [h264 @ 0x56182aca4080] Missing reference picture, default is 2147483647
> [h264 @ 0x56182b6ba1c0] reference picture missing during reorder
> [h264 @ 0x56182b6ba1c0] Missing reference picture, default is 2147483647
> [h264 @ 0x56182b031280] mmco: unref short failure
> [h264 @ 0x56182b03f880] mmco: unref short failure
>
>
> Is this something to worry about?

If this is from input files there is not much that can be done.

>
> --
> Cecil Westerhof
> Senior Software Engineer
> LinkedIn: http://www.linkedin.com/in/cecilwesterhof
> ___
> 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] Combining xfade and drawtext

2022-09-12 Thread Cecil Westerhof via ffmpeg-user
Cecil Westerhof via ffmpeg-user  writes:

> I am using xfade and drawtext without problems. But now I want to use
> both. But combining the two goes wrong.
>
> I use:
> ffmpeg -ss 308 -t 4 -i 00011-00016.MTS -ss 329 -to 374 -i 00011-00016.MTS 
> -pix_fmt yuv420p -vcodec libx264 -crf 26 -acodec libmp3lame -qscale:a 9 
> -preset veryfast -filter_complex 
> 'xfade=transition=hlslice:duration=4:offset=0;acrossfade=d=4,drawtext=
> box= 1: boxborderw = 
> 6: boxcolor   = black@0.2: fontcolor  
> = white@0.4: fontfile   = FreeSerifBold.ttf: fontsize 
>   = 32:text   = © 2022 Cecil Westerhof - 
> ce...@decebal.nl: x  = ((main_w - text_w) / 2):   y   
>= main_h - (text_h * 2)' xfadeMusicalTestTemp/accordeonmuziek.ts

I should have thought a little longer. :'-(

Found something that works:
ffmpeg -ss 308 -t 4 -i 00011-00016.MTS -ss 329 -to 374 -i 00011-00016.MTS 
-pix_fmt yuv420p -vcodec libx264 -crf 26 -acodec libmp3lame -qscale:a 9 -preset 
veryfast -filter_complex '
[0:v][1:v] xfade=transition=hlslice:
 duration=4:
 offset=0   
[v01];
[0:a][1:a] acrossfade=d=4   
[a01];
[v01]  drawtext=
   box= 1:
   boxborderw = 6:
   boxcolor   = black@0.2:
   fontcolor  = white@0.4:
   fontfile   = FreeSerifBold.ttf:
   fontsize   = 32:
   text   = © 2022 Cecil Westerhof - ce...@decebal.nl:
   x  = ((main_w - text_w) / 2):
   y  = main_h - (text_h * 2)   
[v02]
 ' -map '[v02]' -map '[a01]' xfadeMusicalTestTemp/accordeonmuziek.ts


It looks and sounds OK to me. But I do get:
[h264 @ 0x56182acb1a00] reference picture missing during reorder
[h264 @ 0x56182acb1a00] Missing reference picture, default is 2147483647
[h264 @ 0x56182aca9140] Found reference and non-reference fields in the same 
frame, which is not implemented. Update your FFmpeg version to the newest one 
from Git. If the problem still occurs, it means that your file has a feature 
which has not been implemented.
[h264 @ 0x56182aca9140] If you want to help, upload a sample of this file to 
https://streams.videolan.org/upload/ and contact the ffmpeg-devel mailing list. 
(ffmpeg-de...@ffmpeg.org)
[h264 @ 0x56182aca9140] decode_slice_header error
[h264 @ 0x56182add8340] reference picture missing during reorder
[h264 @ 0x56182add8340] Missing reference picture, default is 2147483647
[h264 @ 0x56182acb1a00] reference picture missing during reorder
[h264 @ 0x56182acb1a00] Missing reference picture, default is 2147483647
[h264 @ 0x56182aca9140] mmco: unref short failure
[h264 @ 0x56182ae6a4c0] mmco: unref short failure
[h264 @ 0x56182b03f880] reference picture missing during reorder
[h264 @ 0x56182b03f880] Missing reference picture, default is 2147483647
[h264 @ 0x56182b031280] Found reference and non-reference fields in the same 
frame, which is not implemented. Update your FFmpeg version to the newest one 
from Git. If the problem still occurs, it means that your file has a feature 
which has not been implemented.
[h264 @ 0x56182b031280] If you want to help, upload a sample of this file to 
https://streams.videolan.org/upload/ and contact the ffmpeg-devel mailing list. 
(ffmpeg-de...@ffmpeg.org)
[h264 @ 0x56182b031280] decode_slice_header error
[h264 @ 0x56182aca4080] reference picture missing during reorder
[h264 @ 0x56182aca4080] Missing reference picture, default is 2147483647
[h264 @ 0x56182b6ba1c0] reference picture missing during reorder
[h264 @ 0x56182b6ba1c0] Missing reference picture, default is 2147483647
[h264 @ 0x56182b031280] mmco: unref short failure
[h264 @ 0x56182b03f880] mmco: unref short failure


Is this something to worry about?

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof
___
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] Combining xfade and drawtext

2022-09-12 Thread Paul B Mahol
On 9/12/22, Cecil Westerhof via ffmpeg-user  wrote:
> I am using xfade and drawtext without problems. But now I want to use
> both. But combining the two goes wrong.
>
> I use:
> ffmpeg -ss 308 -t 4 -i 00011-00016.MTS -ss 329 -to 374 -i 00011-00016.MTS
> -pix_fmt yuv420p -vcodec libx264 -crf 26 -acodec libmp3lame -qscale:a 9
> -preset veryfast -filter_complex
> 'xfade=transition=hlslice:duration=4:offset=0;acrossfade=d=4,drawtext=
>  box= 1: boxborderw
> = 6: boxcolor   = black@0.2:
> fontcolor  = white@0.4: fontfile   = FreeSerifBold.ttf:
>fontsize   = 32:text   = © 2022 Cecil
> Westerhof - ce...@decebal.nl: x  = ((main_w - text_w) /
> 2):   y  = main_h - (text_h * 2)'
> xfadeMusicalTestTemp/accordeonmuziek.ts
>
> But this gives:
> ffmpeg version 4.3.4-0+deb11u1 Copyright (c) 2000-2021 the FFmpeg developers
>   built with gcc 10 (Debian 10.2.1-6)
>   configuration: --prefix=/usr --extra-version=0+deb11u1
> --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-gnutls --enable-ladspa --enable-libaom --enable-libass
> --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio
> --enable-libcodec2 --enable-libdav1d --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-librabbitmq --enable-librsvg
> --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr
> --enable-libspeex --enable-libsrt --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-pocketsphinx --enable-libmfx --enable-libdc1394 --enable-libdrm
> --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264
> --enable-shared
>   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
>   libavresample   4.  0.  0 /  4.  0.  0
>   libswscale  5.  7.100 /  5.  7.100
>   libswresample   3.  7.100 /  3.  7.100
>   libpostproc55.  7.100 / 55.  7.100
> Input #0, mpegts, from '00011-00016.MTS':
>   Duration: 01:31:13.52, start: 1.44, bitrate: 16005 kb/s
>   Program 1
> Metadata:
>   service_name: Service01
>   service_provider: FFmpeg
> Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B),
> yuv420p(top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50 tbr, 90k tbn,
> 50 tbc
> Stream #0:1[0x101]: Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz,
> stereo, fltp, 256 kb/s
> Input #1, mpegts, from '00011-00016.MTS':
>   Duration: 01:31:13.52, start: 1.44, bitrate: 16005 kb/s
>   Program 1
> Metadata:
>   service_name: Service01
>   service_provider: FFmpeg
> Stream #1:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B),
> yuv420p(top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50 tbr, 90k tbn,
> 50 tbc
> Stream #1:1[0x101]: Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz,
> stereo, fltp, 256 kb/s
> [Parsed_drawtext_2 @ 0x56143c223540] Using
> "/usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf"
> [Parsed_acrossfade_1 @ 0x56143c5f9880] Media type mismatch between the
> 'Parsed_acrossfade_1' filter output pad 0 (audio) and the
> 'Parsed_drawtext_2' filter input pad 0 (video)

This above is pretty clear, drawtext is video filter and acrossfade is
audio filter.
It is not allowed to pass audio frames from audio only filter to video
input of video only filter.

> [AVFilterGraph @ 0x56143c54a500] Cannot create the link acrossfade:0 ->
> drawtext:0
> Error initializing complex filters.
> Invalid argument
> Command exited with non-zero status 1
>
>
> What am I doing wrong?
>
> --
> Cecil Westerhof
> Senior Software Engineer
> LinkedIn: http://www.linkedin.com/in/cecilwesterhof
> ___
> 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".


[FFmpeg-user] Combining xfade and drawtext

2022-09-12 Thread Cecil Westerhof via ffmpeg-user
I am using xfade and drawtext without problems. But now I want to use
both. But combining the two goes wrong.

I use:
ffmpeg -ss 308 -t 4 -i 00011-00016.MTS -ss 329 -to 374 -i 00011-00016.MTS 
-pix_fmt yuv420p -vcodec libx264 -crf 26 -acodec libmp3lame -qscale:a 9 -preset 
veryfast -filter_complex 
'xfade=transition=hlslice:duration=4:offset=0;acrossfade=d=4,drawtext=  
  box= 1: boxborderw = 6:   
  boxcolor   = black@0.2: fontcolor  = 
white@0.4: fontfile   = FreeSerifBold.ttf: fontsize   = 
32:text   = © 2022 Cecil Westerhof - 
ce...@decebal.nl: x  = ((main_w - text_w) / 2):   y 
 = main_h - (text_h * 2)' xfadeMusicalTestTemp/accordeonmuziek.ts

But this gives:
ffmpeg version 4.3.4-0+deb11u1 Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 10 (Debian 10.2.1-6)
  configuration: --prefix=/usr --extra-version=0+deb11u1 --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-gnutls --enable-ladspa --enable-libaom 
--enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca 
--enable-libcdio --enable-libcodec2 --enable-libdav1d --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-librabbitmq --enable-librsvg --enable-librubberband --enable-libshine 
--enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt 
--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-pocketsphinx --enable-libmfx 
--enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint 
--enable-frei0r --enable-libx264 --enable-shared
  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
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale  5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
  libpostproc55.  7.100 / 55.  7.100
Input #0, mpegts, from '00011-00016.MTS':
  Duration: 01:31:13.52, start: 1.44, bitrate: 16005 kb/s
  Program 1 
Metadata:
  service_name: Service01
  service_provider: FFmpeg
Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), 
yuv420p(top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50 tbr, 90k tbn, 50 
tbc
Stream #0:1[0x101]: Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, stereo, 
fltp, 256 kb/s
Input #1, mpegts, from '00011-00016.MTS':
  Duration: 01:31:13.52, start: 1.44, bitrate: 16005 kb/s
  Program 1 
Metadata:
  service_name: Service01
  service_provider: FFmpeg
Stream #1:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), 
yuv420p(top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50 tbr, 90k tbn, 50 
tbc
Stream #1:1[0x101]: Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, stereo, 
fltp, 256 kb/s
[Parsed_drawtext_2 @ 0x56143c223540] Using 
"/usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf"
[Parsed_acrossfade_1 @ 0x56143c5f9880] Media type mismatch between the 
'Parsed_acrossfade_1' filter output pad 0 (audio) and the 'Parsed_drawtext_2' 
filter input pad 0 (video)
[AVFilterGraph @ 0x56143c54a500] Cannot create the link acrossfade:0 -> 
drawtext:0
Error initializing complex filters.
Invalid argument
Command exited with non-zero status 1


What am I doing wrong?

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof
___
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] -threads 1 seems not work

2022-09-12 Thread Reindl Harald




Am 12.09.22 um 15:00 schrieb Cecil Westerhof via ffmpeg-user:

OK. But that  still means it can use  three CPU's if it wants  to if I
have set all three to one?


following common sense decoding and encoding are at least two threads in 
total no matter what you do

___
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] -threads 1 seems not work

2022-09-12 Thread Reindl Harald




Am 12.09.22 um 14:38 schrieb Cecil Westerhof via ffmpeg-user:

Paul B Mahol  writes:


On 9/12/22, Cecil Westerhof via ffmpeg-user  wrote:

For a certain conversion I use '-threads 1'. As I understand it ffmpeg
should then only use one CPU. I see that the CPU usage is lower as
without this parameter, but it goes up to 180%. So clearly it is using
at least two CPU's.
Or am I understanding this parameter wrongly?

I am using ffmpeg version 4.3.4-0+deb11u1. (Debian always lags a
little bit behind to be more stable.)



threads can be used for input decoding, output encoding and filtering.

You need to use threads = 1 for all 3 of them.


I see:
 -filter_threads
 -filter_complex_threads

But nothing for input decoding and output decoding


as always -threads can used twice as other params

before the input file it's *always* an input-param and after it it's an 
output-param

___
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] 5.1 AAC without lowpass on the LFE channel

2022-09-12 Thread Steven Ruppert via ffmpeg-user

Hi,

I'm trying to encode 6 arbitrary mono audio streams into a single AAC 
5.1 track in an mp4 container (here with test streams):


$ ffmpeg -f lavfi -i testsrc=duration=10:size=100x100:rate=30 -f lavfi 
-i aevalsrc="-2+random(0)" -filter_complex 
"[1:a][1:a][1:a][1:a][1:a][1:a]join=inputs=6:channel_layout=5.1:map=0.0-FL|1.0-FR|2.0-FC|3.0-LFE|4.0-BL|5.0-BR[a]" 
-map '0:v' -map "[a]" -c:a aac -channel_layout 5.1 -t 10 testlfe.mp4


5 of the channels replicate the input audio just fine (modulo encoding). 
However, the LFE channel is lowpassed. Extracting with:


$ ffmpeg -i testlfe.mp4 -filter_complex 
"channelsplit=channel_layout=5.1:channels=LFE[LFE]" -map '[LFE]' 
/www/testlfe.wav


I get a lowpassed rumble, instead of the original full white noise.

Is there a way to prevent the lowpass from happening?

I couldn't find any references whether that's inherent to the AAC 5.1 
encoding, something that ffmpeg does, or inherent to the decoding 
process. (I did decode my same test files using something that uses 
Microsoft MediaFoundation and the LFE channel was still lowpassed).


Thanks,
Steven
___
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] -threads 1 seems not work

2022-09-12 Thread Paul B Mahol
On 9/12/22, Cecil Westerhof via ffmpeg-user  wrote:
> Paul B Mahol  writes:
>
>> On 9/12/22, Cecil Westerhof via ffmpeg-user 
>> wrote:
>>> Paul B Mahol  writes:
>>>
 On 9/12/22, Cecil Westerhof via ffmpeg-user 
 wrote:
> For a certain conversion I use '-threads 1'. As I understand it ffmpeg
> should then only use one CPU. I see that the CPU usage is lower as
> without this parameter, but it goes up to 180%. So clearly it is using
> at least two CPU's.
> Or am I understanding this parameter wrongly?
>
> I am using ffmpeg version 4.3.4-0+deb11u1. (Debian always lags a
> little bit behind to be more stable.)
>

 threads can be used for input decoding, output encoding and filtering.

 You need to use threads = 1 for all 3 of them.
>>>
>>> I see:
>>> -filter_threads
>>> -filter_complex_threads
>>>
>>> But nothing for input decoding and output decoding.
>>>
>>>
>>> By the way: does this mean that ffmpeg can always use 4 CPU's?
>>> (input, output, filtering and complex filtering)
>>
>> No, ffmpeg may use sometimes only 1 or sometimes all available CPUs.
>> That depends on many factors.
>
> OK. But that  still means it can use  three CPU's if it wants  to if I
> have set all three to one?

For older versions you currently use that is not true.

>
>> -threads is both input and output option.
>
> --
> Cecil Westerhof
> Senior Software Engineer
> LinkedIn: http://www.linkedin.com/in/cecilwesterhof
> ___
> 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] -threads 1 seems not work

2022-09-12 Thread Cecil Westerhof via ffmpeg-user
Paul B Mahol  writes:

> On 9/12/22, Cecil Westerhof via ffmpeg-user  wrote:
>> Paul B Mahol  writes:
>>
>>> On 9/12/22, Cecil Westerhof via ffmpeg-user 
>>> wrote:
 For a certain conversion I use '-threads 1'. As I understand it ffmpeg
 should then only use one CPU. I see that the CPU usage is lower as
 without this parameter, but it goes up to 180%. So clearly it is using
 at least two CPU's.
 Or am I understanding this parameter wrongly?

 I am using ffmpeg version 4.3.4-0+deb11u1. (Debian always lags a
 little bit behind to be more stable.)

>>>
>>> threads can be used for input decoding, output encoding and filtering.
>>>
>>> You need to use threads = 1 for all 3 of them.
>>
>> I see:
>> -filter_threads
>> -filter_complex_threads
>>
>> But nothing for input decoding and output decoding.
>>
>>
>> By the way: does this mean that ffmpeg can always use 4 CPU's?
>> (input, output, filtering and complex filtering)
>
> No, ffmpeg may use sometimes only 1 or sometimes all available CPUs.
> That depends on many factors.

OK. But that  still means it can use  three CPU's if it wants  to if I
have set all three to one?

> -threads is both input and output option.

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof
___
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] -threads 1 seems not work

2022-09-12 Thread Paul B Mahol
On 9/12/22, Cecil Westerhof via ffmpeg-user  wrote:
> Paul B Mahol  writes:
>
>> On 9/12/22, Cecil Westerhof via ffmpeg-user 
>> wrote:
>>> For a certain conversion I use '-threads 1'. As I understand it ffmpeg
>>> should then only use one CPU. I see that the CPU usage is lower as
>>> without this parameter, but it goes up to 180%. So clearly it is using
>>> at least two CPU's.
>>> Or am I understanding this parameter wrongly?
>>>
>>> I am using ffmpeg version 4.3.4-0+deb11u1. (Debian always lags a
>>> little bit behind to be more stable.)
>>>
>>
>> threads can be used for input decoding, output encoding and filtering.
>>
>> You need to use threads = 1 for all 3 of them.
>
> I see:
> -filter_threads
> -filter_complex_threads
>
> But nothing for input decoding and output decoding.
>
>
> By the way: does this mean that ffmpeg can always use 4 CPU's?
> (input, output, filtering and complex filtering)

No, ffmpeg may use sometimes only 1 or sometimes all available CPUs.
That depends on many factors.

-threads is both input and output option.

>
> --
> Cecil Westerhof
> Senior Software Engineer
> LinkedIn: http://www.linkedin.com/in/cecilwesterhof
> ___
> 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] -threads 1 seems not work

2022-09-12 Thread Cecil Westerhof via ffmpeg-user
Paul B Mahol  writes:

> On 9/12/22, Cecil Westerhof via ffmpeg-user  wrote:
>> For a certain conversion I use '-threads 1'. As I understand it ffmpeg
>> should then only use one CPU. I see that the CPU usage is lower as
>> without this parameter, but it goes up to 180%. So clearly it is using
>> at least two CPU's.
>> Or am I understanding this parameter wrongly?
>>
>> I am using ffmpeg version 4.3.4-0+deb11u1. (Debian always lags a
>> little bit behind to be more stable.)
>>
>
> threads can be used for input decoding, output encoding and filtering.
>
> You need to use threads = 1 for all 3 of them.

I see:
-filter_threads
-filter_complex_threads

But nothing for input decoding and output decoding.


By the way: does this mean that ffmpeg can always use 4 CPU's?
(input, output, filtering and complex filtering)

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof
___
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] -threads 1 seems not work

2022-09-12 Thread Paul B Mahol
On 9/12/22, Cecil Westerhof via ffmpeg-user  wrote:
> For a certain conversion I use '-threads 1'. As I understand it ffmpeg
> should then only use one CPU. I see that the CPU usage is lower as
> without this parameter, but it goes up to 180%. So clearly it is using
> at least two CPU's.
> Or am I understanding this parameter wrongly?
>
> I am using ffmpeg version 4.3.4-0+deb11u1. (Debian always lags a
> little bit behind to be more stable.)
>

threads can be used for input decoding, output encoding and filtering.

You need to use threads = 1 for all 3 of them.

> --
> Cecil Westerhof
> Senior Software Engineer
> LinkedIn: http://www.linkedin.com/in/cecilwesterhof
> ___
> 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".


[FFmpeg-user] -threads 1 seems not work

2022-09-12 Thread Cecil Westerhof via ffmpeg-user
For a certain conversion I use '-threads 1'. As I understand it ffmpeg
should then only use one CPU. I see that the CPU usage is lower as
without this parameter, but it goes up to 180%. So clearly it is using
at least two CPU's.
Or am I understanding this parameter wrongly?

I am using ffmpeg version 4.3.4-0+deb11u1. (Debian always lags a
little bit behind to be more stable.)

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof
___
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".