Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
10-12-2021, 11:45 PM
|
#16
|
Member
Registered: Apr 2005
Location: Austin, Texas
Distribution: Feather, Darn Small Linux
Posts: 521
Original Poster
Rep:
|
By Machine do you mean the VCR player, y laptop, or the USB capture device? The VCR player does have audio R & L input. The laptop does have a mic in port.
|
|
|
10-13-2021, 08:39 AM
|
#17
|
Member
Registered: Apr 2005
Location: Austin, Texas
Distribution: Feather, Darn Small Linux
Posts: 521
Original Poster
Rep:
|
By Machine do you mean the VCR player, y laptop, or the USB capture device? The VCR player does have audio R & L input. The laptop does have a mic in port.
|
|
|
10-13-2021, 03:14 PM
|
#18
|
Member
Registered: Jun 2020
Posts: 609
Rep: 
|
Sorry - that was unclear; I mean the computer. So you'd connect video out to the USB dongle, and audio out to the computer's audio input, and select the appropriate inputs in whatever application, and try again.
|
|
|
10-13-2021, 03:30 PM
|
#19
|
Member
Registered: Apr 2005
Location: Austin, Texas
Distribution: Feather, Darn Small Linux
Posts: 521
Original Poster
Rep:
|
So I will unplug the USB dongles audio lead from the VCR player, run a cable from the VCR's Audio output to the mic input on my laptop.
|
|
|
10-15-2021, 12:44 PM
|
#20
|
Member
Registered: Apr 2005
Location: Austin, Texas
Distribution: Feather, Darn Small Linux
Posts: 521
Original Poster
Rep:
|
Quote:
Originally Posted by obobskivich
Sorry - that was unclear; I mean the computer. So you'd connect video out to the USB dongle, and audio out to the computer's audio input, and select the appropriate inputs in whatever application, and try again.
|
Did not work.
|
|
|
10-15-2021, 07:11 PM
|
#21
|
Member
Registered: Jun 2020
Posts: 609
Rep: 
|
Quote:
Originally Posted by borgward
Did not work.
|
Specifically what did not work?
|
|
|
10-15-2021, 09:29 PM
|
#22
|
Member
Registered: Apr 2005
Location: Austin, Texas
Distribution: Feather, Darn Small Linux
Posts: 521
Original Poster
Rep:
|
Connecting the VCR's audio output to the laptops mic input does not work with VLC. Sound does not play even though PulseAudio Volume Control's sound level indicator shows audio input.
|
|
|
10-15-2021, 10:04 PM
|
#23
|
Moderator
Registered: Aug 2002
Posts: 26,522
|
The line output signal level from the VCR (~ 1 Volt) is not compatible with microphone input level which is ~1 uV. A simple circuit would be a resister voltage divider and a capacitor to block DC voltage. There is no volume control for line out...
Based on the link I posted previously do you see similar output of dmesg command for your device?
|
|
|
10-15-2021, 11:29 PM
|
#24
|
Member
Registered: Apr 2005
Location: Austin, Texas
Distribution: Feather, Darn Small Linux
Posts: 521
Original Poster
Rep:
|
$ ffmpeg -f alsa -i hw:1.0 -f video4linux2 -i /dev/video0 -f mpeg output.mp4
ffmpeg version 4.2.4-1ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 9 (Ubuntu 9.3.0-10ubuntu2)
configuration: --prefix=/usr --extra-version=1ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
WARNING: library configuration mismatch
avcodec configuration: --prefix=/usr --extra-version=1ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared --enable-version3 --disable-doc --disable-programs --enable-libaribb24 --enable-liblensfun --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libtesseract --enable-libvo_amrwbenc
libavutil 56. 31.100 / 56. 31.100
libavcodec 58. 54.100 / 58. 54.100
libavformat 58. 29.100 / 58. 29.100
libavdevice 58. 8.100 / 58. 8.100
libavfilter 7. 57.100 / 7. 57.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 5.100 / 5. 5.100
libswresample 3. 5.100 / 3. 5.100
libpostproc 55. 5.100 / 55. 5.100
ALSA lib pcm_hw.c:1829  _snd_pcm_hw_open) Invalid value for card
[alsa @ 0x55bd8e298700] cannot open audio device hw:1.0 (No such device)
hw:1.0: Input/output error
|
|
|
10-16-2021, 12:14 AM
|
#25
|
Member
Registered: May 2014
Distribution: Slackware
Posts: 262
Rep: 
|
Seeing all of your ffmpeg's output was helpful. With this video capture device still plugged in, can you post the results of the following commands?
Code:
ffmpeg -sources
cat /proc/asound/cards
cat /proc/asound/devices
Also, can you put each one of the results in their own code wrappers for easier reading? I just used the code wrapper in this post. You'll need to click on the 'Go Advanced' button to find the # code button.
|
|
|
10-16-2021, 12:39 AM
|
#26
|
Member
Registered: Apr 2005
Location: Austin, Texas
Distribution: Feather, Darn Small Linux
Posts: 521
Original Poster
Rep:
|
Code:
tom@tom-Inspiron-1520:~$ ffmpeg -sources
ffmpeg version 4.2.4-1ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 9 (Ubuntu 9.3.0-10ubuntu2)
configuration: --prefix=/usr --extra-version=1ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
WARNING: library configuration mismatch
avcodec configuration: --prefix=/usr --extra-version=1ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared --enable-version3 --disable-doc --disable-programs --enable-libaribb24 --enable-liblensfun --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libtesseract --enable-libvo_amrwbenc
libavutil 56. 31.100 / 56. 31.100
libavcodec 58. 54.100 / 58. 54.100
libavformat 58. 29.100 / 58. 29.100
libavdevice 58. 8.100 / 58. 8.100
libavfilter 7. 57.100 / 7. 57.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 5.100 / 5. 5.100
libswresample 3. 5.100 / 3. 5.100
libpostproc 55. 5.100 / 55. 5.100
Device name is not provided.
You can pass devicename[,opt1=val1[,opt2=val2...]] as an argument.
Auto-detected sources for alsa:
* default [Playback/recording through the PulseAudio sound server]
surround21 [2.1 Surround output to Front and Subwoofer speakers]
surround40 [4.0 Surround output to Front and Rear speakers]
surround41 [4.1 Surround output to Front, Rear and Subwoofer speakers]
surround50 [5.0 Surround output to Front, Center and Rear speakers]
surround51 [5.1 Surround output to Front, Center, Rear and Subwoofer speakers]
surround71 [7.1 Surround output to Front, Center, Side, Rear and Woofer speakers]
null [Discard all samples (playback) or generate zero samples (capture)]
samplerate [Rate Converter Plugin Using Samplerate Library]
speexrate [Rate Converter Plugin Using Speex Resampler]
jack [JACK Audio Connection Kit]
oss [Open Sound System]
pulse [PulseAudio Sound Server]
upmix [Plugin for channel upmix (4,6,8)]
vdownmix [Plugin for channel downmix (stereo) with a simple spacialization]
sysdefault:CARD=Intel [Default Audio Device]
front:CARD=Intel,DEV=0 [Front speakers]
dmix:CARD=Intel,DEV=0 [Direct sample mixing device]
dsnoop:CARD=Intel,DEV=0 [Direct sample snooping device]
hw:CARD=Intel,DEV=0 [Direct hardware device without any conversions]
plughw:CARD=Intel,DEV=0 [Hardware device with all software conversions]
usbstream:CARD=Intel [USB Stream Output]
sysdefault:CARD=USB20 [Default Audio Device]
front:CARD=USB20,DEV=0 [Front speakers]
surround21:CARD=USB20,DEV=0 [2.1 Surround output to Front and Subwoofer speakers]
surround40:CARD=USB20,DEV=0 [4.0 Surround output to Front and Rear speakers]
surround41:CARD=USB20,DEV=0 [4.1 Surround output to Front, Rear and Subwoofer speakers]
surround50:CARD=USB20,DEV=0 [5.0 Surround output to Front, Center and Rear speakers]
surround51:CARD=USB20,DEV=0 [5.1 Surround output to Front, Center, Rear and Subwoofer speakers]
surround71:CARD=USB20,DEV=0 [7.1 Surround output to Front, Center, Side, Rear and Woofer speakers]
iec958:CARD=USB20,DEV=0 [IEC958 (S/PDIF) Digital Audio Output]
dmix:CARD=USB20,DEV=0 [Direct sample mixing device]
dsnoop:CARD=USB20,DEV=0 [Direct sample snooping device]
hw:CARD=USB20,DEV=0 [Direct hardware device without any conversions]
plughw:CARD=USB20,DEV=0 [Hardware device with all software conversions]
usbstream:CARD=USB20 [USB Stream Output]
Auto-detected sources for jack:
Cannot list sources. Not implemented.
Auto-detected sources for openal:
Cannot list sources. Not implemented.
Auto-detected sources for oss:
Cannot list sources. Not implemented.
Auto-detected sources for pulse:
alsa_input.pci-0000_00_1b.0.analog-stereo [Built-in Audio Analog Stereo]
alsa_output.pci-0000_00_1b.0.analog-stereo.monitor [Monitor of Built-in Audio Analog Stereo]
* alsa_input.usb-MACROSIL_AV_TO_USB2.0-02.mono-fallback [AV TO USB2.0 Mono]
Auto-detected sources for sndio:
Cannot list sources. Not implemented.
Auto-detected sources for libcdio:
Cannot list sources. Not implemented.
Auto-detected sources for fbdev:
Could not open framebuffer device '/dev/fb0': Permission denied
Auto-detected sources for iec61883:
Cannot list sources. Not implemented.
Auto-detected sources for kmsgrab:
Cannot list sources. Not implemented.
Auto-detected sources for lavfi:
Cannot list sources. Not implemented.
Auto-detected sources for video4linux2,v4l2:
/dev/video1 [AV TO USB2.0]
/dev/video0 [AV TO USB2.0]
/dev/video3 [Laptop Integrated Webcam: Lapto]
/dev/video2 [Laptop Integrated Webcam: Lapto]
Auto-detected sources for x11grab:
Cannot list sources. Not implemented.
Auto-detected sources for libdc1394:
Cannot list sources. Not implemented.
Code:
$ cat /proc/asound/cards
0 [Intel ]: HDA-Intel - HDA Intel
HDA Intel at 0xfe9fc000 irq 26
1 [USB20 ]: USB-Audio - AV TO USB2.0
MACROSIL AV TO USB2.0 at usb-0000:00:1d.7-3, high speed
Code:
$ cat /proc/asound/devices
1: : sequencer
2: [ 0- 0]: digital audio playback
3: [ 0- 0]: digital audio capture
4: [ 0- 1]: digital audio playback
5: [ 0- 0]: hardware dependent
6: [ 0- 1]: hardware dependent
7: [ 0] : control
8: [ 1- 0]: digital audio capture
9: [ 1] : control
33: : timer
That's with the audio connected through the USB capture dongle
Last edited by borgward; 10-16-2021 at 12:43 AM.
Reason: Added comment
|
|
|
10-17-2021, 11:11 AM
|
#27
|
Member
Registered: May 2014
Distribution: Slackware
Posts: 262
Rep: 
|
Thank you for posting that. Looks very similar to mine. I got one of these devices, too. Try this. It's to confirm you're able to get sounds from it through usb. Push the Q key to quit. I recommend recording up to two minutes worth of sample. The video and audio will probably be out of sync for you too. I haven't figure that one out yet. Seems to me the audio initializes late. I get good picture and sound, though.
Code:
ffmpeg -f pulse -i default -f video4linux2 -i /dev/video0 -q 1 -f mpeg output-mpeg.mp4
The rest of this post is for anyone else interested in these details. I get tons of these warnings with that command. This has exceeded my understanding of ffmpeg, lol.
Code:
[mpeg @ 0x78a380] Non-monotonous DTS in output stream 0:1; previous: 1390010, current: 1389304; changing to 1390011. This may result in incorrect timestamps in the output file.
[mpeg @ 0x78a380] buffer underflow st=1 bufi=954 size=1152 bitrate=3282.2kbits/s dup=165 drop=0 speed=1.06x
[mpeg @ 0x78a380] buffer underflow st=1 bufi=687 size=1152
[mpeg1video @ 0x78b280] warning, clipping 1 dct coefficients to -255..255kbits/s dup=165 drop=0 speed=1.02x
[mpeg1video @ 0x78b280] warning, clipping 1 dct coefficients to -255..255kbits/s dup=165 drop=0 speed=1.08x
This one is the same as the last command but with libx264 and aac codecs. Video/audio are still out of sync.
Code:
ffmpeg -f pulse -i default -f v4l2 -i /dev/video0 -c:v libx264 -preset ultrafast -pix_fmt yuv420p -c:a aac output-libx264-aac.mp4
I get tons of these warnings with libx264.
Code:
[mp4 @ 0x618380] Non-monotonous DTS in output stream 0:1; previous: 899378, current: 890552; changing to 899379. This may result in incorrect timestamps in the output file
This one gave me the least amount of warnings so far but the video and audio are still out of sync. The intention is to capture to a lossless codec and re-encode to a lossy codec afterward. Since the capture device is giving me raw video, I went with rawvideo instead of a lossless codec.
Code:
ffmpeg -thread_queue_size 512 -c:v rawvideo -pix_fmt yuyv422 -r 30 -s 720x480 -f v4l2 -i /dev/video0 -f pulse -thread_queue_size 512 -ac 1 -ar 96000 -i default -c:v rawvideo -pix_fmt yuyv422 -r 30 -aspect 4:3 -c:a pcm_s16le -f matroska output-rawvideo-wav.mkv
'ffmpeg fmpeg -list_formats all -i /dev/video0' gave me this. This is Alien Bob's restricted ffmpeg build.
Code:
$ ffmpeg -list_formats all -i /dev/video0
ffmpeg version 4.4 Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 11.2.0 (GCC)
configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/doc/ffmpeg-4.4 --mandir=/usr/man --enable-gpl --enable-version3 --enable-avfilter --enable-avresample --enable-libmp3lame --enable-libass --enable-libdav1d --enable-libdc1394 --enable-libdrm --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmfx --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librsvg --enable-libsmbclient --enable-libssh --enable-libspeex --enable-libtheora --enable-libv4l2 --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libzvbi --enable-postproc --enable-runtime-cpudetect --enable-sdl2 --enable-vaapi --enable-vdpau --enable-pthreads --enable-bzlib --enable-zlib --enable-shared --enable-static --disable-debug --enable-libbluray --enable-frei0r --enable-openal --enable-opencl --enable-libpulse --enable-libvidstab --enable-libwebp --enable-libfdk-aac --enable-openssl --enable-nonfree --arch=x86_64 --enable-pic --extra-cflags='-I/tmp/build/tmp-ffmpeg/ffmpegdeps/usr/include -I/tmp/build/tmp-ffmpeg/ffmpegdeps/usr/include/SDL2 -DRUNTIME_CPUDETECT' --extra-ldflags='-L/tmp/build/tmp-ffmpeg/ffmpegdeps/usr/lib64 -lpthread -ldl -lssl -lcrypto -lz -lusb -ldrm' --pkg-config-flags=--static
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
[video4linux2,v4l2 @ 0xcbf0c0] Raw : yuyv422 : YUYV 4:2:2 : 720x480 720x576 640x480 320x240 160x120
/dev/video0: Immediate exit requested
'pactl list sources' gave me this. I do not know why it said 'SUSPENDED'. I do get sounds out of it during a ffmpeg capture.
Code:
Source #6
State: SUSPENDED
Name: alsa_input.usb-MACROSIL_AV_TO_USB2.0-02.mono-fallback
Description: AV TO USB2.0 Mono
Driver: module-alsa-card.c
Sample Specification: s16le 1ch 96000Hz
Channel Map: mono
Owner Module: 29
Mute: no
Volume: mono: 20724 / 32% / -30.00 dB
balance 0.00
Base Volume: 19201 / 29% / -31.99 dB
Monitor of Sink: n/a
Latency: 0 usec, configured 0 usec
Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY
Properties:
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "USB Audio"
alsa.id = "USB Audio"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "0"
alsa.card = "2"
alsa.card_name = "AV TO USB2.0"
alsa.long_card_name = "MACROSIL AV TO USB2.0 at usb-0000:00:14.0-1, high speed"
alsa.driver_name = "snd_usb_audio"
device.bus_path = "pci-0000:00:14.0-usb-0:1:1.2"
sysfs.path = "/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.2/sound/card2"
udev.id = "usb-MACROSIL_AV_TO_USB2.0-02"
device.bus = "usb"
device.vendor.id = "534d"
device.vendor.name = "MACROSIL"
device.product.id = "0021"
device.product.name = "AV TO USB2.0"
device.serial = "MACROSIL_AV_TO_USB2.0"
device.form_factor = "webcam"
device.string = "hw:2"
device.buffering.buffer_size = "384000"
device.buffering.fragment_size = "192000"
device.access_mode = "mmap+timer"
device.profile.name = "mono-fallback"
device.profile.description = "Mono"
device.description = "AV TO USB2.0 Mono"
module-udev-detect.discovered = "1"
device.icon_name = "camera-web-usb"
Ports:
analog-input-mic: Microphone (type: Mic, priority: 8700, availability unknown)
Active Port: analog-input-mic
Formats:
pcm
I hope we can get the video/audio synchronizing figured out because for $10, I am very impressed with the pictures this usb capture device is giving me. Sounds were as good as they can be for a mono source from a VCR.
michaelk, thanks for your link.
|
|
|
10-17-2021, 01:25 PM
|
#28
|
Member
Registered: May 2014
Distribution: Slackware
Posts: 262
Rep: 
|
Switching back to alsa but keeping default gave me a perfect sync in video and audio tracks. Hope this work for you, too!
Code:
ffmpeg -f alsa -i default -f video4linux2 -i /dev/video0 -q 1 -f mpeg output-mpeg.mp4
ffmpeg -f alsa -i default -f v4l2 -i /dev/video0 -c:v libx264 -preset ultrafast -pix_fmt yuv420p -c:a aac output-libx264-aac.mp4
I am still getting the Non-monotonous DTS warnings, though.
Edited:
I tried this in VLC, too. In VLC's 'Open Capture Device...' screen, type in 'default' instead of choosing 'hw:2,0' from the 'Audio device name' pulldown list. That gave me synchronized sounds.
Last edited by SW64; 10-17-2021 at 01:45 PM.
|
|
|
10-17-2021, 04:55 PM
|
#29
|
Member
Registered: Apr 2005
Location: Austin, Texas
Distribution: Feather, Darn Small Linux
Posts: 521
Original Poster
Rep:
|
Busy outside. Will pursue your suggestions this evening. Thanks.
|
|
|
10-18-2021, 01:00 PM
|
#30
|
Member
Registered: Apr 2005
Location: Austin, Texas
Distribution: Feather, Darn Small Linux
Posts: 521
Original Poster
Rep:
|
Code:
ffmpeg -f pulse -i default -f video4linux2 -i /dev/video0 -q 1 -f mpeg output-mpeg.mp4
Code:
ffmpeg -f pulse -i default -f video4linux2 -i /dev/video0 -q 1 -f mpeg output-mpeg.mp4
ffmpeg version 4.2.4-1ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 9 (Ubuntu 9.3.0-10ubuntu2)
configuration: --prefix=/usr --extra-version=1ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
WARNING: library configuration mismatch
avcodec configuration: --prefix=/usr --extra-version=1ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared --enable-version3 --disable-doc --disable-programs --enable-libaribb24 --enable-liblensfun --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libtesseract --enable-libvo_amrwbenc
libavutil 56. 31.100 / 56. 31.100
libavcodec 58. 54.100 / 58. 54.100
libavformat 58. 29.100 / 58. 29.100
libavdevice 58. 8.100 / 58. 8.100
libavfilter 7. 57.100 / 7. 57.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 5.100 / 5. 5.100
libswresample 3. 5.100 / 3. 5.100
libpostproc 55. 5.100 / 55. 5.100
Guessed Channel Layout for Input Stream #0.0 : stereo
Input #0, pulse, from 'default':
Duration: N/A, start: 1634575921.717731, bitrate: 1536 kb/s
Stream #0:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
/dev/video0: Device or resource busy
|
|
|
All times are GMT -5. The time now is 03:32 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|