[FFmpeg-user] cant stream audio and video at the same time

Gisbert Haas gisbert.haas at myvinn.com
Tue Jan 5 17:05:16 EET 2021


Hello Carl Eugen,


its the same behavior when testing with the git version.

Please see below:


ffmpeg -f alsa -ac 2 -i hw:2,0 -f v4l2 -input_format yuv420p -video_size 
1280x720 -i /dev/video0 -c:v h264_v4l2m2m -b:v 8M -c:a aac -f mpegts  
udp://230.10.1.1:5700
ffmpeg version git-2021-01-04-5f9632e Copyright (c) 2000-2021 the FFmpeg 
developers
   built with gcc 8 (Raspbian 8.3.0-6+rpi1)
   configuration: --extra-cflags=-I/usr/local/include 
--extra-ldflags=-L/usr/local/lib --extra-libs='-lpthread -lm -latomic' 
--arch=armel --enable-gmp --enable-gpl --enable-libaom --enable-libass 
--enable-libdav1d --enable-libfdk-aac --enable-libfreetype 
--enable-libkvazaar --enable-libmp3lame --enable-libopencore-amrnb 
--enable-libopencore-amrwb --enable-libopus --enable-librtmp 
--enable-libsnappy --enable-libsoxr --enable-libssh --enable-libvorbis 
--enable-libvpx --enable-libzimg --enable-libwebp --enable-libx264 
--enable-libx265 --enable-libxml2 --enable-mmal --enable-nonfree 
--enable-omx --enable-omx-rpi --enable-version3 --target-os=linux 
--enable-pthreads --enable-openssl --enable-hardcoded-tables
   libavutil      56. 63.100 / 56. 63.100
   libavcodec     58.115.102 / 58.115.102
   libavformat    58. 65.101 / 58. 65.101
   libavdevice    58. 11.103 / 58. 11.103
   libavfilter     7. 95.100 /  7. 95.100
   libswscale      5.  8.100 /  5.  8.100
   libswresample   3.  8.100 /  3.  8.100
   libpostproc    55.  8.100 / 55.  8.100
Guessed Channel Layout for Input Stream #0.0 : stereo
Input #0, alsa, from 'hw:2,0':
   Duration: N/A, start: 1609858998.181873, bitrate: 1536 kb/s
     Stream #0:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
[video4linux2,v4l2 @ 0x32cd6e0] Dequeued v4l2 buffer contains corrupted 
data (0 bytes).
Input #1, video4linux2,v4l2, from '/dev/video0':
   Duration: N/A, start: 0.000000, bitrate: 884736 kb/s
     Stream #1:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 
1280x720, 884736 kb/s, 60 fps, 60 tbr, 1000k tbn, 1000k tbc
Stream mapping:
   Stream #1:0 -> #0:0 (rawvideo (native) -> h264 (h264_v4l2m2m))
   Stream #0:0 -> #0:1 (pcm_s16le (native) -> aac (native))
Press [q] to stop, [?] for help
[video4linux2,v4l2 @ 0x32cd6e0] Dequeued v4l2 buffer contains corrupted 
data (0 bytes).
     Last message repeated 30 times
[h264_v4l2m2m @ 0x32d3f00] Using device /dev/video11
[h264_v4l2m2m @ 0x32d3f00] driver 'bcm2835-codec' on card 
'bcm2835-codec-encode' in mplane mode
[h264_v4l2m2m @ 0x32d3f00] requesting formats: output=YUYV capture=H264
[h264_v4l2m2m @ 0x32d3f00] Failed to set gop size: Invalid argument
[alsa @ 0x32ba1e0] Thread message queue blocking; consider raising the 
thread_queue_size option (current value: 8)
Output #0, mpegts, to 'udp://230.10.1.1:5700':
   Metadata:
     encoder         : Lavf58.65.101
     Stream #0:0: Video: h264, yuyv422(progressive), 1280x720, q=2-31, 
8000 kb/s, 60 fps, 90k tbn
     Metadata:
       encoder         : Lavc58.115.102 h264_v4l2m2m
     Stream #0:1: Audio: aac (LC), 48000 Hz, stereo, fltp, 128 kb/s
     Metadata:
       encoder         : Lavc58.115.102 aac
[video4linux2,v4l2 @ 0x32cd6e0] Thread message queue blocking; consider 
raising the thread_queue_size option (current value: 8)
frame=    2 fps=0.4 q=-0.0 Lsize=      12kB time=02:12:33.01 bitrate=   
0.0kbits/s speed=1.78e+03x
video:0kB audio:2kB subtitle:0kB other streams:0kB global headers:0kB 
muxing overhead: 462.768951%
[aac @ 0x32d54c0] Qavg: 64927.602
Exiting normally, received signal 2.





On 1/5/21 4:01 AM, Carl Eugen Hoyos wrote:
> CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
>
>
>> Am 04.01.2021 um 22:58 schrieb Gisbert Haas <gisbert.haas at myvinn.com>:
>>
>> Ubuntu 20.10 server 64bit, ffpmeg version 4.3.1-4, but its the same with the latest RaspbianOS 32bit and ffpmeg version 4.2
> Please test current FFmpeg git head, the only version supported here, and provide the command line you tested together with the complete, uncut console output.
>
> Carl Eugen
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-user mailing list