Capturing the visualization output

About encoding, codec settings, muxers and filter usage
hansschmucker
New Cone
New Cone
Posts: 1
Joined: 14 May 2009 22:41

Capturing the visualization output

Postby hansschmucker » 16 May 2009 13:55

This may be fairly obvious to many people here, but I'm a VLC scripting newbie and sadly, the documentation is pretty confusing.

I'm trying to write out the visualization output for an audio-only file to a video/audio container. After some experimenting (apparently, the syntax for calling the visualizer changed a bunch of times, I finally got the normal, to-display output working with:

Code: Select all

vlc -I rc land.m4a --audio-visual=visual --effect-list=spectrum --effect-width=480 --effect-height=80 --visual-nbbands=16 --visual-separ=0 --no-visual-peaks vlc://quit
So far so good, the audio plays and I get a visualization. However if I try to combine this with a simple transcode, like so:

Code: Select all

vlc -I rc --audio-visual=visual --effect-list=spectrum --effect-width=480 --effect-height=80 --visual-nbbands=16 --visual-separ=0 --no-visual-peaks --sout=#transcode{vcodec=mp2v,acodec=mp2a}:standard{access=file,mux=ps,dst=out.mpg} land.m4a vlc://quit
I still end up with an audio-online file, which is understandable, seeing as I failed to actually include the visualizer in the filter chain.
Problem is, how do I do that? Some threads in here suggest afilter=visual may do the trick, but that filter can't be initialised, according to "-vvv"

I'd really be grateful for ANY pointers

Hans Schmucker

andreyvit
New Cone
New Cone
Posts: 2
Joined: 05 Oct 2015 23:52

Re: Capturing the visualization output

Postby andreyvit » 05 Oct 2015 23:55

Hey, bumping this topic because I want this too, and I've spent a couple of hours trying to get it to work without any success. (The use case is publishing an audio podcast on YouTube.)

Can someone please please give a pointer, or at least tell us that it's impossible?

Rémi Denis-Courmont
Developer
Developer
Posts: 15266
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Capturing the visualization output

Postby Rémi Denis-Courmont » 06 Oct 2015 12:04

Most visualization use OpenGL, which in practice means the video is created by the graphics card for display purpose. It cannot be encoded, at least not in any straight forward manner.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

andreyvit
New Cone
New Cone
Posts: 2
Joined: 05 Oct 2015 23:52

Re: Capturing the visualization output

Postby andreyvit » 06 Oct 2015 18:17

Thank you, Rémi. That explains it. (I'm using the spectrum visualizer. I'll try the other ones to see if any of them can be rendered.)


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 6 guests