0

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?

Andrei Petrenko
  • 3,922
  • 3
  • 31
  • 53
Stryker33
  • 473
  • 1
  • 5
  • 16
  • Could you specify the command for the same...? – Stryker33 Oct 02 '12 at 14:29
  • Sure, but your question is a bit vague right now. You'll need to add more info. What do you mean by 'output stream'? Is that an output file or what? I'll give you an answer anyway, but I have no idea if it's what you have in mind right now. – sashoalm Oct 02 '12 at 14:55
  • I needed to create an output stream rather than a file... And that transcoded stream could than be passed on to a OSMF MediaPlayer object or a video object to get displayed... – Stryker33 Oct 02 '12 at 18:11

1 Answers1

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.

sashoalm
  • 75,001
  • 122
  • 434
  • 781
  • That could do... But could it be possible to output a transcoded stream rather than a file which can eventually could be fetched by a OSMF MediaPlayer or Video object... – Stryker33 Oct 02 '12 at 18:13
  • OK, but what is the output format/video codec/audio codec? Also what is the input like? Meaning the input container format, the audio codec and the video codec? Anyway, see my answer, I've edited it. – sashoalm Oct 03 '12 at 11:11