ros-drivers / video_stream_opencv

A package to open video streams and publish them in ROS using the opencv videocapture mechanism
224 stars 159 forks source link

Published Video Has No Sound #107

Open Faizi-AdnanFahad opened 3 years ago

Faizi-AdnanFahad commented 3 years ago

HI,

I was able to publish a video file into my robot's monitor but there's no sound. Is there any extra parameters that would do it or it doesn't support sound? if it doesn't is there any other node that publishes both the video and sound?

Thanks

awesomebytes commented 3 years ago

There's no sound support in this package

On Thu, Jun 17, 2021, 12:50 Adnan Fahad Faizi @.***> wrote:

HI,

I was able to publish a video file into my robot's monitor but there's no sound. Is there any extra parameters that would do it or it doesn't support sound? if it doesn't is there any other node that publishes both the video and sound?

Thanks

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ros-drivers/video_stream_opencv/issues/107, or unsubscribe https://github.com/notifications/unsubscribe-auth/AANEK5GG7YPA7Z5MHYLAL2TTTFPIRANCNFSM462WFD4A .

Faizi-AdnanFahad commented 3 years ago

Thanks for the quick replay. Is there any other package that publishes both video and audio of the video?

awesomebytes commented 3 years ago

I'm sorry, but, what are you trying to achieve exactly?

Sounds like you just want to play a video on a screen somehow?

On Thu, Jun 17, 2021, 22:06 Adnan Fahad Faizi @.***> wrote:

Thanks for the quick replay. Is there any other package that publishes both video and audio of the video?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ros-drivers/video_stream_opencv/issues/107#issuecomment-863183001, or unsubscribe https://github.com/notifications/unsubscribe-auth/AANEK5ABFPTX3ZDKO2M5DOLTTHQODANCNFSM462WFD4A .

Faizi-AdnanFahad commented 3 years ago

WhatsApp Image 2021-06-17 at 8 53 48 AM

So I have this robot with a monitor attached to it which I have used the gazebo video plugin to give it the ability to subscribe to images/videos published to it. But when I want to publish a video that has sound too, I want to output the sound as well as its publishing. is that a little more clear?

Thanks,

awesomebytes commented 3 years ago

Gazebo has no sound simulation as far as I know. All you can do is play the audio on your machine.

You could use VLC without screen output to achieve that, for example: https://askubuntu.com/a/368751

On Thu, Jun 17, 2021, 22:57 Adnan Fahad Faizi @.***> wrote:

[image: WhatsApp Image 2021-06-17 at 8 53 48 AM] https://user-images.githubusercontent.com/67298880/122400361-a6077180-cf49-11eb-9638-1326469c13d4.jpeg

So I have this robot with a monitor attached to it which I have used the gazebo video plugin to give it the ability to subscribe to images/videos published to it. But when I want to publish a video that has sound too, I want to output the sound as well as its publishing. is that a little more clear?

Thanks,

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ros-drivers/video_stream_opencv/issues/107#issuecomment-863216127, or unsubscribe https://github.com/notifications/unsubscribe-auth/AANEK5DPSJQRLETFGBRNHZ3TTHWLLANCNFSM462WFD4A .

Faizi-AdnanFahad commented 3 years ago

Okay Thanks Sam!