| 1 |
#!/bin/sh |
| 2 |
|
| 3 |
gst-launch-1.0 videotestsrc num-buffers=250 ! \ |
| 4 |
'video/x-raw,format=(string)I420,width=320,height=240,framerate=(fraction)25/1' \ |
| 5 |
! avenc_mpeg4 ! queue ! mux. audiotestsrc num-buffers=440 ! audioconvert ! \ |
| 6 |
'audio/x-raw,rate=44100,channels=2' ! lamemp3enc ! queue ! mux. \ |
| 7 |
avimux name=mux ! filesink location=test_mp3.avi |
| 8 |
|
| 9 |
gst-launch-1.0 videotestsrc num-buffers=250 ! \ |
| 10 |
'video/x-raw,format=(string)I420,width=320,height=240,framerate=(fraction)25/1' \ |
| 11 |
! avenc_mpeg4 ! queue ! mux. audiotestsrc num-buffers=440 ! audioconvert ! \ |
| 12 |
'audio/x-raw,rate=44100,channels=2' ! queue ! mux. \ |
| 13 |
avimux name=mux ! filesink location=test_raw.avi |