CasparCG / media-scanner

A service used with CasparCG Server software for scanning media located on the server. Queried with query and thumbnail commands through CasparCG Server using AMCP.
https://casparcg.com
GNU Lesser General Public License v3.0
31 stars 33 forks source link

Can't list media files #60

Closed 5opr4ni closed 1 year ago

5opr4ni commented 1 year ago

Hi

Maybe I am doing it all wrong, but can't get the new media scanner to work with casparcg-server-f081547e1d38ccf713659e22793d0cdbce8fa79b-windows

I downloaded the 1.1.0 and put the scanner.exe and the folder prebuilds in the casparcg-server-...... folder. In casparcg.config i have this:

    <paths>
        <media-path>c:\\caspar\\_MEDIA\\</media-path>
        <log-path>c:\\caspar\\_LOG\\</log-path>
        <data-path>c:\\caspar\\_DATA\\</data-path>
        <template-path>c:\\caspar\\</template-path>
    </paths>

as we have normally After that the only thing that works i TLS

What am I doing wrong?

Will the scanner be put in the caspar server folder in the next server release?

Swedish characters åäö in names don't work. Maybe a server issue.

Keep up the fantastic work you are doing.

/olle

Julusian commented 1 year ago

After that the only thing that works i TLS What am I doing wrong?

Does it output any errors in the log when doing the CLS?

I didn't test this with caspar, but I did make sure that http://localhost:8000/cls produced some sensible looking result, which I thought would be a good enough test.

Will the scanner be put in the caspar server folder in the next server release?

Yeah, before the next release I need to update the server workflow to pull in the scanner again.

Swedish characters åäö in names don't work. Maybe a server issue.

I have a feeling there are some weird bugs around those. I remember writing https://github.com/CasparCG/server/issues/1018, and I wouldnt be surprised if the scanner can handle changing the case correctly, causing things to break.

5opr4ni commented 1 year ago

Does it output any errors in the log when doing the CLS?

No! Just 200 CLS OK

TLS works as expected

Yeah, before the next release I need to update the server workflow to pull in the scanner again.

SUPER!

I have a feeling there are some weird bugs around those. I remember writing CasparCG/server#1018, and I wouldnt be surprised if the scanner can handle changing the case correctly, causing things to break.

Looked at that one and independent of case, it doesn't work with Swedish characters, in media. In templates, it works nicely.

rjames1295 commented 1 year ago

I'm also facing the same issue. Using these builds: casparcg-server-f081547e1d38ccf713659e22793d0cdbce8fa79b-windows casparcg-scanner-cedadbb4cfef4fa0cb17ec2320d0c0545aaed4a5-windows

Taking a look at the scanner logs, I can see that ffmpeg.exe and ffprobe.exe commands are producing errors

Screenshot_20230221_015637

Running on an AMD Ryzen 7 6800HS if that matters

Julusian commented 1 year ago

@rjames1295 it looks like you havent provided a copy of ffmpeg.exe. Neither these scanner builds or casparcg-server will be including that currently

rjames1295 commented 1 year ago

@rjames1295 it looks like you havent provided a copy of ffmpeg.exe. Neither these scanner builds or casparcg-server will be including that currently

This actually lead me in the right direction, dropped in a ffmpeg.exe and ffprobe.exe into CasparCG's directory and the media files now show up.

Thank you!

5opr4ni commented 1 year ago

Hahaha!

Sorry, ffmpeg and probe was the issue for me too, sorry for not checking the scanner log. :( But Swedish characters is an issue. Do you want me to make an issue with that, Julian? The scanner does it nicely with ÅÄÖåäö, so it's a server thingie. /olle