Page 1 of 1

How to play an input normally but with no output at all

Posted: 10 Jun 2015 15:01
by gegefr
Hi, this might seem weird but i need to be able to "play" a video with vlc but without any video nor audio output, on linux.

Our goal is to simulate multiple users playing youtube videos so we'd like to be able to start dozens of VLC process, playing some Youtube videos and see how much buffering happens depending on network's health, number of youtube watchers, and other concurrent traffic.

Watching for video interruptions caused by buffering is OK with VLC is started with -vv (only have to watch for logs).
Playing a youtube video with the GUI is OK.
Playing a youtube video with --sout => /dev/null is almost OK too, there is no output at all, however it seems to download the video "as fast as it cans", wich is normal since --sout is made for transcoding or remuxing.

Is there a way, while using --sout, to tell VLC to respect the normal framerate ?

Thanks in advance.

Re: How to play an input normally but with no output at all

Posted: 10 Jun 2015 15:07
by Rémi Denis-Courmont
Depending on what exactly you want:
vlc -A dummy -V dummy
vlc --noaudio --novideo

Re: How to play an input normally but with no output at all

Posted: 10 Jun 2015 15:39
by gegefr
Thanks !

"-A dummy -V dummy" seems to be exactly what i want (still get the data but don't show them at all, no need for --sout.

It's a lot more cpu-intensive, but i guess that's because the codec has to be decoded properly to respec framerate ?

Re: How to play an input normally but with no output at all

Posted: 10 Jun 2015 16:30
by Rémi Denis-Courmont
Yes.

Re: How to play an input normally but with no output at all

Posted: 10 Jun 2015 16:39
by gegefr
Okay, thanks for your quick answers !

:D