You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
(151) |
Apr
(278) |
May
(221) |
Jun
(161) |
Jul
(158) |
Aug
(204) |
Sep
(111) |
Oct
(344) |
Nov
(246) |
Dec
(348) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(393) |
Feb
(317) |
Mar
(225) |
Apr
(338) |
May
(328) |
Jun
(226) |
Jul
(195) |
Aug
(191) |
Sep
(211) |
Oct
(212) |
Nov
(304) |
Dec
(280) |
2003 |
Jan
(332) |
Feb
(401) |
Mar
(355) |
Apr
(240) |
May
(277) |
Jun
(299) |
Jul
(97) |
Aug
(280) |
Sep
(300) |
Oct
(200) |
Nov
(272) |
Dec
(281) |
2004 |
Jan
(384) |
Feb
(155) |
Mar
(155) |
Apr
(98) |
May
(191) |
Jun
(117) |
Jul
(119) |
Aug
(242) |
Sep
(146) |
Oct
(166) |
Nov
(101) |
Dec
(133) |
2005 |
Jan
(196) |
Feb
(133) |
Mar
(190) |
Apr
(100) |
May
(124) |
Jun
(78) |
Jul
(73) |
Aug
(110) |
Sep
(87) |
Oct
(102) |
Nov
(67) |
Dec
(77) |
2006 |
Jan
(75) |
Feb
(35) |
Mar
(51) |
Apr
(144) |
May
(40) |
Jun
(70) |
Jul
(53) |
Aug
(34) |
Sep
(31) |
Oct
(49) |
Nov
(80) |
Dec
(53) |
2007 |
Jan
(72) |
Feb
(21) |
Mar
(67) |
Apr
(56) |
May
(45) |
Jun
(23) |
Jul
(15) |
Aug
(27) |
Sep
(41) |
Oct
(20) |
Nov
(60) |
Dec
(52) |
2008 |
Jan
(40) |
Feb
(53) |
Mar
(41) |
Apr
(12) |
May
(25) |
Jun
(20) |
Jul
(19) |
Aug
(23) |
Sep
(29) |
Oct
(15) |
Nov
(10) |
Dec
(18) |
2009 |
Jan
(24) |
Feb
(19) |
Mar
(5) |
Apr
(17) |
May
(11) |
Jun
(43) |
Jul
(4) |
Aug
(2) |
Sep
(17) |
Oct
(15) |
Nov
(15) |
Dec
(4) |
2010 |
Jan
(8) |
Feb
(5) |
Mar
(4) |
Apr
(23) |
May
(16) |
Jun
|
Jul
(5) |
Aug
(1) |
Sep
(7) |
Oct
(31) |
Nov
(11) |
Dec
(6) |
2011 |
Jan
(10) |
Feb
(3) |
Mar
|
Apr
|
May
(4) |
Jun
(2) |
Jul
(5) |
Aug
(1) |
Sep
(25) |
Oct
(1) |
Nov
(13) |
Dec
|
2012 |
Jan
(2) |
Feb
|
Mar
(1) |
Apr
(1) |
May
|
Jun
(5) |
Jul
|
Aug
|
Sep
(5) |
Oct
|
Nov
(9) |
Dec
(3) |
2013 |
Jan
(3) |
Feb
(1) |
Mar
(9) |
Apr
(3) |
May
|
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
(1) |
Nov
(2) |
Dec
|
2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(6) |
Jul
(4) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
(1) |
2015 |
Jan
|
Feb
|
Mar
(1) |
Apr
(4) |
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
(2) |
Dec
|
2016 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
(4) |
Jul
|
Aug
(2) |
Sep
|
Oct
(2) |
Nov
(4) |
Dec
(5) |
2017 |
Jan
|
Feb
|
Mar
|
Apr
(2) |
May
(6) |
Jun
|
Jul
|
Aug
(2) |
Sep
(2) |
Oct
(3) |
Nov
|
Dec
|
2018 |
Jan
|
Feb
|
Mar
(1) |
Apr
(10) |
May
(4) |
Jun
(2) |
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2019 |
Jan
|
Feb
(2) |
Mar
|
Apr
(7) |
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
(7) |
Oct
(5) |
Nov
|
Dec
|
2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(12) |
Nov
|
Dec
|
2021 |
Jan
(9) |
Feb
(4) |
Mar
(4) |
Apr
(2) |
May
(45) |
Jun
(1) |
Jul
|
Aug
|
Sep
(23) |
Oct
(39) |
Nov
(8) |
Dec
(19) |
2022 |
Jan
|
Feb
|
Mar
(10) |
Apr
(26) |
May
(8) |
Jun
(2) |
Jul
(10) |
Aug
(2) |
Sep
(3) |
Oct
(21) |
Nov
(3) |
Dec
|
2023 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
(1) |
2024 |
Jan
(14) |
Feb
(3) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2025 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <li...@tr...> - 2025-07-13 18:02:53
|
From: "Dr. David Alan Gilbert" <li...@tr...> Nothing has checked the zr36067_debug variable since 2021 after commit efdd0d42e276 ("media: staging: media: zoran: remove detect_guest_activity") It's set as a module parameter, remove it. Signed-off-by: Dr. David Alan Gilbert <li...@tr...> --- drivers/media/pci/zoran/zoran_card.c | 4 ---- drivers/media/pci/zoran/zoran_card.h | 2 -- 2 files changed, 6 deletions(-) diff --git a/drivers/media/pci/zoran/zoran_card.c b/drivers/media/pci/zoran/zoran_card.c index e31f9f19a48a..d81facf735d9 100644 --- a/drivers/media/pci/zoran/zoran_card.c +++ b/drivers/media/pci/zoran/zoran_card.c @@ -67,10 +67,6 @@ module_param(pass_through, int, 0644); MODULE_PARM_DESC(pass_through, "Pass TV signal through to TV-out when idling"); -int zr36067_debug = 1; -module_param_named(debug, zr36067_debug, int, 0644); -MODULE_PARM_DESC(debug, "Debug level (0-5)"); - #define ZORAN_VERSION "0.10.1" MODULE_DESCRIPTION("Zoran-36057/36067 JPEG codec driver"); diff --git a/drivers/media/pci/zoran/zoran_card.h b/drivers/media/pci/zoran/zoran_card.h index 518cb426b446..c4f81777e6ce 100644 --- a/drivers/media/pci/zoran/zoran_card.h +++ b/drivers/media/pci/zoran/zoran_card.h @@ -12,8 +12,6 @@ #ifndef __ZORAN_CARD_H__ #define __ZORAN_CARD_H__ -extern int zr36067_debug; - /* Anybody who uses more than four? */ #define BUZ_MAX 4 -- 2.50.1 |
From: Andrew R. <ran...@gm...> - 2024-02-14 04:52:44
|
Was looking for xing media software, found this little open-source utility printing info on mpeg audio files, including this rare multichannel extension! https://mp3guessenc.sourceforge.io/ |
From: Andrew R. <ran...@gm...> - 2024-02-01 17:40:17
|
just found this accidently https://github.com/DigitalCompactCassette/mjpegtools but commit history says it only works on Windows (where other DCC tools natively run) |
From: Andrew R. <ran...@gm...> - 2024-02-01 01:06:07
|
Repo: https://github.com/Randrianasulu/encode2mpeg after installing mctoolame and pcm2aiff from iso-dist10 (also on my github) I can run such line: encode2mpeg -svcd -mp2 mctoolame -mpegchannels 6 -n p -imageonly /dev/shm/matrixbench_highdivx_ac3.avi -o /dev/shm/svcd_test.iso ==== long log ==== bash-5.1$ encode2mpeg -svcd -mp2 mctoolame -mpegchannels 6 -n p -imageonly /dev/shm/matrixbench_highdivx_ac3.avi -o /dev/shm/svcd_test.iso ++ WARN: [encode2mpeg] total video+audio bitrate (2500+393kbps) exceed SVCD specifications (2778kbps) WARNING you have an unsupported version of MPlayer [SVN-r38447-11.2.0] you need MPlayer 1.0rc1 or a later stable relase, encode2mpeg can fail Press return to proceed ++ WARN: [encode2mpeg] selected aspect ratio [4/3] and source aspect ratio [undefined] are different This codecs.conf is too old and incompatible with this MPlayer release! at line 6 MPlayer SVN-r38447-11.2.0 (C) 2000-2023 MPlayer Team CPU vendor name: AuthenticAMD max cpuid level: 13 CPU: AMD FX(tm)-4300 Quad-Core Processor (Family: 21, Model: 2, Stepping: 0) extended cpuid-level: 30 extended cache-info: 134250816 Detected cache-line size is 64 bytes Testing OS support for SSE... yes. Tests of OS support for SSE passed. CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNowExt: 0 SSE: 1 SSE2: 1 SSE3: 1 SSSE3: 1 SSE4: 1 SSE4.2: 1 AVX: 1 Compiled with runtime CPU detection. get_path('codecs.conf') -> '/home/guest/.mplayer/codecs.conf' Reading optional codecs config file /home/guest/.mplayer/codecs.conf: Reading optional codecs config file /usr/etc/mplayer/codecs.conf: No such file or directory Using built-in default codecs.conf. init_freetype Using SSE2 Optimized OnScreenDisplay get_path('fonts') -> '/home/guest/.mplayer/fonts' Configuration: --prefix=/usr --enable-radio --enable-radio-capture --enable-xvmc --enable-runtime-cpudetection --extra-cflags=-Wno-error=implicit-function-declaration --extra-ldflags=-latomic CommandLine: '/dev/shm/matrixbench_highdivx_ac3.avi' '-channels' '6' '-noframedrop' '-v' '-osdlevel' '0' '-vo' 'yuv4mpeg:file=/dev/fd/4' '-ao' 'pcm:waveheader:fast:file=%26%/dev/shm/svcd_test.iso.wav' Using nanosleep() timing get_path('input.conf') -> '/home/guest/.mplayer/input.conf' Reading optional input config file /home/guest/.mplayer/input.conf: No such file or directory Reading optional input config file /usr/etc/mplayer/input.conf: No such file or directory Falling back on default (hardcoded) input config Setting up LIRC support... do_connect: could not connect to socket connect: No such file or directory Failed to open LIRC support. You will not be able to use your remote control. get_path('matrixbench_highdivx_ac3.avi.conf') -> '/home/guest/.mplayer/matrixbench_highdivx_ac3.avi.conf' Playing /dev/shm/matrixbench_highdivx_ac3.avi. get_path('sub/') -> '/home/guest/.mplayer/sub/' [file] File size is 48078848 bytes STREAM: [file] /dev/shm/matrixbench_highdivx_ac3.avi STREAM: Description: File STREAM: Author: Albeu STREAM: Comment: based on the code from ??? (probably Arpi) libavformat version 60.20.100 (internal) Configuration: --enable-gpl --enable-postproc LAVF_check: AVI (Audio Video Interleaved) AVI file format detected. list_end=0x2286 ======= AVI Header ======= us/frame: 40000 (fps=25.000) max bytes/sec: 0 padding: 0 MainAVIHeader.dwFlags: (272) HAS_INDEX IS_INTERLEAVED frames total: 4691 initial: 0 streams: 2 Suggested BufferSize: 0 Size: 720 x 576 ========================== list_end=0x10F4 ==> Found video stream: 0 [aviheader] Video stream found, -vid 0 ====== STREAM Header ===== Type: vids FCC: div3 (33766964) Flags: 0 Priority: 0 Language: 0 InitialFrames: 0 Rate: 25/1 = 25.000 Start: 0 Len: 4691 Suggested BufferSize: 46639 Quality 5000 Sample size: 0 ========================== Found 'bih', 40 bytes of 40 ======= VIDEO Format ====== biSize 40 biWidth 720 biHeight 576 biPlanes 1 biBitCount 24 biCompression 861292868='DIV3' biSizeImage 1244160 =========================== Regenerating keyframe table for DIVX3 video. list_end=0x217A ==> Found audio stream: 1 [aviheader] Audio stream found, -aid 1 ====== STREAM Header ===== Type: auds FCC: (0) Flags: 0 Priority: 0 Language: 0 InitialFrames: 1 Rate: 48000/1 = 48000.000 Start: 0 Len: 9006720 Suggested BufferSize: 24000 Quality -1 Sample size: 1 ========================== Found 'wf', 18 bytes of 18 ======= WAVE Format ======= Format Tag: 8192 (0x2000) Channels: 5 Samplerate: 48000 avg byte/sec: 48000 Block align: 1 bits/sample: 0 cbSize: 18 Unknown extra header dump: [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [71] [1] [0] [0] [78] [17] [9f] [f5] ========================================================================== list_end=0x2286 AVI: dmlh found (size=248) (total_frames=4691) list_end=0x2314 hdr=Software size=15 Software : Nandub v1.0rc2 hdr=Title size=16 Title : The Matrix Clip hdr=Subject size=16 Subject : The Matrix Clip hdr=Artist size=1 Artist : hdr=Copyright size=1 Copyright : hdr=Comments size=30 Comments : dolby digital 5.1 audiostream list_end=0x2DB53F8 Found movie at 0x280C - 0x2DB53F8 Reading INDEX block, 9371 chunks for 4691 frames (fpos=47928320). AVI index offset: 0x2808 (movi=0x280C idx0=0x4 idx1=0x5DCC) Auto-selected AVI audio ID = 1 Auto-selected AVI video ID = 0 AVI: Searching for audio stream (id:1) AVI video size=38834001 (4691) audio size=9006720 (9006720) VIDEO: [DIV3] 720x576 24bpp 25.000 fps 1655.7 kbps (202.1 kbyte/s) Auto-selected AVI video ID = 0 Auto-selected AVI audio ID = 1 [V] filefmt:3 fourcc:0x33564944 size:720x576 fps:25.000 ftime:=0.0400 Using (default) progressive frame mode. ========================================================================== Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family libavcodec version 60.36.100 (internal) Configuration: --enable-gpl --enable-postproc [msmpeg4 @ 0x577b01a0]Format yuv420p chosen by get_format(). INFO: libavcodec init OK! Selected video codec: [ffdivx] vfm: ffmpeg (FFmpeg DivX ;-) (MSMPEG-4 v3)) ========================================================================== Clip info: Software: Nandub v1.0rc2 Title: The Matrix Clip Subject: The Matrix Clip Artist: Copyright: Comments: dolby digital 5.1 audiostream Load subtitles in /dev/shm/ get_path('sub/') -> '/home/guest/.mplayer/sub/' ========================================================================== Forced audio codec: mad Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders dec_audio: Allocating 1536000 + 131072 = 1667072 bytes for output buffer. FFmpeg's libavcodec audio codec For transform of length 128, inverse, mdct_float, flags: [aligned, out_of_place], found 2 matches: 1: mdct_inv_float_c - type: mdct_float, len: [2, в€ћ], factors[2]: [2, any], flags: [unaligned, out_of_place, inv_only], prio: 96 2: mdct_naive_inv_float_c - type: mdct_float, len: [2, в€ћ], factors[2]: [2, any], flags: [unaligned, out_of_place, inv_only], prio: -130976 For transform of length 64, inverse, fft_float, flags: [aligned, inplace, preshuf], found 2 matches: 1: fft_pfa_ns_float_c - type: fft_float, len: [6, в€ћ], factors[2]: [7, 5, 3, 2, any], flags: [unaligned, inplace, out_of_place, preshuf], prio: 112 2: fft64_ns_float_c - type: fft_float, len: 64, factor: 2, flags: [unaligned, inplace, out_of_place, preshuf], prio: 96 Transform tree: mdct_inv_float_c - type: mdct_float, len: 128, factors[2]: [2, any], flags: [unaligned, out_of_place, inv_only] fft64_ns_float_c - type: fft_float, len: 64, factor: 2, flags: [unaligned, inplace, out_of_place, preshuf] For transform of length 256, inverse, mdct_float, flags: [aligned, out_of_place], found 2 matches: 1: mdct_inv_float_c - type: mdct_float, len: [2, в€ћ], factors[2]: [2, any], flags: [unaligned, out_of_place, inv_only], prio: 96 2: mdct_naive_inv_float_c - type: mdct_float, len: [2, в€ћ], factors[2]: [2, any], flags: [unaligned, out_of_place, inv_only], prio: -130976 For transform of length 128, inverse, fft_float, flags: [aligned, inplace, preshuf], found 2 matches: 1: fft_pfa_ns_float_c - type: fft_float, len: [6, в€ћ], factors[2]: [7, 5, 3, 2, any], flags: [unaligned, inplace, out_of_place, preshuf], prio: 112 2: fft128_ns_float_c - type: fft_float, len: 128, factor: 2, flags: [unaligned, inplace, out_of_place, preshuf], prio: 96 Transform tree: mdct_inv_float_c - type: mdct_float, len: 256, factors[2]: [2, any], flags: [unaligned, out_of_place, inv_only] fft128_ns_float_c - type: fft_float, len: 128, factor: 2, flags: [unaligned, inplace, out_of_place, preshuf] INFO: libavcodec "ac3" init OK! AUDIO: 48000 Hz, 6 ch, floatle, 384.0 kbit/4.17% (ratio: 48000->1152000) Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3) ========================================================================== Building audio filter chain for 48000Hz/6ch/floatle -> 0Hz/0ch/??... [libaf] Adding filter dummy [dummy] Was reinitialized: 48000Hz/6ch/floatle [dummy] Was reinitialized: 48000Hz/6ch/floatle Trying preferred audio driver 'pcm', options 'waveheader:fast:file=%26%/dev/shm/svcd_test.iso.wav' [AO PCM] File: /dev/shm/svcd_test.iso.wav (WAVE) PCM: Samplerate: 48000Hz Channels: Stereo Format floatle [AO PCM] Info: Faster dumping is achieved with -benchmark -vc null -vo null -ao pcm:fast [AO PCM] Info: To write WAVE files use -ao pcm:waveheader (default). AO: [pcm] 48000Hz 6ch floatle (4 bytes per sample) AO: Description: RAW PCM/WAVE file writer audio output AO: Author: Atmosfear Building audio filter chain for 48000Hz/6ch/floatle -> 48000Hz/6ch/floatle... [dummy] Was reinitialized: 48000Hz/6ch/floatle [dummy] Was reinitialized: 48000Hz/6ch/floatle Starting playback... Increasing filtered audio buffer size from 0 to 77568 VDec: vo config request - 720 x 576 (preferred colorspace: Planar YV12) Trying filter chain: vo VDec: using Planar YV12 as output csp (no 0) Movie-Aspect is undefined - no prescaling applied. VO Config (720x576->720x576,flags=0,'MPlayer',0x32315659) VO: [yuv4mpeg] 720x576 => 720x576 Planar YV12 VO: Description: yuv4mpeg output for mjpegtools VO: Author: Robert Kesterson <ro...@ro...> *** [vo] Allocating mp_image_t, 768x576x12bpp YUV planar, 663552 bytes [ffmpeg] aspect_ratio: 0.000000 VDec: vo config request - 720 x 576 (preferred colorspace: Planar YV12) Trying filter chain: vo VDec: using Planar YV12 as output csp (no 0) Movie-Aspect is undefined - no prescaling applied. VO Config (720x576->720x576,flags=0,'MPlayer',0x32315659) VO: [yuv4mpeg] 720x576 => 720x576 Planar YV12 VO: Description: yuv4mpeg output for mjpegtools VO: Author: Robert Kesterson <ro...@ro...> Unicode font: 2326 glyphs. Unicode font: 2326 glyphs. A: 0.1 V: 0.0 A-V: 0.057 ct: 0.000 1/ 1 ??% ??% ??,?% 0 0 Increasing filtered audio buffer size from 77568 to 77712 XXX initial v_pts=0.000 a_pos=24000 (0.500) *** [vo] Allocating mp_image_t, 768x576x12bpp YUV planar, 663552 bytes A: 0.2 V: 0.1 A-V: 0.108 ct: -0.000 4/ 4 ??% ??% ??,?% 2 0 Increasing filtered audio buffer size from 77712 to 77760 A: 0.4 V: 0.2 A-V: 0.158 ct: -0.000 7/ 7 ??% ??% ??,?% 4 0 Increasing filtered audio buffer size from 77760 to 77808 [ac3 @ 0x577b01a0]incomplete frame 0.019 4683/4683 3% 15% 0.9% 3987 0 A: 187.6 V: 187.3 A-V: 0.282 ct: 0.020 4684/4684 3% 15% 0.9% 3988 0 ds_fill_buffer: EOF reached (stream: audio) A: 187.7 V: 187.4 A-V: 0.259 ct: 0.028 4686/4686 3% 15% 0.9% 3988 0 ds_fill_buffer: EOF reached (stream: audio) ds_fill_buffer: EOF reached (stream: audio) A: 187.7 V: 187.4 A-V: 0.236 ct: 0.032 4687/4687 3% 15% 0.9% 3988 0 ds_fill_buffer: EOF reached (stream: audio) ds_fill_buffer: EOF reached (stream: audio) A: 187.7 V: 187.5 A-V: 0.196 ct: 0.036 4688/4688 3% 15% 0.9% 3988 0 ds_fill_buffer: EOF reached (stream: audio) ds_fill_buffer: EOF reached (stream: audio) A: 187.7 V: 187.5 A-V: 0.156 ct: 0.040 4689/4689 3% 15% 0.9% 3988 0 ds_fill_buffer: EOF reached (stream: audio) ds_fill_buffer: EOF reached (stream: audio) A: 187.7 V: 187.6 A-V: 0.116 ct: 0.044 4690/4690 3% 15% 0.9% 3988 0 ds_fill_buffer: EOF reached (stream: audio) ds_fill_buffer: EOF reached (stream: audio) A: 187.7 V: 187.6 A-V: 0.076 ct: 0.048 4691/4691 3% 15% 0.9% 3988 0 ds_fill_buffer: EOF reached (stream: audio) ds_fill_buffer: EOF reached (stream: audio) ds_fill_buffer: EOF reached (stream: video) A: 187.7 V: 187.6 A-V: 0.076 ct: 0.052 4691/4691 3% 15% 0.9% 3988 0 ds_fill_buffer: EOF reached (stream: audio) ds_fill_buffer: EOF reached (stream: audio) ds_fill_buffer: EOF reached (stream: video) ds_fill_buffer: EOF reached (stream: audio) A: 187.7 V: 187.6 A-V: 0.076 ct: 0.152 4691/4691 3% 15% 0.9% 3988 0 EOF code: 1 Uninit audio filters... [libaf] Removing filter dummy Uninit audio: ffmpeg Uninit video: ffmpeg vo: x11 uninit called but X11 not initialized.. Exiting... (End of file) INFO: [encode2mpeg] encoding to mp2 audio with mctoolame MPlayer SVN-r38447-11.2.0 (C) 2000-2023 MPlayer Team This codecs.conf is too old and incompatible with this MPlayer release! at line 6 do_connect: could not connect to socket connect: No such file or directory Failed to open LIRC support. You will not be able to use your remote control. Playing /dev/shm/svcd_test.iso.wav. libavformat version 60.20.100 (internal) Audio only file format detected. Load subtitles in /dev/shm/ ========================================================================== Forced audio codec: mad Opening audio decoder: [pcm] Uncompressed PCM audio decoder AUDIO: 48000 Hz, 6 ch, floatle, 9216.0 kbit/100.00% (ratio: 1152000->1152000) Selected audio codec: [pcm] afm: pcm (Uncompressed PCM) ========================================================================== [AO PCM] File: /dev/shm/svcd_test.iso_l.pcm (RAW PCM) PCM: Samplerate: 44100Hz Channels: Mono Format s16le [AO PCM] Info: Faster dumping is achieved with -benchmark -vc null -vo null -ao pcm:fast [AO PCM] Info: To write WAVE files use -ao pcm:waveheader (default). AO: [pcm] 44100Hz 1ch s16le (2 bytes per sample) Video: no video Starting playback... A: 187.6 (03:07.6) of 187.0 (03:07.0) 0.6% Exiting... (End of file) MPlayer SVN-r38447-11.2.0 (C) 2000-2023 MPlayer Team This codecs.conf is too old and incompatible with this MPlayer release! at line 6 do_connect: could not connect to socket connect: No such file or directory Failed to open LIRC support. You will not be able to use your remote control. Playing /dev/shm/svcd_test.iso.wav. libavformat version 60.20.100 (internal) Audio only file format detected. Load subtitles in /dev/shm/ ========================================================================== Forced audio codec: mad Opening audio decoder: [pcm] Uncompressed PCM audio decoder AUDIO: 48000 Hz, 6 ch, floatle, 9216.0 kbit/100.00% (ratio: 1152000->1152000) Selected audio codec: [pcm] afm: pcm (Uncompressed PCM) ========================================================================== [AO PCM] File: /dev/shm/svcd_test.iso_r.pcm (RAW PCM) PCM: Samplerate: 44100Hz Channels: Mono Format s16le [AO PCM] Info: Faster dumping is achieved with -benchmark -vc null -vo null -ao pcm:fast [AO PCM] Info: To write WAVE files use -ao pcm:waveheader (default). AO: [pcm] 44100Hz 1ch s16le (2 bytes per sample) Video: no video Starting playback... A: 187.6 (03:07.6) of 187.0 (03:07.0) 0.6% Exiting... (End of file) MPlayer SVN-r38447-11.2.0 (C) 2000-2023 MPlayer Team This codecs.conf is too old and incompatible with this MPlayer release! at line 6 do_connect: could not connect to socket connect: No such file or directory Failed to open LIRC support. You will not be able to use your remote control. Playing /dev/shm/svcd_test.iso.wav. libavformat version 60.20.100 (internal) Audio only file format detected. Load subtitles in /dev/shm/ ========================================================================== Forced audio codec: mad Opening audio decoder: [pcm] Uncompressed PCM audio decoder AUDIO: 48000 Hz, 6 ch, floatle, 9216.0 kbit/100.00% (ratio: 1152000->1152000) Selected audio codec: [pcm] afm: pcm (Uncompressed PCM) ========================================================================== [AO PCM] File: /dev/shm/svcd_test.iso_ls.pcm (RAW PCM) PCM: Samplerate: 44100Hz Channels: Mono Format s16le [AO PCM] Info: Faster dumping is achieved with -benchmark -vc null -vo null -ao pcm:fast [AO PCM] Info: To write WAVE files use -ao pcm:waveheader (default). AO: [pcm] 44100Hz 1ch s16le (2 bytes per sample) Video: no video Starting playback... A: 187.6 (03:07.6) of 187.0 (03:07.0) 0.6% Exiting... (End of file) MPlayer SVN-r38447-11.2.0 (C) 2000-2023 MPlayer Team This codecs.conf is too old and incompatible with this MPlayer release! at line 6 do_connect: could not connect to socket connect: No such file or directory Failed to open LIRC support. You will not be able to use your remote control. Playing /dev/shm/svcd_test.iso.wav. libavformat version 60.20.100 (internal) Audio only file format detected. Load subtitles in /dev/shm/ ========================================================================== Forced audio codec: mad Opening audio decoder: [pcm] Uncompressed PCM audio decoder AUDIO: 48000 Hz, 6 ch, floatle, 9216.0 kbit/100.00% (ratio: 1152000->1152000) Selected audio codec: [pcm] afm: pcm (Uncompressed PCM) ========================================================================== [AO PCM] File: /dev/shm/svcd_test.iso_rs.pcm (RAW PCM) PCM: Samplerate: 44100Hz Channels: Mono Format s16le [AO PCM] Info: Faster dumping is achieved with -benchmark -vc null -vo null -ao pcm:fast [AO PCM] Info: To write WAVE files use -ao pcm:waveheader (default). AO: [pcm] 44100Hz 1ch s16le (2 bytes per sample) Video: no video Starting playback... A: 187.6 (03:07.6) of 187.0 (03:07.0) 0.6% Exiting... (End of file) MPlayer SVN-r38447-11.2.0 (C) 2000-2023 MPlayer Team This codecs.conf is too old and incompatible with this MPlayer release! at line 6 do_connect: could not connect to socket connect: No such file or directory Failed to open LIRC support. You will not be able to use your remote control. Playing /dev/shm/svcd_test.iso.wav. libavformat version 60.20.100 (internal) Audio only file format detected. Load subtitles in /dev/shm/ ========================================================================== Forced audio codec: mad Opening audio decoder: [pcm] Uncompressed PCM audio decoder AUDIO: 48000 Hz, 6 ch, floatle, 9216.0 kbit/100.00% (ratio: 1152000->1152000) Selected audio codec: [pcm] afm: pcm (Uncompressed PCM) ========================================================================== [AO PCM] File: /dev/shm/svcd_test.iso_c.pcm (RAW PCM) PCM: Samplerate: 44100Hz Channels: Mono Format s16le [AO PCM] Info: Faster dumping is achieved with -benchmark -vc null -vo null -ao pcm:fast [AO PCM] Info: To write WAVE files use -ao pcm:waveheader (default). AO: [pcm] 44100Hz 1ch s16le (2 bytes per sample) Video: no video Starting playback... A: 187.6 (03:07.6) of 187.0 (03:07.0) 0.6% Exiting... (End of file) MPlayer SVN-r38447-11.2.0 (C) 2000-2023 MPlayer Team This codecs.conf is too old and incompatible with this MPlayer release! at line 6 do_connect: could not connect to socket connect: No such file or directory Failed to open LIRC support. You will not be able to use your remote control. Playing /dev/shm/svcd_test.iso.wav. libavformat version 60.20.100 (internal) Audio only file format detected. Load subtitles in /dev/shm/ ========================================================================== Forced audio codec: mad Opening audio decoder: [pcm] Uncompressed PCM audio decoder AUDIO: 48000 Hz, 6 ch, floatle, 9216.0 kbit/100.00% (ratio: 1152000->1152000) Selected audio codec: [pcm] afm: pcm (Uncompressed PCM) ========================================================================== [AO PCM] File: /dev/shm/svcd_test.iso_lfe.pcm (RAW PCM) PCM: Samplerate: 44100Hz Channels: Mono Format s16le [AO PCM] Info: Faster dumping is achieved with -benchmark -vc null -vo null -ao pcm:fast [AO PCM] Info: To write WAVE files use -ao pcm:waveheader (default). AO: [pcm] 44100Hz 1ch s16le (2 bytes per sample) Video: no video Starting playback... A: 187.6 (03:07.6) of 187.0 (03:07.0) 0.6% Exiting... (End of file) ISO MPEG Audio Subgroup Software Simulation Group (1996) ISO 13818-3 MPEG-2 Audio Multichannel Encoder $Revision: 2.0 $ Num. ch: 6 Sample frames 8275267 Sample size in bits 16 Sample rate 44100.000000 Sound data is not PCM in "/dev/shm/svcd_test.iso.aiff". >>> Using 3/2 configuration. Encoding configuration: Layer=II mode=stereo extn=0 psy model=1 samp frq=44.1 kHz mpeg1 bitrate=384 kbps No multilingual coding. de-emph=0 c/right=0 orig=0 errprot=0 matrix=0 center=1 surround=2 stereo=2 stereomc=3 stereoaug=0 input file: '/dev/shm/svcd_test.iso.aiff' output file: '/dev/shm/svcd_test.iso.aiff.mp2' INFO: [mplex] mplex version 2.2.1 (2.2.7 $Date: 2012-11-17 01:55:16 $) INFO: [mplex] File /dev/shm/svcd_test.iso.mpv looks like an MPEG Video stream. INFO: [mplex] File /dev/shm/svcd_test.iso.mpa looks like an MPEG Audio stream. INFO: [mplex] Found 1 audio streams, 1 video streams and 0 subtitle streams INFO: [mplex] Selecting SVCD output profile INFO: [mplex] Multiplexing video program stream! INFO: [mplex] Scanning for header info: Video stream e0 (/dev/shm/svcd_test.iso.mpv) INFO: [mplex] VIDEO STREAM: e0 INFO: [mplex] Frame width : 480 INFO: [mplex] Frame height : 576 INFO: [mplex] Aspect ratio : 4:3 display INFO: [mplex] Picture rate : 25.000 frames/sec INFO: [mplex] Bit rate : 2500000 bits/sec INFO: [mplex] Vbv buffer size : 114688 bytes INFO: [mplex] CSPF : 0 INFO: [mplex] Scanning for header info: Audio stream c0 (/dev/shm/svcd_test.iso.mpa) INFO: [mplex] MPEG AUDIO STREAM: c0 INFO: [mplex] Audio version : 1.0 INFO: [mplex] Layer : 2 INFO: [mplex] CRC checksums : no INFO: [mplex] Bit rate : 49152 bytes/sec (384 kbit/sec) INFO: [mplex] Frequency : 44100 Hz INFO: [mplex] Mode : 0 stereo INFO: [mplex] Mode extension : 0 INFO: [mplex] Copyright bit : 0 no copyright INFO: [mplex] Original/Copy : 0 copy INFO: [mplex] Emphasis : 0 none INFO: [mplex] SYSTEMS/PROGRAM stream: INFO: [mplex] rough-guess multiplexed stream data rate : 2953744 INFO: [mplex] target data-rate specified : 11536000 INFO: [mplex] Setting specified specified data rate: 11536000 INFO: [mplex] Run-in delay = 3600 Video delay = 3600 Audio delay = 7200 INFO: [mplex] New sequence commences... INFO: [mplex] Video e0: buf= 0 frame=000000 sector=00000000 INFO: [mplex] Audio c0: buf= 0 frame=000000 sector=00000000 INFO: [mplex] Scanned to end AU 4690 INFO: [mplex] STREAM e0 completed INFO: [mplex] STREAM c0 completed INFO: [mplex] Multiplex completion at SCR=16892643. INFO: [mplex] Video e0: completed INFO: [mplex] Audio c0: completed INFO: [mplex] VIDEO_STATISTICS: e0 INFO: [mplex] Video Stream length: 29963178 bytes INFO: [mplex] Sequence headers: 313 INFO: [mplex] Sequence ends : 1 INFO: [mplex] No. Pictures : 4691 INFO: [mplex] No. Groups : 313 INFO: [mplex] No. I Frames : 313 avg. size 16371 bytes INFO: [mplex] No. P Frames : 4378 avg. size 5673 bytes INFO: [mplex] No. B Frames : 0 avg. size 0 bytes INFO: [mplex] Average bit-rate : 1277200 bits/sec INFO: [mplex] Peak bit-rate : 2422400 bits/sec INFO: [mplex] BUFFERING min 15 Buf max 72625 INFO: [mplex] AUDIO_STATISTICS: c0 INFO: [mplex] Audio stream length 9007857 bytes. INFO: [mplex] Syncwords : 7184 INFO: [mplex] Frames : 879 padded INFO: [mplex] Frames : 6305 unpadded INFO: [mplex] BUFFERING min 15 Buf max 1268 INFO: [mplex] MUX STATUS: no under-runs detected. ++ WARN: string '/dev/shm/svcd_test.iso' fails d-character constraint (pos = 0) MPEG: VIDEO: MPEG2 480x576 (aspect 2) 25.000 fps 2500.0 kbps (312.5 kbyte/s) ### LOG: /dev/shm/svcd_test.iso [2024-02-01 03:42:56] INFO: [encode2mpeg] version 0.6.4 running in DIRECT Mode (cpu=4) INFO: [encode2mpeg] command line: '-svcd -mp2 mctoolame -mpegchannels 6 -n p -imageonly /dev/shm/matrixbench_highdivx_ac3.avi -o /dev/shm/svcd_test.iso' ++ WARN: [encode2mpeg] total video+audio bitrate (2500+393kbps) exceed SVCD specifications (2778kbps) MPEG: frameformat:SVCD split:800 vfr:3 vbr:2500 abr:384 asr:44100 mpegchannels:6 audioformat:mp2 mp2:mctoolame mpegencoder:mpeg2enc INFO: [identify] ID_VIDEO_ID=0 INFO: [identify] ID_AUDIO_ID=1 INFO: [identify] ID_VIDEO_CODEC=ffdivx INFO: [identify] ID_CLIP_INFO_NAME0=Software INFO: [identify] ID_CLIP_INFO_VALUE0=Nandub v1.0rc2 INFO: [identify] ID_CLIP_INFO_NAME1=Title INFO: [identify] ID_CLIP_INFO_VALUE1=The Matrix Clip INFO: [identify] ID_CLIP_INFO_NAME2=Subject INFO: [identify] ID_CLIP_INFO_VALUE2=The Matrix Clip INFO: [identify] ID_CLIP_INFO_NAME3=Artist INFO: [identify] ID_CLIP_INFO_VALUE3= INFO: [identify] ID_CLIP_INFO_NAME4=Copyright INFO: [identify] ID_CLIP_INFO_VALUE4= INFO: [identify] ID_CLIP_INFO_NAME5=Comments INFO: [identify] ID_CLIP_INFO_VALUE5=dolby digital 5.1 audiostream INFO: [identify] ID_CLIP_INFO_N=6 INFO: [identify] ID_FILENAME=/dev/shm/matrixbench_highdivx_ac3.avi INFO: [identify] ID_DEMUXER=avi INFO: [identify] ID_VIDEO_FORMAT=DIV3 INFO: [identify] ID_VIDEO_BITRATE=1655680 INFO: [identify] ID_VIDEO_WIDTH=720 INFO: [identify] ID_VIDEO_HEIGHT=576 INFO: [identify] ID_VIDEO_FPS=25.000 INFO: [identify] ID_VIDEO_ASPECT=0.0000 INFO: [identify] ID_AUDIO_FORMAT=8192 INFO: [identify] ID_AUDIO_BITRATE=384000 INFO: [identify] ID_AUDIO_RATE=0 INFO: [identify] ID_AUDIO_NCH=0 INFO: [identify] ID_START_TIME=0.00 INFO: [identify] ID_LENGTH=187.64 INFO: [identify] ID_SEEKABLE=1 INFO: [identify] ID_CHAPTERS=0 INFO: [identify] ID_AUDIO_RATE=48000 INFO: [identify] ID_AUDIO_NCH=2 INFO: [identify] ID_AUDIO_CODEC=ffac3 INFO: [identify] ID_EXIT=EOF INFO: [MPLAYERYUVOPT] /dev/shm/matrixbench_highdivx_ac3.avi -channels 6 -noframedrop -v -osdlevel 0 -vo yuv4mpeg:file=/dev/fd/4 -ao pcm:waveheader:fast:file=%26%/dev/shm/svcd_test.iso.wav INFO: [YUVSCALEROPT] -v 1 -n p -O SVCD INFO: [MPEG2ENCOPT] -f 5 -b 2500 -V 113 -B 424 -4 2 -2 1 -g 6 -G 15 -M 4 -v 1 -S 800 -n p -F 3 -s -r 16 INFO: [MPLEXOPT] -f 5 -V -b 113 -r 11536 INFO: [VCDIMAGEROPT] -t svcd INFO: [CDRDAOOPT] --driver generic-mmc --device 0,0,0 INFO: [GROWISOFSOPT] -dvd-compat -Z /dev/cdrecorder -dvd-video ++ WARN: [encode2mpeg] selected aspect ratio [4/3] and source aspect ratio [undefined] are different INFO: [mplayer] MPlayer SVN-r38447-11.2.0 (C) 2000-2023 MPlayer Team INFO: [mplayer] ==> Found video stream: 0 INFO: [mplayer] ==> Found audio stream: 1 INFO: [yuvscaler] yuvscaler 2.2.1 11-Dec-2007 INFO: [yuvscaler] (C) 2001-2004 Xavier Biquard <xbi...@fr...>, yuvscaler -h for help, or man yuvscaler INFO: [yuvscaler] SVCD output format requested in PAL/SECAM norm INFO: [yuvscaler] input: frame size: 720x576 pixels (622080 bytes) INFO: [yuvscaler] input: chroma: 4:2:0 JPEG/MPEG-1 (interstitial) INFO: [yuvscaler] input: frame rate: 25/1 fps (~25.000000) INFO: [yuvscaler] input: interlace: none/progressive INFO: [yuvscaler] input: sample aspect ratio: 1:1 INFO: [yuvscaler] from 720x576, take 720x576+0+0, NOT_INTERLACED/PROGRESSIVE INFO: [yuvscaler] scale to 480x576, 480x576 being displayed INFO: [yuvscaler] Scaling uses the RESAMPLE algorithm, INFO: [yuvscaler] frame rate: 25.000 fps INFO: [yuvscaler] Scaling ratio for width is 3 to 2 INFO: [yuvscaler] and is 1 to 1 for height INFO: [yuvscaler] Specific downscaling routing number 6 INFO: [yuvscaler] output: frame size: 480x576 pixels (414720 bytes) INFO: [yuvscaler] output: chroma: 4:2:0 JPEG/MPEG-1 (interstitial) INFO: [yuvscaler] output: frame rate: 25/1 fps (~25.000000) INFO: [yuvscaler] output: interlace: none/progressive INFO: [yuvscaler] output: sample aspect ratio: 3:2 INFO: [yuvscaler] Frame number 0 INFO: [mpeg2enc] SETTING EXTENDED MMX for MOTION! INFO: [mpeg2enc] SETTING SSE and MMX for TRANSFORM! INFO: [mpeg2enc] SETTING EXTENDED MMX for PREDICTION! INFO: [mpeg2enc] Selecting Stretched SVCD output profile ++ WARN: [mpeg2enc] No aspect ratio specifed and no guess possible: assuming 4:3 display aspect! INFO: [mpeg2enc] Progressive input - selecting progressive encoding. ++ WARN: [mpeg2enc] Generating dummy SVCD scan-data offsets to be filled in by "vcdimager" ++ WARN: [mpeg2enc] If you're not using vcdimager you may wish to turn this off using -d INFO: [mpeg2enc] Encoding MPEG-2 video to /dev/shm/svcd_test.iso.mpv INFO: [mpeg2enc] Horizontal size: 480 pel INFO: [mpeg2enc] Vertical size: 576 pel INFO: [mpeg2enc] Aspect ratio code: 2 = 4:3 display INFO: [mpeg2enc] Frame rate code: 3 = 25.0 (PAL/SECAM VIDEO / converted FILM) INFO: [mpeg2enc] Bitrate: 2500 KBit/s INFO: [mpeg2enc] Quality factor: 8 (Quantisation = 9) (1=best, 31=worst) INFO: [mpeg2enc] Field order for input: none/progressive INFO: [mpeg2enc] New Sequence every 800 Mbytes INFO: [mpeg2enc] Assuming non-video stream of 424 Kbps INFO: [mpeg2enc] Search radius: 16 INFO: [mpeg2enc] DualPrime: no INFO: [mpeg2enc] Using one-pass rate controller INFO: [mpeg2enc] GOP SIZE RANGE 6 TO 15 INFO: [mpeg2enc] Quant code = 9 quantizer-scale = 8 INFO: [mpeg2enc] Setting colour/gamma parameters to "PAL B/G" INFO: [mpeg2enc] Progressive format frames = 1 INFO: [mpeg2enc] q_scale_type = 1 INFO: [mpeg2enc] Using default unmodified quantization matrices INFO: [mpeg2enc] SETTING MMX and MMX for QUANTIZER! INFO: [mpeg2enc] NEW GOP INIT length 15 INFO: [encode2mpeg] encoding to mp2 audio with mctoolame INFO: [mctoolame] ISO MPEG Audio Subgroup Software Simulation Group (1996) INFO: [mctoolame] ISO 13818-3 MPEG-2 Audio Multichannel Encoder INFO: [mctoolame] $Revision: 2.0 $ INFO: [mctoolame] Num. ch: 6 INFO: [mctoolame] Sample frames 8275267 INFO: [mctoolame] Sample size in bits 16 INFO: [mctoolame] Sample rate 44100.000000 INFO: [mctoolame] Sound data is not PCM in "/dev/shm/svcd_test.iso.aiff". INFO: [mctoolame] >>> Using 3/2 configuration. INFO: [mctoolame] Encoding configuration: INFO: [mctoolame] Layer=II mode=stereo extn=0 psy model=1 INFO: [mctoolame] samp frq=44.1 kHz mpeg1 bitrate=384 kbps INFO: [mctoolame] No multilingual coding. INFO: [mctoolame] de-emph=0 c/right=0 orig=0 errprot=0 INFO: [mctoolame] matrix=0 center=1 surround=2 stereo=2 stereomc=3 stereoaug=0 INFO: [mctoolame] input file: '/dev/shm/svcd_test.iso.aiff' output file: '/dev/shm/svcd_test.iso.aiff.mp2' INFO: [mplex] mplex version 2.2.1 (2.2.7 $Date: 2012-11-17 01:55:16 $) INFO: [mplex] File /dev/shm/svcd_test.iso.mpv looks like an MPEG Video stream. INFO: [mplex] File /dev/shm/svcd_test.iso.mpa looks like an MPEG Audio stream. INFO: [mplex] Found 1 audio streams, 1 video streams and 0 subtitle streams INFO: [mplex] Selecting SVCD output profile INFO: [mplex] Multiplexing video program stream! INFO: [mplex] Scanning for header info: Video stream e0 (/dev/shm/svcd_test.iso.mpv) INFO: [mplex] VIDEO STREAM: e0 INFO: [mplex] Frame width : 480 INFO: [mplex] Frame height : 576 INFO: [mplex] Aspect ratio : 4:3 display INFO: [mplex] Picture rate : 25.000 frames/sec INFO: [mplex] Bit rate : 2500000 bits/sec INFO: [mplex] Vbv buffer size : 114688 bytes INFO: [mplex] CSPF : 0 INFO: [mplex] Scanning for header info: Audio stream c0 (/dev/shm/svcd_test.iso.mpa) INFO: [mplex] MPEG AUDIO STREAM: c0 INFO: [mplex] Audio version : 1.0 INFO: [mplex] Layer : 2 INFO: [mplex] CRC checksums : no INFO: [mplex] Bit rate : 49152 bytes/sec (384 kbit/sec) INFO: [mplex] Frequency : 44100 Hz INFO: [mplex] Mode : 0 stereo INFO: [mplex] Mode extension : 0 INFO: [mplex] Copyright bit : 0 no copyright INFO: [mplex] Original/Copy : 0 copy INFO: [mplex] Emphasis : 0 none INFO: [mplex] SYSTEMS/PROGRAM stream: INFO: [mplex] rough-guess multiplexed stream data rate : 2953744 INFO: [mplex] target data-rate specified : 11536000 INFO: [mplex] Setting specified specified data rate: 11536000 INFO: [mplex] Run-in delay = 3600 Video delay = 3600 Audio delay = 7200 INFO: [mplex] New sequence commences... INFO: [mplex] Video e0: buf= 0 frame=000000 sector=00000000 INFO: [mplex] Audio c0: buf= 0 frame=000000 sector=00000000 INFO: [mplex] Scanned to end AU 4690 INFO: [mplex] STREAM e0 completed INFO: [mplex] STREAM c0 completed INFO: [mplex] Multiplex completion at SCR=16892643. INFO: [mplex] Video e0: completed INFO: [mplex] Audio c0: completed INFO: [mplex] VIDEO_STATISTICS: e0 INFO: [mplex] Video Stream length: 29963178 bytes INFO: [mplex] Sequence headers: 313 INFO: [mplex] Sequence ends : 1 INFO: [mplex] No. Pictures : 4691 INFO: [mplex] No. Groups : 313 INFO: [mplex] No. I Frames : 313 avg. size 16371 bytes INFO: [mplex] No. P Frames : 4378 avg. size 5673 bytes INFO: [mplex] No. B Frames : 0 avg. size 0 bytes INFO: [mplex] Average bit-rate : 1277200 bits/sec INFO: [mplex] Peak bit-rate : 2422400 bits/sec INFO: [mplex] BUFFERING min 15 Buf max 72625 INFO: [mplex] AUDIO_STATISTICS: c0 INFO: [mplex] Audio stream length 9007857 bytes. INFO: [mplex] Syncwords : 7184 INFO: [mplex] Frames : 879 padded INFO: [mplex] Frames : 6305 unpadded INFO: [mplex] BUFFERING min 15 Buf max 1268 INFO: [mplex] MUX STATUS: no under-runs detected. ++ WARN: [vcdxbuild] string '/dev/shm/svcd_test.iso' fails d-character constraint (pos = 0) MPEG: VIDEO: MPEG2 480x576 (aspect 2) 25.000 fps 2500.0 kbps (312.5 kbyte/s) MPEG: AUDIO[0]: MPEG 1.0 layer II, 384 kbit/s, 44100 Hz stereo MPEG: /dev/shm/svcd_test.iso01.mpg is 39784556 bytes, 37.9 MB JOBEND: /dev/shm/svcd_test.iso [2024-02-01 03:44:12] (0h1m16s) Warnings summary: ++ WARN: [encode2mpeg] total video+audio bitrate (2500+393kbps) exceed SVCD specifications (2778kbps) ++ WARN: [encode2mpeg] selected aspect ratio [4/3] and source aspect ratio [undefined] are different ++ WARN: [mpeg2enc] No aspect ratio specifed and no guess possible: assuming 4:3 display aspect! ++ WARN: [mpeg2enc] Generating dummy SVCD scan-data offsets to be filled in by "vcdimager" ++ WARN: [mpeg2enc] If you're not using vcdimager you may wish to turn this off using -d ++ WARN: [vcdxbuild] string '/dev/shm/svcd_test.iso' fails d-character constraint (pos = 0) ======== so it renders 3x realtime :) |
From: Andrew R. <ran...@gm...> - 2024-01-30 21:53:23
|
---------- Forwarded message --------- From: Andrew Randrianasulu <ran...@gm...> Date: Tue, Jan 30, 2024 at 9:23 PM Subject: Adopted from pdflib image sample (C) - 33352495-MIT.pdf To: Andrew Randrianasulu <ran...@gm...> http://dspace.mit.edu/bitstream/handle/1721.1/11468/33352495-MIT.pdf?sequence=2 An Implementation of the MPEG—2 Audio Decoding Specification by Chad Mikkelson ==== interesting read, while way above my coding level. |
From: Andrew R. <ran...@gm...> - 2024-01-27 02:10:42
|
On Wed, Jan 24, 2024 at 1:58 AM Andrew Randrianasulu <ran...@gm...> wrote: > > So, I was having a blast hacking old en/decoder. > > My own hacks do not work on 64-bit yet (they run, just sounds wrongs > :) ) but this one was tested on aarch64 Termux install, so should be > better > > https://github.com/Randrianasulu/iso-dist10 > > note: pcm2aiff too was not working for me, but mc (multichannel) and > lsf (low sampling frequency) mpeg de/encoders were good .. > > I wonder if mplex already can mux those streams? In man I see Even if svn log says nothing will ever be done for SVCD multichannel I think it was working at some point? https://encode2mpeg.sourceforge.net/html/multichannel.html uses mplex? First time I saw bash script in 100s kb size range ... and for Windows https://web.archive.org/web/20051230022557/http://hypercubemx.free.fr/html/how_to_make_5_1__svcd.html I tried their software under wine - um, something was eating cpu time - so 3 min of 6 ch. audio was encoding at 1/10 of realtime - for 30+ minutes! mctoolame on the other hand encodes same file in 190-75 seconds depend on -ffast-math usage. I was surprized that 'threshold" calculations in psycho_1.c (psychoacoustical model one) eat up to half of cpu time! So adding supposedly faster fftw from twolame not changed speed as radically as I hoped. ==== opreport log ==== samples cum. samples % cum. % image name symbol name 579112 579112 50.5768 50.5768 mctoolame threshold 115666 694778 10.1017 60.6785 mctoolame psycho_1 101489 796267 8.8636 69.5421 mctoolame II_a_bit_allocation 53317 849584 4.6564 74.1985 mctoolame noise_label 43665 893249 3.8135 78.0120 mctoolame window_subband 33099 926348 2.8907 80.9027 mctoolame filter_subband 28008 954356 2.4461 83.3488 mctoolame fht 24048 978404 2.1002 85.4490 mctoolame transmission_channel 20451 998855 1.7861 87.2351 mctoolame II_subband_quantization_mc 15968 1014823 1.3946 88.6297 mctoolame matricing_fft 15814 1030637 1.3811 90.0108 mctoolame II_scale_factor_calc 14554 1045191 1.2711 91.2819 mctoolame tc_alloc 14359 1059550 1.2540 92.5359 mctoolame lfe_filter 13910 1073460 1.2148 93.7507 mctoolame II_tonal_label 12842 1086302 1.1216 94.8723 mctoolame II_subband_quantization 6381 1092683 0.5573 95.4296 mctoolame putbits 6330 1099013 0.5528 95.9824 libc-2.33.so fwrite 5476 1104489 0.4782 96.4607 mctoolame II_smr 4562 1109051 0.3984 96.8591 mctoolame get_audio 3760 1112811 0.3284 97.1875 mctoolame II_sample_encoding_mc 3261 1116072 0.2848 97.4723 libc-2.33.so _IO_file_xsputn@@GLIBC_2.1 2587 1118659 0.2259 97.6982 mctoolame II_sample_encoding 2053 1120712 0.1793 97.8775 mctoolame normalizing 1906 1122618 0.1665 98.0440 mctoolame matricing 1723 1124341 0.1505 98.1944 mctoolame II_transmission_pattern 1628 1125969 0.1422 98.3366 mctoolame psycho_1_fft 1491 1127460 0.1302 98.4668 mctoolame II_minimum_mask 1273 1128733 0.1112 98.5780 mctoolame II_CRC_calc_mc 1234 1129967 0.1078 98.6858 mctoolame create_dct_matrix 964 1130931 0.0842 98.7700 mctoolame II_encode_scale 880 1131811 0.0769 98.8468 mctoolame main 821 1132632 0.0717 98.9185 mctoolame II_main_bit_allocation 781 1133413 0.0682 98.9867 kallsyms tick_do_update_jiffies64 742 1134155 0.0648 99.0515 mctoolame update_CRC 689 1134844 0.0602 99.1117 kallsyms copy_user_generic_string [rest is skipped] from 13818-3.pdf I currently read: ==== quote === The ISO/MPEG-Audio Multichannel system provides full compatibility with the ISO Standard 11172-3. This compatibility is realised by coding the basic stereo information in conformance with ISO/IEC 11172-3 and exploiting the ancillary data field of the ISO/IEC 11172-3 audio frame and an optional extension bit stream for the multichannel extension. The complete ISO/IEC 11172-3 frame incorporates four different types of information: - Header information within the first 32 bits of the ISO/IEC 11172-3 audio frame. - Cyclic Redundancy Check (CRC), consisting of 16 bits, just after the header information (optional). - Audio data, for Layer II consisting of bit allocation (BAL), scalefactor select information (SCFSI), scalefactors (SCF), and the subband samples. - Ancillary data. Due to the large number of different applications which will use the ISO/IEC 11172-3 Standard, the length and usage of this field are not specified. The variable length of the ancillary data field enables packing the complete extension information of the channels T2/T3/T4 into the first part of the ancillary data field. If the MC encoder does not use all of the ancillary data field for the multichannel extension information, the remaining part of the field can be used for other ancillary data. The bit rate required for the multichannel extension information may vary on a frame by frame basis, depending on the sound signals. The overall bit rate may be increased above that provided for in ISO/IEC 11172-3 by the use of an optional extension bit stream. The maximum bit rate, including the extension bit stream, is given by the following table: Sampling Frequency Layer Maximum Total Bit Rate 32 kHz I 903 kbit/s 32 kHz II 839 kbit/s 32 kHz III 775 kbit/s 44.1 kHz I 1075 kbit/s 44.1 kHz II 1011 kbit/s 44.1 kHz III 947 kbit/s 48 kHz I 1130 kbit/s 48 kHz II 1066 kbit/s 48 kHz III 1002 kbit/s huh, quite big - for all those channels ... ===== thing is, this extension bitstream just dumped by encoder as file, and I have currently no idea how to incorporate it back into mpeg stream :) Anyway, if specified bitrate not above 384 Kbit/s older standart used, so current mplex IMO muxes it correctly - I can extract mp2 audio with ffmpeg and decode it back in 5.1 sound ... additionally, I found two typos in man and comments :) patch attached > > BUGS > The multiplexer should handle MPEG(5.1) audio. > > but date on man page from 2001 ... |
From: Andrew R. <ran...@gm...> - 2024-01-25 14:06:21
|
Header: it seems that default mplex can mux 3 min test multichannel mpeg audio (mp2) audio just fine ... https://cloud.mail.ru/public/v5K7/5gRpkx25k - 9 mb mp2 file so I basically did DVD with cinelerra-gg from matrixbench clip (w/ ac3 sound from samples .mplayerhq.hu) then I rendered out audio separately in AIFF. sadly libsndfile defaults to new compressed AIFF. sox repacked it into older format encoder understand sox /dev/shm/dvd_20240125-144543/dvd.aif /dev/shm/dvd_20240125-144543/dvd.aiff ======= encoder run: /home/guest/botva/src/src/mctoolame-01a/mctoolame -x 1 -y 2 -D -L -w /dev/shm/dvd_20240125-144543/dvd.aiff bash-5.1$ /home/guest/botva/src/src/mctoolame-01a/mctoolame -x 1 -y 2 -D -L -w /dev/shm/dvd_20240125-144543/dvd.aiff ISO MPEG Audio Subgroup Software Simulation Group (1996) ISO 13818-3 MPEG-2 Audio Multichannel Encoder $Revision: 2.0 $ Num. ch: 6 Sample frames 9006723 Sample size in bits 16 Sample rate 48000.000000 Sound data is not PCM in "/dev/shm/dvd_20240125-144543/dvd.aiff". >>> Using 3/2 configuration. Encoding configuration: Layer=II mode=stereo extn=0 psy model=1 samp frq=48.0 kHz mpeg1 bitrate=384 kbps No multilingual coding. de-emph=0 c/right=0 orig=0 errprot=0 matrix=1 center=1 surround=2 stereo=2 stereomc=3 stereoaug=0 input file: '/dev/shm/dvd_20240125-144543/dvd.aiff' output file: '/dev/shm/dvd_20240125-144543/dvd.aiff.mp2' Then decoder run: bash-5.1$ /home/guest/botva/src/src/lamedecoder/mctoolamed /dev/shm/dvd_20240125-144543/dvd.aiff ISO MPEG Audio Subgroup Software Simulation Group (1996) ISO 13818-3 MPEG-2 Audio Multichannel Decoder $Revision: 2.2 $ Could not find "/dev/shm/dvd_20240125-144543/dvd.aiff.ext". No extension bitstream </dev/shm/dvd_20240125-144543/dvd.aiff.ext> present Input file = '/dev/shm/dvd_20240125-144543/dvd.aiff.mp2' Output file = '/dev/shm/dvd_20240125-144543/dvd.aiff.aiff' >>> A MPEG 2 Layer-1/2 bitstream will be decoded Output file written in AIFF format the bit stream file /dev/shm/dvd_20240125-144543/dvd.aiff.mp2 is a BINARY file HDR: s=FFF, id=1, l=2, ep=1, br=E, sf=1, pd=0, pr=0, m=0, js=0, c=0, o=0, e=0 layer=II, MPEG1-bitrate=384, sfrq=48.0, mode=stereo, sblim=27, jsbd=27, MPEG1-ch=2 mc-channel=3, MPEG2-ext-length=0 kbit/s lfe-channel present LFE file written in AIFF format initialising 5 output files next mpg header not found Frame cannot be located, end of input stream Decoding of "/dev/shm/dvd_20240125-144543/dvd.aiff.mp2" with 7819 frames is finished The decoded PCM output file name is "/dev/shm/dvd_20240125-144543/dvd.aiff.aiff" "/dev/shm/dvd_20240125-144543/dvd.aiff.aiff" has been written with AIFF header information ========== then test audio (-P mode, predictive, seems to be broken in encoder) bash-5.1$ cin /dev/shm/dvd_20240125-144543/dvd.aiff.aiff /dev/shm/dvd_20240125-144543/dvd.aiff_lfe.dec Cinelerra Infinity - built: Dec 22 2023 12:26:23 git://git.cinelerra-gg.org/goodguy/cinelerra.git (c) 2006-2019 Heroine Virtual Ltd. by Adam Williams 2007-2020 mods for Cinelerra-GG by W.P.Morrow aka goodguy 2003-2017 mods for Cinelerra-CV by CinelerraCV team 2015-2023 mods for Cinelerra-GG by Cinelerra-GG team Libav version: Lavc60.31.102 Cinelerra is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. There is absolutely no warranty for Cinelerra. RenderFarmClient::main_loop: client started AudioALSA::write_buffer err -32(Broken pipe) at sample 6275072 Total excess of backups: -50 Session time: 0:06:27 Cpu time: user: 0:00:23.504 sys: 0:00:05.709 move LFE to track 3 I think. ========= move file so mplex will recognize it bash-5.1$ mv /dev/shm/dvd_20240125-144543/dvd.aiff.mp2 /dev/shm/dvd_20240125-144543/dvd.mp2 bash-5.1$ /dev/shm/dvd_20240125-144543/dvd.sh running /dev/shm//dvd_20240125-144543/dvd.sh INFO: [mplex] mplex version 2.2.1 (2.2.7 $Date: 2012-11-17 01:55:16 $) INFO: [mplex] File /dev/shm/dvd_20240125-144543/dvd.m2v looks like an MPEG Video stream. INFO: [mplex] File /dev/shm/dvd_20240125-144543/dvd.mp2 looks like an MPEG Audio stream. INFO: [mplex] Video stream 0: profile 8 selected - ignoring non-standard options! INFO: [mplex] Found 1 audio streams, 1 video streams and 0 subtitle streams INFO: [mplex] Selecting dvdauthor DVD output profile INFO: [mplex] Multiplexing video program stream! INFO: [mplex] Scanning for header info: Video stream e0 (/dev/shm/dvd_20240125-144543/dvd.m2v) INFO: [mplex] VIDEO STREAM: e0 INFO: [mplex] Frame width : 720 INFO: [mplex] Frame height : 576 INFO: [mplex] Aspect ratio : 4:3 display INFO: [mplex] Picture rate : 25.000 frames/sec INFO: [mplex] Bit rate : 8000000 bits/sec INFO: [mplex] Vbv buffer size : 229376 bytes INFO: [mplex] CSPF : 0 INFO: [mplex] Scanning for header info: Audio stream c0 (/dev/shm/dvd_20240125-144543/dvd.mp2) INFO: [mplex] MPEG AUDIO STREAM: c0 INFO: [mplex] Audio version : 1.0 INFO: [mplex] Layer : 2 INFO: [mplex] CRC checksums : no INFO: [mplex] Bit rate : 49152 bytes/sec (384 kbit/sec) INFO: [mplex] Frequency : 48000 Hz INFO: [mplex] Mode : 0 stereo INFO: [mplex] Mode extension : 0 INFO: [mplex] Copyright bit : 0 no copyright INFO: [mplex] Original/Copy : 0 copy INFO: [mplex] Emphasis : 0 none INFO: [mplex] SYSTEMS/PROGRAM stream: INFO: [mplex] rough-guess multiplexed stream data rate : 8566496 INFO: [mplex] target data-rate specified : 10080000 INFO: [mplex] Setting specified specified data rate: 10080000 INFO: [mplex] Run-in delay = 7200 Video delay = 7200 Audio delay = 10800 INFO: [mplex] New sequence commences... INFO: [mplex] Video e0: buf= 0 frame=000000 sector=00000000 INFO: [mplex] Audio c0: buf= 0 frame=000000 sector=00000000 INFO: [mplex] Scanned to end AU 4690 INFO: [mplex] STREAM e0 completed INFO: [mplex] STREAM c0 completed INFO: [mplex] Multiplex completion at SCR=16893513. INFO: [mplex] Video e0: completed INFO: [mplex] Audio c0: completed INFO: [mplex] VIDEO_STATISTICS: e0 INFO: [mplex] Video Stream length: 185629369 bytes INFO: [mplex] Sequence headers: 313 INFO: [mplex] Sequence ends : 1 INFO: [mplex] No. Pictures : 4691 INFO: [mplex] No. Groups : 313 INFO: [mplex] No. I Frames : 313 avg. size 55155 bytes INFO: [mplex] No. P Frames : 4378 avg. size 38457 bytes INFO: [mplex] No. B Frames : 0 avg. size 0 bytes INFO: [mplex] Average bit-rate : 7914000 bits/sec INFO: [mplex] Peak bit-rate : 9047200 bits/sec INFO: [mplex] BUFFERING min 15 Buf max 176717 INFO: [mplex] AUDIO_STATISTICS: c0 INFO: [mplex] Audio stream length 9007488 bytes. INFO: [mplex] Syncwords : 7819 INFO: [mplex] Frames : 7819 padded INFO: [mplex] Frames : 0 unpadded INFO: [mplex] BUFFERING min 15 Buf max 1163 INFO: [mplex] MUX STATUS: no under-runs detected. DVDAuthor::dvdauthor, version 0.7.2. Build options: gnugetopt imagemagick iconv freetype fribidi fontconfig Send bug reports to <dvd...@li...> INFO: default video format is PAL INFO: dvdauthor creating VTS STAT: Picking VTS 01 STAT: Processing /dev/shm/dvd_20240125-144543/dvd.mpg... STAT: VOBU 304 at 182MB, 1 PGCs INFO: Video pts = 0.120 .. 187.760 INFO: Audio[8] pts = 0.120 .. 187.776 STAT: VOBU 313 at 188MB, 1 PGCs CHAPTERS: VTS[1/1] 0.000 INFO: Generating VTS with the following video attributes: INFO: MPEG version: mpeg2 INFO: TV standard: pal INFO: Aspect ratio: 4:3 INFO: Resolution: 720x576 INFO: Audio ch 0 format: mp2/2ch, 48khz 20bps, 'en' STAT: fixed 313 VOBUs INFO: dvdauthor creating table of contents INFO: Scanning /dev/shm/dvd_20240125-144543/iso/VIDEO_TS/VTS_01_0.IFO To burn dvd, load blank media and run: growisofs -dvd-compat -Z /dev/dvd -dvd-video /dev/shm/dvd_20240125-144543/iso Завершено dvd.sh was modded so it look fr m2 instead of ac3 ================= Test in mpv: bash-5.1$ mpv /dev/shm/dvd_20240125-144543/iso [file] This is a directory - adding to playlist. Playing: /dev/shm/dvd_20240125-144543/iso/AUDIO_TS [file] This is a directory - adding to playlist. Failed to recognize file format. Playing: /dev/shm/dvd_20240125-144543/iso/VIDEO_TS [file] This is a directory - adding to playlist. Playing: /dev/shm/dvd_20240125-144543/iso/VIDEO_TS/VIDEO_TS.BUP Failed to recognize file format. Playing: /dev/shm/dvd_20240125-144543/iso/VIDEO_TS/VIDEO_TS.IFO Failed to recognize file format. Playing: /dev/shm/dvd_20240125-144543/iso/VIDEO_TS/VTS_01_0.BUP Failed to recognize file format. Playing: /dev/shm/dvd_20240125-144543/iso/VIDEO_TS/VTS_01_0.IFO Failed to recognize file format. Playing: /dev/shm/dvd_20240125-144543/iso/VIDEO_TS/VTS_01_1.VOB (+) Video --vid=1 (mpeg2video 720x576 25.000fps) (+) Audio --aid=1 (mp2 2ch 48000Hz) AO: [alsa] 48000Hz stereo 2ch s16 VO: [gpu] 720x576 => 768x576 yuv420p [ffmpeg/audio] mp2: Header missing Error decoding audio. [ffmpeg/audio] mp2: Header missing Error decoding audio. [ffmpeg/audio] mp2: Header missing Error decoding audio. [ffmpeg/audio] mp2: Header missing Error decoding audio. AV: 00:00:28.680 / 00:03:07.632 (15%) A-V: 0.000 Exiting... (Quit) bash-5.1$ mpv -af volume=20 /dev/shm/dvd_20240125-144543/iso [file] This is a directory - adding to playlist. Playing: /dev/shm/dvd_20240125-144543/iso/AUDIO_TS [file] This is a directory - adding to playlist. Failed to recognize file format. Playing: /dev/shm/dvd_20240125-144543/iso/VIDEO_TS [file] This is a directory - adding to playlist. Playing: /dev/shm/dvd_20240125-144543/iso/VIDEO_TS/VIDEO_TS.BUP Failed to recognize file format. Playing: /dev/shm/dvd_20240125-144543/iso/VIDEO_TS/VIDEO_TS.IFO Failed to recognize file format. Playing: /dev/shm/dvd_20240125-144543/iso/VIDEO_TS/VTS_01_0.BUP Failed to recognize file format. Playing: /dev/shm/dvd_20240125-144543/iso/VIDEO_TS/VTS_01_0.IFO Failed to recognize file format. Playing: /dev/shm/dvd_20240125-144543/iso/VIDEO_TS/VTS_01_1.VOB (+) Video --vid=1 (mpeg2video 720x576 25.000fps) (+) Audio --aid=1 (mp2 2ch 48000Hz) AO: [alsa] 48000Hz stereo 2ch float VO: [gpu] 720x576 => 768x576 yuv420p [ffmpeg/audio] mp2: Header missing Error decoding audio. [ffmpeg/audio] mp2: Header missing Error decoding audio. [ffmpeg/audio] mp2: Header missing Error decoding audio. [ffmpeg/audio] mp2: Header missing Error decoding audio. [ffmpeg/audio] mp2: Header missing Error decoding audio. AV: 00:01:29.800 / 00:03:07.632 (48%) A-V: 0.000 Exiting... (Quit) ========== copy mp2 file out from VOB by ffmpeg: bash-5.1$ ffmpeg -i /dev/shm/dvd_20240125-144543/iso/VIDEO_TS/VTS_01_1.VOB -c:a copy -vn copy.mp2 ffmpeg version 4.4.4 Copyright (c) 2000-2023 the FFmpeg developers built with gcc 11.2.0 (GCC) configuration: --prefix=/usr --libdir=/usr/lib --shlibdir=/usr/lib --docdir=/usr/doc/ffmpeg-4.4.4/html --mandir=/usr/man --disable-debug --enable-shared --disable-static --enable-gpl --enable-version3 --enable-avresample --arch=i586 --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-gnutls --enable-libass --enable-libbluray --enable-libcdio --enable-frei0r --enable-libgsm --enable-openal --enable-libopus --enable-librtmp --enable-libsnappy --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libmp3lame --enable-opencl --enable-opengl --enable-libopenjpeg --disable-libpulse --enable-libsmbclient --enable-libsvtav1 --enable-libxml2 --enable-librsvg --enable-libdrm --enable-libaom --enable-libdav1d --enable-libsoxr --enable-libzimg --enable-vapoursynth libavutil 56. 70.100 / 56. 70.100 libavcodec 58.134.100 / 58.134.100 libavformat 58. 76.100 / 58. 76.100 libavdevice 58. 13.100 / 58. 13.100 libavfilter 7.110.100 / 7.110.100 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 9.100 / 5. 9.100 libswresample 3. 9.100 / 3. 9.100 libpostproc 55. 9.100 / 55. 9.100 Input #0, mpeg, from '/dev/shm/dvd_20240125-144543/iso/VIDEO_TS/VTS_01_1.VOB': Duration: 00:03:07.63, start: 0.120000, bitrate: 8435 kb/s Stream #0:0[0x1bf]: Data: dvd_nav_packet Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, bt470bg, top first), 720x576 [SAR 16:15 DAR 4:3], 25 fps, 25 tbr, 90k tbn, 50 tbc Side data: cpb: bitrate max/min/avg: 8000000/0/0 buffer size: 1835008 vbv_delay: N/A Stream #0:2[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16p, 384 kb/s File 'copy.mp2' already exists. Overwrite? [y/N] y Output #0, mp2, to 'copy.mp2': Metadata: encoder : Lavf58.76.100 Stream #0:0: Audio: mp2, 48000 Hz, stereo, s16p, 384 kb/s Stream mapping: Stream #0:2 -> #0:0 (copy) Press [q] to stop, [?] for help size= 8796kB time=00:03:07.63 bitrate= 384.0kbits/s speed=1.4e+03x video:0kB audio:8796kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000% ==== Decode it: bash-5.1$ /home/guest/botva/src/src/lamedecoder/mctoolamed copy ISO MPEG Audio Subgroup Software Simulation Group (1996) ISO 13818-3 MPEG-2 Audio Multichannel Decoder $Revision: 2.2 $ Could not find "copy.ext". No extension bitstream <copy.ext> present Input file = 'copy.mp2' Output file = 'copy.aiff' >>> A MPEG 2 Layer-1/2 bitstream will be decoded Output file written in AIFF format the bit stream file copy.mp2 is a BINARY file HDR: s=FFF, id=1, l=2, ep=1, br=E, sf=1, pd=0, pr=0, m=0, js=0, c=0, o=0, e=0 layer=II, MPEG1-bitrate=384, sfrq=48.0, mode=stereo, sblim=27, jsbd=27, MPEG1-ch=2 mc-channel=3, MPEG2-ext-length=0 kbit/s lfe-channel present LFE file written in AIFF format initialising 5 output files next mpg header not found Frame cannot be located, end of input stream Decoding of "copy.mp2" with 7819 frames is finished The decoded PCM output file name is "copy.aiff" "copy.aiff" has been written with AIFF header information ========== test it again cin copy.aiff copy_lfe.dec Cinelerra Infinity - built: Dec 22 2023 12:26:23 git://git.cinelerra-gg.org/goodguy/cinelerra.git (c) 2006-2019 Heroine Virtual Ltd. by Adam Williams 2007-2020 mods for Cinelerra-GG by W.P.Morrow aka goodguy 2003-2017 mods for Cinelerra-CV by CinelerraCV team 2015-2023 mods for Cinelerra-GG by Cinelerra-GG team Libav version: Lavc60.31.102 Cinelerra is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. There is absolutely no warranty for Cinelerra. RenderFarmClient::main_loop: client started Total excess of backups: -50 Session time: 0:01:12 Cpu time: user: 0:00:09.453 sys: 0:00:01.637 =========== both encoder and decoder should work on 64 bit machines, but LE (little endian) only at the moment! src https://github.com/Randrianasulu/mctoolame-experiments-enc https://github.com/Randrianasulu/mctoolame-experiments get files, run 'make' in their roots. (makefile may need some tweaking) |
From: Steven S. <sch...@gm...> - 2024-01-24 12:18:55
|
On Wed, Jan 24, 2024 at 12:47 AM Andrew Randrianasulu < ran...@gm...> wrote: > Not really full patch, but just something I hacked together for > compiling cinelerra-gg on termux.... > > I wonder if this functionality can be (or should) be rolled into > mjpegtools ? Or it better remain as separate patch for termux-packages > repo? > My feeling is that it should remain as a separate patch for terms-packages. I see a new/different pthreads_cancel() added - all my systems have a pthreads_cancel already,. I'll defer to the other folks though - if other devs want it then they'll add it,. thanks for the interest but I think this is functionality that belongs with the program/library that need or wants it. |
From: Andrew R. <ran...@gm...> - 2024-01-24 06:47:33
|
Not really full patch, but just something I hacked together for compiling cinelerra-gg on termux (linux terminal emulator AND distribution for running on Android 7+ devices). I wonder if this functionality can be (or should) be rolled into mjpegtools ? Or it better remain as separate patch for termux-packages repo? libbthread from https://github.com/tux-mind/libbthread |
From: Andrew R. <ran...@gm...> - 2024-01-23 23:15:51
|
So, I was having a blast hacking old en/decoder. My own hacks do not work on 64-bit yet (they run, just sounds wrongs :) ) but this one was tested on aarch64 Termux install, so should be better https://github.com/Randrianasulu/iso-dist10 note: pcm2aiff too was not working for me, but mc (multichannel) and lsf (low sampling frequency) mpeg de/encoders were good .. I wonder if mplex already can mux those streams? In man I see BUGS The multiplexer should handle MPEG(5.1) audio. but date on man page from 2001 ... |
From: Steven S. <sch...@gm...> - 2024-01-22 18:41:29
|
On Sun, Jan 21, 2024 at 6:55 AM Andrew Randrianasulu < ran...@gm...> wrote: > Using svn code from > > svn checkout https://svn.code.sf.net/p/mjpeg/Code/ mjpeg-Code > looked good to me and didn't appear to break anything. the patch has been committed |
From: Andrew R. <ran...@gm...> - 2024-01-21 13:26:58
|
On Sun, Jan 21, 2024 at 4:19 PM Steven Schultz <sch...@gm...> wrote: > > > > On Sun, Jan 21, 2024 at 6:55 AM Andrew Randrianasulu <ran...@gm...> wrote: >> >> Using svn code from >> >> svn checkout https://svn.code.sf.net/p/mjpeg/Code/ mjpeg-Code >> >> not tested apart from compilation ... > > > a "hello world" change would also compile 😉 > > could some one test it before a commit is done? I hope at least one user with hw player will surface this evening :) > > > _______________________________________________ > Mjpeg-users mailing list > Mjp...@li... > https://lists.sourceforge.net/lists/listinfo/mjpeg-users |
From: Steven S. <sch...@gm...> - 2024-01-21 13:19:48
|
On Sun, Jan 21, 2024 at 6:55 AM Andrew Randrianasulu < ran...@gm...> wrote: > Using svn code from > > svn checkout https://svn.code.sf.net/p/mjpeg/Code/ mjpeg-Code > > not tested apart from compilation ... a "hello world" change would also compile 😉 could some one test it before a commit is done? |
From: Andrew R. <ran...@gm...> - 2024-01-21 12:54:59
|
Using svn code from svn checkout https://svn.code.sf.net/p/mjpeg/Code/ mjpeg-Code not tested apart from compilation ... |
From: Andrew R. <ran...@gm...> - 2024-01-21 12:06:29
|
On Sun, Jan 21, 2024 at 2:47 PM Paul B Mahol <on...@gm...> wrote: > > /* no traces of 44100 and 32000Hz in any commercial software or player */ well, but mpv (and vlc?) supports it .... > > On Sun, Jan 21, 2024 at 3:44 AM Andrew Randrianasulu < > ran...@gm...> wrote: > > > According to this source (vlc) lpcm dvd audio supports lower frequencies > > like 44100/32000 hz - useful for direct dv transcoding for example .... > > > > https://github.com/videolan/vlc/blob/master/modules/codec/lpcm.c > > > > see lines 524, 608 > > > > Does this mean that libavcodec/pcm-dvdenc.c can be trivially extended to > > support those ? > > > > Same question for mplex. (it only supports 48/96 khz lpcm audio). > > > > I also found this table via mjpeg-users archives: > > > > https://dvd.sourceforge.net/dvdinfo/lpcm.html > > > > it lists dynamic range/gain (?) setting equations. > > > > Not mplex nor ffmpeg support setting this to anything but hardcoded 0x80 > > > > This might be source of my "too loud" lpcm dvd experiments because I was > > making lpcm file via cinelerra-gg's raw pcm output format (using libsndfile > > internally). > > _______________________________________________ > > ffmpeg-user mailing list > > ffm...@ff... > > https://ffmpeg.org/mailman/listinfo/ffmpeg-user > > > > To unsubscribe, visit link above, or email > > ffm...@ff... with subject "unsubscribe". > > > _______________________________________________ > ffmpeg-user mailing list > ffm...@ff... > https://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffm...@ff... with subject "unsubscribe". |
From: Paul B M. <on...@gm...> - 2024-01-21 11:47:32
|
/* no traces of 44100 and 32000Hz in any commercial software or player */ On Sun, Jan 21, 2024 at 3:44 AM Andrew Randrianasulu < ran...@gm...> wrote: > According to this source (vlc) lpcm dvd audio supports lower frequencies > like 44100/32000 hz - useful for direct dv transcoding for example .... > > https://github.com/videolan/vlc/blob/master/modules/codec/lpcm.c > > see lines 524, 608 > > Does this mean that libavcodec/pcm-dvdenc.c can be trivially extended to > support those ? > > Same question for mplex. (it only supports 48/96 khz lpcm audio). > > I also found this table via mjpeg-users archives: > > https://dvd.sourceforge.net/dvdinfo/lpcm.html > > it lists dynamic range/gain (?) setting equations. > > Not mplex nor ffmpeg support setting this to anything but hardcoded 0x80 > > This might be source of my "too loud" lpcm dvd experiments because I was > making lpcm file via cinelerra-gg's raw pcm output format (using libsndfile > internally). > _______________________________________________ > ffmpeg-user mailing list > ffm...@ff... > https://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffm...@ff... with subject "unsubscribe". > |
From: Andrew R. <ran...@gm...> - 2024-01-21 02:44:19
|
According to this source (vlc) lpcm dvd audio supports lower frequencies like 44100/32000 hz - useful for direct dv transcoding for example .... https://github.com/videolan/vlc/blob/master/modules/codec/lpcm.c see lines 524, 608 Does this mean that libavcodec/pcm-dvdenc.c can be trivially extended to support those ? Same question for mplex. (it only supports 48/96 khz lpcm audio). I also found this table via mjpeg-users archives: https://dvd.sourceforge.net/dvdinfo/lpcm.html it lists dynamic range/gain (?) setting equations. Not mplex nor ffmpeg support setting this to anything but hardcoded 0x80 This might be source of my "too loud" lpcm dvd experiments because I was making lpcm file via cinelerra-gg's raw pcm output format (using libsndfile internally). |
From: Andrew R. <ran...@gm...> - 2024-01-20 13:41:12
|
Hello! I am trying to develop procedure for making DVDs with LPCM audio using Linux NLE Cinelerra-gg [1] It works, but for some reason our lpcm file received as TOO LOUD by default, so I must quieten down whole sound track by 40 db. short (less than 3 min) video https://youtu.be/-NE2LZsVUjo Is there some switch to mplex I missed? mplex log: ==== /dev/shm//dvd_20240120-153459/dvd.sh running /dev/shm//dvd_20240120-153459/dvd.sh INFO: [mplex] mplex version 2.2.1 (2.2.7 $Date: 2012-11-17 01:55:16 $) INFO: [mplex] File /dev/shm/dvd_20240120-153459/dvd.m2v looks like an MPEG Video stream. INFO: [mplex] File /dev/shm/dvd_20240120-153459/dvd.lpcm looks like an LPCM Audio stream. INFO: [mplex] Video stream 0: profile 8 selected - ignoring non-standard options! INFO: [mplex] Found 1 audio streams, 1 video streams and 0 subtitle streams INFO: [mplex] Selecting dvdauthor DVD output profile INFO: [mplex] Multiplexing video program stream! INFO: [mplex] Scanning for header info: Video stream e0 (/dev/shm/dvd_20240120-153459/dvd.m2v) INFO: [mplex] VIDEO STREAM: e0 INFO: [mplex] Frame width : 720 INFO: [mplex] Frame height : 576 INFO: [mplex] Aspect ratio : 4:3 display INFO: [mplex] Picture rate : 25.000 frames/sec INFO: [mplex] Bit rate : 9000000 bits/sec INFO: [mplex] Vbv buffer size : 229376 bytes INFO: [mplex] CSPF : 0 INFO: [mplex] Scanning for header info: LPCM Audio stream 00 (/dev/shm/dvd_20240120-153459/dvd.lpcm) INFO: [mplex] LPCM AUDIO STREAM: INFO: [mplex] Bit rate : 192000 bytes/sec (1536000) bit/sec) INFO: [mplex] Channels : 2 INFO: [mplex] Bits per sample: 16 INFO: [mplex] Frequency : 48000 Hz INFO: [mplex] SYSTEMS/PROGRAM stream: INFO: [mplex] rough-guess multiplexed stream data rate : 10753200 INFO: [mplex] target data-rate specified : 10080000 ++ WARN: [mplex] Target data rate lower than computed requirement! ++ WARN: [mplex] N.b. a 20% or so discrepancy in variable bit-rate ++ WARN: [mplex] streams is common and harmless provided no time-outs will occur INFO: [mplex] Run-in delay = 10800 Video delay = 10800 Audio delay = 14400 INFO: [mplex] New sequence commences... INFO: [mplex] Video e0: buf= 0 frame=000000 sector=00000000 INFO: [mplex] Audio bd: buf= 0 frame=000000 sector=00000000 ++ WARN: [mplex] Stream e0: data will arrive too late sent(SCR)=18139 required(DTS)=18000 ++ WARN: [mplex] Video e0: buf= 61773 frame=000002 sector=00000119 ++ WARN: [mplex] Audio bd: buf= 352 frame=000025 sector=00000004 INFO: [mplex] STREAM e0 completed INFO: [mplex] STREAM bd completed INFO: [mplex] Multiplex completion at SCR=5399259. INFO: [mplex] Video e0: completed INFO: [mplex] Audio bd: completed INFO: [mplex] VIDEO_STATISTICS: e0 INFO: [mplex] Video Stream length: 60133444 bytes INFO: [mplex] Sequence headers: 85 INFO: [mplex] Sequence ends : 0 INFO: [mplex] No. Pictures : 1500 INFO: [mplex] No. Groups : 85 INFO: [mplex] No. I Frames : 85 avg. size 59075 bytes INFO: [mplex] No. P Frames : 1415 avg. size 38948 bytes INFO: [mplex] No. B Frames : 0 avg. size 0 bytes INFO: [mplex] Average bit-rate : 8017600 bits/sec INFO: [mplex] Peak bit-rate : 9707600 bits/sec INFO: [mplex] BUFFERING min 16 Buf max 235543 INFO: [mplex] AUDIO_STATISTICS: bd INFO: [mplex] Audio stream length 11520000 bytes. INFO: [mplex] Frames : 35999 INFO: [mplex] BUFFERING min 32 Buf max 54832 **ERROR: [mplex] MUX STATUS: Frame data under-runs detected! DVDAuthor::dvdauthor, version 0.7.2. Build options: gnugetopt imagemagick iconv freetype fribidi fontconfig Send bug reports to <dvd...@li...> INFO: default video format is PAL INFO: dvdauthor creating VTS STAT: Picking VTS 01 STAT: Processing /dev/shm/dvd_20240120-153459/dvd.mpg... STAT: VOBU 80 at 65MB, 1 PGCs INFO: Video pts = 0.160 .. 60.160 INFO: Audio[16] pts = 0.160 .. 60.160 STAT: VOBU 85 at 69MB, 1 PGCs CHAPTERS: VTS[1/1] 0.000 INFO: Generating VTS with the following video attributes: INFO: MPEG version: mpeg2 INFO: TV standard: pal INFO: Aspect ratio: 4:3 INFO: Resolution: 720x576 INFO: Audio ch 0 format: pcm/2ch, 48khz 16bps, 'en' STAT: fixed 85 VOBUs INFO: dvdauthor creating table of contents INFO: Scanning /dev/shm/dvd_20240120-153459/iso/VIDEO_TS/VTS_01_0.IFO To burn dvd, load blank media and run: growisofs -dvd-compat -Z /dev/dvd -dvd-video /dev/shm/dvd_20240120-153459/iso Завершено ======= mplex command line (part of the script) mplex -f 8 -L 48000:2:16 -o $dir/dvd.mpg $dir/dvd.m2v $dir/dvd.lpcm [1] https://cinelerra-gg.org/download/testing/ - there are two appimages (one for newish distros and second for something like Ubuntu 16/x86-64) |
From: Benjamin G. <ben...@co...> - 2023-12-04 13:39:51
|
Rename min_buffers_needed into min_queued_buffers and update the documentation about it. Signed-off-by: Benjamin Gaignard <ben...@co...> CC: Laurent Pinchart <lau...@id...> CC: Mauro Carvalho Chehab <mc...@ke...> CC: Shawn Guo <sha...@ke...> CC: Sascha Hauer <s....@pe...> CC: Pengutronix Kernel Team <ke...@pe...> CC: Fabio Estevam <fes...@gm...> CC: NXP Linux Team <lin...@nx...> CC: Hugues Fruchet <hug...@fo...> CC: lin...@st... CC: "Niklas Söderlund" <nik...@ra...> CC: Jacopo Mondi <ja...@jm...> CC: lin...@vg... CC: Andy Walls <aw...@md...> CC: Martin Tuma <mar...@di...> CC: Bluecherry Maintainers <mai...@bl...> CC: Anton Sviridenko <an...@co...> CC: Andrey Utkin <and...@co...> CC: Ezequiel Garcia <eze...@va...> CC: Corentin Labbe <cl...@ba...> CC: mjp...@li... CC: Neil Armstrong <nei...@li...> CC: Kevin Hilman <kh...@ba...> CC: Jerome Brunet <jb...@ba...> CC: Martin Blumenstingl <mar...@go...> CC: Greg Kroah-Hartman <gr...@li...> CC: lin...@li... --- .../media/common/videobuf2/videobuf2-core.c | 29 ++++++++++--------- drivers/media/pci/bt8xx/bttv-driver.c | 2 +- drivers/media/pci/cobalt/cobalt-v4l2.c | 2 +- drivers/media/pci/cx18/cx18-streams.c | 2 +- drivers/media/pci/cx23885/cx23885-417.c | 2 +- drivers/media/pci/cx23885/cx23885-dvb.c | 2 +- drivers/media/pci/cx23885/cx23885-video.c | 4 +-- drivers/media/pci/cx25821/cx25821-video.c | 2 +- drivers/media/pci/cx88/cx88-blackbird.c | 2 +- drivers/media/pci/cx88/cx88-dvb.c | 2 +- drivers/media/pci/cx88/cx88-video.c | 4 +-- drivers/media/pci/dt3155/dt3155.c | 2 +- drivers/media/pci/mgb4/mgb4_vin.c | 2 +- drivers/media/pci/mgb4/mgb4_vout.c | 2 +- drivers/media/pci/tw5864/tw5864-video.c | 2 +- drivers/media/pci/tw68/tw68-video.c | 2 +- drivers/media/pci/tw686x/tw686x-video.c | 2 +- drivers/media/pci/zoran/zoran_driver.c | 5 +--- .../platform/nxp/imx8-isi/imx8-isi-video.c | 2 +- .../platform/renesas/rcar-vin/rcar-dma.c | 2 +- drivers/media/platform/renesas/renesas-ceu.c | 2 +- .../platform/renesas/rzg2l-cru/rzg2l-video.c | 2 +- drivers/media/platform/renesas/sh_vou.c | 2 +- drivers/media/platform/st/stm32/stm32-dcmi.c | 2 +- drivers/staging/media/meson/vdec/vdec.c | 4 +-- .../media/sunxi/sun6i-isp/sun6i_isp_capture.c | 2 +- .../media/sunxi/sun6i-isp/sun6i_isp_params.c | 2 +- include/media/videobuf2-core.h | 6 ++-- samples/v4l/v4l2-pci-skeleton.c | 2 +- 29 files changed, 49 insertions(+), 49 deletions(-) diff --git a/drivers/media/common/videobuf2/videobuf2-core.c b/drivers/media/common/videobuf2/videobuf2-core.c index c224d13b3105..b251cde33ca5 100644 --- a/drivers/media/common/videobuf2/videobuf2-core.c +++ b/drivers/media/common/videobuf2/videobuf2-core.c @@ -816,7 +816,7 @@ static bool verify_coherency_flags(struct vb2_queue *q, bool non_coherent_mem) int vb2_core_reqbufs(struct vb2_queue *q, enum vb2_memory memory, unsigned int flags, unsigned int *count) { - unsigned int num_buffers, allocated_buffers, num_planes = 0; + unsigned int num_buffers, allocated_buffers, min_reqbufs_needed, num_planes = 0; unsigned int q_num_bufs = vb2_get_num_buffers(q); unsigned plane_sizes[VB2_MAX_PLANES] = { }; bool non_coherent_mem = flags & V4L2_MEMORY_FLAG_NON_COHERENT; @@ -865,8 +865,11 @@ int vb2_core_reqbufs(struct vb2_queue *q, enum vb2_memory memory, /* * Make sure the requested values and current defaults are sane. */ - num_buffers = max_t(unsigned int, *count, q->min_buffers_needed); - num_buffers = max_t(unsigned int, num_buffers, q->min_reqbufs_allocation); + if (q->min_reqbufs_allocation) + num_buffers = max_t(unsigned int, *count, q->min_reqbufs_allocation); + else + num_buffers = max_t(unsigned int, *count, q->min_queued_buffers + 1); + min_reqbufs_needed = num_buffers; num_buffers = min_t(unsigned int, num_buffers, q->max_num_buffers); memset(q->alloc_devs, 0, sizeof(q->alloc_devs)); /* @@ -918,7 +921,7 @@ int vb2_core_reqbufs(struct vb2_queue *q, enum vb2_memory memory, * There is no point in continuing if we can't allocate the minimum * number of buffers needed by this vb2_queue. */ - if (allocated_buffers < q->min_buffers_needed) + if (allocated_buffers < min_reqbufs_needed) ret = -ENOMEM; /* @@ -1654,7 +1657,7 @@ EXPORT_SYMBOL_GPL(vb2_core_prepare_buf); * @q: videobuf2 queue * * Attempt to start streaming. When this function is called there must be - * at least q->min_buffers_needed buffers queued up (i.e. the minimum + * at least q->min_queued_buffers queued up (i.e. the minimum * number of buffers required for the DMA engine to function). If the * @start_streaming op fails it is supposed to return all the driver-owned * buffers back to vb2 in state QUEUED. Check if that happened and if @@ -1847,7 +1850,7 @@ int vb2_core_qbuf(struct vb2_queue *q, struct vb2_buffer *vb, void *pb, * then we can finally call start_streaming(). */ if (q->streaming && !q->start_streaming_called && - q->queued_count >= q->min_buffers_needed) { + q->queued_count >= q->min_queued_buffers) { ret = vb2_start_streaming(q); if (ret) { /* @@ -2211,9 +2214,9 @@ int vb2_core_streamon(struct vb2_queue *q, unsigned int type) return -EINVAL; } - if (q_num_bufs < q->min_buffers_needed) { - dprintk(q, 1, "need at least %u allocated buffers\n", - q->min_buffers_needed); + if (q_num_bufs < q->min_queued_buffers) { + dprintk(q, 1, "need at least %u queued buffers\n", + q->min_queued_buffers); return -EINVAL; } @@ -2225,7 +2228,7 @@ int vb2_core_streamon(struct vb2_queue *q, unsigned int type) * Tell driver to start streaming provided sufficient buffers * are available. */ - if (q->queued_count >= q->min_buffers_needed) { + if (q->queued_count >= q->min_queued_buffers) { ret = vb2_start_streaming(q); if (ret) goto unprepare; @@ -2505,7 +2508,7 @@ int vb2_core_queue_init(struct vb2_queue *q) return -EINVAL; if (WARN_ON(q->max_num_buffers > MAX_BUFFER_INDEX) || - WARN_ON(q->min_buffers_needed > q->max_num_buffers)) + WARN_ON(q->min_queued_buffers > q->max_num_buffers)) return -EINVAL; if (WARN_ON(q->requires_requests && !q->supports_requests)) @@ -2513,13 +2516,13 @@ int vb2_core_queue_init(struct vb2_queue *q) /* * This combination is not allowed since a non-zero value of - * q->min_buffers_needed can cause vb2_core_qbuf() to fail if + * q->min_queued_buffers can cause vb2_core_qbuf() to fail if * it has to call start_streaming(), and the Request API expects * that queueing a request (and thus queueing a buffer contained * in that request) will always succeed. There is no method of * propagating an error back to userspace. */ - if (WARN_ON(q->supports_requests && q->min_buffers_needed)) + if (WARN_ON(q->supports_requests && q->min_queued_buffers)) return -EINVAL; INIT_LIST_HEAD(&q->queued_list); diff --git a/drivers/media/pci/bt8xx/bttv-driver.c b/drivers/media/pci/bt8xx/bttv-driver.c index 09a193bb87df..24ebb66a5988 100644 --- a/drivers/media/pci/bt8xx/bttv-driver.c +++ b/drivers/media/pci/bt8xx/bttv-driver.c @@ -3094,7 +3094,7 @@ static int vdev_init(struct bttv *btv, struct video_device *vfd, q->gfp_flags = __GFP_DMA32; q->buf_struct_size = sizeof(struct bttv_buffer); q->lock = &btv->lock; - q->min_buffers_needed = 2; + q->min_queued_buffers = 2; q->dev = &btv->c.pci->dev; err = vb2_queue_init(q); if (err) diff --git a/drivers/media/pci/cobalt/cobalt-v4l2.c b/drivers/media/pci/cobalt/cobalt-v4l2.c index 26bf58d17a3d..77ba08ace29f 100644 --- a/drivers/media/pci/cobalt/cobalt-v4l2.c +++ b/drivers/media/pci/cobalt/cobalt-v4l2.c @@ -1260,7 +1260,7 @@ static int cobalt_node_register(struct cobalt *cobalt, int node) q->ops = &cobalt_qops; q->mem_ops = &vb2_dma_sg_memops; q->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC; - q->min_buffers_needed = 2; + q->min_queued_buffers = 2; q->lock = &s->lock; q->dev = &cobalt->pci_dev->dev; vdev->queue = q; diff --git a/drivers/media/pci/cx18/cx18-streams.c b/drivers/media/pci/cx18/cx18-streams.c index cfbc4a907802..acc6418db425 100644 --- a/drivers/media/pci/cx18/cx18-streams.c +++ b/drivers/media/pci/cx18/cx18-streams.c @@ -287,7 +287,7 @@ static int cx18_stream_init(struct cx18 *cx, int type) s->vidq.ops = &cx18_vb2_qops; s->vidq.mem_ops = &vb2_vmalloc_memops; s->vidq.timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC; - s->vidq.min_buffers_needed = 2; + s->vidq.min_queued_buffers = 2; s->vidq.gfp_flags = GFP_DMA32; s->vidq.dev = &cx->pci_dev->dev; s->vidq.lock = &cx->serialize_lock; diff --git a/drivers/media/pci/cx23885/cx23885-417.c b/drivers/media/pci/cx23885/cx23885-417.c index 434677bd4ad1..fdb96f80c036 100644 --- a/drivers/media/pci/cx23885/cx23885-417.c +++ b/drivers/media/pci/cx23885/cx23885-417.c @@ -1525,7 +1525,7 @@ int cx23885_417_register(struct cx23885_dev *dev) q->type = V4L2_BUF_TYPE_VIDEO_CAPTURE; q->io_modes = VB2_MMAP | VB2_USERPTR | VB2_DMABUF | VB2_READ; q->gfp_flags = GFP_DMA32; - q->min_buffers_needed = 2; + q->min_queued_buffers = 2; q->drv_priv = dev; q->buf_struct_size = sizeof(struct cx23885_buffer); q->ops = &cx23885_qops; diff --git a/drivers/media/pci/cx23885/cx23885-dvb.c b/drivers/media/pci/cx23885/cx23885-dvb.c index 7551ca4a322a..3d01cdc4c7f3 100644 --- a/drivers/media/pci/cx23885/cx23885-dvb.c +++ b/drivers/media/pci/cx23885/cx23885-dvb.c @@ -2667,7 +2667,7 @@ int cx23885_dvb_register(struct cx23885_tsport *port) q->type = V4L2_BUF_TYPE_VIDEO_CAPTURE; q->io_modes = VB2_MMAP | VB2_USERPTR | VB2_DMABUF | VB2_READ; q->gfp_flags = GFP_DMA32; - q->min_buffers_needed = 2; + q->min_queued_buffers = 2; q->drv_priv = port; q->buf_struct_size = sizeof(struct cx23885_buffer); q->ops = &dvb_qops; diff --git a/drivers/media/pci/cx23885/cx23885-video.c b/drivers/media/pci/cx23885/cx23885-video.c index 9af2c5596121..42fdcf992e48 100644 --- a/drivers/media/pci/cx23885/cx23885-video.c +++ b/drivers/media/pci/cx23885/cx23885-video.c @@ -1321,7 +1321,7 @@ int cx23885_video_register(struct cx23885_dev *dev) q->type = V4L2_BUF_TYPE_VIDEO_CAPTURE; q->io_modes = VB2_MMAP | VB2_USERPTR | VB2_DMABUF | VB2_READ; q->gfp_flags = GFP_DMA32; - q->min_buffers_needed = 2; + q->min_queued_buffers = 2; q->drv_priv = dev; q->buf_struct_size = sizeof(struct cx23885_buffer); q->ops = &cx23885_video_qops; @@ -1338,7 +1338,7 @@ int cx23885_video_register(struct cx23885_dev *dev) q->type = V4L2_BUF_TYPE_VBI_CAPTURE; q->io_modes = VB2_MMAP | VB2_USERPTR | VB2_DMABUF | VB2_READ; q->gfp_flags = GFP_DMA32; - q->min_buffers_needed = 2; + q->min_queued_buffers = 2; q->drv_priv = dev; q->buf_struct_size = sizeof(struct cx23885_buffer); q->ops = &cx23885_vbi_qops; diff --git a/drivers/media/pci/cx25821/cx25821-video.c b/drivers/media/pci/cx25821/cx25821-video.c index 1b80c990cb94..0bee4b728a60 100644 --- a/drivers/media/pci/cx25821/cx25821-video.c +++ b/drivers/media/pci/cx25821/cx25821-video.c @@ -730,7 +730,7 @@ int cx25821_video_register(struct cx25821_dev *dev) q->io_modes = VB2_MMAP | VB2_USERPTR | VB2_DMABUF; q->io_modes |= is_output ? VB2_WRITE : VB2_READ; q->gfp_flags = GFP_DMA32; - q->min_buffers_needed = 2; + q->min_queued_buffers = 2; q->drv_priv = chan; q->buf_struct_size = sizeof(struct cx25821_buffer); q->ops = &cx25821_video_qops; diff --git a/drivers/media/pci/cx88/cx88-blackbird.c b/drivers/media/pci/cx88/cx88-blackbird.c index c1b41a9283c1..d55df8fdb3b6 100644 --- a/drivers/media/pci/cx88/cx88-blackbird.c +++ b/drivers/media/pci/cx88/cx88-blackbird.c @@ -1195,7 +1195,7 @@ static int cx8802_blackbird_probe(struct cx8802_driver *drv) q->type = V4L2_BUF_TYPE_VIDEO_CAPTURE; q->io_modes = VB2_MMAP | VB2_USERPTR | VB2_DMABUF | VB2_READ; q->gfp_flags = GFP_DMA32; - q->min_buffers_needed = 2; + q->min_queued_buffers = 2; q->drv_priv = dev; q->buf_struct_size = sizeof(struct cx88_buffer); q->ops = &blackbird_qops; diff --git a/drivers/media/pci/cx88/cx88-dvb.c b/drivers/media/pci/cx88/cx88-dvb.c index 2087f2491c42..b33b3a5e32ec 100644 --- a/drivers/media/pci/cx88/cx88-dvb.c +++ b/drivers/media/pci/cx88/cx88-dvb.c @@ -1776,7 +1776,7 @@ static int cx8802_dvb_probe(struct cx8802_driver *drv) q->type = V4L2_BUF_TYPE_VIDEO_CAPTURE; q->io_modes = VB2_MMAP | VB2_USERPTR | VB2_DMABUF | VB2_READ; q->gfp_flags = GFP_DMA32; - q->min_buffers_needed = 2; + q->min_queued_buffers = 2; q->drv_priv = dev; q->buf_struct_size = sizeof(struct cx88_buffer); q->ops = &dvb_qops; diff --git a/drivers/media/pci/cx88/cx88-video.c b/drivers/media/pci/cx88/cx88-video.c index c0ef03ed74f9..cefb6b25e921 100644 --- a/drivers/media/pci/cx88/cx88-video.c +++ b/drivers/media/pci/cx88/cx88-video.c @@ -1411,7 +1411,7 @@ static int cx8800_initdev(struct pci_dev *pci_dev, q->type = V4L2_BUF_TYPE_VIDEO_CAPTURE; q->io_modes = VB2_MMAP | VB2_USERPTR | VB2_DMABUF | VB2_READ; q->gfp_flags = GFP_DMA32; - q->min_buffers_needed = 2; + q->min_queued_buffers = 2; q->drv_priv = dev; q->buf_struct_size = sizeof(struct cx88_buffer); q->ops = &cx8800_video_qops; @@ -1428,7 +1428,7 @@ static int cx8800_initdev(struct pci_dev *pci_dev, q->type = V4L2_BUF_TYPE_VBI_CAPTURE; q->io_modes = VB2_MMAP | VB2_USERPTR | VB2_DMABUF | VB2_READ; q->gfp_flags = GFP_DMA32; - q->min_buffers_needed = 2; + q->min_queued_buffers = 2; q->drv_priv = dev; q->buf_struct_size = sizeof(struct cx88_buffer); q->ops = &cx8800_vbi_qops; diff --git a/drivers/media/pci/dt3155/dt3155.c b/drivers/media/pci/dt3155/dt3155.c index d09cde2f6ee4..dff853e73fdc 100644 --- a/drivers/media/pci/dt3155/dt3155.c +++ b/drivers/media/pci/dt3155/dt3155.c @@ -517,7 +517,7 @@ static int dt3155_probe(struct pci_dev *pdev, const struct pci_device_id *id) pd->vidq.ops = &q_ops; pd->vidq.mem_ops = &vb2_dma_contig_memops; pd->vidq.drv_priv = pd; - pd->vidq.min_buffers_needed = 2; + pd->vidq.min_queued_buffers = 2; pd->vidq.gfp_flags = GFP_DMA32; pd->vidq.lock = &pd->mux; /* for locking v4l2_file_operations */ pd->vidq.dev = &pdev->dev; diff --git a/drivers/media/pci/mgb4/mgb4_vin.c b/drivers/media/pci/mgb4/mgb4_vin.c index d72b07b87cd1..2cd78c539889 100644 --- a/drivers/media/pci/mgb4/mgb4_vin.c +++ b/drivers/media/pci/mgb4/mgb4_vin.c @@ -849,7 +849,7 @@ struct mgb4_vin_dev *mgb4_vin_create(struct mgb4_dev *mgbdev, int id) vindev->queue.mem_ops = &vb2_dma_sg_memops; vindev->queue.gfp_flags = GFP_DMA32; vindev->queue.timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC; - vindev->queue.min_buffers_needed = 2; + vindev->queue.min_queued_buffers = 2; vindev->queue.drv_priv = vindev; vindev->queue.lock = &vindev->lock; vindev->queue.dev = dev; diff --git a/drivers/media/pci/mgb4/mgb4_vout.c b/drivers/media/pci/mgb4/mgb4_vout.c index 857fc7bbd21a..241353ee77a5 100644 --- a/drivers/media/pci/mgb4/mgb4_vout.c +++ b/drivers/media/pci/mgb4/mgb4_vout.c @@ -523,7 +523,7 @@ struct mgb4_vout_dev *mgb4_vout_create(struct mgb4_dev *mgbdev, int id) voutdev->queue.mem_ops = &vb2_dma_sg_memops; voutdev->queue.gfp_flags = GFP_DMA32; voutdev->queue.timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC; - voutdev->queue.min_buffers_needed = 2; + voutdev->queue.min_queued_buffers = 2; voutdev->queue.drv_priv = voutdev; voutdev->queue.lock = &voutdev->lock; voutdev->queue.dev = dev; diff --git a/drivers/media/pci/tw5864/tw5864-video.c b/drivers/media/pci/tw5864/tw5864-video.c index 197ed8978102..8b1aae4b6319 100644 --- a/drivers/media/pci/tw5864/tw5864-video.c +++ b/drivers/media/pci/tw5864/tw5864-video.c @@ -1114,7 +1114,7 @@ static int tw5864_video_input_init(struct tw5864_input *input, int video_nr) input->vidq.gfp_flags = 0; input->vidq.buf_struct_size = sizeof(struct tw5864_buf); input->vidq.lock = &input->lock; - input->vidq.min_buffers_needed = 2; + input->vidq.min_queued_buffers = 2; input->vidq.dev = &input->root->pci->dev; ret = vb2_queue_init(&input->vidq); if (ret) diff --git a/drivers/media/pci/tw68/tw68-video.c b/drivers/media/pci/tw68/tw68-video.c index 79b627ebc92a..cdf5d733b863 100644 --- a/drivers/media/pci/tw68/tw68-video.c +++ b/drivers/media/pci/tw68/tw68-video.c @@ -952,7 +952,7 @@ int tw68_video_init2(struct tw68_dev *dev, int video_nr) dev->vidq.gfp_flags = __GFP_DMA32 | __GFP_KSWAPD_RECLAIM; dev->vidq.buf_struct_size = sizeof(struct tw68_buf); dev->vidq.lock = &dev->lock; - dev->vidq.min_buffers_needed = 2; + dev->vidq.min_queued_buffers = 2; dev->vidq.dev = &dev->pci->dev; ret = vb2_queue_init(&dev->vidq); if (ret) diff --git a/drivers/media/pci/tw686x/tw686x-video.c b/drivers/media/pci/tw686x/tw686x-video.c index 6bc6d143d18c..63be95fce83d 100644 --- a/drivers/media/pci/tw686x/tw686x-video.c +++ b/drivers/media/pci/tw686x/tw686x-video.c @@ -1222,7 +1222,7 @@ int tw686x_video_init(struct tw686x_dev *dev) vc->vidq.ops = &tw686x_video_qops; vc->vidq.mem_ops = dev->dma_ops->mem_ops; vc->vidq.timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC; - vc->vidq.min_buffers_needed = 2; + vc->vidq.min_queued_buffers = 2; vc->vidq.lock = &vc->vb_mutex; vc->vidq.gfp_flags = dev->dma_mode != TW686X_DMA_MODE_MEMCPY ? GFP_DMA32 : 0; diff --git a/drivers/media/pci/zoran/zoran_driver.c b/drivers/media/pci/zoran/zoran_driver.c index fa672cc8bc67..2c91f75e8d79 100644 --- a/drivers/media/pci/zoran/zoran_driver.c +++ b/drivers/media/pci/zoran/zoran_driver.c @@ -749,9 +749,6 @@ static int zr_vb2_queue_setup(struct vb2_queue *vq, unsigned int *nbuffers, unsi zr->buf_in_reserve = 0; - if (*nbuffers < vq->min_buffers_needed) - *nbuffers = vq->min_buffers_needed; - if (*nplanes) { if (sizes[0] < size) return -EINVAL; @@ -971,7 +968,7 @@ int zoran_queue_init(struct zoran *zr, struct vb2_queue *vq, int dir) vq->mem_ops = &vb2_dma_contig_memops; vq->gfp_flags = GFP_DMA32; vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC; - vq->min_buffers_needed = 9; + vq->min_queued_buffers = 9; vq->lock = &zr->lock; err = vb2_queue_init(vq); if (err) diff --git a/drivers/media/platform/nxp/imx8-isi/imx8-isi-video.c b/drivers/media/platform/nxp/imx8-isi/imx8-isi-video.c index 49bca2b01cc6..4091f1c0e78b 100644 --- a/drivers/media/platform/nxp/imx8-isi/imx8-isi-video.c +++ b/drivers/media/platform/nxp/imx8-isi/imx8-isi-video.c @@ -1453,7 +1453,7 @@ int mxc_isi_video_register(struct mxc_isi_pipe *pipe, q->mem_ops = &vb2_dma_contig_memops; q->buf_struct_size = sizeof(struct mxc_isi_buffer); q->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC; - q->min_buffers_needed = 2; + q->min_queued_buffers = 2; q->lock = &video->lock; q->dev = pipe->isi->dev; diff --git a/drivers/media/platform/renesas/rcar-vin/rcar-dma.c b/drivers/media/platform/renesas/rcar-vin/rcar-dma.c index 2a77353f10b5..e2c40abc6d3d 100644 --- a/drivers/media/platform/renesas/rcar-vin/rcar-dma.c +++ b/drivers/media/platform/renesas/rcar-vin/rcar-dma.c @@ -1559,7 +1559,7 @@ int rvin_dma_register(struct rvin_dev *vin, int irq) q->ops = &rvin_qops; q->mem_ops = &vb2_dma_contig_memops; q->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC; - q->min_buffers_needed = 4; + q->min_queued_buffers = 4; q->dev = vin->dev; ret = vb2_queue_init(q); diff --git a/drivers/media/platform/renesas/renesas-ceu.c b/drivers/media/platform/renesas/renesas-ceu.c index 2562b30acfb9..167760276796 100644 --- a/drivers/media/platform/renesas/renesas-ceu.c +++ b/drivers/media/platform/renesas/renesas-ceu.c @@ -1399,7 +1399,7 @@ static int ceu_notify_complete(struct v4l2_async_notifier *notifier) q->mem_ops = &vb2_dma_contig_memops; q->buf_struct_size = sizeof(struct ceu_buffer); q->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC; - q->min_buffers_needed = 2; + q->min_queued_buffers = 2; q->lock = &ceudev->mlock; q->dev = ceudev->v4l2_dev.dev; diff --git a/drivers/media/platform/renesas/rzg2l-cru/rzg2l-video.c b/drivers/media/platform/renesas/rzg2l-cru/rzg2l-video.c index e6eedd65b71d..d0ffa90bc656 100644 --- a/drivers/media/platform/renesas/rzg2l-cru/rzg2l-video.c +++ b/drivers/media/platform/renesas/rzg2l-cru/rzg2l-video.c @@ -767,7 +767,7 @@ int rzg2l_cru_dma_register(struct rzg2l_cru_dev *cru) q->ops = &rzg2l_cru_qops; q->mem_ops = &vb2_dma_contig_memops; q->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC; - q->min_buffers_needed = 4; + q->min_queued_buffers = 4; q->dev = cru->dev; ret = vb2_queue_init(q); diff --git a/drivers/media/platform/renesas/sh_vou.c b/drivers/media/platform/renesas/sh_vou.c index f792aedc9d82..1e74dd601c2b 100644 --- a/drivers/media/platform/renesas/sh_vou.c +++ b/drivers/media/platform/renesas/sh_vou.c @@ -1297,7 +1297,7 @@ static int sh_vou_probe(struct platform_device *pdev) q->ops = &sh_vou_qops; q->mem_ops = &vb2_dma_contig_memops; q->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC; - q->min_buffers_needed = 2; + q->min_queued_buffers = 2; q->lock = &vou_dev->fop_lock; q->dev = &pdev->dev; ret = vb2_queue_init(q); diff --git a/drivers/media/platform/st/stm32/stm32-dcmi.c b/drivers/media/platform/st/stm32/stm32-dcmi.c index 48140fdf40bb..c4610e305546 100644 --- a/drivers/media/platform/st/stm32/stm32-dcmi.c +++ b/drivers/media/platform/st/stm32/stm32-dcmi.c @@ -2031,7 +2031,7 @@ static int dcmi_probe(struct platform_device *pdev) q->ops = &dcmi_video_qops; q->mem_ops = &vb2_dma_contig_memops; q->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC; - q->min_buffers_needed = 2; + q->min_queued_buffers = 2; q->allow_cache_hints = 1; q->dev = &pdev->dev; diff --git a/drivers/staging/media/meson/vdec/vdec.c b/drivers/staging/media/meson/vdec/vdec.c index 1e2369f104c8..167ffe764a41 100644 --- a/drivers/staging/media/meson/vdec/vdec.c +++ b/drivers/staging/media/meson/vdec/vdec.c @@ -184,7 +184,7 @@ static void process_num_buffers(struct vb2_queue *q, * we need all of them to be queued into the driver */ sess->num_dst_bufs = q_num_bufs + *num_buffers; - q->min_buffers_needed = max(fmt_out->min_buffers, sess->num_dst_bufs); + q->min_queued_buffers = max(fmt_out->min_buffers, sess->num_dst_bufs); } static int vdec_queue_setup(struct vb2_queue *q, unsigned int *num_buffers, @@ -825,7 +825,6 @@ static int m2m_queue_init(void *priv, struct vb2_queue *src_vq, src_vq->mem_ops = &vb2_dma_contig_memops; src_vq->drv_priv = sess; src_vq->buf_struct_size = sizeof(struct dummy_buf); - src_vq->min_buffers_needed = 1; src_vq->dev = sess->core->dev; src_vq->lock = &sess->lock; ret = vb2_queue_init(src_vq); @@ -839,7 +838,6 @@ static int m2m_queue_init(void *priv, struct vb2_queue *src_vq, dst_vq->mem_ops = &vb2_dma_contig_memops; dst_vq->drv_priv = sess; dst_vq->buf_struct_size = sizeof(struct dummy_buf); - dst_vq->min_buffers_needed = 1; dst_vq->dev = sess->core->dev; dst_vq->lock = &sess->lock; return vb2_queue_init(dst_vq); diff --git a/drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_capture.c b/drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_capture.c index 1595a9607775..0eea4c2c3627 100644 --- a/drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_capture.c +++ b/drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_capture.c @@ -660,7 +660,7 @@ int sun6i_isp_capture_setup(struct sun6i_isp_device *isp_dev) queue->buf_struct_size = sizeof(struct sun6i_isp_buffer); queue->ops = &sun6i_isp_capture_queue_ops; queue->mem_ops = &vb2_dma_contig_memops; - queue->min_buffers_needed = 2; + queue->min_queued_buffers = 2; queue->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC; queue->lock = &capture->lock; queue->dev = isp_dev->dev; diff --git a/drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_params.c b/drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_params.c index e28be895b486..53d05e8a364b 100644 --- a/drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_params.c +++ b/drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_params.c @@ -489,7 +489,7 @@ int sun6i_isp_params_setup(struct sun6i_isp_device *isp_dev) queue->buf_struct_size = sizeof(struct sun6i_isp_buffer); queue->ops = &sun6i_isp_params_queue_ops; queue->mem_ops = &vb2_vmalloc_memops; - queue->min_buffers_needed = 1; + queue->min_queued_buffers = 1; queue->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC; queue->lock = ¶ms->lock; queue->dev = isp_dev->dev; diff --git a/include/media/videobuf2-core.h b/include/media/videobuf2-core.h index 17cacd696ab4..e8fda582f0d1 100644 --- a/include/media/videobuf2-core.h +++ b/include/media/videobuf2-core.h @@ -546,13 +546,15 @@ struct vb2_buf_ops { * @gfp_flags: additional gfp flags used when allocating the buffers. * Typically this is 0, but it may be e.g. %GFP_DMA or %__GFP_DMA32 * to force the buffer allocation to a specific memory zone. - * @min_buffers_needed: the minimum number of buffers needed before + * @min_queued_buffers: the minimum number of queued buffers needed before * @start_streaming can be called. Used when a DMA engine * cannot be started unless at least this number of buffers * have been queued into the driver. * @min_reqbufs_allocation: the minimum number of buffers allocated when * calling VIDIOC_REQBUFS. Used when drivers need a to * specify a minimum buffers allocation before setup a queue. + * If set to 0 then min_queued_buffers + 1 value is used + * as minimum numbers of buffers value. */ /* * Private elements (won't appear at the uAPI book): @@ -617,7 +619,7 @@ struct vb2_queue { unsigned int buf_struct_size; u32 timestamp_flags; gfp_t gfp_flags; - u32 min_buffers_needed; + u32 min_queued_buffers; u32 min_reqbufs_allocation; struct device *alloc_devs[VB2_MAX_PLANES]; diff --git a/samples/v4l/v4l2-pci-skeleton.c b/samples/v4l/v4l2-pci-skeleton.c index a65aa9d1e9da..4fe8f58b270f 100644 --- a/samples/v4l/v4l2-pci-skeleton.c +++ b/samples/v4l/v4l2-pci-skeleton.c @@ -821,7 +821,7 @@ static int skeleton_probe(struct pci_dev *pdev, const struct pci_device_id *ent) * available before it can be started. The start_streaming() op * won't be called until at least this many buffers are queued up. */ - q->min_buffers_needed = 2; + q->min_queued_buffers = 2; /* * The serialization lock for the streaming ioctls. This is the same * as the main serialization lock, but if some of the non-streaming -- 2.39.2 |
From: Benjamin G. <ben...@co...> - 2023-11-27 17:15:45
|
zoran driver use a dma engine and needs a minimum number of buffers to be present before start streaming. That is 'min_dma_buffers_needed' purpose so use it instead of 'min_buffers_needed' field. Signed-off-by: Benjamin Gaignard <ben...@co...> CC: Corentin Labbe <cl...@ba...> CC: mjp...@li... --- drivers/media/pci/zoran/zoran_driver.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/media/pci/zoran/zoran_driver.c b/drivers/media/pci/zoran/zoran_driver.c index fa672cc8bc67..23ed1fdc03df 100644 --- a/drivers/media/pci/zoran/zoran_driver.c +++ b/drivers/media/pci/zoran/zoran_driver.c @@ -749,9 +749,6 @@ static int zr_vb2_queue_setup(struct vb2_queue *vq, unsigned int *nbuffers, unsi zr->buf_in_reserve = 0; - if (*nbuffers < vq->min_buffers_needed) - *nbuffers = vq->min_buffers_needed; - if (*nplanes) { if (sizes[0] < size) return -EINVAL; @@ -971,7 +968,7 @@ int zoran_queue_init(struct zoran *zr, struct vb2_queue *vq, int dir) vq->mem_ops = &vb2_dma_contig_memops; vq->gfp_flags = GFP_DMA32; vq->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC; - vq->min_buffers_needed = 9; + vq->min_dma_buffers_needed = 9; vq->lock = &zr->lock; err = vb2_queue_init(vq); if (err) -- 2.39.2 |
From: Janos G K. <ja...@an...> - 2022-11-26 21:59:56
|
I'm closing this thread for now. Thank you, Bernie and Stephen, for your ideas and guidance. In summary: The OS on my Fitlet2 computer is Gentoo, Desktop stable. It has Alsa for sound. After trying to resolve the Alsa / OSS issue with help from Gentoo Forum community I found a solution to the simple video editing task: avidemux. Best regards to you all, Janos On Sat, 19 Nov 2022 06:57:03 +0100 Bernhard Praschinger <ber...@gr...> wrote: > cd dowHallo, > > Janos G. Komaromi wrote: > > Sorry, I'm back again. I still would like to do my video editing > > with glav and sound. Consequently I did a lot of research and > > Gentoo Forum message exchanges about alsa and OSS. I tried to > > resolve the issue without turning to this mailing list community. > > Here is the latest situation, and now I'm asking for comments, > > suggestions. > > > > After enabling /dev/dsp and making sure that alsa oss emulation is > > configured correctly - quote: > > > > janos@andraslinux ~/save/tmp/videoDigitizing $ glav xcoded.avi > > ++: **ERROR: [lavplay] Error initializing Audio: Audio task died. > > Reason: Error: Soundcard fragment size unexpected > > ++: lavtools version 2.2.1 > I get that error too. > > > janos@andraslinux ~/save/tmp/videoDigitizing $ aoss glav xcoded.avi > > ++: **ERROR: [lavplay] Error initializing Audio: Audio task died. > > Reason: Error: Invalid argument - mapping audio buffer (consider > > using read/write instead of mmap) > > ++: lavtools version 2.2.1 > > Unquote. > With the same options the same error message. It get's more > descriptive if you add -v 2 > Did you add -U so it uses the the Read/write mode instead of the mmap > mode ? This helps me here to lavplay/glav does not crash. > > Does your distribution use still ALSA ? My opensuse uses PulseAudio, > using the padsp - PulseAudio OSS Wrapper instead of aoss, made > lavplay play back the videos audio and sound. The command looked like > this: padsp lavplay file.avi -U > > > Apparently something is wrong either with "fragment size". I could > > probably configure fragment size if I knew what lavplay expects; the > > loaded modules are: > > > > snd_pcm_oss > > snd_mixer_oss > > or something is wrong with in the code of lavplay. > Could be, but I just enjoy a old Music Video from Marusha :-) > > auf hoffentlich bald, > > Berni the Chaos of Woodquarter > > Email: ber...@gr... > www: http://www.lysator.liu.se/~gz/bernhard -- sent from Janos' Hillary server and NOT from iPhone nor Google facebook, instagram, viber, snapchat, twitter, tik-tok, etc. - neither of like those. https://andraslinux.jgklinux.jankom.net/ |
From: Bernhard P. <ber...@gr...> - 2022-11-19 05:57:21
|
cd dowHallo, Janos G. Komaromi wrote: > Sorry, I'm back again. I still would like to do my video editing with > glav and sound. Consequently I did a lot of research and Gentoo Forum > message exchanges about alsa and OSS. I tried to resolve the issue > without turning to this mailing list community. Here is the latest > situation, and now I'm asking for comments, suggestions. > > After enabling /dev/dsp and making sure that alsa oss emulation is > configured correctly - quote: > > janos@andraslinux ~/save/tmp/videoDigitizing $ glav xcoded.avi > ++: **ERROR: [lavplay] Error initializing Audio: Audio task died. > Reason: Error: Soundcard fragment size unexpected > ++: lavtools version 2.2.1 I get that error too. > janos@andraslinux ~/save/tmp/videoDigitizing $ aoss glav xcoded.avi > ++: **ERROR: [lavplay] Error initializing Audio: Audio task died. > Reason: Error: Invalid argument - mapping audio buffer (consider using > read/write instead of mmap) > ++: lavtools version 2.2.1 > Unquote. With the same options the same error message. It get's more descriptive if you add -v 2 Did you add -U so it uses the the Read/write mode instead of the mmap mode ? This helps me here to lavplay/glav does not crash. Does your distribution use still ALSA ? My opensuse uses PulseAudio, using the padsp - PulseAudio OSS Wrapper instead of aoss, made lavplay play back the videos audio and sound. The command looked like this: padsp lavplay file.avi -U > Apparently something is wrong either with "fragment size". I could > probably configure fragment size if I knew what lavplay expects; the > loaded modules are: > > snd_pcm_oss > snd_mixer_oss > or something is wrong with in the code of lavplay. Could be, but I just enjoy a old Music Video from Marusha :-) auf hoffentlich bald, Berni the Chaos of Woodquarter Email: ber...@gr... www: http://www.lysator.liu.se/~gz/bernhard |
From: Janos G. K. <ja...@ja...> - 2022-11-13 17:03:46
|
Sorry, I'm back again. I still would like to do my video editing with glav and sound. Consequently I did a lot of research and Gentoo Forum message exchanges about alsa and OSS. I tried to resolve the issue without turning to this mailing list community. Here is the latest situation, and now I'm asking for comments, suggestions. After enabling /dev/dsp and making sure that alsa oss emulation is configured correctly - quote: janos@andraslinux ~/save/tmp/videoDigitizing $ glav xcoded.avi ++: **ERROR: [lavplay] Error initializing Audio: Audio task died. Reason: Error: Soundcard fragment size unexpected ++: lavtools version 2.2.1 janos@andraslinux ~/save/tmp/videoDigitizing $ aoss glav xcoded.avi ++: **ERROR: [lavplay] Error initializing Audio: Audio task died. Reason: Error: Invalid argument - mapping audio buffer (consider using read/write instead of mmap) ++: lavtools version 2.2.1 Unquote. Apparently something is wrong either with "fragment size". I could probably configure fragment size if I knew what lavplay expects; the loaded modules are: snd_pcm_oss snd_mixer_oss or something is wrong with in the code of lavplay. Greetings to all, Janos/jankom -- Janos G. Komaromi sent it NOT from iPhone nor Google facebook, instagram, viber, snapchat, twitter, #@*~| etc. - neither of those https://jgklinux.jankom.net/ On Sun, 2022-10-23 at 18:58 -0400, Janos G Komaromi wrote: > Hi Bernie, > > I did a little research and math. > > (1) The original video was recorded with a "Canovision 8" camcorder > purchased in the mid-80s. The spec says the CCD is 1/3 inch with 320k > pixels. This particular camera was made for the US (American) > market, and it has a simple RCA one vido and one RCA mono outputs. > Connecting it to an old TV set (NTSC) it provided a decent video > play. > My digitazing device (ION Video 2 SD) has one RCA video input and two > RCA stereo inputs (I used an RCA "Y" connector to provide fake stereo > input to the device). The ezcap0001.avi file created by the device > does indeed have the strange 800x592 resolution. OK, but it is almost > 4:3 or 800:600. > > (2) One of the standard Aspect Ratios of Digital Videos is 4/3. If > the > Canovision camera has 320k pixels then for a 4/3 AR of the mid 80s TV > sets the video output of the camera must have 692.82x461.88 > pixel output. Apparently the ION device converted it to 800x592. I > don't know how and why, but that's OK The discrepancy between 600 and > 592 must be to the zooming algorithm designed into the ION software. > As > far as the compression methods (various audio and video mp???, etc.) > are > concerned - again, it is designed into the resulting digital file > format of ezcapnnnn.avi. > > (3) I decided to use ffmpeg to transcode the ezcap... file: > ffmpeg -i ezcap0001.avi -vcodec mjpeg -acodec pcm_s16le x.avi > and then use glav for editing (had to use -a 0 because of the dsp > issue > -later), and IT WORKED! The video looks good, good aspect ratio (not > squeezed horizontally or vertically). > > I think, I'm all set for now. This was a good learning experience. > > Thanks again, > > Janos > |
From: Janos G K. <ja...@an...> - 2022-10-23 22:58:46
|
Hi Bernie, I did a little research and math. (1) The original video was recorded with a "Canovision 8" camcorder purchased in the mid-80s. The spec says the CCD is 1/3 inch with 320k pixels. This particular camera was made for the US (American) market, and it has a simple RCA one vido and one RCA mono outputs. Connecting it to an old TV set (NTSC) it provided a decent video play. My digitazing device (ION Video 2 SD) has one RCA video input and two RCA stereo inputs (I used an RCA "Y" connector to provide fake stereo input to the device). The ezcap0001.avi file created by the device does indeed have the strange 800x592 resolution. OK, but it is almost 4:3 or 800:600. (2) One of the standard Aspect Ratios of Digital Videos is 4/3. If the Canovision camera has 320k pixels then for a 4/3 AR of the mid 80s TV sets the video output of the camera must have 692.82x461.88 pixel output. Apparently the ION device converted it to 800x592. I don't know how and why, but that's OK The discrepancy between 600 and 592 must be to the zooming algorithm designed into the ION software. As far as the compression methods (various audio and video mp???, etc.) are concerned - again, it is designed into the resulting digital file format of ezcapnnnn.avi. (3) I decided to use ffmpeg to transcode the ezcap... file: ffmpeg -i ezcap0001.avi -vcodec mjpeg -acodec pcm_s16le x.avi and then use glav for editing (had to use -a 0 because of the dsp issue -later), and IT WORKED! The video looks good, good aspect ratio (not squeezed horizontally or vertically). I think, I'm all set for now. This was a good learning experience. Thanks again, Janos On Sat, 22 Oct 2022 11:36:03 +0200 Bernhard Praschinger <ber...@gr...> wrote: > Hallo, > > I digged it up from a older mail: > Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID / > 0x44495658), > yuv420p, 800x592 [SAR 1:1 DAR 50:37], 896 kb/s, 30 fps, 30 tbr, 30 > tbn, > > I'm not sure what kind source you have: because the size is with > 800x592 a little bit strange. That is neither PAL not NTSC or SECAM > > If you want to encode the result for video please try a command like > that assuming you have a 4:3 source: > > cat stream.yuv │ yuvscaler -O DVD | yuv2lav -I 0 -q 90 -f q -o > video_without_sound.qt & > > Depending on the source video you might need to add the -n p/s/n > p=pal,s=secam,n=ntsc switch to yuvscaler. > > If it lookes strange please add the output from the commands to the > mail. Add to yuvscaler and yuv2lav: -v 2 so the output is more > verbose. > > > > Janos G Komaromi wrote: > > Sorry to bother this community again with a follow up question: > > > > Now that glav works I have visually noticed a difference between the > > original (compressed) file and the glav-compatible (huge) file. In > > order to confirm my suspicion I issued the command: > > ffprobe -v error -show_format -show_streams <both versions> > > and compared the outputs - see attached diff.txt file. > > > > It is obvious that > > (a) width and height ratio is changed (lines 12-13 vs 19-20); > > (b) yuv420p vs yuvj422p (lines 26 vs 33) - maybe not relevant for > > visual appearance; > > (c) time base (lines 42 vs 44) - this explains the bloated size, do > > we need this, and if not, how to leave it as original? > > > > Obviously, only item (a) is important, the rest is mainly for my > > curiosity and better understanding of the digital video concepts. > > > > Janos > > > > > > On Wed, 19 Oct 2022 14:36:58 -0400 > > "Janos G. Komaromi" <ja...@ja...> wrote: > > > >> Thanks. Yes, glav works with -a 0. > >> > >> As far as /dev/dsp is concerned I may have to recompile kernel to > >> include oss drivers. I'll keep on working the sound part, but for > >> my most immediate editing tasks sound output is not that important. > >> > >> Thanks again for all you support and also for Stephen's idea of > >> ffmpeg method of simmply cutting out a section of the original > >> (compressed) .avi file. > >> > >> Best to all, > >> > >> Janos > >> PS - please add my other email address > >> ja...@an... > >> to members of your mailing list. > >> > -- sent from Janos' Hillary server and NOT from iPhone nor Google facebook, instagram, viber, snapchat, twitter, tik-tok, etc. - neither of like those. https://andraslinux.jgklinux.jankom.net/ |
From: Bernhard P. <ber...@gr...> - 2022-10-22 09:36:12
|
Hallo, I digged it up from a older mail: Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv420p, 800x592 [SAR 1:1 DAR 50:37], 896 kb/s, 30 fps, 30 tbr, 30 tbn, I'm not sure what kind source you have: because the size is with 800x592 a little bit strange. That is neither PAL not NTSC or SECAM If you want to encode the result for video please try a command like that assuming you have a 4:3 source: > cat stream.yuv │ yuvscaler -O DVD | yuv2lav -I 0 -q 90 -f q -o video_without_sound.qt & Depending on the source video you might need to add the -n p/s/n p=pal,s=secam,n=ntsc switch to yuvscaler. If it lookes strange please add the output from the commands to the mail. Add to yuvscaler and yuv2lav: -v 2 so the output is more verbose. Janos G Komaromi wrote: > Sorry to bother this community again with a follow up question: > > Now that glav works I have visually noticed a difference between the > original (compressed) file and the glav-compatible (huge) file. In > order to confirm my suspicion I issued the command: > ffprobe -v error -show_format -show_streams <both versions> > and compared the outputs - see attached diff.txt file. > > It is obvious that > (a) width and height ratio is changed (lines 12-13 vs 19-20); > (b) yuv420p vs yuvj422p (lines 26 vs 33) - maybe not relevant for visual > appearance; > (c) time base (lines 42 vs 44) - this explains the bloated size, do we > need this, and if not, how to leave it as original? > > Obviously, only item (a) is important, the rest is mainly for my > curiosity and better understanding of the digital video concepts. > > Janos > > > On Wed, 19 Oct 2022 14:36:58 -0400 > "Janos G. Komaromi" <ja...@ja...> wrote: > >> Thanks. Yes, glav works with -a 0. >> >> As far as /dev/dsp is concerned I may have to recompile kernel to >> include oss drivers. I'll keep on working the sound part, but for my >> most immediate editing tasks sound output is not that important. >> >> Thanks again for all you support and also for Stephen's idea of ffmpeg >> method of simmply cutting out a section of the original (compressed) >> .avi file. >> >> Best to all, >> >> Janos >> PS - please add my other email address >> ja...@an... >> to members of your mailing list. >> -- auf hoffentlich bald, Berni the Chaos of Woodquarter Email: ber...@gr... www: http://www.lysator.liu.se/~gz/bernhard |