Pushing data to web-browser while processing input from ffmpeg

后端 未结 1 1492
一生所求
一生所求 2021-01-16 10:16

I want to push output of this directly to the user using PHP/Python:

wget -qO- \"http://my-video-stream-input.url/here\" | ffmpeg -i pipe:0 -ab 192000 -acode         


        
相关标签:
1条回答
  • 2021-01-16 10:45

    You need to tell ffmpeg to output data to stdout, rather than giving it a file name. For example, the following command reads an input in FLAC format from stdin and writes an output in MP3 format to stdout (the file name "-" is used to mean stdin/stdout):

    ffmpeg -f flac -i - -f mp3 -
    
    0 讨论(0)
提交回复
热议问题