广州城投“筑”房 温暖广州
update:2021-12-6
为满足不同住房需求的人群打造“城熹”“城隽”“城品”三大系列住房产品,城隽系列定位为社区集居式住房品牌,为住户打造数字化、智能化便捷社区 ,浓郁的人文氛围和成熟的配套,安逸和谐,宜居生活。
广州城投 城隽雅苑项目
据了解,广州城投住房公司目前已有多个品牌项目落地。其中城隽雅苑项目作为共有产权项目,位于番禺区新造地段,与广州大学城隔江相望,紧邻地铁4号线新造站,总建筑面积47.7万平方米,其中住宅建筑面积28.4万平方米,设计以“中西结合、简洁美观、富有新岭南建筑特色”为基本原则,搭配中式庭院空间,创造出具有自然、舒缓、亲切生活氛围的高品质人文居住区。项目周边商业、医疗、教育系统配套完善,生活氛围浓厚。其中配套幼儿园(含托儿所)为社区住户提供良好的学前教育资源,配套商业中心为社区居民提供一应俱全的商业、服务、娱乐等生活配套服务。

广州城投 城隽雅苑项目

广州城投住房租赁发展投资有限公司(下称:广州城投住房公司)积极响应国家“住有所居,房住不炒”的号召,秉承国企责任担当,助力城市宜居环境和人才吸引力提升,利用自主投资建设的一站式服务平台——“城壹宜居”,全面推进数字化、智能化、多元化社区建设,为不同住房需求的人群打造卓越、宜居、品质的温馨港湾。

近年来,全国多个热点城市已在保障性租赁住房方面持续发力。伴随着经济快速发展,大规模的城镇化仍在我国进行着,大城市的高房价让胸怀奋斗志向的年轻人望尘莫及。为此,住房和城乡建设部强调,要切实加强保障性租赁住房供给,尽最大努力帮助新市民、青年人等缓解住房困难,在“十四五”期间,新增保障性租赁住房占新增住房供应总量的比例应力争达到30%以上。

广州城投住房公司作为市政府批准成立的市属国企专业化住房租赁公司,充分发挥国有企业责任与担当,在抓好组织实施市本级主导的政策性住房的投资、融资、建设和运营等工作同时,精心打造了“城熹”“城隽”“城品”三大系列住房产品:其中城熹系列定位为高端服务式公寓品牌,致力于为城市热血奉献的精英人群打造高效品质的理想生活空间,尊贵所居,卓越生活;城隽系列定位为社区集居式住房品牌,为住户打造数字化、智能化便捷社区 ,浓郁的人文氛围和成熟的配套,安逸和谐,宜居生活;城品系列定位为青年人集中式公寓品牌,以标准化、邻里互动交友为特征打造新市民、青年人的共享空间,尽情享受,品质生活。

Referenced from:https://www.xkb.com.cn/article_674738

ffmpeg 维基百科
FFmpeg 是一个开放源代码的自由软件,可以执行音频和视频多种格式的录影、转换、串流功能,包含了libavcodec——这是一个用于多个项目中音频和视频的解码器库,以及libavformat——一个音频与视频格式转换库。

“FFmpeg”这个单词中的“FF”指的是“Fast Forward(快速前进)”。有些新手写信给“FFmpeg”的项目负责人,询问FF是不是代表“Fast Free”或者“Fast Fourier”等意思,“FFmpeg”的项目负责人回信说:“Just for the record, the original meaning of "FF" in FFmpeg is "Fast Forward"...”

这个项目最初是由法国程序员法布里斯·贝拉(Fabrice Bellard)发起的,而现在是由迈克尔·尼德梅尔(Michael Niedermayer)在进行维护。许多FFmpeg的开发者同时也是MPlayer项目的成员,FFmpeg在MPlayer项目中是被设计为服务器版本进行开发。

2011年3月13日,FFmpeg部分开发人士决定另组Libav,同时制定了一套关于项目继续发展和维护的规则。

