mirror of
https://github.com/nestriness/warp.git
synced 2025-12-11 09:25:39 +02:00
chore: remove test files
This commit is contained in:
BIN
output.mp4
BIN
output.mp4
Binary file not shown.
12
src/media.rs
12
src/media.rs
@@ -243,15 +243,19 @@ impl GST {
|
|||||||
// drop(state_lock);
|
// drop(state_lock);
|
||||||
// let pipeline = gst::parse::launch("videotestsrc num-buffers=2500 ! timecodestamper ! video/x-raw,format=I420,width=1280,height=720,framerate=30/1 ! timeoverlay ! x264enc bframes=0 bitrate=2048 ! video/x-h264,profile=main ! cmafmux fragment-duration=1 header-update-mode=update write-mehd=true ! appsink name=sink").unwrap().downcast::<gst::Pipeline>().unwrap();
|
// let pipeline = gst::parse::launch("videotestsrc num-buffers=2500 ! timecodestamper ! video/x-raw,format=I420,width=1280,height=720,framerate=30/1 ! timeoverlay ! x264enc bframes=0 bitrate=2048 ! video/x-h264,profile=main ! cmafmux fragment-duration=1 header-update-mode=update write-mehd=true ! appsink name=sink").unwrap().downcast::<gst::Pipeline>().unwrap();
|
||||||
// let pipeline = gst::parse::launch("videotestsrc num-buffers=2500 ! x264enc ! isomp4mux ! appsink name=sink").unwrap().downcast::<gst::Pipeline>().unwrap();
|
// let pipeline = gst::parse::launch("videotestsrc num-buffers=2500 ! x264enc ! isomp4mux ! appsink name=sink").unwrap().downcast::<gst::Pipeline>().unwrap();
|
||||||
|
//FIXME: run one pipeline at a time, then let downstream push accordingly
|
||||||
let pipeline = gst::parse::launch(
|
let pipeline = gst::parse::launch(
|
||||||
"videotestsrc num-buffers=60 ! video/x-raw,framerate=30/1 ! x264enc ! queue ! mux. \
|
"
|
||||||
audiotestsrc num-buffers=60 ! audio/x-raw,rate=48000 ! avenc_aac ! queue ! mux. \
|
audiotestsrc num-buffers=60 ! audio/x-raw,rate=48000 ! avenc_aac ! queue ! mux. \
|
||||||
isomp4mux name=mux ! appsink name=sink \
|
cmafmux write-mehd=true header-update-mode=update fragment-duration=1 name=mux ! appsink name=sink \
|
||||||
",
|
",
|
||||||
)
|
)
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.downcast::<gst::Pipeline>()
|
.downcast::<gst::Pipeline>()
|
||||||
.unwrap(); //interleave-time=1 movie-timescale=1
|
.unwrap(); //interleave-time=1 movie-timescale=1
|
||||||
|
// audiotestsrc num-buffers=60 ! audio/x-raw,rate=48000 ! avenc_aac ! queue ! mux. \
|
||||||
|
|
||||||
|
//videotestsrc num-buffers=60 ! video/x-raw,framerate=30/1 ! x264enc ! queue ! mux. \
|
||||||
|
|
||||||
let appsink = pipeline
|
let appsink = pipeline
|
||||||
.by_name("sink")
|
.by_name("sink")
|
||||||
@@ -342,7 +346,7 @@ impl GST {
|
|||||||
println!("Found 'moof' box");
|
println!("Found 'moof' box");
|
||||||
// Process 'moof' box
|
// Process 'moof' box
|
||||||
}
|
}
|
||||||
|
|
||||||
mp4::BoxType::MdatBox => {
|
mp4::BoxType::MdatBox => {
|
||||||
println!("Found 'mdat' box");
|
println!("Found 'mdat' box");
|
||||||
// Process 'mdat' box
|
// Process 'mdat' box
|
||||||
|
|||||||
Reference in New Issue
Block a user