INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: AVI files not recognized  (Read 12235 times)

rick.ca

  • Citizen of the Universe
  • *****
  • Posts: 3729
AVI files not recognized
« on: October 24, 2008, 06:42:35 am »

I just upgraded to and registered Media Center 13.0.61. I'm using XP SP3. Although the program and my library seemed to be okay, I was reluctant to uninstall MC 12 immediately. I soon found, however, AVI files were being played in MC 12, even though I had deselected all file associations and reset them in MC 13. So I uninstalled MC 12 and rebooted. Then I found AVI files could not be played at all. On further investigation, I found the problem seemed to be restricted to AVI's downloaded in the last several weeks and which had not yet been imported into MC 12 (I have no idea why that might make any difference). As far as I can tell, all older files that were previously imported to MC play fine. MC 13 does not seem to recognize the newer files as valid AVI's (they are—they all play fine in VLC) and it refuses to import them. Thinking this must be a codec problem, I reinstalled the latest version of CCCP. That made no difference. Unfortunately, I did not take note of the DirectShow playback settings I was using (without problems) in MC 12—so I'm not sure how they should be set now. For AVI, it's set to use Video Mixing Renderer 9 with no source or other filters.

I found that by copying the files into another directory and then importing that directory, the files would be imported. By examining them in the Recently Imported playlist, I could see that they were being recognized as data rather than video files (no duration, bit rate, etc.). They would not import before because they were already there, but not visible as video files. So I set Video view to display data files, deleted them, and then tried importing again. They reappeared instantly—all that did was reinstate the database entries. So I "Updated library from tags"—to see if maybe the latest DirectShow settings would make a difference. They seemed to take an unusually long time to scan (about a minute each), but were still not recognized as video files.

So what's happening, and how do I fix this?
Logged

Yaobing

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10926
  • Dogs of the world unite!
Re: AVI files not recognized!!!
« Reply #1 on: October 24, 2008, 07:39:14 am »

You can try the following:

1. In DirectShow Playback Settings, make sure AVI is played in DirectShow, and select AVI Splitter from "Other Filters" list.

2. Find out what video codec is contained in the avi file, and select corresponding video decoder from "Other Filters" list.

3. If the files still are imported as Data, your last resort is to simply change the Media Type from Data to Video in Tag editor.
Logged
Yaobing Deng, JRiver Media Center

rick.ca

  • Citizen of the Universe
  • *****
  • Posts: 3729
Re: AVI files not recognized
« Reply #2 on: October 24, 2008, 03:34:42 pm »

Thanks! Things are working again, but I'm not sure why, so I'll outline what I did...

1. Selected AVI Splitter.

2. GSpot reports codec of these, and other files that do work, as XviD—"codec(s) installed." I didn't see this in the list, so selected ffdshow Video Decoder.

3. The files were still imported as Data, so I changed Media Type and rescanned them (i.e., Update library form tags) to add the media information.

Unfortunately, I didn't try them before doing 1 & 2, but new AVI files work fine. So the problem was clearly restricted to files which had not been imported to the MC 12 library. My theory is my DirectShow settings immediately after installation of MC 13 were incorrect, and video files not previously imported were therefore imported as Data files. Subsequent attempts to play or import the files would fail because they were already in the library, incorrectly typed. If this is correct, I suppose the significant lesson (for me) is MC always uses the media type recorded in the library to determine how a file should be handled, even if the file is opened directly from the file system. And since deleting and reimporting the files just reinstates the erroneous information without rescanning the files, the only way to fix it is to edit the tags, then rescan.
Logged

rick.ca

  • Citizen of the Universe
  • *****
  • Posts: 3729
Re: AVI files not recognized
« Reply #3 on: October 27, 2008, 02:43:06 pm »