ffmpeg 命令行程序
命令行应用程序
ffmpeg:用于对视频文档或音频档案转换格式
ffplay:一个简单的播放器,基于SDL与FFmpeg库
ffprobe:用于显示媒体文件的信息,见MediaInfo
ffmpeg 常用参数
参数明细可用ffmpeg -h显示;编解码器名称等明细可用ffmpeg -formats显示。

下列为较常使用的参数:

主要参数

-i——设置输入文件名。
-f——设置输出格式。
-y——若输出文件已存在时则覆盖文件。
-fs——超过指定的文件大小时则结束转换。
-t——指定输出文件的持续时间,以秒为单位。
-ss——从指定时间开始转换,以秒为单位。
-ss和-t一起使用时代表从-ss的时间开始转换持续时间为-t的视频,例如:-ss 00:00:01.00 -t 00:00:10.00即从00:00:01.00开始转换到00:00:11.00。
-title——设置标题。
-timestamp——设置时间戳。
-vsync——增减Frame使影音同步。
-c——指定输出文件的编码。
-metadata——更改输出文件的元数据。
-help——查看帮助信息。
影像参数
-b:v——设置影像流量,默认为200Kbit/秒。(单位请引用下方注意事项)
-r——设置帧率值,默认为25。
-s——设置画面的宽与高。
-aspect——设置画面的比例。
-vn——不处理影像,于仅针对声音做处理时使用。
-vcodec( -c:v )——设置影像影像编解码器,未设置时则使用与输入文件相同之编解码器。

ffmpeg linux shell 批量提取音频内容

