2016-06-13 71 views
1

我想爲ffplay或ffmpeg傳遞多個頭文件,它說我需要用CRLF進行分割。在Linux上,我可以使用\$'\r\n',但如何爲Windows?windows CMD在雙引號內發送CRLF

SET CRLF=^ 
ffplay -v debug -i "http://example.com/test" -headers "Accept-Language: en-US,en;q=0.5%CRLF%Connection: keep-alive" 

調試日誌:Connection: keep-alive不發送

[http @ 04df3f40] No trailing CRLF found in HTTP header. 
[http @ 04df3f40] request: GET /test HTTP/1.1 0KB sq= 0B f=0/0 
User-Agent: Lavf/57.37.101 
Accept: */* 
Range: bytes=0- 
Connection: close 
Host: example.com 
Icy-MetaData: 1 
Accept-Language: en-US,en;q=0.5 

感謝

回答

0

請嘗試設置CRLF這種方式。它可能工作。

C:\Users\pwatson>type t.bat 
@echo off 
setlocal enabledelayedexpansion 

REM === The following line -MUST- be followed by two (2) blank lines. 
SET CRLF=^ 


REM === DO NOT EDIT THE PREVIOUS TWO (2) LINES 

echo this is a!CRLF!new line 

然後運行它。

C:\Users\pwatson>call t.bat 
this is a 
new line