No trailing CRLF found in HTTP header.
1. ffplay -i “http://192.168.3.37:8080/live/yongqiang.m3u8”
strong@foreverstrong:~$ ffplay -i "http://192.168.3.37:8080/live/yongqiang.m3u8"
......
......
......
[http @ 0x7f1d18549280] No trailing CRLF found in HTTP header.
[http @ 0x7f1d185abc80] No trailing CRLF found in HTTP header.
[http @ 0x7f1d185abc80] No trailing CRLF found in HTTP header.
[http @ 0x7f1d1854b320] No trailing CRLF found in HTTP header.
[http @ 0x7f1d1854b2c0] No trailing CRLF found in HTTP header.
[http @ 0x7f1d183d1640] No trailing CRLF found in HTTP header.
[http @ 0x7f1d183d1640] No trailing CRLF found in HTTP header.
[http @ 0x7f1d185abc80] No trailing CRLF found in HTTP header.
[http @ 0x7f1d185abc80] No trailing CRLF found in HTTP header.
[http @ 0x7f1d185abc80] No trailing CRLF found in HTTP header.
[http @ 0x7f1d1854c5a0] No trailing CRLF found in HTTP header.
......
......
......
There is an option -headers
in the http protocol. ffmpeg
requires sequence \r\n
in additional headers, otherwise you will get a warning No trailing CRLF found in HTTP header.
.
trail [treɪl]:vt. 追踪,拖,蔓延,落后于 n. 小径,痕迹,尾部,踪迹,一串,一系列 vi. 飘出,蔓生,垂下,拖曳
strong@foreverstrong:~$ echo 0
0
strong@foreverstrong:~$
strong@foreverstrong:~$ echo 0$'\r\n'0
0
0
strong@foreverstrong:~$
2. ffplay -i “http://192.168.3.37:8080/live/yongqiang.m3u8” -headers $’\r\n’
有明显延时,注意观察图片右上角时间显示。
strong@foreverstrong:~$ ffplay -i "http://192.168.3.37:8080/live/yongqiang.m3u8" -headers $'\r\n'
3. $' '
strong@foreverstrong:~$ echo $'Name\tAge\ncheng\t19\nyong\t29\nqiang\t39'
Name Age
cheng 19
yong 29
qiang 39
strong@foreverstrong:~$
single quote:单引号
dollar sign:美元符,货币符号
side effect:副作用
escape sequence:换码顺序
inclusion [ɪn'kluːʒ(ə)n]:n. 包含,内含物
3.1 Bash Reference Manual - 3.1.2.4 ANSI-C Quoting
http://www.gnu.org/software/bash/manual/bash.html
Words of the form $'string'
are treated specially. The word expands to string, with backslash-escaped characters replaced as specified by the ANSI C standard. Backslash escape sequences, if present, are decoded as follows:
$'string'
样式的字符串需要特别处理。单词扩展为字符串,替换为 ANSI C 标准指定的反斜杠转义字符。反斜杠转义序列 (如果存在) 按如下方式解码:
quote [kwəʊt]:vt. 报价,引述,举证 vi. 报价,引用,引证 n. 引用
backslash ['bækslæʃ]:n. 反斜杠,反斜线符号
escape character:转义字符,换码符
\a
alert (bell)
alert [ə'lɜːt]:vt. 警告,使警觉,使意识到 adj. 警惕的,警觉的,留心的 n. 警戒,警惕,警报
bell [bel]:n. 铃,钟,钟声,铃声,钟状物 vt. 装钟于,系铃于 vi. 鸣钟,成钟状鼓起
\b
backspace
backspace ['bækspeɪs]:vi. 退后一格 n. 退格
\e
\E
an escape character (not ANSI C)
\f
form feed
form feed:换页
\n
newline
newline:n. 换行,换行符,新行,创建新行
\r
carriage return
carriage return:n. 回车
\t
horizontal tab
\v
vertical tab
horizontal [hɒrɪ'zɒnt(ə)l]:adj. 水平的,地平线的,同一阶层的n. 水平线,水平面,水平位置
vertical ['vɜːtɪk(ə)l]:adj. 垂直的,直立的,头顶的,顶点的,纵长的,直上的 n. 垂直线,垂直面,垂直位置
\
backslash
backslash ['bækslæʃ]:n. 反斜杠,反斜线符号
’
single quote
"
double quote
?
question mark
\nnn
the eight-bit character whose value is the octal value nnn (one to three octal digits)
\xHH
the eight-bit character whose value is the hexadecimal value HH (one or two hex digits)
\uHHHH
the Unicode (ISO/IEC 10646) character whose value is the hexadecimal value HHHH (one to four hex digits)
\UHHHHHHHH
the Unicode (ISO/IEC 10646) character whose value is the hexadecimal value HHHHHHHH (one to eight hex digits)
\cx
a control-x character
octal ['ɒkt(ə)l]:adj. 八进制的
hexadecimal [,heksə'desɪm(ə)l]:adj. 十六进制的 n. 十六进制
The expanded result is single-quoted, as if the dollar sign had not been present.