cat cc.sh 
#!/bin/sh
 
 
folder="."
id=0
for file_a in ${folder}/*
do
    let id++
    in_filename=`basename $file_a`
    num=`echo $id | awk '{printf("%02d",$0)}'`;
    out_filename="output/$num.aac"
    if [ "${in_filename##*.}"x = "mp4"x ]||[ "${in_filename##*.}"x = "ts"x ];then
    ffmpeg -i $in_filename -vn  $out_filename 
    fi
done

ffmpeg 下载 m3u8

ffmpeg -i http://.../playlist.m3u8 -c copy -bsf:a aac_adtstoasc output.mp4

ffmpeg aac_adtstoasc 格式说明

官方说明地址在这儿:https://ffmpeg.org/ffmpeg-bitstream-filters.html#aac_005fadtstoasc
*Convert MPEG-2/4 AAC ADTS to an MPEG-4 Audio Specific Configuration bitstream.
This filter creates an MPEG-4 AudioSpecificConfig from an MPEG-2/4 ADTS header and removes the ADTS header.
This filter is required for example when copying an AAC stream from a raw ADTS AAC or an MPEG-TS container to MP4A-LATM, to an FLV file, or to MOV/MP4 files and related formats such as 3GP or M4A. Please note that it is auto-inserted for MP4A-LATM and MOV/MP4 and related formats.*

1)将AAC编码器编码后的原始码流(ADTS头 + ES流)封装为MP4或者FLV或者MOV等格式时,需要先将ADTS头转换为MPEG-4 AudioSpecficConfig (将音频相关编解码参数提取出来),并将原始码流中的ADTS头去掉(只剩下ES流)。
2)相反,从MP4或者FLV或者MOV等格式文件中解封装出AAC码流(只有ES流)时,需要在解析出的AAC码流前添加ADTS头(含音频相关编解码参数)。

ubuntu ffmpeg screen capture

ffmpeg -f x11grab -video_size 1920x1030 -framerate 50 -i :0.0 -vf format=yuv420p output.mp4

Capturing your Desktop / Screen Recording for Linux
Use the x11grab device:

ffmpeg -video_size 1024x768 -framerate 25 -f x11grab -i :0.0+100,200 output.mp4

This will grab the image from desktop, starting with the upper-left corner at x=100, y=200 with a width and height of 1024⨉768.

If you need audio too, you can use ALSA (see Capture/ALSA for more info):

ffmpeg -video_size 1024x768 -framerate 25 -f x11grab -i :0.0+100,200 -f alsa -ac 2 -i hw:0 output.mkv

Or the pulse input device (see Capture/PulseAudio for more info):

ffmpeg -video_size 1024x768 -framerate 25 -f x11grab -i :0.0+100,200 -f pulse -ac 2 -i default output.mkv

ffmpeg 编译参数

ffmpeg -version

ffmpeg version N-105038-g30322ebe3c Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 9 (Ubuntu 9.3.0-17ubuntu1~20.04)
configuration: --enable-libx264 --enable-libpulse --enable-gpl --enable-openssl --enable-nonfree --enable-x86asm --enable-libmp3lame --enable-libx265 --enable-librtmp

ffmpeg 编解码列表

$ ffmpeg -codecs
$ ffmpeg -encoders
$ ffmpeg -decoders
$ ffmpeg -formats

ffmpeg 错误 OpenSSL <3.0.0 is incompatible with the gpl

Add --enable-nonfree

ffmpeg 录制电脑音频

pactl list short sources

1 alsa_output.pci-0000_00_1f.3.analog-stereo.monitor module-alsa-card.c s16le 2ch 48000Hz IDLE
2 alsa_input.pci-0000_00_1f.3.analog-stereo module-alsa-card.c s16le 2ch 48000Hz SUSPENDED

ffmpeg pulse 电脑录音

ffmpeg -f pulse -i 1 -ac 1 out.mp3

You can reference sources either by number: -f pulse -i 5, or by name -f pulse -i alsa_input.pci-0000_00_1b.0.analog-stereo, or just use -f pulse -i default to use the source currently set as default in pulseaudio.

ffmpeg 麦克风录音

ffmpeg -f pulse -i alsa_input.pci-0000_00_1b.0.analog-stereo -ac 1 recording.m4a

ffmpeg 录取播放声音

ffmpeg -f pulse -i alsa_output.pci-0000_00_1b.0.analog-stereo.monitor -ac 2 recording.m4a

Linux 录取电脑音视频

ffmpeg -video_size 1024x768 -framerate 25 -f x11grab -i :0.0+100,200 -f pulse -ac 2 -i 1 output.mkv

move the moov atom to the begining of the video file using FFMpeg

ffmpeg -i input_video_file.mp4 -vcodec copy -acodec copy -movflags faststart output_video_file.mp4

ffmpeg 分割mp4

ffmpeg -i input.mp4 -c copy -segment_time 30 -f segment output%03d.mp4

ffmpeg -i input.mp4 -c copy -segment_time 30 -f segment -segment_start_number 1 -individual_header_trailer 1 -break_non_keyframes 1 -reset_timestamps 1 output%03d.mp4

FFMPEG推流到rtsp server 命令
FFmpeg推流
注意:在推流之前先运行rtsp-simple-server,下载地址: https://github.com/bluenviron/mediamtx/releases

UDP推流

ffmpeg -re -i input.mp4 -c copy -f rtsp rtsp://127.0.0.1:8554/stream

TCP推流

ffmpeg -re -i input.mp4 -c copy -rtsp_transport tcp -f rtsp rtsp://127.0.0.1:8554/stream

循环推流

ffmpeg -re -stream_loop -1 -i input.mp4 -c copy -f rtsp rtsp://127.0.0.1:8554/stream

其中:

-re 为以流的方式读取;

-stream_loop 为循环读取视频源的次数,-1为无限循环;

-i 为输入的文件;

-f 为格式化输出到哪里;
Referenced from:https://blog.csdn.net/chan1987818/article/details/128219230

依次为:觉醒年代;YYDS;双减;破防;元宇宙;绝绝子;躺平;伤害性不高,侮辱性极强;我看不懂,但我大受震撼;强国有我。

“2021年度十大网络用语”解读

一、觉醒年代

《觉醒年代》首次以电视剧的形式回溯中国共产党的孕育和创立过程,生动再现中国近代历史的大变局,深刻讲述中国人民是怎样选择了中国共产党。该剧播出后广受好评,成为党史学习教育的生动教材。

二、YYDS

“永远的神”的拼音缩写,用于表达对某人的高度敬佩和崇拜。2021年东京奥运会期间,不管是杨倩夺得首金,还是全红婵一场决赛跳出三个满分,或是“苏神”站上百米决赛跑道,全网齐喊“YYDS”,奥运期间一度刷屏。

三、双减

指进一步减轻义务教育阶段学生作业负担和校外培训负担。其目标是使学校教育教学质量和服务水平进一步提升,作业布置更加科学合理,学校课后服务基本满足学生需要,学生学习更好地回归校园,校外培训机构培训行为全面规范。

四、破防

原指在游戏中突破了对方的防御,使对方失去防御能力。现指因遇到一些事或看到一些信息后情感上受到很大冲击,内心深处被触动,心理防线被突破。

五、元宇宙

源于小说《雪崩》的科幻概念,现指在XR(扩展现实)、数字孪生、区块链和AI(人工智能)等技术推动下形成的虚实相融的互联网应用和社会生活形态。现阶段,元宇宙仍是一个不断演变、不断发展的概念。

六、绝绝子

该词流行于某网络节目,节目中一些粉丝用“绝绝子”为选手加油。多用于赞美,表示“太绝了、太好了”。这个词引发了网友对网络语言的关注和讨论。

七、躺平

该词指人在面对压力时,内心再无波澜,主动放弃,不做任何反抗。“躺平”更像是年轻人的一种解压和调整方式,是改变不了环境便改变心态的自我解脱。短暂“躺平”是为了积聚能量,更好地重新出发。

八、伤害性不高,侮辱性极强

一段网络视频中,两名男子相互夹菜,而同桌的另一名女子则显得很孤单。于是有网友调侃“伤害性不高,侮辱性极强”。后被网友用来调侃某事虽然没有实质性危害,但是却令人很难堪。

九、我看不懂,但我大受震撼

源自导演李安在纪录片《打扰伯格曼》(2013)里评价一部影视作品的话。现多用于表示自己对某件事情的不解、震惊。

十、强国有我

源自建党百年天安门广场庆典上青年学子的庄严宣誓。“请党放心,强国有我”是青年一代对党和人民许下的庄重誓言,彰显着新时代中国青年的志气、骨气、底气。

由于某些软件并没有增加开启启动的服务,很多时候需要手工添加,一般我们都是推荐添加命令到 /etc/rc.local 文件,但是 默认不带 /etc/rc.local 文件,而 rc.local 服务却还是自带的

root@Ubuntu ~ # cat /lib/systemd/system/rc.local.service
#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.

# This unit gets pulled automatically into multi-user.target by
# systemd-rc-local-generator if /etc/rc.local is executable.
[Unit]
Description=/etc/rc.local Compatibility
ConditionFileIsExecutable=/etc/rc.local
After=network.target

[Service]
Type=forking
ExecStart=/etc/rc.local start
TimeoutSec=0
RemainAfterExit=yes
GuessMainPID=no

并且默认情况下这个服务还是关闭的状态

root@Ubuntu ~ # systemctl status rc-local
● rc-local.service - /etc/rc.local Compatibility
   Loaded: loaded (/lib/systemd/system/rc-local.service; static; vendor preset: enabled)
  Drop-In: /lib/systemd/system/rc-local.service.d
           └─debian.conf
   Active: inactive (dead)

为了解决这个问题,我们需要手工添加一个 /etc/rc.local 文件

cat <<EOF >/etc/rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

exit 0
EOF

然后赋予权限

chmod +x /etc/rc.local

接着启动 rc-local 服务

systemctl start rc-local

如果出错呢,就在rc-local.service中添加下面内容

[Install]
WantedBy=multi-user.target
Alias=rc-local.service

再次查看状态

root@Ubuntu ~ # systemctl status rc-local
● rc-local.service - /etc/rc.local Compatibility
   Loaded: loaded (/lib/systemd/system/rc-local.service; static; vendor preset: enabled)
  Drop-In: /lib/systemd/system/rc-local.service.d
           └─debian.conf
   Active: active (exited) since Thu 2017-08-03 09:41:18 UTC; 14s ago
  Process: 20901 ExecStart=/etc/rc.local start (code=exited, status=0/SUCCESS)

Aug 03 09:41:18 xtom-hk systemd[1]: Starting /etc/rc.local Compatibility...
Aug 03 09:41:18 xtom-hk systemd[1]: Started /etc/rc.local Compatibility.
然后你就可以把需要开机启动的命令添加到 /etc/rc.local 文件,丢在 exit 0 前面即可,并尝试重启以后试试是否生效了
Referenced from:https://sb.sb/blog/debian-9-rc-local/

安装aria2

sudo apt install aria2

启动aria2

aria2c --conf-path=/etc/.aria2/aria2c.conf -D

aria2c.conf看这里https://github.com/P3TERX/aria2.conf

aria2 下载示例

aria2c 'magnet:?xt=urn:btih:6e9f28f581fcec156cb3453caf477e4fabf45b5e&dn=%EA%B7%80%EB%A9%B8%EC%9D%98+%EC%B9%BC%EB%82%A0+%EB%82%A8%EB%A7%A4%EC%9D%98+%EC%97%B0%EC%83%81%EC%98%81%EC%A4%91+Demon+Slayer+Kimetsu+no+Yaiba+SIBLINGS+BOND.2021.1080p.KOR.FHDRip.H264.AAC-JTC.mkv&xl=2464537015&tr=udp://tracker.openbittorrent.com:80/announce&tr=udp://tracker.opentrackr.org:1337/announce'

aria2c rpc 下载示例

curl -v -X POST -d '{"jsonrpc": "2.0", "id": "const","method": "aria2.addUri", "params": ["token:P3TERX",["magnet:?xt=urn:btih:6e9f28f581fcec156cb3453caf477e4fabf45b5e&dn=%EA%B7%80%EB%A9%B8%EC%9D%98+%EC%B9%BC%EB%82%A0+%EB%82%A8%EB%A7%A4%EC%9D%98+%EC%97%B0%EC%83%81%EC%98%81%EC%A4%91+Demon+Slayer+Kimetsu+no+Yaiba+SIBLINGS+BOND.2021.1080p.KOR.FHDRip.H264.AAC-JTC.mkv&xl=2464537015&tr=udp://tracker.openbittorrent.com:80/announce&tr=udp://tracker.opentrackr.org:1337/announce"],{"out":"","dir":"/home/pi/down/"}]}' http://localhost:6800/jsonrpc

命令执行结果:

{"id":"const","jsonrpc":"2.0","result":"24cd0ec304ff6820"}

aria2c 继续下载
 当aria2c异常退出时,或者手动退出时,使用相同的命令就可以继续下载了。通过相同的命令重新启动aria,它将正确地恢复下载。前提是有按照aria2c.conf中保存了aria2.session.

aria2c 'magnet:?xt=urn:btih:5813fb39c0bd2e70efbeef2f37ac61a5ec0c80aa&dn=%EC%9C%A0%EC%B2%B4%EC%9D%B4%ED%83%88%EC%9E%90+Spiritwalker%2C2021.1080p.FHDRip.H264.AAC-NonDRM&xl=3374432532&tr=udp://tracker.openbittorrent.com:80/announce&tr=udp://tracker.opentrackr.org:1337/announce'

aria2c rcp 示例
最全的说明,肯定是官方的文档 https://aria2.github.io/manual/en/html/aria2c.html
The following example adds http://example.org/file:

import urllib2, json
jsonreq = json.dumps({'jsonrpc':'2.0', 'id':'qwer',
                      'method':'aria2.addUri',
                      'params':[['http://example.org/file']]})
c = urllib2.urlopen('http://localhost:6800/jsonrpc', jsonreq)
c.read()
'{"id":"qwer","jsonrpc":"2.0","result":"2089b05ecca3d829"}'

使用curl命令行操作

curl -v -d '{"jsonrpc":"2.0", "id":"qwer","method":"aria2.addUri","params":["token:const",["http://example.org/file"]]}' http://localhost:6800/jsonrpc

{"id":"qwer","jsonrpc":"2.0","result":"6d6994d4933bd2af"}

aria2c 删除下载任务aria2.remove
This method removes the download denoted by gid (string). If the specified download is in progress, it is first stopped. The status of the removed download becomes removed. This method returns GID of removed download.

The following examples remove a download with GID#2089b05ecca3d829.

JSON-RPC Example

import urllib2, json
jsonreq = json.dumps({'jsonrpc':'2.0', 'id':'qwer',
                      'method':'aria2.remove',
                      'params':['2089b05ecca3d829']})
c = urllib2.urlopen('http://localhost:6800/jsonrpc', jsonreq)
c.read()
'{"id":"qwer","jsonrpc":"2.0","result":"2089b05ecca3d829"}'

aria2c rpc 常用命令
aria2.addTorrent
aria2.addMetalink
aria2.remove
aria2.forceRemove
aria2.pause
aria2.pauseAll
aria2.forcePause
aria2.forcePauseAll
aria2.unpause
aria2.unpauseAll
aria2.tellStatus
aria2.getUris
This method returns the URIs used in the download denoted by gid (string). The response is an array of structs and it contains following keys. Values are string.
aria2.getFiles
This method returns the file list of the download denoted by gid (string). The response is an array of structs which contain following keys. Values are strings.
aria2.getPeers
This method returns a list peers of the download denoted by gid (string). This method is for BitTorrent only. The response is an array of structs and contains the following keys. Values are strings.
aria2.getServers
This method returns currently connected HTTP(S)/FTP/SFTP servers of the download denoted by gid (string). The response is an array of structs and contains the following keys. Values are strings.
aria2.tellActive
This method returns a list of active downloads. The response is an array of the same structs as returned by the aria2.tellStatus() method. For the keys parameter, please refer to the aria2.tellStatus() method.

aria2.tellWaiting
This method returns a list of waiting downloads, including paused ones. offset is an integer and specifies the offset from the download waiting at the front. num is an integer and specifies the max. number of downloads to be returned. For the keys parameter, please refer to the aria2.tellStatus() method.
aria2.tellStopped
This method returns a list of stopped downloads. offset is an integer and specifies the offset from the least recently stopped download. num is an integer and specifies the max. number of downloads to be returned. For the keys parameter, please refer to the aria2.tellStatus() method.
aria2.changePosition
This method changes the position of the download denoted by gid in the queue. pos is an integer. how is a string. If how is POS_SET, it moves the download to a position relative to the beginning of the queue. If how is POS_CUR, it moves the download to a position relative to the current position. If how is POS_END, it moves the download to a position relative to the end of the queue. If the destination position is less than 0 or beyond the end of the queue, it moves the download to the beginning or the end of the queue respectively. The response is an integer denoting the resulting position.
aria2.changeUri
This method removes the URIs in delUris from and appends the URIs in addUris to download denoted by gid. delUris and addUris are lists of strings. A download can contain multiple files and URIs are attached to each file.
aria2.getOption
This method returns options of the download denoted by gid. The response is a struct where keys are the names of options. The values are strings. Note that this method does not return options which have no default value and have not been set on the command-line, in configuration files or RPC methods.
aria2.changeOption
This method changes options of the download denoted by gid (string) dynamically. options is a struct.
aria2.getGlobalOption
This method returns the global options.
aria2.changeGlobalOption
This method changes global options dynamically.
aria2.getGlobalStat
This method returns global statistics such as the overall download and upload speeds.
curl 命令示例

curl -d '{"jsonrpc":"2.0", "id":"qwer","method":"aria2.getGlobalStat","params":["token:P3TERX"]}' http://localhost:6800/jsonrpc

{"id":"qwer","jsonrpc":"2.0","result":{"downloadSpeed":"0","numActive":"0","numStopped":"5","numStoppedTotal":"5","numWaiting":"0","uploadSpeed":"0"}}

aria2.purgeDownloadResult
This method purges completed/error/removed downloads to free memory.
aria2.removeDownloadResult
This method removes a completed/error/removed download denoted by gid from memory.
aria2.getVersion
This method returns the version of aria2 and the list of enabled features.
aria2.getSessionInfo
This method returns session information.
aria2.shutdown
This method shuts down aria2. This method returns OK.

aria2.forceShutdown
This method shuts down aria2(). This method behaves like :func:'aria2.shutdown` without performing any actions which take time, such as contacting BitTorrent trackers to unregister downloads first. This method returns OK.

aria2.saveSession
This method saves the current session to a file specified by the --save-session option. This method returns OK if it succeeds.

system.multicall
This methods encapsulates multiple method calls in a single request.

system.listMethods()
This method returns all the available RPC methods in an array of string.
system.listNotifications()
This method returns all the available RPC notifications in an array of string.

aria2c xmlrpc 示例
xmlrpc 地址:http://localhost:6800/rpc

aria2c 下载命令汇总

Download a file from two different HTTP servers¶

 aria2c "http://host/file.zip" "http://mirror/file.zip"

Download a file from one host using multiple connections¶

 aria2c -x2 -k1M "http://host/file.zip"

Note

The -x option specified the number of allowed connections, while the -k option specified the size of chunks.

Download a file from HTTP and FTP servers at the same time¶

 aria2c "http://host1/file.zip" "ftp://host2/file.zip"

Download files listed in a text file concurrently¶

 aria2c -ifiles.txt -j2

Using a proxy¶
For HTTP:

 aria2c --http-proxy="http://proxy:8080" "http://host/file"
 aria2c --http-proxy="http://proxy:8080" --no-proxy="localhost,127.0.0.1,192.168.0.0/16" "http://host/file"

For FTP:

 aria2c --ftp-proxy="http://proxy:8080" "ftp://host/file"

Note

See --http-proxy, --https-proxy, --ftp-proxy, --all-proxy and --no-proxy for details. You can specify proxy in the environment variables. See ENVIRONMENT section.

Using a Proxy with authorization¶

 aria2c --http-proxy="http://username:password@proxy:8080" "http://host/file"
 aria2c --http-proxy="http://proxy:8080" --http-proxy-user="username" --http-proxy-passwd="password" "http://host/file"

Metalink Download¶
Download files with remote Metalink¶

 aria2c --follow-metalink=mem "http://host/file.metalink"

Download using a local metalink file¶

 aria2c -p --lowest-speed-limit=4000 file.metalink

Note

To stop a download, press Ctrl-C. You can resume the transfer by running aria2c with the same argument in the same directory.

Download several local metalink files¶

 aria2c -j2 file1.metalink file2.metalink

Download only selected files¶

 aria2c --select-file=1-4,8 file.metalink

Note

The index is printed to the console using -S option.

Download a file using a local metalink file with user preference¶

 aria2c --metalink-location=jp,us --metalink-version=1.1 --metalink-language=en-US file.metalink

BitTorrent Download¶
Download files using a remote BitTorrent file¶

 aria2c --follow-torrent=mem "http://host/file.torrent"

Download using a local torrent file¶

 aria2c --max-upload-limit=40K file.torrent

Note

To stop a download, press Ctrl-C. You can resume the transfer later by running aria2c with the same argument in the same directory.

Download using BitTorrent Magnet URI¶

 aria2c "magnet:?xt=urn:btih:248D0A1CD08284299DE78D5C1ED359BB46717D8C&dn=aria2"

Note

Don't forget to quote BitTorrent Magnet URIs which include & characters with single(') or double(") quotes when specifying URIs on the command-line.

Download 2 torrents¶

 aria2c -j2 file1.torrent file2.torrent

Download a file via torrent and HTTP/FTP server in parallel¶

 aria2c -Ttest.torrent "http://host1/file" "ftp://host2/file"

Only download specific files (usually called "selected download")¶

 aria2c --select-file=1-4,8 file.torrent

Note

The index is printed to the console using -S option.

Download a .torrent file, but do not download the torrent¶

 aria2c --follow-torrent=false "http://host/file.torrent"