Streaming audio and video - Raspberry Pi Forums
i trying capture video camera board , combine audio usb sound card. problem audio lags on 2 seconds , video on 2 seconds behind that!
using ffmpeg below. there still major sync issues if write data file instead of streaming it.
can't attach log ".txt" , ".log" extensions not allowed. here is:
using ffmpeg below. there still major sync issues if write data file instead of streaming it.
code: select all
raspivid -o - -t 0 -n -w 1280 -h 720 -fps 25 | ffmpeg -report -probesize 32000 -thread_queue_size 1024 -y -f h264 -r 25 -framerate 25 -i - -thread_queue_size 512 -f alsa -ac 1 -channel_layout mono -i hw:1 -vcodec copy -acodec mp3 -f mpegts udp://44.0.0.95:1234
code: select all
ffmpeg started on 2015-06-16 @ 09:55:15 report written "ffmpeg-20150616-095515.log" command line: ffmpeg -report -probesize 32000 -thread_queue_size 1024 -y -f h264 -r 25 -framerate 25 -i - -thread_queue_size 512 -f alsa -ac 1 -channel_layout mono -i hw:1 -vcodec copy -acodec mp3 -f mpegts udp://44.0.0.95:1234 ffmpeg version n-72834-gfd004e1 copyright (c) 2000-2015 ffmpeg developers built gcc 4.6 (debian 4.6.3-14+rpi1) configuration: --enable-libmp3lame libavutil 54. 27.100 / 54. 27.100 libavcodec 56. 41.100 / 56. 41.100 libavformat 56. 36.100 / 56. 36.100 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 16.101 / 5. 16.101 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 2.100 / 1. 2.100 splitting commandline. reading option '-report' ... matched option 'report' (generate report) argument '1'. reading option '-probesize' ... matched avoption 'probesize' argument '32000'. reading option '-thread_queue_size' ... matched option 'thread_queue_size' (set maximum number of queued packets demuxer) argument '1024'. reading option '-y' ... matched option 'y' (overwrite output files) argument '1'. reading option '-f' ... matched option 'f' (force format) argument 'h264'. reading option '-r' ... matched option 'r' (set frame rate (hz value, fraction or abbreviation)) argument '25'. reading option '-framerate' ... matched avoption 'framerate' argument '25'. reading option '-i' ... matched input file argument '-'. reading option '-thread_queue_size' ... matched option 'thread_queue_size' (set maximum number of queued packets demuxer) argument '512'. reading option '-f' ... matched option 'f' (force format) argument 'alsa'. reading option '-ac' ... matched option 'ac' (set number of audio channels) argument '1'. reading option '-channel_layout' ... matched option 'channel_layout' (set channel layout) argument 'mono'. reading option '-i' ... matched input file argument 'hw:1'. reading option '-vcodec' ... matched option 'vcodec' (force video codec ('copy' copy stream)) argument 'copy'. reading option '-acodec' ... matched option 'acodec' (force audio codec ('copy' copy stream)) argument 'mp3'. reading option '-f' ... matched option 'f' (force format) argument 'mpegts'. reading option 'udp://44.0.0.95:1234' ... matched output file. finished splitting commandline. parsing group of options: global . applying option report (generate report) argument 1. applying option y (overwrite output files) argument 1. parsed group of options. parsing group of options: input file -. applying option thread_queue_size (set maximum number of queued packets demuxer) argument 1024. applying option f (force format) argument h264. applying option r (set frame rate (hz value, fraction or abbreviation)) argument 25. parsed group of options. opening input file: -. [h264 @ 0x21d93c0] before avformat_find_stream_info() pos: 0 bytes read:4096 seeks:0 [h264 @ 0x21d93c0] probe buffer size limit of 32000 bytes reached [h264 @ 0x21d93c0] stream #0: not enough frames estimate rate; consider increasing probesize [h264 @ 0x21d93c0] decoding stream 0 failed [h264 @ 0x21d93c0] after avformat_find_stream_info() pos: 33792 bytes read:49152 seeks:0 frames:3 input #0, h264, 'pipe:': duration: n/a, bitrate: n/a stream #0:0, 3, 1/1200000: video: h264 (high), yuv420p, 1280x720, 25 fps, 25 tbr, 1200k tbn, 50 tbc opened file. parsing group of options: input file hw:1. applying option thread_queue_size (set maximum number of queued packets demuxer) argument 512. applying option f (force format) argument alsa. applying option ac (set number of audio channels) argument 1. applying option channel_layout (set channel layout) argument mono. parsed group of options. opening input file: hw:1. [alsa @ 0x21ffd00] info found input #1, alsa, 'hw:1': duration: n/a, start: 1434444921.389533, bitrate: 768 kb/s stream #1:0, 1, 1/1000000: audio: pcm_s16le, 48000 hz, mono, s16, 768 kb/s opened file. parsing group of options: output file udp://44.0.0.95:1234. applying option vcodec (force video codec ('copy' copy stream)) argument copy. applying option acodec (force audio codec ('copy' copy stream)) argument mp3. applying option f (force format) argument mpegts. parsed group of options. opening output file: udp://44.0.0.95:1234. matched encoder 'libmp3lame' codec 'mp3'. opened file. detected 4 logical cores [graph 0 input stream 1:0 @ 0x21d1700] setting 'time_base' value '1/48000' [graph 0 input stream 1:0 @ 0x21d1700] setting 'sample_rate' value '48000' [graph 0 input stream 1:0 @ 0x21d1700] setting 'sample_fmt' value 's16' [graph 0 input stream 1:0 @ 0x21d1700] setting 'channel_layout' value '0x4' [graph 0 input stream 1:0 @ 0x21d1700] tb:1/48000 samplefmt:s16 samplerate:48000 chlayout:0x4 [audio format output stream 0:1 @ 0x21ca470] setting 'sample_fmts' value 's32p|fltp|s16p' [audio format output stream 0:1 @ 0x21ca470] setting 'sample_rates' value '44100|48000|32000|22050|24000|16000|11025|12000|8000' [audio format output stream 0:1 @ 0x21ca470] setting 'channel_layouts' value '0x4|0x3' [audio format output stream 0:1 @ 0x21ca470] auto-inserting filter 'auto-inserted resampler 0' between filter 'parsed_anull_0' , filter 'audio format output stream 0:1' [avfiltergraph @ 0x21c9ea0] query_formats: 4 queried, 6 merged, 3 done, 0 delayed [auto-inserted resampler 0 @ 0x22436b0] ch:1 chl:mono fmt:s16 r:48000hz -> ch:1 chl:mono fmt:s16p r:48000hz [mpegts @ 0x21eebf0] muxrate vbr, pcr every 2 pkts, sdt every 200, pat/pmt every 40 pkts output #0, mpegts, 'udp://44.0.0.95:1234': metadata: encoder : lavf56.36.100 stream #0:0, 0, 1/90000: video: h264, yuv420p, 1280x720, q=2-31, 25 fps, 25 tbr, 90k tbn, 25 tbc stream #0:1, 0, 1/90000: audio: mp3 (libmp3lame), 48000 hz, mono, s16p metadata: encoder : lavc56.41.100 libmp3lame stream mapping: stream #0:0 -> #0:0 (copy) stream #1:0 -> #0:1 (pcm_s16le (native) -> mp3 (libmp3lame)) frame= 12 fps=0.0 q=-1.0 size= 523kb time=00:00:00.48 bitrate=8917.5kbits/s frame= 24 fps= 24 q=-1.0 size= 1043kb time=00:00:00.96 bitrate=8897.1kbits/s frame= 36 fps= 24 q=-1.0 size= 1511kb time=00:00:01.44 bitrate=8593.7kbits/s frame= 48 fps= 24 q=-1.0 size= 1980kb time=00:00:01.92 bitrate=8447.5kbits/s frame= 61 fps= 24 q=-1.0 size= 2463kb time=00:00:02.44 bitrate=8270.8kbits/s frame= 74 fps= 25 q=-1.0 size= 3007kb time=00:00:02.96 bitrate=8322.8kbits/s frame= 87 fps= 25 q=-1.0 size= 3475kb time=00:00:03.48 bitrate=8179.1kbits/s frame= 99 fps= 25 q=-1.0 size= 3980kb time=00:00:03.96 bitrate=8234.4kbits/s frame= 111 fps= 24 q=-1.0 size= 4498kb time=00:00:04.44 bitrate=8298.4kbits/s frame= 125 fps= 25 q=-1.0 size= 5160kb time=00:00:05.00 bitrate=8453.4kbits/s frame= 137 fps= 25 q=-1.0 size= 5652kb time=00:00:05.48 bitrate=8448.5kbits/s frame= 150 fps= 25 q=-1.0 size= 6174kb time=00:00:06.00 bitrate=8429.9kbits/s frame= 162 fps= 25 q=-1.0 size= 6638kb time=00:00:06.48 bitrate=8391.5kbits/s frame= 175 fps= 25 q=-1.0 size= 7141kb time=00:00:07.00 bitrate=8356.4kbits/s frame= 188 fps= 25 q=-1.0 size= 7705kb time=00:00:07.52 bitrate=8393.4kbits/s frame= 200 fps= 25 q=-1.0 size= 8161kb time=00:00:08.00 bitrate=8356.4kbits/s frame= 213 fps= 25 q=-1.0 size= 8662kb time=00:00:08.52 bitrate=8328.5kbits/s frame= 225 fps= 25 q=-1.0 size= 9125kb time=00:00:09.00 bitrate=8305.8kbits/s frame= 238 fps= 25 q=-1.0 size= 9615kb time=00:00:09.52 bitrate=8274.1kbits/s frame= 251 fps= 25 q=-1.0 size= 10178kb time=00:00:10.04 bitrate=8305.0kbits/s frame= 263 fps= 25 q=-1.0 size= 10647kb time=00:00:10.52 bitrate=8290.7kbits/s frame= 276 fps= 25 q=-1.0 size= 11220kb time=00:00:11.04 bitrate=8325.4kbits/s frame= 288 fps= 25 q=-1.0 size= 11756kb time=00:00:11.52 bitrate=8360.0kbits/s frame= 302 fps= 25 q=-1.0 size= 12420kb time=00:00:12.08 bitrate=8422.9kbits/s frame= 314 fps= 25 q=-1.0 size= 12907kb time=00:00:12.56 bitrate=8418.3kbits/s frame= 326 fps= 25 q=-1.0 size= 13428kb time=00:00:13.04 bitrate=8435.5kbits/s frame= 339 fps= 25 q=-1.0 size= 13892kb time=00:00:13.56 bitrate=8392.3kbits/s frame= 352 fps= 25 q=-1.0 size= 14414kb time=00:00:14.08 bitrate=8386.1kbits/s frame= 364 fps= 25 q=-1.0 size= 14964kb time=00:00:14.56 bitrate=8419.2kbits/s frame= 377 fps= 25 q=-1.0 size= 15481kb time=00:00:15.08 bitrate=8409.9kbits/s frame= 389 fps= 25 q=-1.0 size= 15959kb time=00:00:15.56 bitrate=8402.2kbits/s frame= 402 fps= 25 q=-1.0 size= 16496kb time=00:00:16.08 bitrate=8403.9kbits/s frame= 414 fps= 25 q=-1.0 size= 16987kb time=00:00:16.56 bitrate=8403.2kbits/s frame= 426 fps= 25 q=-1.0 size= 17582kb time=00:00:17.04 bitrate=8451.8kbits/s frame= 440 fps= 25 q=-1.0 size= 18088kb time=00:00:17.60 bitrate=8419.2kbits/s frame= 452 fps= 25 q=-1.0 size= 18549kb time=00:00:18.08 bitrate=8404.7kbits/s frame= 465 fps= 25 q=-1.0 size= 19047kb time=00:00:18.60 bitrate=8389.0kbits/s frame= 477 fps= 25 q=-1.0 size= 19495kb time=00:00:19.08 bitrate=8370.3kbits/s frame= 490 fps= 25 q=-1.0 size= 20063kb time=00:00:19.60 bitrate=8385.4kbits/s frame= 503 fps= 25 q=-1.0 size= 20566kb time=00:00:20.12 bitrate=8373.7kbits/s frame= 515 fps= 25 q=-1.0 size= 21034kb time=00:00:20.60 bitrate=8364.4kbits/s frame= 528 fps= 25 q=-1.0 size= 21536kb time=00:00:21.12 bitrate=8353.4kbits/s frame= 541 fps= 25 q=-1.0 size= 22039kb time=00:00:21.64 bitrate=8342.9kbits/s frame= 553 fps= 25 q=-1.0 size= 22568kb time=00:00:22.12 bitrate=8357.9kbits/s frame= 566 fps= 25 q=-1.0 size= 23071kb time=00:00:22.64 bitrate=8347.9kbits/s frame= 578 fps= 25 q=-1.0 size= 23534kb time=00:00:23.12 bitrate=8338.5kbits/s frame= 591 fps= 25 q=-1.0 size= 24034kb time=00:00:23.64 bitrate=8328.4kbits/s frame= 604 fps= 25 q=-1.0 size= 24614kb time=00:00:24.16 bitrate=8345.8kbits/s frame= 616 fps= 25 q=-1.0 size= 25112kb time=00:00:24.64 bitrate=8349.0kbits/s frame= 629 fps= 25 q=-1.0 size= 25691kb time=00:00:25.16 bitrate=8364.9kbits/s frame= 642 fps= 25 q=-1.0 size= 26271kb time=00:00:25.68 bitrate=8380.6kbits/s frame= 654 fps= 25 q=-1.0 size= 26825kb time=00:00:26.16 bitrate=8400.3kbits/s frame= 667 fps= 25 q=-1.0 size= 27483kb time=00:00:26.68 bitrate=8438.5kbits/s frame= 679 fps= 25 q=-1.0 size= 28040kb time=00:00:27.16 bitrate=8457.6kbits/s frame= 692 fps= 25 q=-1.0 size= 28510kb time=00:00:27.68 bitrate=8437.7kbits/s frame= 704 fps= 25 q=-1.0 size= 29061kb time=00:00:28.16 bitrate=8454.2kbits/s frame= 717 fps= 25 q=-1.0 size= 29675kb time=00:00:28.68 bitrate=8476.3kbits/s frame= 729 fps= 25 q=-1.0 size= 30207kb time=00:00:29.16 bitrate=8486.0kbits/s frame= 742 fps= 25 q=-1.0 size= 30750kb time=00:00:29.68 bitrate=8487.4kbits/s frame= 755 fps= 25 q=-1.0 size= 31316kb time=00:00:30.20 bitrate=8494.7kbits/s frame= 768 fps= 25 q=-1.0 size= 31908kb time=00:00:30.72 bitrate=8508.7kbits/s frame= 780 fps= 25 q=-1.0 size= 32431kb time=00:00:31.20 bitrate=8515.2kbits/s frame= 792 fps= 25 q=-1.0 size= 32954kb time=00:00:31.68 bitrate=8521.4kbits/s frame= 805 fps= 25 q=-1.0 size= 33463kb time=00:00:32.20 bitrate=8513.4kbits/s frame= 818 fps= 25 q=-1.0 size= 33966kb time=00:00:32.72 bitrate=8504.0kbits/s frame= 830 fps= 25 q=-1.0 size= 34476kb time=00:00:33.20 bitrate=8506.9kbits/s frame= 843 fps= 25 q=-1.0 size= 35083kb time=00:00:33.72 bitrate=8523.2kbits/s frame= 855 fps= 25 q=-1.0 size= 35522kb time=00:00:34.20 bitrate=8508.7kbits/s frame= 868 fps= 25 q=-1.0 size= 36012kb time=00:00:34.72 bitrate=8497.0kbits/s frame= 881 fps= 25 q=-1.0 size= 36581kb time=00:00:35.24 bitrate=8503.7kbits/s frame= 894 fps= 25 q=-1.0 size= 37109kb time=00:00:35.76 bitrate=8501.0kbits/s frame= 906 fps= 25 q=-1.0 size= 37637kb time=00:00:36.24 bitrate=8507.8kbits/s frame= 918 fps= 25 q=-1.0 size= 38174kb time=00:00:36.72 bitrate=8516.5kbits/s frame= 932 fps= 25 q=-1.0 size= 38819kb time=00:00:37.28 bitrate=8530.2kbits/s frame= 944 fps= 25 q=-1.0 size= 39395kb time=00:00:37.76 bitrate=8546.8kbits/s frame= 956 fps= 25 q=-1.0 size= 40028kb time=00:00:38.24 bitrate=8575.0kbits/s frame= 969 fps= 25 q=-1.0 size= 40582kb time=00:00:38.76 bitrate=8577.0kbits/s frame= 981 fps= 25 q=-1.0 size= 41052kb time=00:00:39.24 bitrate=8570.3kbits/s frame= 994 fps= 25 q=-1.0 size= 41559kb time=00:00:39.76 bitrate=8562.6kbits/s frame= 1007 fps= 25 q=-1.0 size= 42043kb time=00:00:40.28 bitrate=8550.5kbits/s frame= 1019 fps= 25 q=-1.0 size= 42525kb time=00:00:40.76 bitrate=8546.7kbits/s frame= 1032 fps= 25 q=-1.0 size= 43030kb time=00:00:41.28 bitrate=8539.3kbits/s frame= 1044 fps= 25 q=-1.0 size= 43489kb time=00:00:41.76 bitrate=8531.2kbits/s frame= 1058 fps= 25 q=-1.0 size= 44014kb time=00:00:42.32 bitrate=8519.8kbits/s frame= 1070 fps= 25 q=-1.0 size= 44449kb time=00:00:42.80 bitrate=8507.7kbits/s frame= 1082 fps= 25 q=-1.0 size= 44946kb time=00:00:43.28 bitrate=8507.3kbits/s frame= 1095 fps= 25 q=-1.0 size= 45433kb time=00:00:43.80 bitrate=8497.4kbits/s frame= 1107 fps= 25 q=-1.0 size= 45875kb time=00:00:44.28 bitrate=8487.0kbits/s frame= 1120 fps= 25 q=-1.0 size= 46374kb time=00:00:44.80 bitrate=8479.9kbits/s frame= 1133 fps= 25 q=-1.0 size= 46937kb time=00:00:45.32 bitrate=8484.4kbits/s frame= 1146 fps= 25 q=-1.0 size= 47622kb time=00:00:45.84 bitrate=8510.5kbits/s frame= 1158 fps= 25 q=-1.0 size= 48227kb time=00:00:46.32 bitrate=8529.2kbits/s frame= 1171 fps= 25 q=-1.0 size= 48815kb time=00:00:46.84 bitrate=8537.4kbits/s frame= 1184 fps= 25 q=-1.0 size= 49364kb time=00:00:47.36 bitrate=8538.6kbits/s frame= 1196 fps= 25 q=-1.0 size= 49867kb time=00:00:47.84 bitrate=8539.2kbits/s frame= 1209 fps= 25 q=-1.0 size= 50440kb time=00:00:48.36 bitrate=8544.4kbits/s frame= 1221 fps= 25 q=-1.0 size= 50899kb time=00:00:48.84 bitrate=8537.4kbits/s frame= 1234 fps= 25 q=-1.0 size= 51411kb time=00:00:49.36 bitrate=8532.4kbits/s frame= 1247 fps= 25 q=-1.0 size= 52025kb time=00:00:49.88 bitrate=8544.2kbits/s frame= 1259 fps= 25 q=-1.0 size= 52632kb time=00:00:50.36 bitrate=8561.6kbits/s frame= 1272 fps= 25 q=-1.0 size= 53295kb time=00:00:50.88 bitrate=8580.8kbits/s frame= 1284 fps= 25 q=-1.0 size= 53898kb time=00:00:51.36 bitrate=8596.8kbits/s frame= 1297 fps= 25 q=-1.0 size= 54539kb time=00:00:51.88 bitrate=8611.8kbits/s frame= 1310 fps= 25 q=-1.0 size= 55109kb time=00:00:52.40 bitrate=8615.5kbits/s frame= 1322 fps= 25 q=-1.0 size= 55692kb time=00:00:52.88 bitrate=8627.6kbits/s frame= 1335 fps= 25 q=-1.0 size= 56332kb time=00:00:53.40 bitrate=8641.8kbits/s frame= 1347 fps= 25 q=-1.0 size= 56910kb time=00:00:53.88 bitrate=8652.7kbits/s frame= 1360 fps= 25 q=-1.0 size= 57643kb time=00:00:54.40 bitrate=8680.3kbits/s frame= 1373 fps= 25 q=-1.0 size= 58272kb time=00:00:54.92 bitrate=8692.0kbits/s frame= 1385 fps= 25 q=-1.0 size= 58926kb time=00:00:55.40 bitrate=8713.5kbits/s frame= 1398 fps= 25 q=-1.0 size= 59559kb time=00:00:55.92 bitrate=8725.1kbits/s frame= 1410 fps= 25 q=-1.0 size= 60280kb time=00:00:56.40 bitrate=8755.1kbits/s frame= 1424 fps= 25 q=-1.0 size= 60941kb time=00:00:56.96 bitrate=8764.6kbits/s frame= 1436 fps= 25 q=-1.0 size= 61538kb time=00:00:57.44 bitrate=8776.5kbits/s frame= 1449 fps= 25 q=-1.0 size= 62222kb time=00:00:57.96 bitrate=8794.4kbits/s frame= 1461 fps= 25 q=-1.0 size= 62795kb time=00:00:58.44 bitrate=8802.4kbits/s frame= 1474 fps= 25 q=-1.0 size= 63414kb time=00:00:58.96 bitrate=8810.8kbits/s frame= 1487 fps= 25 q=-1.0 size= 64041kb time=00:00:59.48 bitrate=8820.2kbits/s frame= 1499 fps= 25 q=-1.0 size= 64609kb time=00:00:59.96 bitrate=8827.2kbits/s frame= 1511 fps= 25 q=-1.0 size= 65247kb time=00:01:00.44 bitrate=8843.5kbits/s frame= 1524 fps= 25 q=-1.0 size= 65893kb time=00:01:00.96 bitrate=8855.0kbits/s frame= 1537 fps= 25 q=-1.0 size= 66513kb time=00:01:01.48 bitrate=8862.6kbits/s frame= 1549 fps= 25 q=-1.0 size= 67085kb time=00:01:01.96 bitrate=8869.6kbits/s frame= 1562 fps= 25 q=-1.0 size= 67788kb time=00:01:02.48 bitrate=8888.0kbits/s frame= 1574 fps= 25 q=-1.0 size= 68438kb time=00:01:02.96 bitrate=8904.7kbits/s frame= 1587 fps= 25 q=-1.0 size= 69105kb time=00:01:03.48 bitrate=8917.8kbits/s frame= 1600 fps= 25 q=-1.0 size= 69682kb time=00:01:04.00 bitrate=8919.3kbits/s frame= 1612 fps= 25 q=-1.0 size= 70193kb time=00:01:04.48 bitrate=8917.8kbits/s frame= 1625 fps= 25 q=-1.0 size= 70806kb time=00:01:05.00 bitrate=8923.7kbits/s frame= 1638 fps= 25 q=-1.0 size= 71347kb time=00:01:05.52 bitrate=8920.5kbits/s frame= 1650 fps= 25 q=-1.0 size= 71835kb time=00:01:06.00 bitrate=8916.2kbits/s frame= 1662 fps= 25 q=-1.0 size= 72365kb time=00:01:06.48 bitrate=8916.8kbits/s frame= 1676 fps= 25 q=-1.0 size= 72921kb time=00:01:07.04 bitrate=8910.7kbits/s frame= 1688 fps= 25 q=-1.0 size= 73501kb time=00:01:07.52 bitrate=8917.7kbits/s frame= 1701 fps= 25 q=-1.0 size= 74101kb time=00:01:08.04 bitrate=8921.8kbits/s frame= 1713 fps= 25 q=-1.0 size= 74683kb time=00:01:08.52 bitrate=8928.8kbits/s frame= 1726 fps= 25 q=-1.0 size= 75252kb time=00:01:09.04 bitrate=8929.1kbits/s frame= 1738 fps= 25 q=-1.0 size= 75759kb time=00:01:09.52 bitrate=8927.2kbits/s frame= 1751 fps= 25 q=-1.0 size= 76361kb time=00:01:10.04 bitrate=8931.3kbits/s frame= 1763 fps= 25 q=-1.0 size= 76852kb time=00:01:10.52 bitrate=8927.6kbits/s frame= 1776 fps= 25 q=-1.0 size= 77378kb time=00:01:11.04 bitrate=8922.9kbits/s frame= 1788 fps= 25 q=-1.0 size= 77858kb time=00:01:11.52 bitrate=8918.0kbits/s frame= 1802 fps= 25 q=-1.0 size= 78508kb time=00:01:12.08 bitrate=8922.6kbits/s frame= 1814 fps= 25 q=-1.0 size= 79012kb time=00:01:12.56 bitrate=8920.4kbits/s frame= 1827 fps= 25 q=-1.0 size= 79541kb time=00:01:13.08 bitrate=8916.3kbits/s frame= 1839 fps= 25 q=-1.0 size= 80022kb time=00:01:13.56 bitrate=8911.6kbits/s frame= 1851 fps= 25 q=-1.0 size= 80521kb time=00:01:14.04 bitrate=8909.1kbits/s frame= 1864 fps= 25 q=-1.0 size= 81113kb time=00:01:14.56 bitrate=8911.9kbits/s frame= 1877 fps= 25 q=-1.0 size= 81635kb time=00:01:15.08 bitrate=8907.2kbits/s frame= 1889 fps= 25 q=-1.0 size= 82101kb time=00:01:15.56 bitrate=8901.1kbits/s frame= 1902 fps= 25 q=-1.0 size= 82629kb time=00:01:16.08 bitrate=8897.2kbits/s frame= 1914 fps= 25 q=-1.0 size= 83106kb time=00:01:16.56 bitrate=8892.4kbits/s frame= 1927 fps= 25 q=-1.0 size= 83777kb time=00:01:17.08 bitrate=8903.8kbits/s frame= 1940 fps= 25 q=-1.0 size= 84288kb time=00:01:17.60 bitrate=8898.0kbits/s frame= 1952 fps= 25 q=-1.0 size= 84801kb time=00:01:18.08 bitrate=8897.1kbits/s frame= 1965 fps= 25 q=-1.0 size= 85332kb time=00:01:18.60 bitrate=8893.7kbits/s frame= 1977 fps= 25 q=-1.0 size= 85843kb time=00:01:19.08 bitrate=8892.3kbits/s frame= 1990 fps= 25 q=-1.0 size= 86367kb time=00:01:19.60 bitrate=8888.5kbits/s frame= 2003 fps= 25 q=-1.0 size= 86871kb time=00:01:20.12 bitrate=8882.3kbits/s frame= 2015 fps= 25 q=-1.0 size= 87335kb time=00:01:20.60 bitrate=8876.5kbits/s frame= 2028 fps= 25 q=-1.0 size= 87909kb time=00:01:21.12 bitrate=8877.6kbits/s frame= 2040 fps= 25 q=-1.0 size= 88428kb time=00:01:21.60 bitrate=8877.4kbits/s frame= 2053 fps= 25 q=-1.0 size= 89073kb time=00:01:22.12 bitrate=8885.6kbits/s frame= 2066 fps= 25 q=-1.0 size= 89553kb time=00:01:22.64 bitrate=8877.3kbits/s frame= 2078 fps= 25 q=-1.0 size= 90024kb time=00:01:23.12 bitrate=8872.5kbits/s frame= 2091 fps= 25 q=-1.0 size= 90535kb time=00:01:23.64 bitrate=8867.3kbits/s frame= 2103 fps= 25 q=-1.0 size= 91085kb time=00:01:24.12 bitrate=8870.3kbits/s frame= 2116 fps= 25 q=-1.0 size= 91625kb time=00:01:24.64 bitrate=8868.0kbits/s frame= 2129 fps= 25 q=-1.0 size= 92167kb time=00:01:25.16 bitrate=8866.1kbits/s frame= 2142 fps= 25 q=-1.0 size= 92718kb time=00:01:25.68 bitrate=8864.9kbits/s frame= 2154 fps= 25 q=-1.0 size= 93219kb time=00:01:26.16 bitrate=8863.2kbits/s frame= 2166 fps= 25 q=-1.0 size= 93802kb time=00:01:26.64 bitrate=8868.9kbits/s frame= 2179 fps= 25 q=-1.0 size= 94275kb time=00:01:27.16 bitrate=8860.8kbits/s frame= 2192 fps= 25 q=-1.0 size= 94806kb time=00:01:27.68 bitrate=8857.8kbits/s frame= 2204 fps= 25 q=-1.0 size= 95268kb time=00:01:28.16 bitrate=8852.5kbits/s frame= 2217 fps= 25 q=-1.0 size= 95790kb time=00:01:28.68 bitrate=8848.8kbits/s frame= 2229 fps= 25 q=-1.0 size= 96343kb time=00:01:29.16 bitrate=8852.0kbits/s frame= 2242 fps= 25 q=-1.0 size= 96883kb time=00:01:29.68 bitrate=8850.0kbits/s frame= 2255 fps= 25 q=-1.0 size= 97404kb time=00:01:30.20 bitrate=8846.3kbits/s frame= 2267 fps= 25 q=-1.0 size= 97868kb time=00:01:30.68 bitrate=8841.4kbits/s frame= 2280 fps= 25 q=-1.0 size= 98415kb time=00:01:31.20 bitrate=8840.1kbits/s frame= 2292 fps= 25 q=-1.0 size= 98951kb time=00:01:31.68 bitrate=8841.7kbits/s frame= 2306 fps= 25 q=-1.0 size= 99512kb time=00:01:32.24 bitrate=8837.9kbits/s frame= 2318 fps= 25 q=-1.0 size= 100005kb time=00:01:32.72 bitrate=8835.6kbits/s frame= 2330 fps= 25 q=-1.0 size= 100501kb time=00:01:33.20 bitrate=8833.8kbits/s frame= 2343 fps= 25 q=-1.0 size= 101089kb time=00:01:33.72 bitrate=8836.1kbits/s frame= 2355 fps= 25 q=-1.0 size= 101597kb time=00:01:34.20 bitrate=8835.2kbits/s frame= 2368 fps= 25 q=-1.0 size= 102139kb time=00:01:34.72 bitrate=8833.7kbits/s frame= 2381 fps= 25 q=-1.0 size= 102659kb time=00:01:35.24 bitrate=8830.1kbits/s frame= 2393 fps= 25 q=-1.0 size= 103116kb time=00:01:35.72 bitrate=8825.0kbits/s frame= 2406 fps= 25 q=-1.0 size= 103672kb time=00:01:36.24 bitrate=8824.6kbits/s frame= 2418 fps= 25 q=-1.0 size= 104180kb time=00:01:36.72 bitrate=8823.8kbits/s frame= 2431 fps= 25 q=-1.0 size= 104721kb time=00:01:37.24 bitrate=8822.3kbits/s frame= 2444 fps= 25 q=-1.0 size= 105328kb time=00:01:37.76 bitrate=8826.1kbits/s frame= 2456 fps= 25 q=-1.0 size= 105892kb time=00:01:38.24 bitrate=8830.1kbits/s frame= 2469 fps= 25 q=-1.0 size= 106535kb time=00:01:38.76 bitrate=8837.0kbits/s frame= 2481 fps= 25 q=-1.0 size= 107052kb time=00:01:39.24 bitrate=8836.9kbits/s frame= 2494 fps= 25 q=-1.0 size= 107698kb time=00:01:39.76 bitrate=8843.8kbits/s frame= 2507 fps= 25 q=-1.0 size= 108303kb time=00:01:40.28 bitrate=8847.4kbits/s frame= 2520 fps= 25 q=-1.0 size= 108891kb time=00:01:40.80 bitrate=8849.5kbits/s frame= 2532 fps= 25 q=-1.0 size= 109461kb time=00:01:41.28 bitrate=8853.7kbits/s frame= 2544 fps= 25 q=-1.0 size= 109953kb time=00:01:41.76 bitrate=8851.5kbits/s frame= 2557 fps= 25 q=-1.0 size= 110502kb time=00:01:42.28 bitrate=8850.5kbits/s frame= 2570 fps= 25 q=-1.0 size= 111025kb time=00:01:42.80 bitrate=8847.5kbits/s frame= 2582 fps= 25 q=-1.0 size= 111556kb time=00:01:43.28 bitrate=8848.4kbits/s frame= 2595 fps= 25 q=-1.0 size= 112064kb time=00:01:43.80 bitrate=8844.2kbits/s frame= 2607 fps= 25 q=-1.0 size= 112562kb time=00:01:44.28 bitrate=8842.6kbits/s frame= 2620 fps= 25 q=-1.0 size= 113219kb time=00:01:44.80 bitrate=8850.1kbits/s frame= 2633 fps= 25 q=-1.0 size= 113733kb time=00:01:45.32 bitrate=8846.4kbits/s frame= 2646 fps= 25 q=-1.0 size= 114344kb time=00:01:45.84 bitrate=8850.2kbits/s frame= 2658 fps= 25 q=-1.0 size= 114875kb time=00:01:46.32 bitrate=8851.2kbits/s frame= 2671 fps= 25 q=-1.0 size= 115402kb time=00:01:46.84 bitrate=8848.5kbits/s frame= 2684 fps= 25 q=-1.0 size= 115953kb time=00:01:47.36 bitrate=8847.7kbits/s frame= 2696 fps= 25 q=-1.0 size= 116469kb time=00:01:47.84 bitrate=8847.5kbits/s frame= 2709 fps= 25 q=-1.0 size= 117056kb time=00:01:48.36 bitrate=8849.4kbits/s frame= 2721 fps= 25 q=-1.0 size= 117538kb time=00:01:48.84 bitrate=8846.7kbits/s frame= 2734 fps= 25 q=-1.0 size= 118040kb time=00:01:49.36 bitrate=8842.2kbits/s frame= 2747 fps= 25 q=-1.0 size= 118541kb time=00:01:49.88 bitrate=8837.7kbits/s frame= 2759 fps= 25 q=-1.0 size= 119000kb time=00:01:50.36 bitrate=8833.3kbits/s frame= 2771 fps= 25 q=-1.0 size= 119541kb time=00:01:50.84 bitrate=8835.1kbits/s frame= 2784 fps= 25 q=-1.0 size= 120028kb time=00:01:51.36 bitrate=8829.6kbits/s frame= 2797 fps= 25 q=-1.0 size= 120573kb time=00:01:51.88 bitrate=8828.5kbits/s frame= 2810 fps= 25 q=-1.0 size= 121101kb time=00:01:52.40 bitrate=8826.1kbits/s frame= 2822 fps= 25 q=-1.0 size= 121631kb time=00:01:52.88 bitrate=8827.1kbits/s frame= 2835 fps= 25 q=-1.0 size= 122186kb time=00:01:53.40 bitrate=8826.7kbits/s frame= 2847 fps= 25 q=-1.0 size= 122672kb time=00:01:53.88 bitrate=8824.5kbits/s frame= 2859 fps= 25 q=-1.0 size= 123136kb time=00:01:54.36 bitrate=8820.7kbits/s frame= 2872 fps= 25 q=-1.0 size= 123672kb time=00:01:54.88 bitrate=8819.0kbits/s frame= 2885 fps= 25 q=-1.0 size= 124259kb time=00:01:55.40 bitrate=8820.9kbits/s frame= 2898 fps= 25 q=-1.0 size= 124757kb time=00:01:55.92 bitrate=8816.5kbits/s frame= 2910 fps= 25 q=-1.0 size= 125218kb time=00:01:56.40 bitrate=8812.6kbits/s frame= 2923 fps= 25 q=-1.0 size= 125710kb time=00:01:56.92 bitrate=8807.9kbits/s frame= 2936 fps= 25 q=-1.0 size= 126203kb time=00:01:57.44 bitrate=8803.3kbits/s frame= 2948 fps= 25 q=-1.0 size= 126755kb time=00:01:57.92 bitrate=8805.8kbits/s frame= 2961 fps= 25 q=-1.0 size= 127283kb time=00:01:58.44 bitrate=8803.6kbits/s frame= 2973 fps= 25 q=-1.0 size= 127812kb time=00:01:58.92 bitrate=8804.6kbits/s frame= 2985 fps= 25 q=-1.0 size= 128380kb time=00:01:59.40 bitrate=8807.8kbits/s frame= 2999 fps= 25 q=-1.0 size= 128931kb time=00:01:59.96 bitrate=8804.6kbits/s frame= 3011 fps= 25 q=-1.0 size= 129475kb time=00:02:00.44 bitrate=8806.5kbits/s frame= 3024 fps= 25 q=-1.0 size= 130008kb time=00:02:00.96 bitrate=8804.8kbits/s frame= 3036 fps= 25 q=-1.0 size= 130526kb time=00:02:01.44 bitrate=8804.9kbits/s frame= 3049 fps= 25 q=-1.0 size= 131065kb time=00:02:01.96 bitrate=8803.6kbits/s frame= 3062 fps= 25 q=-1.0 size= 131654kb time=00:02:02.48 bitrate=8805.6kbits/s frame= 3074 fps= 25 q=-1.0 size= 132123kb time=00:02:02.96 bitrate=8802.5kbits/s frame= 3087 fps= 25 q=-1.0 size= 132630kb time=00:02:03.48 bitrate=8799.0kbits/s frame= 3099 fps= 25 q=-1.0 size= 133106kb time=00:02:03.96 bitrate=8796.4kbits/s frame= 3112 fps= 25 q=-1.0 size= 133610kb time=00:02:04.48 bitrate=8792.9kbits/s frame= 3125 fps= 25 q=-1.0 size= 134172kb time=00:02:05.00 bitrate=8793.1kbits/s frame= 3137 fps= 25 q=-1.0 size= 134617kb time=00:02:05.48 bitrate=8788.5kbits/s frame= 3150 fps= 25 q=-1.0 size= 135107kb time=00:02:06.00 bitrate=8784.1kbits/s frame= 3162 fps= 25 q=-1.0 size= 135579kb time=00:02:06.48 bitrate=8781.3kbits/s frame= 3175 fps= 25 q=-1.0 size= 136134kb time=00:02:07.00 bitrate=8781.2kbits/s frame= 3188 fps= 25 q=-1.0 size= 136743kb time=00:02:07.52 bitrate=8784.5kbits/s [libmp3lame @ 0x2253710] trying remove 47 more samples there in queue frame= 3188 fps= 25 q=-1.0 lsize= 136789kb time=00:02:07.61 bitrate=8781.1kbits/s video:125507kb audio:997kb subtitle:0kb other streams:0kb global headers:0kb muxing overhead: 8.130203% input file #0 (pipe:): input stream #0:0 (video): 3188 packets read (128518751 bytes); total: 3188 packets (128518751 bytes) demuxed input file #1 (hw:1): input stream #1:0 (audio): 103108 packets read (12251124 bytes); 103108 frames decoded (6125562 samples); total: 103108 packets (12251124 bytes) demuxed output file #0 (udp://44.0.0.95:1234): output stream #0:0 (video): 3188 packets muxed (128518751 bytes); output stream #0:1 (audio): 5317 frames encoded (6125184 samples); 5318 packets muxed (1021056 bytes); total: 8506 packets (129539807 bytes) muxed 103108 frames decoded, 0 decoding errors [aviocontext @ 0x21f07a0] statistics: 0 seeks, 97026 writeouts [aviocontext @ 0x21d8e40] statistics: 130988342 bytes read, 0 seeks received signal 2: terminating.
test audio , video separately see latencies then.
don't receiving software - many pc based systems deliberately have large input buffers cope network variability.
suspect a/v sync issues due raspivid being spun , producing frames before audio side starts @ all. have provided fixed frame rate of 25fps both apps, there backlog of few frames stuck in output fifo never consumed. don't ask me how around using raspivid , piping output around. might better off using v4l2 driver , getting ffmpeg talking that.
don't receiving software - many pc based systems deliberately have large input buffers cope network variability.
suspect a/v sync issues due raspivid being spun , producing frames before audio side starts @ all. have provided fixed frame rate of 25fps both apps, there backlog of few frames stuck in output fifo never consumed. don't ask me how around using raspivid , piping output around. might better off using v4l2 driver , getting ffmpeg talking that.
raspberrypi
Comments
Post a Comment