简体   繁体   中英

How to decode a live stream encoded using FFMPEG?

I am not very proficient with C programming and working on live streaming using FFMPEG. Basically, I want to put a watermark on a live streaming video.

Using FFMPEG, I have been able to record a video from webcam, encode it and send to some ip:port using UDP. Now, my receiver(written in Java) is receiving the data in packets but I don't know how to decode it for editing or play it. If I use ffplay, it plays it automatically. I referred some links:
Similar Question
Decoding Encoding Example

Could anyone please tell, how can I proceed for the solution. Any hints would be appreciable.

  1. How the data is encoded. Is it some FFMPEG format or generic format?
  2. If a live stream is coming, then what information does each packet contains? Whether it is a complete video itself or a portion of complete video file?
ffmpeg -f dshow -i video="Integrated Webcam" -c:v rawvideo -pix_fmt yuv420p -window_size qcif -f sdl "SDL output"

在Windows上,此FFMPEG命令对我有效。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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