Results 1 to 2 of 2

Thread: Ffmpeg transcode

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Ffmpeg transcode

    Hello everyone,

    I have this problem on transcoding rtmp using ffmpeg, the command below can successfully transcode rtmp to rtmp (with lower bireate):

    ffmpeg -i rtmp:// -vcodec libx264 -preset veryfast -x264opts nal-hrd=cbr:force-cfr=1:keyint=60 -b:v 600k -maxrate 600k -bufsize 3400k -sws_flags spline -r 30 -acodec copy -f flv rtmp://

    we are actually using cdn as edge, what we want to achieve is something like this output:

    <meta base="rtmp://" />
    <video src="mp4:STREAM-KEY-ORIGINAL" />
    <video src="mp4:STREAM-KEY-TRANSCODED" />

    basically to merge the origin and transcoded streams to generate a multi biterate output to our edge server, is that posible?


  2. #2



    Here is an example of how this would work:
    ffmpeg -i sample.mp4 -strict -2 -c:a aac -b:a 32k  -c:v libx264 -b:v 128K -f flv rtmp://localhost/live/stream_low -c:a copy  -c:v libx264 -b:v 256k -f flv rtmp://localhost/live/stream_mid
    You can modify the details as needed.

    Kind regards,


Similar Threads

  1. transcode
    By Kompas in forum General Forum
    Replies: 1
    Last Post: 02-24-2013, 04:53 PM
  2. Transcode with FFMPEG
    By jhjwind in forum Server-side Modules and Code Samples Discussion
    Replies: 1
    Last Post: 04-02-2012, 03:33 PM
  3. TS to TS transcode
    By jfeneau in forum AddOn: Transcoder
    Replies: 49
    Last Post: 02-17-2012, 08:54 AM
  4. How do I call ffmpeg from a java application to transcode a live webcam broadcast?
    By SteveT in forum Live Streaming and Encoder Discussion
    Replies: 1
    Last Post: 12-21-2011, 03:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts