Page 1 of 1

Problem when trying to play .avi

Posted: 24 May 2008 11:35
by rubendg
Hi,

I just downloaded some tv epdisodes in supossibly avi format. (the file suffix states .avi)
When I try to play the file nothing happens. The message log looks like this:

Code: Select all

main debug: CPU has capabilities 486 586 MMX MMXEXT SSE SSE2 FPU main debug: looking for memcpy module: 3 candidates main debug: using memcpy module "memcpymmxext" main debug: waiting for thread completion main debug: thread 42914816 (playlist) created at priority -47 (playlist/playlist.c:184) main debug: waiting for thread completion main debug: thread 41960960 (preparser) created at priority -47 (playlist/playlist.c:210) main debug: looking for interface module: 1 candidate main debug: using interface module "hotkeys" main debug: thread 42155008 (interface) created at priority -47 (interface/interface.c:198) main debug: looking for interface module: 3 candidates main debug: using interface module "macosx" main debug: thread 42052608 (manage) created at priority -47 (interface/interface.c:164) main debug: adding playlist item `24_101__12.AM.to.1.AM--.avi' ( /Users/r/Desktop/24--/Day.1/24_101__12.AM.to.1.AM--.avi ) main debug: creating new input thread main debug: waiting for thread completion main debug: creating statistics handler main debug: `/Users/r/Desktop/24--/Day.1/24_101__12.AM.to.1.AM--.avi' gives access `' demux `' path `/Users/r/Desktop/24--/Day.1/24_101__12.AM.to.1.AM--.avi' main debug: creating demux: access='' demux='' path='/Users/r/Desktop/24--/Day.1/24_101__12.AM.to.1.AM--.avi' main debug: looking for access_demux module: 1 candidate main debug: thread 43478016 (input) created at priority 37 (input/input.c:265) main debug: creating access '' path='/Users/r/Desktop/24--/Day.1/24_101__12.AM.to.1.AM--.avi' main debug: looking for access2 module: 6 candidates vcd debug: trying .cue file: /Users/r/Desktop/24--/Day.1/24_101__12.AM.to.1.AM--.cue vcd debug: could not find .cue file access_file debug: opening file `/Users/r/Desktop/24--/Day.1/24_101__12.AM.to.1.AM--.avi' main debug: using access2 module "access_file" main debug: pre-buffering... main debug: received first data for our buffer main debug: pre-buffering done 1408981 bytes in 0s - 447611 kbytes/s main debug: creating demux: access='' demux='' path='/Users/r/Desktop/24--/Day.1/24_101__12.AM.to.1.AM--.avi' main debug: looking for demux2 module: 44 candidates macosx debug: input has changed, refreshing interface ffmpeg debug: couldn't guess format ps warning: this does not look like an MPEG PS stream, continuing anyway main debug: using demux2 module "ps" main debug: looking for a subtitle file in /Users/r/Desktop/24--/Day.1/ main debug: `/Users/r/Desktop/24--/Day.1/24_101__12.AM.to.1.AM--.avi' successfully opened ps warning: garbage at input, trying to resync... ps warning: found sync code ps warning: garbage at input, trying to resync... main debug: selecting program id=0 main debug: looking for decoder module: 25 candidates main debug: using decoder module "mpeg_audio" main debug: thread 43545088 (decoder) created at priority 37 (input/decoder.c:159) ps warning: found sync code ps warning: garbage at input, trying to resync... ps warning: found sync code main debug: EOF reached macosx debug: input has stopped, refreshing interface main debug: closing input main debug: removing module "mpeg_audio" main debug: thread 43545088 joined (input/decoder.c:191) main debug: killing decoder fourcc `mpga', 0 PES in FIFO main debug: Program doesn't contain anymore ES main debug: removing module "ps" main debug: removing module "access_file" main debug: thread 43478016 joined (input/input.c:412) main: nothing to play main debug: adding playlist item `24_101__12.AM.to.1.AM--.avi' ( stream:///Users/r/Desktop/24--/Day.1/24_101__12.AM.to.1.AM--.avi ) main debug: creating new input thread main debug: waiting for thread completion main debug: thread 43442688 (input) created at priority 37 (input/input.c:265) main debug: `stream:///Users/r/Desktop/24--/Day.1/24_101__12.AM.to.1.AM--.avi' gives access `stream' demux `' path `/Users/r/Desktop/24--/Day.1/24_101__12.AM.to.1.AM--.avi' main debug: creating demux: access='stream' demux='' path='/Users/r/Desktop/24--/Day.1/24_101__12.AM.to.1.AM--.avi' main debug: looking for access_demux module: 0 candidates main warning: no access_demux module matched "stream" main debug: creating access 'stream' path='/Users/r/Desktop/24--/Day.1/24_101__12.AM.to.1.AM--.avi' main debug: looking for access2 module: 6 candidates access_file debug: opening file `/Users/r/Desktop/24--/Day.1/24_101__12.AM.to.1.AM--.avi' main debug: using access2 module "access_file" main debug: pre-buffering... main debug: received first data for our buffer main debug: pre-buffering done 1408981 bytes in 0s - 352177 kbytes/s main debug: creating demux: access='stream' demux='' path='/Users/r/Desktop/24--/Day.1/24_101__12.AM.to.1.AM--.avi' main debug: looking for demux2 module: 44 candidates ffmpeg debug: couldn't guess format ps warning: this does not look like an MPEG PS stream, continuing anyway main debug: using demux2 module "ps" main debug: `stream:///Users/r/Desktop/24--/Day.1/24_101__12.AM.to.1.AM--.avi' successfully opened ps warning: garbage at input, trying to resync... ps warning: found sync code main debug: selecting program id=0 main debug: looking for decoder module: 25 candidates main debug: using decoder module "mpeg_audio" main debug: thread 43849728 (decoder) created at priority 37 (input/decoder.c:159) ps warning: garbage at input, trying to resync... ps warning: found sync code ps warning: garbage at input, trying to resync... macosx debug: input has changed, refreshing interface ps warning: found sync code main debug: EOF reached macosx debug: input has stopped, refreshing interface main debug: closing input main debug: removing module "mpeg_audio" main debug: thread 43849728 joined (input/decoder.c:191) main debug: killing decoder fourcc `mpga', 0 PES in FIFO main debug: Program doesn't contain anymore ES main debug: removing module "ps" main debug: removing module "access_file" main debug: thread 43442688 joined (input/input.c:412) main: nothing to play main debug: adding playlist item `24_101__12.AM.to.1.AM--.avi' ( /Users/r/Desktop/24--/Day.1/24_101__12.AM.to.1.AM--.avi ) main debug: creating new input thread main debug: waiting for thread completion main debug: thread 43075072 (input) created at priority 37 (input/input.c:265) main debug: `/Users/r/Desktop/24--/Day.1/24_101__12.AM.to.1.AM--.avi' gives access `' demux `' path `/Users/r/Desktop/24--/Day.1/24_101__12.AM.to.1.AM--.avi' main debug: creating demux: access='' demux='' path='/Users/r/Desktop/24--/Day.1/24_101__12.AM.to.1.AM--.avi' main debug: looking for access_demux module: 1 candidate main debug: creating access '' path='/Users/r/Desktop/24--/Day.1/24_101__12.AM.to.1.AM--.avi' main debug: looking for access2 module: 6 candidates vcd debug: trying .cue file: /Users/r/Desktop/24--/Day.1/24_101__12.AM.to.1.AM--.cue vcd debug: could not find .cue file access_file debug: opening file `/Users/r/Desktop/24--/Day.1/24_101__12.AM.to.1.AM--.avi' main debug: using access2 module "access_file" main debug: pre-buffering... main debug: received first data for our buffer main debug: pre-buffering done 1408981 bytes in 0s - 73380 kbytes/s main debug: creating demux: access='' demux='' path='/Users/r/Desktop/24--/Day.1/24_101__12.AM.to.1.AM--.avi' main debug: looking for demux2 module: 44 candidates ffmpeg debug: couldn't guess format ps warning: this does not look like an MPEG PS stream, continuing anyway main debug: using demux2 module "ps" main debug: looking for a subtitle file in /Users/r/Desktop/24--/Day.1/ main debug: `/Users/r/Desktop/24--/Day.1/24_101__12.AM.to.1.AM--.avi' successfully opened ps warning: garbage at input, trying to resync... ps warning: found sync code ps warning: garbage at input, trying to resync... main debug: selecting program id=0 main debug: looking for decoder module: 25 candidates main debug: using decoder module "mpeg_audio" main debug: thread 44065792 (decoder) created at priority 37 (input/decoder.c:159) macosx debug: input has changed, refreshing interface ps warning: found sync code ps warning: garbage at input, trying to resync... ps warning: found sync code main debug: EOF reached macosx debug: input has stopped, refreshing interface main debug: closing input main debug: removing module "mpeg_audio" main debug: thread 44065792 joined (input/decoder.c:191) main debug: killing decoder fourcc `mpga', 0 PES in FIFO main debug: Program doesn't contain anymore ES main debug: removing module "ps" main debug: removing module "access_file" main debug: thread 43075072 joined (input/input.c:412) main: nothing to play
I noticed the following two lines:

Code: Select all

ffmpeg debug: couldn't guess format ps warning: this does not look like an MPEG PS stream, continuing anyway
Apparently something is wrong with the video, but I'm puzzled on how to solve the problem.
Any suggestions?

Thanx in advance!

Re: Problem when trying to play .avi

Posted: 24 May 2008 14:30
by ph0t0n
Is it really an AVI file? It could possibly have been misnamed. Check by doing a 'file <filename>' in terminal, which will report file headers that should give you a clue to its origin. If OK, does it play in other media players?

Re: Problem when trying to play .avi

Posted: 24 May 2008 17:08
by rubendg

Code: Select all

$ file 24_101__12.AM.to.1.AM--.avi 24_101__12.AM.to.1.AM--.avi: data
I tried playing the file in Quicktime (responded with, this is no movie file), Mplayer (did nothing) and of course VLC none of them succeeded...

Might it be that the avi header is corrupted? Is there a way to repair such damage?

Re: Problem when trying to play .avi

Posted: 24 May 2008 17:20
by ph0t0n
I have no idea. It seems to me that the file was never an AVI container to begin with, and if so, there is no header to repair (as file seems to indicate by reporting just 'data'). You could always try what I just did:

http://www.google.com/search?hl=en&q=re ... gle+Search

Re: Problem when trying to play .avi

Posted: 25 May 2008 06:04
by ajay
" just downloaded some tv epdisodes in supossibly avi format. (the file suffix states .avi)"

There are lots of spammers too. You need to know what you are downloading. I am guessing it is torrent file. Read the comments first. There may be warning posted by other users.

Re: Problem when trying to play .avi

Posted: 25 May 2008 16:39
by rubendg
http://www.mininova.org/tor/887106
Yes, I did check the comments and found nothing pointing to any problems.

By the way I think I found what is causing the problem. I looked into the file with a hex editor and found that the RIFF (http://www.jmcgowan.com/avitech.html#Format) header is missing. Now it's just a matter of finding the right software to recreate the missing header.

Thanks everybody for the assistance.