<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<br>
<br>
<div class="moz-cite-prefix">Den 05.05.2025 00:12, skrev Andrew
Randrianasulu:<br>
</div>
<blockquote type="cite"
cite="mid:CA+rFky6Ba_LO5jpdR1cTHjYxDgAZqgwV5Wd=S6JrcjxdfSg3Ow@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="auto">
<div><br>
<br>
<div class="gmail_quote gmail_quote_container">
<div dir="ltr" class="gmail_attr">пн, 5 мая 2025 г., 01:02
Terje J. Hanssen <<a
href="mailto:terjejhanssen@gmail.com"
moz-do-not-send="true" class="moz-txt-link-freetext">terjejhanssen@gmail.com</a>>:<br>
</div>
<blockquote class="gmail_quote"
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div> <br>
<br>
<div>Den 04.05.2025 15:42, skrev Andrew Randrianasulu:<br>
</div>
<blockquote type="cite">
<div dir="auto">
<div><br>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">вс, 4 мая 2025
г., 16:31 Terje J. Hanssen <<a
href="mailto:terjejhanssen@gmail.com"
target="_blank" rel="noreferrer"
moz-do-not-send="true"
class="moz-txt-link-freetext">terjejhanssen@gmail.com</a>>:<br>
</div>
<blockquote class="gmail_quote"
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div> <br>
<br>
<div>Den 04.05.2025 05:49, skrev Andrew
Randrianasulu:<br>
</div>
<blockquote type="cite">
<div dir="auto">
<div><br>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">вс,
4 мая 2025 г., 01:37 Terje J.
Hanssen <<a
href="mailto:terjejhanssen@gmail.com" rel="noreferrer noreferrer"
target="_blank"
moz-do-not-send="true"
class="moz-txt-link-freetext">terjejhanssen@gmail.com</a>>:<br>
</div>
<blockquote class="gmail_quote"
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div> <br>
<div>Den 03.05.2025 13:00, skrev
Terje J. Hanssen:<br>
</div>
<blockquote type="cite"> <br>
<div>Den 02.05.2025 21:42,
skrev Andrew Randrianasulu:<br>
</div>
<blockquote type="cite">
<div dir="auto">
<div><br>
<br>
<div class="gmail_quote">
<div dir="ltr"
class="gmail_attr">пт,
2 мая 2025 г., 22:37
Terje J. Hanssen
<<a
href="mailto:terjejhanssen@gmail.com"
rel="noreferrer noreferrer noreferrer" target="_blank"
moz-do-not-send="true" class="moz-txt-link-freetext">terjejhanssen@gmail.com</a>>:<br>
</div>
<blockquote
class="gmail_quote"
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div> <a
href="https://www.mail-archive.com/cin@lists.cinelerra-gg.org/msg05748.html"
rel="noreferrer noreferrer noreferrer noreferrer" target="_blank"
moz-do-not-send="true" class="moz-txt-link-freetext">https://www.mail-archive.com/cin@lists.cinelerra-gg.org/msg05748.html</a><br>
<br>
I contine this new
thread with an
short extract from
the long growing<br>
[Cin] ms2130
HDMI-USB3 UHD
capture card - not
quite as expected?<br>
<br>
But shouldn't a
422 and not a 420
output format be
created?<br>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
</blockquote>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
<blockquote type="cite">
<div dir="auto">
<div>
<div class="gmail_quote">
<blockquote class="gmail_quote"
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<blockquote type="cite">
<div dir="auto">
<div>
<div class="gmail_quote">
<blockquote class="gmail_quote"
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<blockquote type="cite">
<blockquote type="cite">
<div dir="auto">
<div>
<div class="gmail_quote">
<blockquote
class="gmail_quote"
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<blockquote>>>
it seems in some
cases ffmpeg not
geared towards
preserving most
information,
just picks up
most commonly
defined/first
pixel format. <br>
>> Try
mpeg2video as
output codec,
and/or specify
pixel format
(pix_fmt) more
explicitly
before output's
filename?<br>
<br>
>>>
Could you
possibly
examplify the
latter?<br>
<br>
>>>>
I think I just
theorized ffmpeg
may try to get
some info from
alsa device file
directly, as it
tries with
/dev/video. But
I never
>>>>
tried this way,
so I can be
totally wrong!<br>
</blockquote>
-------------------------------<br>
<br>
Instead of 50i
(pal interlaced
fields), I try 50
fps (progressive)
that at least is a
pal frequence.<br>
<br>
And yes, it seems
from the output
that ffmpeg uses
mpeg1video as
default output
codec.<br>
<br>
Furter I try to
combine the
current line<br>
<blockquote>ffmpeg
-hide_banner -f
v4l2
-input_format
yuyv422
-video_size
720x576
-framerate 25 -t
20 -i
/dev/video2
out-720x576_ms2130.mpeg<br>
</blockquote>
<br>
with and utilize
the syntax
developed 2021 for
"Blu-ray compliant
MPEG-2 SD video
with LPCM audio"<br>
<blockquote>ffmpeg
-i dv28.dv -c:v
mpeg2video -refs
1 -bf 2 -b:v 25M
-maxrate 25M
-minrate 25M
-bufsize 45M
-muxrate 45M -dc
10 -c:a
pcm_s16be -f vob
dv28.mpg <br>
</blockquote>
and for the
current ongoing
"DVD compliant
MPEG-2 Video and
PCM Audio"<br>
<blockquote>ffmpeg
-hide_banner -i
dv01.dv -c:v
mpeg2video -refs
1 -bf 2 -b:v 8M
-maxrate 8M
-minrate 8M
-bufsize 20M
-muxrate 11M -dc
10 -c:a pcm_dvd
-f vob -flags
+ilme+ildct
dv01.mpg<br>
</blockquote>
to first<br>
<blockquote>ffmpeg
-hide_banner -f
v4l2
-input_format
yuyv422
-video_size
720x576
-framerate 50
-c:v mpeg2video
-refs 1 -bf 2
-b:v 8M -maxrate
8M -minrate 8M
-bufsize 20M
-muxrate 11M -dc
10 -c:a pcm_dvd
-f vob -t 20 -i
/dev/video2
720x576_50p_ms2130.mpg
<br>
Option b:v
(video bitrate
(please use
-b:v)) cannot be
applied to input
url /dev/video2
-- you are
trying to apply
an input option
to an output
file or vice
versa. Move this
option before
the file it
belongs to.<br>
Error parsing
options for
input file
/dev/video2.<br>
Error opening
input files:
Invalid argument<br>
</blockquote>
<br>
and next revised
with no output.
That is I need
help to debug the
syntax error: <br>
<blockquote>ffmpeg
-hide_banner -f
v4l2
-input_format
yuyv422
-video_size
720x576
-framerate 50 -i
/dev/video2 -c:v
mpeg2video -refs
1 -bf 2 -b:v 8M
-maxrate 8M
-minrate 8M
-bufsize 20M
-muxrate 11M -dc
10 -c:a pcm_dvd
-f vob -t 20
720x576_50p_ms2130.mpg<br>
[video4linux2,v4l2 @ 0x55db770ef9c0] Dequeued v4l2 buffer contains
corrupted data
(0 bytes).<br>
Input #0,
video4linux2,v4l2,
from
'/dev/video2':<br>
Duration: N/A,
start: 0.000000,
bitrate: 331776
kb/s<br>
Stream #0:0:
Video: rawvideo
(YUY2 /
0x32595559),
yuyv422,
720x576, 331776
kb/s, 50 fps, 50
tbr, 1000k tbn<br>
Stream mapping:<br>
Stream #0:0
-> #0:0
(rawvideo
(native) ->
mpeg2video
(native))<br>
Press [q] to
stop, [?] for
help<br>
[video4linux2,v4l2 @ 0x55db770ef9c0] Dequeued v4l2 buffer contains
corrupted data
(0 bytes).<br>
Last message
repeated 30
times<br>
[mpeg2video @
0x55db77114f00]
Warning
vbv_delay will
be set to 0xFFFF
(=VBR) as the
specified vbv
buffer is too
large for the
given bitrate!<br>
Output #0, vob,
to
'720x576_50p_ms2130.mpg':<br>
Metadata:<br>
encoder
: Lavf59.27.100<br>
Stream #0:0:
Video:
mpeg2video
(4:2:2),
yuv422p(tv,
progressive),
720x576, q=2-31,
8000 kb/s, 50
fps, 90k tbn<br>
Metadata:<br>
encoder
: Lavc59.37.100
mpeg2video<br>
Side data:<br>
cpb:
bitrate
max/min/avg:
8000000/8000000/8000000
buffer size:
20000000
vbv_delay: N/A<br>
frame= 0
fps=0.0 q=0.0
Lsize= 0kB
time=00:00:00.00
bitrate=N/A
speed= 0x <br>
video:0kB
audio:0kB
subtitle:0kB
other
streams:0kB
global
headers:0kB
muxing overhead:
unknown<br>
Output file is
empty, nothing
was encoded
(check -ss / -t
/ -frames
parameters if
used)<br>
</blockquote>
</div>
</blockquote>
</div>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">well, I
think framerate still 25
for 50i stream ....</div>
<div dir="auto"><br>
</div>
<div dir="auto">can you
re-check last line with
framerate parameter
removed or changed back
to 25?</div>
<div dir="auto"><br>
</div>
</div>
</blockquote>
<br>
Ok, as this old post by my
mistake already has been
forwarded to the list and
replied, I will follow it up
later today, but need to rig
rig up my camcorder and
devices <br>
</blockquote>
<br>
Finally ready, I had to recall a
lot since 2023.<br>
<br>
ls /dev/video*<br>
/dev/video0 /dev/video1
/dev/video2 /dev/video3<br>
<br>
<br>
for i in /dev/video*; do echo
"$i"; udevadm info --query=all
--attribute-walk --name=$i |
grep -E "name"; done<br>
/dev/video0<br>
ATTR{name}=="USB3.0 UHD:
USB3.0 UHD"<br>
/dev/video1<br>
ATTR{name}=="USB3.0 UHD:
USB3.0 UHD"<br>
/dev/video2<br>
ATTR{name}=="USB 2.0 Camera:
HD 720P Webcam"<br>
/dev/video3<br>
ATTR{name}=="USB 2.0 Camera:
HD 720P Webcam"<br>
<br>
<br>
v4l2-ctl --list-devices<br>
USB 2.0 Camera: HD 720P Webcam
(usb-0000:00:14.0-11.2):<br>
/dev/video2<br>
/dev/video3<br>
/dev/media1<br>
<br>
USB3.0 UHD: USB3.0 UHD
(usb-0000:00:14.0-3):<br>
/dev/video0<br>
/dev/video1<br>
/dev/media0<br>
<br>
As seen the HDMI-USB3 capture
card + the S-Video/HDMI
converter (with the analog
S-video camcorder) is now on
/dev/video0<br>
while the USB2 webcam is on
/dev/video2<br>
</div>
</blockquote>
</div>
</div>
<div dir="auto"><br>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">but what is on video1 ?</div>
</div>
</blockquote>
<br>
Nothing as far as I can see(?). It seems
both camera devices allocate or are
associated with three devices each.<br>
<br>
<blockquote type="cite">
<div dir="auto">
<div dir="auto"><br>
</div>
<div dir="auto">it seems that whole
thing fail at</div>
<div dir="auto"><br>
</div>
<div dir="auto">Dequeued v4l2 buffer
contains corrupted data (0 bytes).</div>
</div>
</blockquote>
<br>
I seems to happend when and after using
unsupported fps <br>
<br>
<blockquote type="cite">
<div dir="auto">
<div dir="auto">Does anything else
(guvcview, vlc ..) process video
stream this usb3 UHD device?</div>
<div dir="auto"><br>
</div>
<div dir="auto">mplayer tv:// -demuxer
tv ?</div>
</div>
</blockquote>
<br>
Not that I use, but have not haven't found a
way to verify it.<br>
<br>
However, I have recalled and found out more
with progress. <br>
<br>
The most important it seems required to
reboot the machine with the camcorder ON
(video signal) on beforehand, before ffmpeg
get the video input.<br>
<br>
Reboot also seems required to clean up v4L2
buffer after using unsupported fps ffplay or
ffmpeg cause the<br>
"Dequeued v4l2 buffer contains corrupted
data (0 bytes)." <br>
Hopefully there are a v4L command to easier
cleanup the latter?<br>
</div>
</blockquote>
</div>
</div>
<div dir="auto"><br>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">Does unpluggin and repluggin it
helps without reboot?</div>
</div>
</blockquote>
<br>
It is easier and faster for me to reboot than to creep
under the table and unplug from the WS backplane :)<br>
There is the only working USB3 port, while it tend to
hang on the frontpanel. I read somewhere once that
shared USB buses may have such problems on Linux.<br>
<br>
<blockquote type="cite">
<div dir="auto">
<div dir="auto"><br>
</div>
<div dir="auto">Otherwise you probably want to talk
to v4l2 maintainers or knowledgable people at suse
forums ...</div>
<div dir="auto">
<div class="gmail_quote">
<blockquote class="gmail_quote"
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div> <br>
Beside the already listed Video4Linux
devices, there are also<br>
<br>
cat /proc/asound/cards<br>
<blockquote> 0 [PCH_1 ]: HDA-Intel
- HDA Intel PCH<br>
HDA Intel PCH at
0x4200910000 irq 168<br>
1 [PCH ]: HDA-Intel - HDA
Intel PCH<br>
HDA Intel PCH at
0x41300000 irq 169<br>
2 [UHD ]: USB-Audio - USB3.0
UHD<br>
MACROSILICON USB3.0
UHD at usb-0000:00:14.0-3, super speed<br>
3 [Camera ]: USB-Audio - USB 2.0
Camera<br>
Sonix Technology
Co., Ltd. USB 2.0 Camera at
usb-0000:00:14.0-11.2, high speed<br>
</blockquote>
<br>
However, so far ffmpeg has yet to find any
audio streams via v4l2 as seen below.<br>
</div>
</blockquote>
</div>
</div>
<div dir="auto"><br>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">may be you need another -i so you
can point ffmpeg at alsa or pulseaudio audio
capture device?</div>
<div dir="auto"><br>
</div>
<div dir="auto">yes, this line grows bigger by the
day ... )</div>
</div>
</blockquote>
<br>
Thank you for the tip and reminder regarding alsa input.
I also found a FFmpeg wiki: Capture / V4L2_ALSA that
helped me<br>
<a href="https://trac.ffmpeg.org/wiki/Capture/V4L2_ALSA"
target="_blank" rel="noreferrer"
moz-do-not-send="true" class="moz-txt-link-freetext">https://trac.ffmpeg.org/wiki/Capture/V4L2_ALSA</a><br>
<br>
arecord -L<br>
<blockquote>null<br>
Discard all samples (playback) or generate zero
samples (capture)<br>
sysdefault<br>
Default Audio Device<br>
speexrate<br>
Rate Converter Plugin Using Speex Resampler<br>
pipewire<br>
PipeWire Sound Server<br>
upmix<br>
Plugin for channel upmix (4,6,8)<br>
default<br>
Default ALSA Output (currently PipeWire Media
Server)<br>
sysdefault:CARD=UHD<br>
USB3.0 UHD, USB Audio<br>
Default Audio Device<br>
front:CARD=UHD,DEV=0<br>
USB3.0 UHD, USB Audio<br>
Front output / input<br>
sysdefault:CARD=PCH_1<br>
HDA Intel PCH, ALC897 Analog<br>
Default Audio Device<br>
front:CARD=PCH_1,DEV=0<br>
HDA Intel PCH, ALC897 Analog<br>
Front output / input<br>
sysdefault:CARD=Camera<br>
USB 2.0 Camera, USB Audio<br>
Default Audio Device<br>
front:CARD=Camera,DEV=0<br>
USB 2.0 Camera, USB Audio<br>
Front output / input<br>
</blockquote>
<br>
I used -i hw:CARD=UHD,DEV=0 as working alsa input device
for ffmpeg below<br>
------------------------<br>
<br>
Capture MPEG-2 File with 422 Video an PCM_DVD Audio
Encoding<br>
<br>
cd /Videoklipp/HDMI-USB3_Capture<br>
<br>
Reboot camcorder to clean up v4l2 buffer first:<br>
<br>
ffmpeg -hide_banner -f v4l2 -input_format yuyv422
-video_size 720x576 -framerate 50 -i /dev/video0 -f alsa
-ac 2 -i hw:CARD=UHD,DEV=0 -c:v mpeg2video -refs 1 -bf 2
-b:v 8M -maxrate 8M -minrate 8M -bufsize 20M -muxrate
11M -dc 10 -c:a pcm_dvd -f vob -t 20
720x576_50fps+alsa_ms2130.mpg<br>
<blockquote>Input #0, video4linux2,v4l2, from
'/dev/video0':<br>
Duration: N/A, start: 247.290426, bitrate: 331776
kb/s<br>
Stream #0:0: Video: rawvideo (YUY2 / 0x32595559),
yuyv422, 720x576, 331776 kb/s, 50 fps, 50 tbr, 1000k
tbn<br>
[aist#1:0/pcm_s16le @ 0x558f7224bf00] Guessed Channel
Layout: stereo<br>
Input #1, alsa, from 'hw:CARD=UHD,DEV=0':<br>
Duration: N/A, start: 1746391255.237803, bitrate:
1536 kb/s<br>
Stream #1:0: Audio: pcm_s16le, 48000 Hz, stereo,
s16, 1536 kb/s<br>
Stream mapping:<br>
Stream #0:0 -> #0:0 (rawvideo (native) ->
mpeg2video (native))<br>
Stream #1:0 -> #0:1 (pcm_s16le (native) ->
pcm_dvd (native))<br>
Press [q] to stop, [?] for help<br>
[mpeg2video @ 0x558f72233280] Warning vbv_delay will
be set to 0xFFFF (=VBR) as the specified vbv buffer is
too large for the given bitrate!<br>
Output #0, vob, to '720x576_50fps+alsa_ms2130.mpg':<br>
Metadata:<br>
encoder : Lavf61.7.100<br>
Stream #0:0: Video: mpeg2video (4:2:2), yuv422p(tv,
progressive), 720x576, q=2-31, 8000 kb/s, 50 fps, 90k
tbn<br>
Metadata:<br>
encoder : Lavc61.19.101 mpeg2video<br>
Side data:<br>
cpb: bitrate max/min/avg:
8000000/8000000/8000000 buffer size: 20000000
vbv_delay: N/A<br>
Stream #0:1: Audio: pcm_dvd, 48000 Hz, stereo, s16,
1536 kb/s<br>
Metadata:<br>
encoder : Lavc61.19.101 pcm_dvd<br>
[out#0/vob @ 0x558f7224c200] video:18921KiB
audio:3756KiB subtitle:0KiB other streams:0KiB global
headers:0KiB muxing overhead: 1.320964%<br>
frame= 1000 fps= 50 q=2.5 Lsize= 22976KiB
time=00:00:19.98 bitrate=9420.4kbits/s speed=0.998x
<br>
</blockquote>
Stopped automatic with frame=1000<br>
--------<br>
<br>
du -sh *<br>
23M 720x576_50fps+alsa_ms2130.mpg<br>
19M 720x576_50fps_ms2130.mpg<br>
--------<br>
<br>
ffprobe -hide_banner 720x576_50fps+alsa_ms2130.mpg<br>
<blockquote>Input #0, mpeg, from
'720x576_50fps+alsa_ms2130.mpg':<br>
Duration: 00:00:20.01, start: 0.520000, bitrate:
9408 kb/s<br>
Stream #0:0[0x1e0]: Video: mpeg2video (4:2:2),
yuv422p(tv, progressive), 720x576 [SAR 1:1 DAR 5:4],
50 fps, 50 tbr, 90k tbn<br>
Side data:<br>
cpb: bitrate max/min/avg: 8000000/0/0 buffer
size: 20004864 vbv_delay: N/A<br>
Stream #0:1[0xa0]: Audio: pcm_dvd, 48000 Hz, stereo,
s16, 1536 kb/s<br>
</blockquote>
<br>
========================================<br>
<br>
<br>
-----------------------<br>
<blockquote type="cite">
<div dir="auto">
<div dir="auto"><br>
</div>
<div dir="auto">
<div class="gmail_quote">
<blockquote class="gmail_quote"
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div> S-vido as well as audio L/R cables are
connected between the camcorder out and A/D
converter IN.<br>
Maybe additional configuration is required
(I didn't think the separate sound card
(Behringer U-Phono should be necessary) <br>
----------<br>
<br>
To list the v4l2 device capabilities;<br>
<br>
v4l2-ctl -d /dev/video0 --list-formats-ext<br>
<blockquote>ioctl: VIDIOC_ENUM_FMT<br>
Type: Video Capture<br>
<br>
[0]: 'YUYV' (YUYV 4:2:2)<br>
Size: Discrete 1920x1080<br>
Interval: Discrete 0.017s
(60.000 fps)<br>
Interval: Discrete 0.020s
(50.000 fps)<br>
Interval: Discrete 0.033s
(30.000 fps)<br>
Interval: Discrete 0.050s
(20.000 fps)<br>
Interval: Discrete 0.100s
(10.000 fps)<br>
Size: Discrete 1600x1200<br>
Interval: Discrete 0.017s
(60.000 fps)<br>
Interval: Discrete 0.020s
(50.000 fps)<br>
Interval: Discrete 0.033s
(30.000 fps)<br>
Interval: Discrete 0.050s
(20.000 fps)<br>
Interval: Discrete 0.100s
(10.000 fps)<br>
Size: Discrete 1360x768<br>
Interval: Discrete 0.017s
(60.000 fps)<br>
Interval: Discrete 0.020s
(50.000 fps)<br>
Interval: Discrete 0.033s
(30.000 fps)<br>
Interval: Discrete 0.050s
(20.000 fps)<br>
Interval: Discrete 0.100s
(10.000 fps)<br>
Size: Discrete 1280x1024<br>
Interval: Discrete 0.017s
(60.000 fps)<br>
Interval: Discrete 0.020s
(50.000 fps)<br>
Interval: Discrete 0.033s
(30.000 fps)<br>
Interval: Discrete 0.050s
(20.000 fps)<br>
Interval: Discrete 0.100s
(10.000 fps)<br>
Size: Discrete 1280x960<br>
Interval: Discrete 0.017s
(60.000 fps)<br>
Interval: Discrete 0.020s
(50.000 fps)<br>
Interval: Discrete 0.033s
(30.000 fps)<br>
Interval: Discrete 0.050s
(20.000 fps)<br>
Interval: Discrete 0.100s
(10.000 fps)<br>
Size: Discrete 1280x720<br>
Interval: Discrete 0.017s
(60.000 fps)<br>
Interval: Discrete 0.020s
(50.000 fps)<br>
Interval: Discrete 0.033s
(30.000 fps)<br>
Interval: Discrete 0.050s
(20.000 fps)<br>
Interval: Discrete 0.100s
(10.000 fps)<br>
Size: Discrete 1024x768<br>
Interval: Discrete 0.017s
(60.000 fps)<br>
Interval: Discrete 0.020s
(50.000 fps)<br>
Interval: Discrete 0.033s
(30.000 fps)<br>
Interval: Discrete 0.050s
(20.000 fps)<br>
Interval: Discrete 0.100s
(10.000 fps)<br>
Size: Discrete 800x600<br>
Interval: Discrete 0.017s
(60.000 fps)<br>
Interval: Discrete 0.020s
(50.000 fps)<br>
Interval: Discrete 0.033s
(30.000 fps)<br>
Interval: Discrete 0.050s
(20.000 fps)<br>
Interval: Discrete 0.100s
(10.000 fps)<br>
Size: Discrete 720x576<br>
Interval: Discrete 0.017s
(60.000 fps)<br>
Interval: Discrete 0.020s
(50.000 fps)<br>
Interval: Discrete 0.033s
(30.000 fps)<br>
Interval: Discrete 0.050s
(20.000 fps)<br>
Interval: Discrete 0.100s
(10.000 fps)<br>
Size: Discrete 720x480<br>
Interval: Discrete 0.017s
(60.000 fps)<br>
Interval: Discrete 0.020s
(50.000 fps)<br>
Interval: Discrete 0.033s
(30.000 fps)<br>
Interval: Discrete 0.050s
(20.000 fps)<br>
Interval: Discrete 0.100s
(10.000 fps)<br>
Size: Discrete 640x480<br>
Interval: Discrete 0.017s
(60.000 fps)<br>
Interval: Discrete 0.020s
(50.000 fps)<br>
Interval: Discrete 0.033s
(30.000 fps)<br>
Interval: Discrete 0.050s
(20.000 fps)<br>
Interval: Discrete 0.100s
(10.000 fps)<br>
</blockquote>
<br>
That is supported 10-20-30-50-60 fps for all
sizes, not 25 fps!<br>
</div>
</blockquote>
</div>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">so it looks like it does some
frame/field interpolation (for s-video input)
without letting user correct/disable this?</div>
</div>
</blockquote>
I don't see real drawback it makes progressive 50p PAL
video output.<br>
<blockquote type="cite">
<div dir="auto">
<div dir="auto"><br>
</div>
<div dir="auto">Does this device come with manual of
any sort? Any Windows utility perhaps?</div>
</div>
</blockquote>
<br>
This is the ms2130 HDMI-USB3 dongle we also discussed in
older threads:<br>
<a
href="https://www.aliexpress.com/item/1005004883158574.html"
target="_blank" rel="noreferrer"
moz-do-not-send="true" class="moz-txt-link-freetext">https://www.aliexpress.com/item/1005004883158574.html</a><br>
<a
href="https://www.cnx-software.com/2022/11/07/ms2130-based-4k-hdmi-to-usb-3-0-video-capture-dongle-sells-for-19/"
target="_blank" rel="noreferrer"
moz-do-not-send="true" class="moz-txt-link-freetext">https://www.cnx-software.com/2022/11/07/ms2130-based-4k-hdmi-to-usb-3-0-video-capture-dongle-sells-for-19/</a><br>
<a
href="https://www.mail-archive.com/cin@lists.cinelerra-gg.org/msg05587.html"
target="_blank" rel="noreferrer"
moz-do-not-send="true" class="moz-txt-link-freetext">https://www.mail-archive.com/cin@lists.cinelerra-gg.org/msg05587.html</a><br>
<br>
The AV S-Video to HDMI converter is this one<br>
<a
href="https://www.ebay.com.au/itm/356431236663?_trkparms=amclksrc%3DITM%26aid%3D1110006%26algo%3DHOMESPLICE.SIM%26ao%3D1%26asc%3D20231107084023%26meid%3Dbe9608c9e82b4402bdf76dd76348ab53%26pid%3D101875%26rk%3D3%26rkt%3D4%26sd%3D405137532923%26itm%3D356431236663%26pmt%3D1%26noa%3D0%26pg%3D2332490%26algv%3DSimVIDwebV3WithCPCExpansionEmbeddingSearchQuerySemanticBroadMatchSingularityRecallReplaceKnnV4WithVectorDbNsOptHotPlRecall%26brand%3DUnbranded&_trksid=p2332490.c101875.m1851&itmprp=cksum%3A356431236663be9608c9e82b4402bdf76dd76348ab53%7Cenc%3AAQAKAAABYHKEKKNMUePryBh1zZl0qrjonWK6%252Bbjh8v6%252FxTRbw1Loxqx736BoO2V7ozv6W4xuOBJjwGhPLWk9lnRB2teM6PFgOrZGVcTwpTth7MW79p066SWQrB1VasW1Di58xl1RMBXsH%252BaNxpzil0t8bdqbPkgJlZgvtHVYNSkxo5xG%252Bq21xDVUvrBLotjMgH%252FqV5wXQshGzZM4R6lRyvrYsaYO6TKvrPFmelkCTCubM5eKn0qdO3WG4prHt35axM0b1AnPHppmlHMdGYmjckTyOKNM9%252FV6GLsHrR8V%252Ff%252B4IzCQPxMALQwAlk93n4I9O8AtpmJfVUqsoKsJZFWDdLSsj%252B4SwyzNEGDD0PvOh7nWjXVZBIKMAXxQ94%252B6ePFlKMbiIx4MUcjDAsxbXWMGCAgmUAUvyT8%252FjaimC0vYNMPEguAR4RrTGwG3aZFugrXdz9WAUWrYTwBHrcQRD06DIrkiCLvdErY%253D%7Campid%3APL_CLK%7Cclp%3A2332490&itmmeta=01JTDZ3923JE7AHB2E0118810J"
target="_blank" rel="noreferrer"
moz-do-not-send="true">https://www.ebay.com.au/itm/356431236663?_trkparms=amclksrc%3DITM%26aid%3D1110006%26algo%3DHOMESPLICE.SIM%26ao%3D1%26asc%3D20231107084023%26meid%3Dbe9608c9e82b4402bdf76dd76348ab53%26pid%3D101875%26rk%3D3%26rkt%3D4%26sd%3D405137532923%26itm%3D356431236663%26pmt%3D1%26noa%3D0%26pg%3D2332490%26algv%3DSimVIDwebV3WithCPCExpansionEmbeddingSearchQuerySemanticBroadMatchSingularityRecallReplaceKnnV4WithVectorDbNsOptHotPlRecall%26brand%3DUnbranded&_trksid=p2332490.c101875.m1851&itmprp=cksum%3A356431236663be9608c9e82b4402bdf76dd76348ab53%7Cenc%3AAQAKAAABYHKEKKNMUePryBh1zZl0qrjonWK6%252Bbjh8v6%252FxTRbw1Loxqx736BoO2V7ozv6W4xuOBJjwGhPLWk9lnRB2teM6PFgOrZGVcTwpTth7MW79p066SWQrB1VasW1Di58xl1RMBXsH%252BaNxpzil0t8bdqbPkgJlZgvtHVYNSkxo5xG%252Bq21xDVUvrBLotjMgH%252FqV5wXQshGzZM4R6lRyvrYsaYO6TKvrPFmelkCTCubM5eKn0qdO3WG4prHt35axM0b1AnPHppmlHMdGYmjckTyOKNM9%252FV6GLsHrR8V%252Ff%252B4IzCQPxMALQwAlk93n4I9O8AtpmJfVUqsoKsJZFWDdLSsj%252B4SwyzNEGDD0PvOh7nWjXVZBIKMAXxQ94%252B6ePFlKMbiIx4MUcjDAsxbXWMGCAgmUAUvyT8%252FjaimC0vYNMPEguAR4RrTGwG3aZFugrXdz9WAUWrYTwBHrcQRD06DIrkiCLvdErY%253D%7Campid%3APL_CLK%7Cclp%3A2332490&itmmeta=01JTDZ3923JE7AHB2E0118810J</a>
<br>
<br>
<blockquote type="cite">
<div dir="auto">
<div dir="auto"><br>
</div>
<div dir="auto">
<div class="gmail_quote">
<blockquote class="gmail_quote"
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div> -------------<br>
<br>
Try the same test for /dev/video1<br>
<br>
v4l2-ctl -d /dev/video1 --list-formats-ext<br>
<blockquote>ioctl: VIDIOC_ENUM_FMT<br>
</blockquote>
===========<br>
<br>
ffmpeg listed available formats (supported
pixel formats, video formats, and frame
sizes) for a particular input device: <br>
<br>
ffmpeg -hide_banner -f v4l2 -list_formats
all -i /dev/video0<br>
<br>
[video4linux2,v4l2 @ 0x55a384b214c0]
Raw : yuyv422 : YUYV
4:2:2 : 1920x1080 1600x1200 1360x768
1280x1024 1280x960 1280x720 1024x768 800x600
720x576 720x480 640x480<br>
[in#0 @ 0x55a384b21200] Error opening input:
Immediate exit requested<br>
Error opening input file /dev/video0.<br>
<br>
And similar test for /dev/video1<br>
<br>
ffmpeg -hide_banner -f v4l2 -list_formats
all -i /dev/video1<br>
<br>
[video4linux2,v4l2 @ 0x557e1a5164c0]
ioctl(VIDIOC_G_INPUT): Inappropriate ioctl
for device<br>
[in#0 @ 0x557e1a516200] Error opening input:
Inappropriate ioctl for device<br>
Error opening input file /dev/video1.<br>
Error opening input files: Inappropriate
ioctl for device<br>
<br>
===============<br>
<br>
With supported 50 fps specified, ffplay
playback looks ok visually:<br>
<br>
ffplay -hide_banner -f v4l2 -input_format
yuyv422 -video_size 720x576 -framerate 50
/dev/video0<br>
<blockquote>Input #0, video4linux2,v4l2,
from '/dev/video0':B sq= 0B <br>
Duration: N/A, start: 311.577886,
bitrate: 331776 kb/s<br>
Stream #0:0: Video: rawvideo (YUY2 /
0x32595559), yuyv422, 720x576, 331776
kb/s, 50 fps, 50 tbr, 1000k tbn<br>
^Cterje@localhost:/Videoklipp/HDMI-USB3_Capture> sq= 0B <br>
</blockquote>
===============<br>
<br>
Capture DVD compatible MPG video (no audio
found) with supported 50 fps progressive
video.<br>
No Audio stream!?<br>
<br>
ffmpeg -hide_banner -f v4l2 -input_format
yuyv422 -video_size 720x576 -framerate 50 -i
/dev/video0 -c:v mpeg2video -refs 1 -bf 2
-b:v 8M -maxrate 8M -minrate 8M -bufsize 20M
-muxrate 11M -dc 10 -c:a pcm_dvd -f vob -t
20 720x576_50fps_ms2130.mpg<br>
<blockquote>Input #0, video4linux2,v4l2,
from '/dev/video0':<br>
Duration: N/A, start: 323.195348,
bitrate: 331776 kb/s<br>
Stream #0:0: Video: rawvideo (YUY2 /
0x32595559), yuyv422, 720x576, 331776
kb/s, 50 fps, 50 tbr, 1000k tbn<br>
Stream mapping:<br>
Stream #0:0 -> #0:0 (rawvideo
(native) -> mpeg2video (native))<br>
Press [q] to stop, [?] for help<br>
[mpeg2video @ 0x55e390580200] Warning
vbv_delay will be set to 0xFFFF (=VBR) as
the specified vbv buffer is too large for
the given bitrate!<br>
Output #0, vob, to
'720x576_50fps_ms2130.mpg':<br>
Metadata:<br>
encoder : Lavf61.7.100<br>
Stream #0:0: Video: mpeg2video (4:2:2),
yuv422p(tv, progressive), 720x576, q=2-31,
8000 kb/s, 50 fps, 90k tbn<br>
Metadata:<br>
encoder : Lavc61.19.101
mpeg2video<br>
Side data:<br>
cpb: bitrate max/min/avg:
8000000/8000000/8000000 buffer size:
20000000 vbv_delay: N/A<br>
[out#0/vob @ 0x55e390581e00]
video:18921KiB audio:0KiB subtitle:0KiB
other streams:0KiB global headers:0KiB
muxing overhead: 1.242550%<br>
frame= 1000 fps= 50 q=2.5 Lsize=
19156KiB time=00:00:19.98
bitrate=7854.2kbits/s speed=0.998x <br>
</blockquote>
<br>
Stopped automatic ! Why?<br>
</div>
</blockquote>
</div>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">may be usb cable just moved a bit?</div>
</div>
</blockquote>
<br>
No, next test also stopped at frame=1000<br>
Maybe this is some security default for "still"
camcorder (Sony TR2000) on a desk mount where the image
is not changed or moved.<br>
I have not tested playback of real S-video tape
recordings.<br>
</div>
</blockquote>
</div>
</div>
<div dir="auto"><br>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">try to remove "-t 20" part of ffmpeg command
line? or change it to 60 (seconds) or something suitable for
longer tests ...</div>
</div>
</blockquote>
<br>
Yes, thanks for discovering that. I changed -t from 20 to 30 (sec)
and got 1500 frames :)<br>
<br>
<blockquote type="cite"
cite="mid:CA+rFky6Ba_LO5jpdR1cTHjYxDgAZqgwV5Wd=S6JrcjxdfSg3Ow@mail.gmail.com">
<div dir="auto">
<div dir="auto"><br>
</div>
<div dir="auto"><br>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">at least AV to hdmi box should come with manual
;)</div>
</div>
</blockquote>
<br>
I surely have them somewhere long down in the paper chunks. But I
think I initially read them and didn't find something of special
interest. The most important for me was the features and
specifications collected from web sites.<br>
<blockquote type="cite"
cite="mid:CA+rFky6Ba_LO5jpdR1cTHjYxDgAZqgwV5Wd=S6JrcjxdfSg3Ow@mail.gmail.com">
<div dir="auto">
<div dir="auto"><br>
</div>
<div dir="auto">hopefully there is copy somewhere online ...</div>
</div>
</blockquote>
<br>
Yes, for the HDMI to USB3 capture dongle:<br>
specs:<br>
<a class="moz-txt-link-freetext"
href="https://www.ebay.com/itm/394316094286">https://www.ebay.com/itm/394316094286</a><br>
manual<br>
<a class="moz-txt-link-freetext"
href="https://manuals.plus/rullz/ms2130-hdmi-video-capture-manual">https://manuals.plus/rullz/ms2130-hdmi-video-capture-manual</a><br>
<br>
<br>
<blockquote type="cite"
cite="mid:CA+rFky6Ba_LO5jpdR1cTHjYxDgAZqgwV5Wd=S6JrcjxdfSg3Ow@mail.gmail.com">
<div dir="auto">
<div dir="auto"><br>
</div>
<div dir="auto">Sorry, I missed initially that you use TWO
devices to get s-video into your workstation. Yes, it was in
email subject line. </div>
<div dir="auto"><br>
</div>
<div dir="auto">Happy capturing!</div>
<div dir="auto"><br>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">
<div class="gmail_quote gmail_quote_container">
<blockquote class="gmail_quote"
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div> <br>
<blockquote type="cite">
<div dir="auto">
<div dir="auto"><br>
</div>
<div dir="auto">
<div class="gmail_quote">
<blockquote class="gmail_quote"
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div> <br>
----------------<br>
<br>
du -sh *<br>
<blockquote>19M 720x576_50fps_ms2130.mpg<br>
</blockquote>
<br>
ffprobe -hide_banner
720x576_50fps_ms2130.mpg<br>
<blockquote>Input #0, mpeg, from
'720x576_50fps_ms2130.mpg':<br>
Duration: 00:00:20.00, start: 0.520000,
bitrate: 7846 kb/s<br>
Stream #0:0[0x1e0]: Video: mpeg2video
(4:2:2), yuv422p(tv, progressive), 720x576
[SAR 1:1 DAR 5:4], 50 fps, 50 tbr, 90k tbn<br>
Side data:<br>
cpb: bitrate max/min/avg:
8000000/0/0 buffer size: 20004864
vbv_delay: N/A<br>
</blockquote>
<br>
The video file playback looks ok with
correct SD aspect ratio using ffplay and
VLC, though "1080P" is printer near the
top-right corner.<br>
</div>
</blockquote>
</div>
</div>
<div dir="auto"><br>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">hm ...... I hope this "overlay" can
be disabled?</div>
<div dir="auto"><br>
</div>
<div dir="auto"><br>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">
<div class="gmail_quote">
<blockquote class="gmail_quote"
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div> <br>
============================<br>
<br>
<br>
<br>
<br>
<br>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
<br>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
<br>
</body>
</html>