Question / Help OBS Multiplatform and Source video plugin

djrexy

New Member
In "old" OBS i have plugin "Video Source Plugin" where i can make playlist of my videos, i try copy that plugin to OBS Multiplatform folder but not work with him. Any ideas how to make video playlist?
 
Don't try to use plugins for legacy obs in multiplatform. They are NOT compatible.

If you have a playlist file, you can use the media source in OBS Multiplatform to play it.
 
But i cant find in media source playlist button, is only for one video local file. I have over 40 short movies in mp4 format, so i must make 40 media sources?
 
Last edited:
No. You make a plain text file that lists the full path to all the files and then add that file as the media source.
 
No. You make a plain text file that lists the full path to all the files and then add that file as the media source.
Not sure if this is badly worded or what, but certainly doesn't work. Tried putting paths to all the files one by one, a path to the folder that holds the videos or even just a full path to one video in all known playlist formats or a plain txt - no go.
 
Last edited:
to create playlist make txt file:
Code:
ffconcat version 1.0

file my_file01.flv
file myfile-02.flv
file myfile.flv
and place it in the same folder as your my_file01.flv, myfile-02.flv, myfile.flv (each filename does not contain a protocol specification and is relative and all components only contain characters from the portable character set (letters, digits, period, underscore and hyphen) and have no period at the beginning of a component).

Choose that txt file as Local File to play files sequentially. But I don't like this thing at all.

More info at https://www.ffmpeg.org/ffmpeg-formats.html#Demuxers
 
The method above only works when you deselect Local File and paste the location to the txt file in the Input field. Also set the Input Format field to concat.

Like so:

img_1463692141_jLBS5zXWxeg.png
 
If first string in txt file is ffconcat version 1.0 then Local File works at *.* selection. It recognize the format automatically and set safe=1 :(
For me - it works.
 
I your example above all media files must be placed in child directory to the bin folder where obsXX.exe lies, this is quite kinky to me. But I didn't test symlinks (or NTFS links) to workaround ^_^

I had tested same example there: https://gist.github.com/dd8ab15027f10d89308d8e396391fa80 and I have a little question to you, Osiris. Can you insert nonsense info into Input Format field (while there is no other sources in your Scene Collection) and see, is there any errors in your log? Because my log trigger errors only if I have 'Video Capture Device' source in the same Scene Collection. Otherwise - no errors at all ! Quite strange for me... looks like 'Media Source' verbosity is linked to 'Video Capture Device' source.
 
Doesn't work for me at all :/ Can't we have a "normal" way of doing this, please?

This is my playlist file btw:
Code:
ffconcat version 1.0

Gridfeed_01_divx.avi
Gridfeed_02_divx.avi
Gridfeed_03_divx.avi
Gridfeed_04_divx.avi
 
Doesn't work for me at all :/ Can't we have a "normal" way of doing this, please?

This is my playlist file btw:
Code:
ffconcat version 1.0

Gridfeed_01_divx.avi
Gridfeed_02_divx.avi
Gridfeed_03_divx.avi
Gridfeed_04_divx.avi
You forgot to add "file" before filename.
 
if you want to shuffle playlist, itself:
make playlist named studio-playlist.txt and make text file shuffle-obs-studio-playlist.txt with this code
PHP:
var fso, fso2, f1, ts, s;
var ForReading = 1;
var fullList = []; //empty array
fso = new ActiveXObject("Scripting.FileSystemObject");
fso2 = new ActiveXObject("Scripting.FileSystemObject");

//open files input "ts" and otput "f1"
ts = fso2.OpenTextFile("studio-playlist.txt", ForReading);
f1 = fso.CreateTextFile("studio-playlist.tmp", true);

//read input file and write all strings without string "file " to output, other strings went to array
do
{
s = ts.ReadLine( );
if (s.substring(0,5) == 'file ')
  {
   //ts.SkipLine();
   //f1.WriteLine();
     fullList.push(s);
  }
else
f1.WriteLine(s);
}
while (!ts.AtEndOfStream);

//shuffle array
if (fullList.length != 0)
{
fullList.sort(function(){return Math.floor(Math.random()*10-5)});
}

//add to output file strings from randomized array
if (fullList.length != 0)
{
for (i = 0; i < fullList.length; i++)
   {
   f1.WriteLine(fullList[i]);
   }
}

//close all opened
f1.Close();
ts.Close();

//overwrite studio-playlist.txt
fso.CopyFile("studio-playlist.tmp","studio-playlist.txt",true);

and rename it to shuffle-obs-studio-playlist.js
Each time you run .js file playlist named studio-playlist.txt will be overwritten (shuffle list). It also create temporary studio-playlist.tmp file - delete it later.

In short, no transitions, loop and other things acceptable. There is no way to randomize playlist. Wait for updates or write your own input plugin.
 
Hm...
Topic up please.

Trying to add playlist using OBS 0.15.4
Source: media

Local file:
Code:
ffconcat version 1.0

file 05. League of Legends Music_ Quinn And Valor.mp4
file 03. League of Legends Music_ Tiny Masterpiece of Evil.mp4
file 02. League of Legends Music_ Tidecaller.mp4

What can be the mistake?
 
Your filenames have spaces in them. Either rename the files to remove the spaces, or escape the spaces by placing a backslash before each space in the ffconcat file.
 
I'm using 21.0.1

The content of the TXT file is


Code:
ffconcat version 1.0

Countdown.mp4
Earth_Zoom_In.mov

but when I switch the scene, nothing happens.
The files are in the same directory of the playlist
Settings are the same Osiris suggested
upload_2018-1-27_13-8-4.png
 
Back
Top