It seems my problem is still unresolved. :(

Once again, when I import new videos, the scan is unusually slow and the files end up being imported as Data. This time, however, when I changed Media Type and rescanned them, they were changed back to Data. So I played each one, advancing each to the end before stopping (I don't know why, but I had to do this for this to work). Then when I rescanned them, they updated properly.

Possible cause: The first few files in this batch scanned correctly. The next file was one with an AVI extension, but was actually a null file (when done with a video, I create a null file with the same name and delete the original—as a means of logging my viewing of it). Then all files after that—valid AVI or not—were treated as Data. I wonder if the scanner, after encountering a null AVI, is somehow retaining the notion all AVI's are data.

It seems very likely my problem is the same as 426 videos not to be found, but I don't yet see anything there that might help.
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72438
  • Where did I put my teeth?
Re: AVI files not recognized
« Reply #4 on: October 27, 2008, 03:29:59 pm »

Did you try cccp?
Logged

rick.ca

  • Citizen of the Universe
  • *****
  • Posts: 3729
Re: AVI files not recognized
« Reply #5 on: October 27, 2008, 03:49:41 pm »

...Thinking this must be a codec problem, I reinstalled the latest version of CCCP. That made no difference.

I did so again yesterday—after noticing the problem had returned. BTW, when I first started using MC 12 and CCCP, I believe I did a fairly thorough job of cleaning all previously installed codecs from my system.
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72438
  • Where did I put my teeth?
Re: AVI files not recognized
« Reply #6 on: October 27, 2008, 04:05:41 pm »

Did you install the Divx software?  It can cause problems.
Logged

rick.ca

  • Citizen of the Universe
  • *****
  • Posts: 3729
Re: AVI files not recognized
« Reply #7 on: October 27, 2008, 04:36:06 pm »

No. That's the sort of thing I got rid of when I originally installed CCCP—I followed the advice in the DirectShow Playback Guide.
Logged

rick.ca

  • Citizen of the Universe
  • *****
  • Posts: 3729
Re: AVI files not recognized
« Reply #8 on: October 28, 2008, 05:12:53 pm »

After conducting a "controlled experiment" and studying log files, I found the cause of this behaviour: Once the import of one AVI fails, the program no longer calls the correct analyser, so any subsequent attempt during the current session will fail. My experiment was to import the following files:

E:\Test\1 350 MB video.avi
E:\Test\2 Null file.avi
E:\Test\3 350 MB video.avi

The first and third files are normal AVI videos which have been previously imported (with different names) without incident. The second file is a null file which is expected to "break" the scanner so it will fail to properly import the third file.

As expected, the first file imported correctly. According to the log (and making a long story short), the program calls JRWorker.exe with the /AnalyzeDX parameter to do so.

For the second file, of course, this fails. It tries again with a /AnalyzeRP parameter (apparently something to do with a "RealPlayer engine"). This too fails, and the file is therefore added as a Data type.

Here is where the problem is: When the third file is processed, the program calls JRWorker.exe with /AnalyzeRP, instead of the /AnalyzeDX parameter.

The second part of the test was to change the name of E:\Test\1 350 MB video.avi to E:\Test\4 350 MB video.avi, delete the other two files, and import the folder again. The result was the same—the /AnalyzeRP parameter was used immediately, and the file was imported as Data.

Finally, I shut down MC, changed the name of E:\Test\4 350 MB video.avi to E:\Test\5 350 MB video.avi, restarted MC, and imported the folder again. This time, the file was properly analysed using the /AnalyzeDX parameter, and the file was correctly imported.
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72438
  • Where did I put my teeth?
Re: AVI files not recognized
« Reply #9 on: October 28, 2008, 06:51:23 pm »

Thanks.  We'll check.
Logged

rick.ca

  • Citizen of the Universe
  • *****
  • Posts: 3729
Re: AVI files not recognized
« Reply #10 on: November 19, 2008, 12:26:45 am »

This issue still exists in version 13.0.78. Has anything changed? Should I repeat my experiment? Is there any other information that would help?
Logged

imugli

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1598
Re: AVI files not recognized
« Reply #11 on: November 20, 2008, 07:47:54 pm »

I just upgraded to and registered Media Center 13.0.61. I'm using XP SP3. Although the program and my library seemed to be okay, I was reluctant to uninstall MC 12 immediately. I soon found, however, AVI files were being played in MC 12, even though I had deselected all file associations and reset them in MC 13. So I uninstalled MC 12 and rebooted. Then I found AVI files could not be played at all. On further investigation, I found the problem seemed to be restricted to AVI's downloaded in the last several weeks and which had not yet been imported into MC 12 (I have no idea why that might make any difference). As far as I can tell, all older files that were previously imported to MC play fine. MC 13 does not seem to recognize the newer files as valid AVI's (they are—they all play fine in VLC) and it refuses to import them. Thinking this must be a codec problem, I reinstalled the latest version of CCCP. That made no difference. Unfortunately, I did not take note of the DirectShow playback settings I was using (without problems) in MC 12—so I'm not sure how they should be set now. For AVI, it's set to use Video Mixing Renderer 9 with no source or other filters.

I found that by copying the files into another directory and then importing that directory, the files would be imported. By examining them in the Recently Imported playlist, I could see that they were being recognized as data rather than video files (no duration, bit rate, etc.). They would not import before because they were already there, but not visible as video files. So I set Video view to display data files, deleted them, and then tried importing again. They reappeared instantly—all that did was reinstate the database entries. So I "Updated library from tags"—to see if maybe the latest DirectShow settings would make a difference. They seemed to take an unusually long time to scan (about a minute each), but were still not recognized as video files.

So what's happening, and how do I fix this?

Instead of changing the video settings to play data files, change the "File Type" field in the tag settings from data to Video.

rick.ca

  • Citizen of the Universe
  • *****
  • Posts: 3729
Re: AVI files not recognized
« Reply #12 on: November 21, 2008, 04:41:37 am »

Quote
Instead of changing the video settings to play data files, change the "File Type" field in the tag settings from data to Video.

Yes, Yaobing mentioned this, and I incorporated this in my subsequent testing. The issue is a bug in the video file scanning routine that, in my particular circumstances, renders the scanning function useless.
Logged

imugli

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1598
Re: AVI files not recognized
« Reply #13 on: November 21, 2008, 05:28:59 am »

Yes, Yaobing mentioned this, and I incorporated this in my subsequent testing. The issue is a bug in the video file scanning routine that, in my particular circumstances, renders the scanning function useless.

That'll teach me not to read the whole thread  ::)

rick.ca

  • Citizen of the Universe
  • *****
  • Posts: 3729
Re: AVI files not recognized
« Reply #14 on: November 30, 2008, 05:39:23 pm »

...Here is where the problem is: When the third file is processed, the program calls JRWorker.exe with /AnalyzeRP, instead of the /AnalyzeDX parameter...

This issue still exists in version 13.0.82. Is this going to be fixed?
Logged

Yaobing

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10926
  • Dogs of the world unite!
Re: AVI files not recognized
« Reply #15 on: December 01, 2008, 08:31:03 am »

This issue still exists in version 13.0.82. Is this going to be fixed?

This happens because we are using a testing scheme to decide whether to use DirectShow for a particular file type. When a file of that type fails in DirectShow, we mark it as not playable in DirectShow and try playing/analyzing them using other engines - until MC is restarted. I know this is definitely not a perfect solution, but we have not found a better way of dealing with this.
Logged
Yaobing Deng, JRiver Media Center

rick.ca

  • Citizen of the Universe
  • *****
  • Posts: 3729
Re: AVI files not recognized
« Reply #16 on: December 01, 2008, 04:11:27 pm »

Thanks for the explanation. I've changed my practise of converting AVI's to null files after they've been viewed. I might even use Auto-Import again, but...

It would be helpful if the scan failure event triggered an information message identifying the problem file and the consequences. Whether the testing scheme "works" or not, it seems likely to conceal problems that require user intervention.
Logged

Daydream

  • Citizen of the Universe
  • *****
  • Posts: 771
Re: AVI files not recognized
« Reply #17 on: December 01, 2008, 08:37:08 pm »

I believe issues related to this problem has been reported often enough so far, the current thread plus here, here, and probably a couple of other threads that fell off the first page and I lost track of them. How about we call the entire video importing routine in MC13 broken and have it fixed, instead of creating accolades of temporary solutions on the user side that waste more time than we bargained for?
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72438
  • Where did I put my teeth?
Re: AVI files not recognized
« Reply #18 on: December 02, 2008, 06:37:05 am »

I believe issues related to this problem has been reported often enough so far, the current thread plus here, here, and probably a couple of other threads that fell off the first page and I lost track of them. How about we call the entire video importing routine in MC13 broken and have it fixed, instead of creating accolades of temporary solutions on the user side that waste more time than we bargained for?
The problem is not the program.  The problem is that an AVI file is a container.  It may or may not contain video.  If you've told MC to use DirectShow, and there are no DirectShow filters present for the contents, MC will sort it into the data pile.
Logged

rick.ca

  • Citizen of the Universe
  • *****
  • Posts: 3729
Re: AVI files not recognized
« Reply #19 on: December 02, 2008, 02:08:57 pm »

Quote
If you've told MC to use DirectShow, and there are no DirectShow filters present for the contents, MC will sort it into the data pile.

That's fine. But when the program then (for the rest of the session) processes all valid AVI's as data, it's a problem. This may be necessary to prevent the continued processing of a file type for which the necessary filters are broken. But the program should at least alert the user that a problem exists.
Logged

Daydream

  • Citizen of the Universe
  • *****
  • Posts: 771
Re: AVI files not recognized
« Reply #20 on: December 02, 2008, 10:18:56 pm »

Passing everything to jrworker.exe over what the end-used has almost no control. Only to have it run automatically or not to have it run, and even that if you look at people experiences it's such not a transparent option. MC stands tall above other collection/media center software (my opinion at least) because of it's unusual level of flexibility and options offered, beyond the ones that will be enough for Johnny Average. But where's the ability to re-launch jrworker on individual files or to stop it at once?

[venting removed by JimH]
Logged

rjm

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 2699
Re: AVI files not recognized
« Reply #21 on: December 07, 2008, 04:35:56 pm »

Just ran into this problem for the first time.

GSpot confirmed that one of my avi's had the problem "file truncated in the legacy area". This caused DirectShow to fail and then every avi after that would not import properly.

Solution was to exit and restart MC. AVI's then imported as expected.

[edit]

Forgot to mention that BSPlayer uses DirectShow and plays the bad avi ok. Which leads me to wonder if MC can use DirectShow in a more fault tolerant manner?
Logged

rjm

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 2699
Re: AVI files not recognized
« Reply #22 on: December 07, 2008, 07:31:02 pm »

In case anyone wants to fix one of these problematic avi's, Video Fixer worked well for me.
Logged

rick.ca

  • Citizen of the Universe
  • *****
  • Posts: 3729
Re: AVI files not recognized
« Reply #23 on: December 07, 2008, 08:54:08 pm »

Quote
Which leads me to wonder if MC can use DirectShow in a more fault tolerant manner?

This happens because we are using a testing scheme to decide whether to use DirectShow for a particular file type. When a file of that type fails in DirectShow, we mark it as not playable in DirectShow and try playing/analyzing them using other engines - until MC is restarted. I know this is definitely not a perfect solution, but we have not found a better way of dealing with this.

I don't understand why a file type is marked as unplayable at this point. If another engine succeeds, use it for the rest of the session for that file type. But if they all fail, the sensible conclusion is there is a problem with one file. Log it and continue. If DirectShow fails and another engine succeeds for three files in succession, mark DirectShow unplayable. If all engines fail three times in succession, skip all the files of that type and log the results.
Logged

Raphael Stark

  • Recent member
  • *
  • Posts: 10
Re: AVI files not recognized
« Reply #24 on: January 16, 2009, 09:08:12 am »

Hello, I have the same problem with .dts files. The new are recognized as a data, the other which I imported befor to my library are good recognized. What schould I do?

thanks
RaFi B
 
Logged

Yaobing

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10926
  • Dogs of the world unite!
Re: AVI files not recognized
« Reply #25 on: January 16, 2009, 09:31:39 am »

Hello, I have the same problem with .dts files. The new are recognized as a data, the other which I imported befor to my library are good recognized. What schould I do?

thanks
RaFi B
 

We introduced a new "Playback Method" configuration in MC13.  For dts files you should configure it to use DirectShow.

Go to Tools -> Options, and select "File Types" from the right pane.  In the left pane select "dts Audio (dts)" under Audio, and then choose "JRiver audio engine (using DirectShow)" from the drop-down list "Playback Method".

You may also try configuring DirectShow settings as in MC12.

For those files that were imported as Data, you can select them in MC, under Documents, and change their "Media Type" tag from "Data" to "Audio".
Logged
Yaobing Deng, JRiver Media Center
Pages: [1]   Go Up