zoukankan      html  css  js  c++  java
  • FFmpeg常用命令(Windows)

    命令行转码MP4格式

    ffmpeg.exe -i "C:1.mp4" -b 1024K -s 852x480 -y -g 60 -keyint_min 60 -movflags faststart -f mp4 "C: est.mp4"
    ffmpeg.exe -i "C:1.mp4" -threads 2 -b 1024K -s 852x480 -y -g 60 -keyint_min 60 -movflags faststart -f mp4 "C: est.mp4"

    命令行转码flv格式
    ffmpeg.exe -i "C:2.mp4" -y -ab 32 -ar 22050 -qscale 10 -s 640*480 -r 15 "F: est.flv"

    命令格式化
    ffmpeg.exe -i "1.MP4" -y -vcodec copy -acodec copy -movflags faststart -absf aac_adtstoasc "2.mp4"

    ♦视频剪切
    ffmpeg.exe -ss 0:10:00 -t 0:30:00 -i "F:美人鱼.rmvb" -vcodec copy -acodec copy "F:2.avi"

    推视频流
    ffmpeg.exe -re -i F: est512_30.mp4 -vcodec copy -f flv rtmp://192.168.2.142:1935/hls/test

    重复推流
    ffmpeg.exe -re -stream_loop -1 -i E: est.mp4 -vcodec copy -acodec copy -f flv -y rtmp://testcdn2.ava.com.cn:1935/hls/onlive7

    推直播流
    ffmpeg.exe -ss 0 -rtsp_transport tcp -i rtsp://192.168.2.28:5557/dispatch/0?config.client_type=web -vcodec copy -acodec copy -f flv rtmp://192.168.2.142:1935/live/123

  • 相关阅读:
    leetcode-409
    leetcode-836
    leetcode-1160
    leetcode-面试题13
    leetcode-695
    go的一些小lib
    leetcode-300
    cookie
    php上传文件
    PHP 文件创建/写入
  • 原文地址:https://www.cnblogs.com/kai2008009/p/13808491.html
Copyright © 2011-2022 走看看