cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
242 Views
Registered: ‎07-09-2020

Xilinx zcu106 video scaling pipeline

Hello friends,

I want to scale a video with pipeline in version gstreamer-launch-1.0

For example, I have a video whose resolution 1280x720.

The following information shows the output of gst-discoverer-1.0 for my video:

Topology:
container: Quicktime
audio: MPEG-4 AAC
video: H.264 (Main Profile)

Properties:
Duration: 0:01:39.750000000
Seekable: yes
Live: no
Tags:
audio codec: MPEG-4 AAC audio
maximum bitrate: 187125
bitrate: 125375
language code: en
datetime: 2015-01-22T18:07:29Z
QT atom: buffer of 23 bytes
container format: ISO MP4/M4A
video codec: H.264 / AVC

Then, I want to scale this video to 640x360 with all codecs configuration.

I found a pipeline related to this issue.

gst-launch-1.0 -e filesrc location=sample1280x720_4.mp4 ! qtdemux ! queue ! h264parse ! omxh264dec ! videoscale ! capsfilter ! omxh264enc ! h264parse ! qtmux ! filesink location=test.mp4

Unfortunately, all codecs configuration isn't moved to new video output.

The output of new video analysis is below:

Topology:
container: Quicktime
video: H.264 (Constrained Baseline Profile)

Properties:
Duration: 0:01:39.708333333
Seekable: yes
Live: no
Tags:
video codec: H.264 / AVC
maximum bitrate: 4626624
bitrate: 144798
language code: en
datetime: 2020-07-28T11:04:17Z
container format: Quicktime

How can I do this conversion with all configs?

Help me please.

0 Kudos
2 Replies
Highlighted
Adventurer
Adventurer
201 Views
Registered: ‎11-26-2016

Hi @hakann ,

Not an gstreamer expert, but I think you need to provide the width and height caps filter.

Can give the following pipeline a try:

gst-launch-1.0 -e filesrc location=sample1280x720_4.mp4 ! qtdemux ! queue ! h264parse ! omxh264dec ! videoscale ! video/x-raw,width=640,height=320 ! capsfilter ! omxh264enc ! h264parse ! qtmux ! filesink location=test.mp4

Regards,
so-lli1

0 Kudos
Highlighted
Visitor
Visitor
134 Views
Registered: ‎07-09-2020

Thanks for answer.

But I want to apply audio codec too.

So I should edit my pipeline according to audio codec config.

 

0 Kudos