HTTP: FLV or TS stream outputs the correct header. The HTTP-FLV stream downloaded in the browser has a different FLV header than the stream pulled by ffmpeg. #939
Closed
Description
My network camera does not have audio. Then I used the following command to push the camera's rtsp
stream to the srs
server. The configuration file used is SRS-HTTP-FLV Deployment Example.
ffmpeg -i rtsp://** -vcodec libx264 -acodec aac -f flv rtmp://192.168.31.221/live/livestream
Afterwards, I used the following command on ffmpeg
to pull the http-flv
stream into the srs.flv
file.
ffmpeg.exe -i http://192.168.31.221:8080/live/livestream.flv -vcodec copy -acodec copy -f flv srs.flv
Then I usedFlvParse
to examine the structure ofsrs.flv
, and it showedhas audio=0
, indicating that there was noAudio Tag
, which is consistent with the actual situation. However, on the other hand, when I directly input the linkhttp://192.168.31.221:8080/live/livestream.flv
into the browser, the downloaded file showedhas audio=1
, but still noAudio Tag
. What could be the reason for this?
TRANS_BY_GPT3