Hi, I'm trying to use my Jetson Nano to watch media on my TV. Totem doesn't
do a good job with 4k content. I'm not a developer and hence having issues using gst-play and gst-launch. I am trying to do the following: Watch videos with audio and subtitles (external file, not embedded in video), including 4k videos. Problems I have: - gst-play works for most videos I have (except 4k ones). However, I don't know how to add subtitles from a file, or amplify audio. - For 4k videos, the following command works just fine, however I do not know how to add subtitles here from an external file: "gst-launch-1.0 filesrc location=ko.mkv ! decodebin name=decoder decoder. ! queue ! videoconvert ! autovideosink decoder. ! queue ! audioconvert ! audioamplify amplification=4 ! autoaudiosink" I need: - Some way to play my videos where I can show subtitles, amplify audio etc.. through command-line. I have spent countless hours reading documentation, trying combinations of commands, and seeking help in other places: https://forums.developer.nvidia.com/t/playing-videos-using-gstreamer-on-jetson-nano/153846 Thank you in advance! -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
I recently uploaded some pipeline graphs to <http://realh.co.uk/gst/>. They show playbins, so there's a lot going on inside, and the subtitles are DVB from the same source as the video and audio, but hopefully these might offer you some clues as to how to overlay subpictures onto the video and at least solve that part of the problem. On Sun, 11 Oct 2020 at 00:00, gst_kwr <[hidden email]> wrote: Hi, I'm trying to use my Jetson Nano to watch media on my TV. Totem doesn't TH _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
In reply to this post by gst_kwr
Gstreamer is much better suited as a development platform to create custom media pipelines. Not that you couldn't use it to do what you are doing, but since it seems you are just trying to play videos with subtitles, then why not use VLC or similar?
In regards to subtitles, looks like there is an associate component subtitleoverlay: https://gstreamer.freedesktop.org/documentation/playback/subtitleoverlay.html?gi-language=c Sincerely, Ken Sloat On 10/10/20 6:07 PM, gst_kwr wrote: > Hi, I'm trying to use my Jetson Nano to watch media on my TV. Totem doesn't > do a good job with 4k content. I'm not a developer and hence having issues > using gst-play and gst-launch. I am trying to do the following: > > Watch videos with audio and subtitles (external file, not embedded in > video), including 4k videos. > > Problems I have: > - gst-play works for most videos I have (except 4k ones). However, I don't > know how to add subtitles from a file, or amplify audio. > - For 4k videos, the following command works just fine, however I do not > know how to add subtitles here from an external file: "gst-launch-1.0 > filesrc location=ko.mkv ! decodebin name=decoder decoder. ! queue ! > videoconvert ! autovideosink decoder. ! queue ! audioconvert ! audioamplify > amplification=4 ! autoaudiosink" > > I need: > - Some way to play my videos where I can show subtitles, amplify audio etc.. > through command-line. > > I have spent countless hours reading documentation, trying combinations of > commands, and seeking help in other places: > https://forums.developer.nvidia.com/t/playing-videos-using-gstreamer-on-jetson-nano/153846 > > Thank you in advance! > > > > -- > Sent from: http://gstreamer-devel.966125.n4.nabble.com/ > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Thanks. Yes, I have tried several media players including vlc, but the device
I am using only supports gstreamer decoding and gstreamer based gui players are not working. I did look at subtitleoverlay and read other docs, I don't quite have the expertise to patch together a command for myself that works. I got some subtitles working sometimes, but not generally - mostly because I was creating frankenstein commands from tutorials etc that would work occasionally. And so I was hoping someone with some knowledge/expertise with gst-launch can help me put together a command that works as a rough player for my situation. I was also not able to understand the suggestion from Tony above, or how I can use the pipeline graphs provided to help myself. -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
On Thu, 15 Oct 2020 at 09:45, gst_kwr <[hidden email]> wrote:
I thought you might be able to trace the paths the buffers take and sketch out a simplified version with the complicated details removed. I've had another idea though, because the playbin element has a suburi property which seems to do exactly what you want. However, you need to add your audio amplification stage to that. Could it be as simple as `playbin ... audio-sink=amplifier ! audioamplify name=amplifier ...`? If not you'll have to write some code to construct the pipeline and set the property. Failing that, could you possibly set up your pulseaudio/alsa/whatever config to do the amplification instead? If not, I suggest running such a playbin pipeline and generate pipeline graphs you could study instead of mine. TH _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |