[Logo] Air Video Forum
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Moderation Log] Moderation Log   [Register] Register / 
[Login] Login 
Messages posted by: glw
Forum Index » Profile for glw » Messages posted by glw
Author Message
BTW - I was able to solve my problems with files being marked "invalid" by AirVideo by either

1. re-ripping the movies using handbrake without selecting the closed caption subtitle or
2. removing all the text streams except appletext and mp4s using MP4Box and AtomicParsley
Admin wrote:
glw wrote:Also, when you open the "invalid" file using AirVideo, it indicates that "No Video Stream found in file." Which is obviously incorrect because the file plays in practicaly all other players.

It seems the major problem is what AirVideo does when a small irregularity exists in the header...

It fails to read the file header that is why it says "No Video Stream" found in file. This is not a small irregularity. The atom size is important. In some cases with some files the size of mdat atom can be computed from file size, but with certain files this will not be computed correctly. It is hacky at very least. I can't believe handbrake would even generate such files unless something got wrong during the transcoding and it didn't finish the muxing process.


Thanks for your assistance! As a work around, I'm using another ripper on these few DVD's since it appears Handbrake can't rip them properly.

In any case, I still think the fact that everything else can play the files indicates that the missing information is not critical. Also, the error message displayed by AirVideo is incorrect and should read "Header malformed" or something to that extent - instead of "No Video Stream found in file" that is displayed now.
Tikker wrote:rip movies properly, and you won't have any problems



asking for compatibility with oddball configs rather than just ripping them to an approved format seems goofy to me

you know not of what you comment.

It is better to keep your mouth closed and let people think you are a fool than to open it and remove all doubt.
Mark Twain

Admin wrote:So the first one opens with quick time but not with Air Video? Sorry, I must have overlooked that.


So, I purchased DVDFab DVD Ripper and re-ripped one of the files using that instead of Handbrake. The new file is no longer listed as "invalid" and plays just fine with AirVideo client. But I stand by my earlier comments that AirVideo has problems playing files that other players can play.
Also, when you open the "invalid" file using AirVideo, it indicates that "No Video Stream found in file." Which is obviously incorrect because the file plays in practicaly all other players.

It seems the major problem is what AirVideo does when a small irregularity exists in the header...
Since all the other players that I've listed can play the affected files without problems, it seems that the file not having the MDAT ATOM size isn't critical to the playing process. I would think it would be smarter for AirVideo to, at a minimum, at least follow the competition and play the file and maybe just add a notification to the user that the MDAT ATOM size is not valid.

PS: StreamToMe (direct competitor to Air Video) plays the Air Video "INVALID" files fine and even reports the movie size in bytes and time.

Admin wrote:Hi,

perhaps if you could send me header from a file that QuickTime can play that Air Video can't I could look at that too, as that would be likely a different issue. The file you've sent me is clearly invalid. It is possible that some other players can handle it (because they have workaround for this specific atom size missing), but workarounds such as this lead to creating invalid files without people noticing, so I'm not very keen on doing this. I'm sure there are tools that can remux the file without transcoding. I'm not sure though why other tools based on ffmpeg would handle the file (unless the demuxer has changed in the meanwhile).


i already did exactly what you are asking... see my earlier post where i provided two header samples.
Admin wrote:I've never seen handbrake generating a file without mdat atom size set. If it is indeed doing this it is a bug as such file is invalid (that's why quicktime can't open it either). VLC seems to have a workaround for broken files.

Hmmm... That's wierd... Everything else, not just VLC, can play them. The apps included in that list (that i've tested) that can play them are Boxee app on iPad, Boxee Box, StreamToMe on iPhone and iPad (your direct competitor), VLC on Windows and Mac, Windows Media Player, and XBMC on Windows. QuickTime can even play some of them that Air Video client marks as invalid. It seems to me that Air Video client is the most restrictive and the odd one out not the other way around as you imply.

Is there any tool or way to validate/change/update the headers without going through the ripping process again?

Admin wrote:Where is the file from? It seems like it is unfinished - the mdat atom doesn't have size set. This can happen when the muxer is interrupted before it writes the mdat atom size, which is usually the last muxing step.


these and practically all the files are from handbrake using any dvd hd. handbrake shows no errors.

i've ripped the beetlejuice file many times with the same result and the others at least twice and continue to get the same result.

PS: i have dvdfab blu-ray ripper but rarely use it. i don't have their dvd ripper.
Admin wrote:On mac you can enter the following command in Terminal (Applications -> Utilities -> Terminal)

head -c 4096 <path to your file> > ~/Desktop/file.out

i.e.

head -c 4096 ~/Desktop/mymovie.mp4 > ~/Desktop/file.out

if you place the original file to Desktop and iti s named mymovie.mp4

It should create a new file called file.out on your Desktop.


Both headers are from files that are marked "invalid" by the Air Video client.

beetlejuice.out is from a file that WILL play in QuickTime
brainstorm.out is from a file that WILL NOT play in QuickTime

I have many more samples if needed (out of 300 or so there are around 20 AV invalids and maybe 60 that won't play in QT)

Admin wrote:What operating system are you using?


i have both pc's and mac's. windows 7 and osx snow leopard or lion.

Admin wrote:Are you saying that QuickTime can't open the file either? I don't need the entire file, first couple of kilobytes should be sufficient.


yes, the files work fine in everything except quicktime and air video client.

i'm out of town this weekend and won't be home until tuesday 4/24. i can post the file then.

how do you suggest i extract out just the beginning part of the file?

Admin wrote:MP4 format incompatibilities are quite rare, especially like this. Do you have a reasonably small file that you can provide for me to reproduce the problem?


the files must have video and audio since they play fine in everything else... the air video client (and quicktime) must be looking for something that the other players don't or consider something as bad that the others don't. quicktime says the problem is the short description but i don't understand how check or correct that.

ps: unless you think 600+ mb is reasonably sized, i don't have any to provid since they are all handbrake rips of movies in my library.

Admin wrote:There seems to be something really wrong with the file (or for some reason the process can't read the file at all). Can you check permissions? Is the file really MP4 (not some other format with renamed extension)?


the file plays fine in everything (boxee box, windows media, vlc, etc.) except air video client and quicktime...

from the logs it seems ffmpeg is having trouble with the file (maybe the header). since it works in everything else, maybe ffmpeg requires something the others don't!
Admin wrote:Can you post here thumbnail generation log for such file?


more...


===================================================================================================
2012-04-19 09:00:51 Thumbnail: ffmpeg version 0.7, Copyright (c) 2000-2011 the Libav developers
2012-04-19 09:00:51 Thumbnail: built on Nov 9 2011 12:00:29 with gcc 4.5.2
2012-04-19 09:00:51 Thumbnail: This program is not developed anymore and is only provided for compatibility. Use avconv instead (see Changelog for the list of incompatible changes).
2012-04-19 09:00:51 Thumbnail: [mov,mp4,m4a,3gp,3g2,mj2 @ 002f81a0] error reading header: -1
2012-04-19 09:00:51 Thumbnail: W:\Movies\Contagion (2011).mp4: Operation not permitted
2012-04-19 09:00:51 Thumbnail: >>
395821474B69747C697A763B5D72777E68475A72694D727F7E74487E696D7E69477D7D766B7E7C357E637E393B3668683B2B352B3B366D7D697A767E
683B2A3B36723B394C214756746D727E68475874756F7A7C7274753B33292B2A2A3235766B2F393B367D3B76716B7E7C3B36
<<

===================================================================================================
2012-04-19 09:00:51 Thumbnail: ffmpeg version 0.7, Copyright (c) 2000-2011 the Libav developers
2012-04-19 09:00:51 Thumbnail: built on Nov 9 2011 12:00:29 with gcc 4.5.2
2012-04-19 09:00:51 Thumbnail: This program is not developed anymore and is only provided for compatibility. Use avconv instead (see Changelog for the list of incompatible changes).
2012-04-19 09:00:51 Thumbnail: [mov,mp4,m4a,3gp,3g2,mj2 @ 002e81a0] error reading header: -1
2012-04-19 09:00:51 Thumbnail: W:\Movies\Contagion (2011).mp4: Operation not permitted
2012-04-19 09:00:51 Thumbnail: >>
395821474B69747C697A763B5D72777E68475A72694D727F7E74487E696D7E69477D7D766B7E7C357E637E393B3668683B2D2B352B3B366D7D697A76
7E683B2A3B36723B394C214756746D727E68475874757A753B6F737E3B597A69797A69727A753B33292B2A2A3235766B2F393B367D3B76716B7E7C3B
36
<<


===================================================================================================
2012-04-19 09:04:36 Thumbnail: ffmpeg version 0.7, Copyright (c) 2000-2011 the Libav developers
2012-04-19 09:04:36 Thumbnail: built on Nov 9 2011 12:00:29 with gcc 4.5.2
2012-04-19 09:04:36 Thumbnail: This program is not developed anymore and is only provided for compatibility. Use avconv instead (see Changelog for the list of incompatible changes).
2012-04-19 09:04:36 Thumbnail: [mov,mp4,m4a,3gp,3g2,mj2 @ 015681c0] error reading header: -1
2012-04-19 09:04:36 Thumbnail: W:\Movies\I Am Legend (2007).mp4: Operation not permitted
2012-04-19 09:04:37 Thumbnail: >>
395821474B69747C697A763B5D72777E68475A72694D727F7E74487E696D7E69477D7D766B7E7C357E637E393B3668683B2D2B352B3B366D7D697A76
7E683B2A3B36723B394C214756746D727E684752753B4F72767E3B33292B2A2A3235766B2F393B367D3B76716B7E7C3B36
<<

 
Forum Index » Profile for glw » Messages posted by glw
Go to:   
Powered by JForum 2.1.8 © JForum Team