[問題] 利用ffserver將資料無轉碼打出來
開發平台(Platform): (Ex: VC++, GCC, Linux, ...)
Linux
額外使用到的函數庫(Library Used): (Ex: OpenGL, ...)
ffmpeg
問題(Question):
我在ffmpeg內將copy指令打入後還是會transcode
所以想請教一下是否用法有錯
以下是我的ffserver啟動所設置文件
------------------------filename: test ---------------------------
Port 8090
BindAddress 0.0.0.0
MaxHTTPConnections 2000
MaxClients 1000
MaxBandwidth 200000
CustomLog -
NoDaemon
<Feed feed1.ffm>
File /tmp/feed1.ffm
FileMaxSize 20M
ACL allow 127.0.0.1
</Feed>
<Stream test.flv>
Format flv
Feed feed1.ffm
VideoFrameRate 30
VideoSize 1280x720
VideoBitRate 1000
AVOptionVideo flags +global_header
AudioBitRate 24
AudioChannels 1
AudioSampleRate 44100
AVOptionAudio flags +global_header
</Stream>
-------------------------------file end -----------------------------------
架起rtsp server
執行 ffserver -f test後
接著執行ffmpeg -i rtsp://192.168.1.173:8554/ -codec copy
"http://127.0.0.1:8090/feed1.ffm"
接著部分log如下圖,似乎最後依照ffserver的設置文件內stream的format決定codec了
http://ppt.cc/ipLz
而如果將所執行指令加入 -f flv
變成ffmpeg -i rtsp://192.168.1.173:8554/ -codec copy
"http://127.0.0.1:8090/feed1.ffm"
log如下圖,codec吃進去了,有顯示copy,但似乎因為streaming所以沒辦法這樣使用
http://ppt.cc/g1-5
之前有測出來過無轉碼的方法,但沒有詳細記錄下來,記得上次是因為多打了
-rtsp_transport udp,結果copy就沒有吃進去,但這次把這些參數去掉還是沒有辦法
推測應該是ffserver的configure文件打錯
如果有人知道問題原因或解決方法再麻煩告知小弟,感激不盡~
餵入的資料(Input):
VLC架出來的RTSP串流
預期的正確結果(Expected Output):
無轉碼過的http串流(flv格式)
錯誤結果(Wrong Output):
轉碼過的串流
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 1.161.69.184
※ 文章網址: https://www.ptt.cc/bbs/C_and_CPP/M.1423890746.A.023.html
噓
02/14 13:35, , 1F
02/14 13:35, 1F
→
02/14 19:30, , 2F
02/14 19:30, 2F
→
02/14 19:30, , 3F
02/14 19:30, 3F
→
02/14 19:37, , 4F
02/14 19:37, 4F
→
02/14 19:38, , 5F
02/14 19:38, 5F
→
02/15 01:09, , 6F
02/15 01:09, 6F