mirror of
https://github.com/matthew1000/gstreamer-cheat-sheet.git
synced 2024-11-24 09:11:00 +00:00
Better video conversion example
This commit is contained in:
parent
e8b8c51238
commit
703d7f2758
1 changed files with 12 additions and 0 deletions
12
basics.md
12
basics.md
|
@ -97,3 +97,15 @@ gst-launch-1.0 -v \
|
||||||
autovideosink
|
autovideosink
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Here's a more complete example, that keeps the audio, and changes the size and framerate:
|
||||||
|
|
||||||
|
```
|
||||||
|
gst-launch-1.0 filesrc location=$SRC ! \
|
||||||
|
qtdemux name=demux demux.audio_0 ! queue ! decodebin ! audioconvert ! audioresample ! \
|
||||||
|
autoaudiosink \
|
||||||
|
demux.video_0 ! queue ! \
|
||||||
|
decodebin ! videoconvert ! videoscale ! videorate ! \
|
||||||
|
'video/x-raw, format=(string)I420, width=(int)320, height=(int)240, framerate=(fraction)30/1' ! \
|
||||||
|
autovideosink
|
||||||
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue