rtmp

Extract frames as images from an RTMP stream in real-time

给你一囗甜甜゛ 提交于 2021-02-08 10:22:03
问题 I am streaming short videos (4 or 5 seconds) encoded in H264 at 15 fps in VGA quality from different clients to a server using RTMP which produced an FLV file. I need to analyse the frames from the video as images as soon as possible so I need the frames to be written as PNG images as they are received. Currently I use Wowza to receive the streams and I have tried using the transcoder API to access the individual frames and write them to PNGs. This partially works but there is about a second

streaming FLV to RTMP with FFMpeg using H264 codec and C++ API to flv.js

江枫思渺然 提交于 2021-02-06 10:13:39
问题 I would like to stream live video from webcam using OpenCV using H264 codec and converting that to FLV then stream over RTMP server and catch the stream in browser with flv.js. Basically I have everything working except that I cannot read stream in flv.js. I can open stream with ffplay so I think at least most of the things are set correctly. My current implementation: #include <iostream> #include <vector> #include <opencv2/highgui.hpp> #include <opencv2/video.hpp> extern "C" { #include

streaming FLV to RTMP with FFMpeg using H264 codec and C++ API to flv.js

此生再无相见时 提交于 2021-02-06 10:09:14
问题 I would like to stream live video from webcam using OpenCV using H264 codec and converting that to FLV then stream over RTMP server and catch the stream in browser with flv.js. Basically I have everything working except that I cannot read stream in flv.js. I can open stream with ffplay so I think at least most of the things are set correctly. My current implementation: #include <iostream> #include <vector> #include <opencv2/highgui.hpp> #include <opencv2/video.hpp> extern "C" { #include

How to push the H.264 format data received from socket to RTMP server?

南笙酒味 提交于 2021-01-29 14:14:03
问题 My test_ffmpeg.c can push the local H.264 video to the RTMP server,and received_video.c can receive h.264 format data from socket, but now I want to push the H264 format data received from the socket to the RTMP server. Excuse me, can it be implemented? and How can I modify my code? note 1:Three methods I found on the Internet.I want to use the third one, but I don't know how to modify it. Method 1: set up RTMP server locally, change the port number of local RTMP server to the same as socket

How to play RTMP video streaming in ios app?

本小妞迷上赌 提交于 2021-01-28 04:22:10
问题 HI I'm developing Broadcast App for that I'm using Videocore library now how can i play that streaming video in ios app i tried with the MpMoviePlayer but it won't support the rtmp stream. so is there any third party libraries available for RTMP supported Players please help me 回答1: If you already have the RTMP live stream ready and playing as HLS then you can simply add .m3u8 after the stream name and make RTMP link to http . For example you have RTMP link like this: rtmp://XY.Y.ZX.Z/hls

ffmpeg Could not write header for output file #0

最后都变了- 提交于 2021-01-21 21:57:35
问题 The line ffmpeg -f h264 -i pipe111.fifo -c:v copy -f mp4 - gives the error: Input #0, h264, from 'pipe111.fifo': Duration: N/A, bitrate: N/A Stream #0:0: Video: h264 (Constrained Baseline), yuv420p, 480x270, 6 fps, 6 tbr, 1200k tbn, 12 tbc [mp4 @ 0x1562130] muxer does not support non seekable output Output #0, mp4, to 'pipe:': Metadata: encoder : Lavf56.9.100 Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 480x270, q=2-31, 6 fps, 1200k tbn, 1200k tbc Stream #0:0 -> #0:0 (copy)

ffmpeg Could not write header for output file #0

最后都变了- 提交于 2021-01-21 21:54:30
问题 The line ffmpeg -f h264 -i pipe111.fifo -c:v copy -f mp4 - gives the error: Input #0, h264, from 'pipe111.fifo': Duration: N/A, bitrate: N/A Stream #0:0: Video: h264 (Constrained Baseline), yuv420p, 480x270, 6 fps, 6 tbr, 1200k tbn, 12 tbc [mp4 @ 0x1562130] muxer does not support non seekable output Output #0, mp4, to 'pipe:': Metadata: encoder : Lavf56.9.100 Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 480x270, q=2-31, 6 fps, 1200k tbn, 1200k tbc Stream #0:0 -> #0:0 (copy)

Stream MP4 video successfully to RTMP with FFMPEG

一笑奈何 提交于 2020-12-30 06:43:35
问题 I'm attempted to stream an already recorded video file to twitch servers using FFMPEG but I only get audio so far no video. I've tried several settings, and different files (avi,etc) but I still get audio only. Here is my FFMPEG settings: ffmpeg -re -i test.mp4 -vcodec libx264 -preset fast -crf 30 -acodec aac -ab 128k -ar 44100 -strict experimental -f flv rtmp://live-dfw.twitch.tv/app/"TWITCHKEY" Has anyone nailed this? I'm using ffmpeg 0.8.17-6:0.8.17-1 under Ubuntu. 回答1: ffmpeg -re -i ~

Does RTMP support the Display Orientation SEI Message in h264 streams?

感情迁移 提交于 2020-12-13 04:34:08
问题 I'm streaming video h264 video and AAC audio over RTMP on Android using the native MediaCodec APIs. Video and audio look great, however while the video is shot in potrait mode, playback on the web or with VLC is always in landscape. Having read through the h264 spec, I see that this sort of extra metadata can be specified in Supplemental Enhancement Information (SEI), and I've gone about adding it to the raw h264 bit stream. My SEI NAL unit for this follows this rudimentary format, I plan to

Does RTMP support the Display Orientation SEI Message in h264 streams?

倾然丶 夕夏残阳落幕 提交于 2020-12-13 04:33:42
问题 I'm streaming video h264 video and AAC audio over RTMP on Android using the native MediaCodec APIs. Video and audio look great, however while the video is shot in potrait mode, playback on the web or with VLC is always in landscape. Having read through the h264 spec, I see that this sort of extra metadata can be specified in Supplemental Enhancement Information (SEI), and I've gone about adding it to the raw h264 bit stream. My SEI NAL unit for this follows this rudimentary format, I plan to