Score:0

spec computer i5 gen2 ram 8gb linux 18.4 can running ffmpeg +nginx (HLS Server)?

it flag

back to my problem, my ffmpeg can't output audio using the h.264 codec (libx264) with the target from the destination USB UVC HDMI capture card to HLS streaming.. my question :

  1. does my computer spec not support? , we use is laptop FIJUTSHU LIFEBOOK S710 ( i5 M520. RAM 8G, SSD 500GB, build in camera, sound card intel, and using USB capture card , OS Ubuntu 18.4
  2. Is it because it has a multi sound card ( internal(intel) and a USB capture card (UVC Camera(HDMI)) , so ALSA can't recognition where the audio input is from, how to fix it ?
  3. syntax command hw:0 for usb device 0 or hw:1 for usb device 1 is wrong, how to fix it ?
  4. maybe the problem from syntax wrong ?, how to fix it ? if a problem from spec computer too low, whether by adding 1 NVIDIA GPU card, by directing ffmpeg using the GPU card's resource accelerator as an encoder , can solve my problem ?

syntax using :

ffmpeg -f alsa -channels 2 -sample_rate 44100 -i hw:1 -f video4linux2 -i /dev/video1 -c:a aac -b:a 128k -c:v libx264 -preset veryfast -b:v 4000k -maxrate 4000k -bufsize 12000k -g 10 -vf "scale=1280:720,format=yuv420p" -f flv rtmp://localhost/show/stream 

my usb device :

 s710@sensorsip:~$ aplay -l
    **** List of PLAYBACK Hardware Devices ****
    card 0: MID [HDA Intel MID], device 0: ALC269 Analog [ALC269 Analog]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 0: MID [HDA Intel MID], device 3: HDMI 0 [HDMI 0]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 0: MID [HDA Intel MID], device 7: HDMI 1 [HDMI 1]
      Subdevices: 1/1
      Subdevice #0: subdevice #0

s710@sensorsip:~$ lsusb
Bus 002 Device 005: ID 1690:0741 Askey Computer Corp. [hex]
Bus 002 Device 004: ID 0408:1322 Quanta Computer, Inc.
Bus 002 Device 003: ID 08ff:2550 AuthenTec, Inc. AES2550 Fingerprint Sensor
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 534d:2109
Bus 001 Device 003: ID 524d:2109
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
s710@sensorsip:~$

the usb card id is :

Bus 001 Device 004: ID 534d:2109
Bus 001 Device 003: ID 524d:2109

please help me, and thank you

Christian Hung

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.