-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
14 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
rtmp upstream: | ||
ffmpeg -re -f v4l2 -i /dev/video0 -vcodec libx264 -f flv rtmp://127.0.0.1/live/livestream | ||
|
||
generate 264/yuv file from mp4: | ||
ffmpeg -i sample.mp4 -ss 0:0:00 -t 0:0:01 -vcodec h264 -s 320x240 -f m4v sample.264 | ||
ffmpeg -i sample.264 -s 320x240 -pix_fmt yuv422p sample_yuv422p.yuv | ||
ffplay -f rawvideo -pix_fmt yuv422p -video_size 320x240 sample_yuv422p.yuv | ||
|
||
|
||
|
||
|
||
AVPacket: store compressed data | ||
|
||
AVFrame: decoded(raw) data |