ros-drivers / gscam

ROS Camera driver for GStreamer-based video streams.
136 stars 172 forks source link

Flip a video file #18

Open gariepyalex opened 9 years ago

gariepyalex commented 9 years ago

Hi, I use gscam to play a video file. My config line in the launch file looks like this

<param name="gscam_config" value="filesrc location=$(arg FILENAME) ! decodebin ! ffmpegcolorspace"/>

I have videos that needs to be flipped vertically. I am trying to add the flip to this line, but it doesn't work. I have found this in the gstreamer doc :

http://www.freedesktop.org/software/g...

I have tried :

<param name="gscam_config" value="filesrc location=$(arg FILENAME) ! decodebin ! ffmpegcolorspace ! videoflip method=vertical-flip"/>

but no luck.

ajpaudyalp3 commented 3 years ago

Did you resolve this issue?

clydemcqueen commented 3 years ago

This works for me in melodic with gstreamer1.0 using videoconvert instead of ffmpegcolorspace:

"filesrc location=test.mov ! decodebin ! videoconvert ! videoflip method=vertical-flip"

or

"filesrc location=test.mov ! decodebin ! videoflip method=vertical-flip ! videoconvert"