It is currently 23 May 2017, 04:04



Peculiar "Load" problem

CasparCG Server, Client and development

Moderators: Macey, Jonas Hummelstrand, didikunz

Peculiar "Load" problem

Postby mktsgm » 12 Feb 2017, 11:10

I have a very peculiar problem video playback.

Machine is HP Z640 Workstation, with Windows 7 Professional 8 GB RAM, 1 TB Internal HDD, with CasparCG 2.0.7 stable. The Media is stored in a Symbolic Link Folder (Actual media is stored in a NAS storage and the folder is shared into local folder in the name of "media" within the Caspar Media folder (in the config file) "C:\CMedia\". All the media files are kept there ("C:\CMedia\Media\") and the custom developed application in VB.NET has been serving for the past two years without any problem.

Couple of days back, the following file has refused to play (did not load).

The file name is:"67-02 168.64 DANCE FESTIVAL EPISODE 0414.mov"
The sub folder where it is kept is "media" (Symbolic linked from a NAS)


The following command was given to the server
Code: Select all
load 1-1 "media/67-02 168.64 DANCE FESTIVAL EPISODE 0414"


The reply from the server is,
Code: Select all
[2017-02-12 15:01:06.199] [5552] [info]    Received message from Console: load 1-1 "media/67-02 168.64 DANCE FESTIVAL EPISODE 0414"\r\n
[2017-02-12 15:01:06.219] [3000] [error]   producer\input\input.cpp(248): Throw in function caspar::ffmpeg::`anonymous-namespace'::<lambda7>::operator ()
Dynamic exception type: class boost::exception_detail::clone_impl<struct caspar::ffmpeg::ffmpeg_error>
std::exception::what: Unknown exception
[struct boost::errinfo_api_function_ *] = avformat_open_input(&weak_context, narrow(resource_name).c_str(), nullptr, nullptr)
13, "Permission denied"[struct caspar::tag_msg_info *] =
[struct caspar::tag_source_info *] = C:\CMedia\\media/67-02 168.64 DANCE FESTIVAL EPISODE 0414

[2017-02-12 15:01:06.329] [3000] [error]   producer\frame_producer.cpp(343): Throw in function class caspar::safe_ptr<struct caspar::core::frame_producer> __cdecl caspar::core::create_producer(const class caspar::safe_ptr<struct caspar::core::frame_factory> &,const class caspar::core::parameters &)
Dynamic exception type: class boost::exception_detail::clone_impl<struct caspar::file_not_found>
std::exception::what: Unknown exception
[struct caspar::tag_arg_value_info *] = media/67-02 168.64 DANCE FESTIVAL EPISODE 0414
[struct caspar::tag_msg_info *] = No match found for supplied commands. Check syntax.

[2017-02-12 15:01:06.329] [3000] [warning] Failed to execute command: LoadCommand on AMCPCommandQueue Channel 1 for Console


Now the climax is, the same file is playing under some conditions and does not play under different conditions.. Following is the summary,
0. This command fails,
Code: Select all
load 1-1 "media/67-02 168.64 DANCE FESTIVAL EPISODE 0414" - Fails to play.

1. If the same file (from the same folder) is played with file extension (ie if '.mov' is added) the file plays without any problem,.
Code: Select all
load 1-1 "media/67-02 168.64 DANCE FESTIVAL EPISODE 0414.mov" - plays good.

2. If the file is renamed to any name within the same original folder e.g (the last '4' was removed) and the file is playing....
Code: Select all
load 1-1 "media/67-02 168.64 DANCE FESTIVAL EPISODE 041" - plays good.
load 1-1 "media/67-02 168.64 DANCE FESTIVAL EPISODE 041444" - also plays good.

3. If the file is copied and played to any other sub folder it plays normally. (For example, the same file is copied to another folder called 'pp'.. From this new 'pp' the same file with the same filename plays nicely)
Code: Select all
load 1-1 "pp/67-02 168.64 DANCE FESTIVAL EPISODE 0414" - plays good.



It completely beats me. I am baffled, even to explain it clearly. What could be the problem?
User avatar
mktsgm
 
Posts: 72
Joined: 14 Apr 2012, 13:39

Re: Peculiar "Load" problem

Postby sonny_xny » 14 Feb 2017, 08:04

I think the problem came from duplicate folder name,
one folder name "media" on your CasparCG server,
and the other folder name "media" came from your NAS.

Try to load the right file from the fullpath rule like this :

viewtopic.php?f=3&t=4313&p=27978&hilit=fullpath#p27971

Cheers,
Sonny
User avatar
sonny_xny
 
Posts: 110
Joined: 06 Jul 2015, 08:59

Re: Peculiar "Load" problem

Postby mktsgm » 16 Feb 2017, 17:29

Thanks. But There are 2000 files in that media/media folder. This has been the structure for the past two years. It has been a smooth ride so far.... Even the encoder, file extensions are same..
User avatar
mktsgm
 
Posts: 72
Joined: 14 Apr 2012, 13:39

Re: Peculiar "Load" problem

Postby sonny_xny » 17 Feb 2017, 05:36

well maybe the problem came from "exclusive open" file state that can be happening when :
1. Your media encoder (services) was not finishing processing the file
2. Your antivirus was open (scanning) the file
3. other Media Player still using the file (preview or playing).

If your media file summary were over 100 files,
you should disable "Thumbnail Generate" option on CCG Server setting.

Disable-Generate-Thumbnails.jpg
Disable-Generate-Thumbnails.jpg (35.98 KiB) Viewed 322 times


Try to eliminate "exclusive" file open on your NAS storage,
if you were using some video encoder system or services,
try to using temporary folder for saving the final result,
and then you can moving the final result into your NAS media folder.

Try to disable your antivirus services on your NAS storage.

Finally, try to disable "public" sharing for your NAS storage,
just using private or limited sharing on your NAS storage.


Don't forget, to check file corrupt on your NAS stograge.

Cheers,
Sonny
User avatar
sonny_xny
 
Posts: 110
Joined: 06 Jul 2015, 08:59

Re: Peculiar "Load" problem

Postby didikunz » 17 Feb 2017, 11:52

Hey Sonny: Cool stuff, some good tipps. Keep up the good work.
Didi Kunz
CasparCG Client-Programmer, Template Maker & Live CG-Operator
Media Support, CH-5722 Gränichen, Switzerland http://mediasupport.ch/
Problems? Guide to posting Bug reports & Feature requests
User avatar
didikunz
 
Posts: 3441
Joined: 10 May 2010, 09:08
Location: Aarau, Switzerland

Re: Peculiar "Load" problem

Postby mktsgm » 17 Feb 2017, 13:00

Thanks sonny...

Thumbnail Generation was already disabled. I will look into the other options.
User avatar
mktsgm
 
Posts: 72
Joined: 14 Apr 2012, 13:39


Return to Tech and Development

Who is online

Users browsing this forum: Bing [Bot], Google Feedfetcher and 6 guests

cron