简体   繁体   English

对 stream MPEG-1 视频的命令

[英]Command to stream MPEG-1 video

I'm trying to stream MPEG-1 video over FFMPEG with我正在尝试通过 FFMPEG 使用 stream MPEG-1 视频

ffmpeg -i "out.ts" -f flv -listen 1 -i rtmp://localhost:8889/live/app -c copy -f flv -listen 1 rtmp://localhost:1935/live/app

The out.ts file is a MPEG-1 video encoded with out.ts文件是用 MPEG-1 编码的视频

ffmpeg -i out.avi -f mpegts -codec:v mpeg1video -b:v 1500k -r 30 -bf 0 -codec:a mp2 -b 0 -q 5 -t 1 out.ts

When I try to open the stream with VLC : rtmp://localhost:1935/live/app media is not playing.当我尝试使用VLC打开 stream 时: rtmp://localhost:1935/live/app媒体未播放。 What's the command to stream MPEG-1 video over FFMPEG? FFMPEG 上的 stream MPEG-1 视频的命令是什么?

RTMP does not have support for mpeg1 video or mpeg2 audio. RTMP 不支持 mpeg1 视频或 mpeg2 音频。 You can see the complete list if supported code in the fly specification under the VIDEODATA header.您可以在 VIDEODATA header 下的 fly 规范中查看完整列表(如果支持的代码)。

https://www.adobe.com/content/dam/acom/en/devnet/flv/video_file_format_spec_v10.pdf https://www.adobe.com/content/dam/acom/en/devnet/flv/video_file_format_spec_v10.pdf

To stream MPEG-1 video using ffmpeg:使用 ffmpeg 到 stream MPEG-1 视频:

ffmpeg -re -y -i out.ts -an -f rtp_mpegts rtp://127.0.0.1:1234

Credit to: https://ffmpeg.org/pipermail/ffmpeg-user/2015-October/028879.html 归功于:https://ffmpeg.org/pipermail/ffmpeg-user/2015-October/028879.html

(Although the source video is 720p, the stream in VLC looks like 360p and no audio is streamed, any idea would be appreciated) (虽然源视频是 720p,但 VLC 中的 stream 看起来像 360p 并且没有音频流,任何想法将不胜感激)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM