Opened 3 years ago

Closed 3 years ago

#9247 closed defect (invalid)

ffmpeg exit after few minutes capturing from USB HDMI capture

Reported by: giuliano Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Hi,
I'm trying to get the live feed from an USB HDMI capture.

Here follows the ffmpeg command I'm using
ffmpeg -f alsa -thread_queue_size 1024 -i hw:1 -f v4l2 -i /dev/video2 -codec:v libx264 -b:v 2000k -preset ultrafast -level 4.0 -crf 22 -r 25 -vf scale=1280:720 -threads 0 -acodec aac -b:a 92k -ac 2 -bsf:a aac_adtstoasc -f flv rtmp://prg-1.s.cdn77.com:1936/1341229128/34567

and attached find the ffmpeg log file (ffmpeg.log).

The streaming works fine but after few minutes ffmpeg exit (see the ffmpeg log file) printing:
"Exiting normally, received signal 15."

I tried to capture only the video or only the audio or using as output a file
but I got always the same result, after few minutes the ffmpeg command exit printing:
"Exiting normally, received signal 15."

What I can do to avoid the ffmpeg command to exit?
Do you need some more info to investigate this issue?

Best regards

Attachments (1)

ffmpeg.log (23.2 KB ) - added by giuliano 3 years ago.

Download all attachments as: .zip

Change History (7)

by giuliano, 3 years ago

Attachment: ffmpeg.log added

comment:1 by giuliano, 3 years ago

Hi,
one more comment:
in the above scenario, VLC works fine setting as video and audio device
/dev/video2 and hw:1.

comment:2 by giuliano, 3 years ago

Hi,
one more information:
ffmpeg exit after about a couple of minutes also in case of capture a webcam

So it seems it is a "general" capture issue and not related to the USB HDMI capture!!!

Best regards

comment:3 by Carl Eugen Hoyos, 3 years ago

Are you seeing an issue with rtmp output or USB input?

comment:4 by giuliano, 3 years ago

hi,
it is an issue on input, ffmpeg stops capturing after 1-2 minutes
independently if the output is an rtmp or a file.

I have the same issue on both inputs: USB and also the integrated camera/mic.

VLC, using the same USB devices, /dev/video2 and hw:1, works fine.

Let me know how I can help you to find out the issue.
Best regards

comment:5 by giuliano, 3 years ago

hi,
sorry it was my mistake.

ffmpeg works fine, sorry again.

We can close this ticket.

Best regards

comment:6 by giuliano, 3 years ago

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.