Page 1 of 1

unable to determine file format for TS transport stream

Posted: Sat Feb 25, 2012 10:38 am
by WaldoMonster
I get "unable to determine file format" on all my large transport stream files.
I have used a 64bit operating system that supports large integers in PHP.
The error message is the same with two different progragam's I have use to rip the dvd's: MPEG streamclip & VLC.
Any idea what caused this problem?

Re: unable to determine file format

Posted: Sat Feb 25, 2012 1:09 pm
by James Heinrich
MPEG-1 / MPEG-2 video support is very limited in getID3(). I've somehow never found good workable documentation to fully support these formats properly.

If you can send me the first 100kB or 500kB of the file I can try taking a look and see if it's something obvious, but no promises.

Re: unable to determine file format

Posted: Sat Feb 25, 2012 1:48 pm
by WaldoMonster
James Heinrich wrote:MPEG-1 / MPEG-2 video support is very limited in getID3(). I've somehow never found good workable documentation to fully support these formats properly.

If you can send me the first 100kB or 500kB of the file I can try taking a look and see if it's something obvious, but no promises.
Because I coudn't uploud the files on the forum I have send you a mail.

I used this litle script to get the first 500 k:

Code: Select all

$data = file_get_contents ('/data/Video/Music/LIVE - LIVE at the Paradiso (2008).ts',null, null, null, 500*1024);
file_put_contents('/data/first_500k_02.ts', $data);
Can this also be done from the console?

Re: unable to determine file format

Posted: Sat Feb 25, 2012 2:00 pm
by James Heinrich
WaldoMonster wrote:Can this also be done from the console?
On Windows, not easily. On *nix, see head (also tail is related). e.g. head -c512000

Re: unable to determine file format

Posted: Sat Feb 25, 2012 2:47 pm
by WaldoMonster
James Heinrich wrote:On Windows, not easily. On *nix, see head (also tail is related). e.g. head -c512000
Thanks, that is very helpful!
I'm using Linux just for a half year ;-)

Re: unable to determine file format

Posted: Sat Feb 25, 2012 2:48 pm
by James Heinrich
That's half a year more than me ;)

Re: unable to determine file format

Posted: Mon Oct 22, 2012 11:52 am
by angleblue63
ut what about other opensource projects such as ffmpeg? They tend to correctly detect the width x height of FLV files when I convert FLV to MPEG-4 for example?

Re: unable to determine file format

Posted: Mon Oct 22, 2012 12:23 pm
by James Heinrich
angleblue63 wrote:ut what about other opensource projects such as ffmpeg?
What about it?