FFmpeg Stream Transcoding

左心房为你撑大大i 提交于 2019-12-25 04:56:10

问题


I have got a streaming application that displays the stream sent from a Flash Media Server. I want to grab that stream and transcode it to a output stream with a different bitrate using ffmpeg.

Could such kind of thing be done using ffmpeg?


回答1:


This will get input from a feed, and transcode it to an MKV file with default audio and video codecs, and 1024k bitrate for the video stream (audio bitrate is specified with '-ab'):

ffmpeg -i "http://my_server/video_feed" -b 1024k output.mkv

For a live feed try this (not sure if it'll work, I don't have ffmpeg to test it right now):

ffmpeg -i "http://my_server/input_video_feed" -b 1024 -f flv "http://my_server/output_video_feed"

This should create a FLV feed.



来源:https://stackoverflow.com/questions/12677839/ffmpeg-stream-transcoding

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!