PDA

View Full Version : Some FLV files show invalid file



Unreal
02-21-2010, 06:54 AM
I have a bunch of short videos in FLV format. Most of them work fine on the PBO, but about 20% of them fail with invalid file displayed. All of the FLV files work just fine on every computer tried, so I researched what was common between the non-working files, and what was different between the working and non-working files. Using MediaInfo I finally discovered that every single file that did not work had a header field of "httphostheader" (that was blank). Not a single one of the working files had that header.

Anyone have any idea what "httphostheader" is in an FLV file or how to edit the header to remove it? I can transcode the file to get rid of it, but I'd prefer to just remove that problem header field since it would be so much faster than transcoding. I'd also like to know why this field causes a problem for the PBO, since it does not cause problems for media players on the computer.

Here is the MediaInfo output of a sample FLV file with the problem...

<<< begin >>>
General
Complete name : G:\Demo1.flv
Format : Flash Video
File size : 19.9 MiB
Duration : 3mn 1s
Overall bit rate : 920 Kbps
httphostheader :

Video
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Main@L3.0
Format settings, CABAC : Yes
Format settings, ReFrames : 3 frames
Muxing mode : Container profile=Unknown@3.0
Duration : 3mn 1s
Bit rate : 801 Kbps
Width : 640 pixels
Height : 480 pixels
Display aspect ratio : 4:3
Frame rate : 29.970 fps
Resolution : 8 bits
Colorimetry : 4:2:0
Scan type : Progressive
Bits/(Pixel*Frame) : 0.087
Stream size : 17.3 MiB (87%)

Audio
Format : AAC
Format/Info : Advanced Audio Codec
Format version : Version 4
Format profile : LC
Format settings, SBR : No
Duration : 3mn 1s
Bit rate : 113 Kbps
Channel(s) : 2 channels
Channel positions : L R
Sampling rate : 44.1 KHz
Stream size : 2.43 MiB (12%)
<<< end >>>

None of the FLV files that work have the httphostheader field, only the ones that fail. Any help with this problem would be appreciated.

snappy46
02-23-2010, 12:36 PM
Thanks for your post; I did not even know that the PBO supported the FLV videos. I have been transcoding YouTube videos; which are FLV on the fly to DVD format (Mpeg2) using mediatomb. I will reconfigure mediatomb so that it does not do transcoding for that file type and see what happen.

By the way I have a similar problem as yours when I stream video using upnp from the apple movie trailer site. Some works fine and others tells me it is an invalid file type altough all the files are quitcktime (.mov) format. I haven't had a chance to look into it yet but I will let you know what I found it might help with your own problem.

I will also try to downloaded the specific quicktime files (one that works and one that doesn't) and see if I have the same results using a share medium (net) versus using upnp. I will also be able to compare the two files and see what the differences are. I am kind of busy these days so it might take me a little of time to get to that however.

*Update: I took off transcoding for youtube and everything still work perfect so that is good. As for the Apple trailer not working somehow this only happen when I select the 640 stream; when I setup the 720p stream then all the trailer worked perfectly. So the issue seem to be at the 640 resolution only. Too bad my Internet connection is not fast enough to keep up with the 720p stream and I occur a lot of shutter so I will have to live with the few 640 stream trailer that does not work.

Unreal
02-24-2010, 05:21 AM
Hi Snappy,

Well, most of my FLV files work fine on the PBO too, but about 15-20% of them fail. For comparison, please tell me what happens for you with this video when you do not do any transcode...

http://www.youtube.com/watch?v=N9qYF9DZPdw&fmt=35

Thanks

muvipix
02-24-2010, 10:24 AM
http://www.patriotmem.com/forums/showpost.php?p=14022&postcount=6

snappy46
02-25-2010, 12:07 AM
Hi Unreal,

I had no problem playing that video on the PBO using both type of YouTube video container (Mpeg4 and FLV). I use UPnP and the video was streamed using mediatomb without any transcoding apply to it.

I am guessing that this video does not work for you???

Unreal
02-25-2010, 02:59 AM
Right, it does not work for me. I have to transcode it to get it working. I thought muvipix might be on to something with the codec (or the encoder), but if the same video works for you and not me, maybe its something in the YT downloader I'm using. I decided to just go ahead and transcode the ones that don't work, since I now know what to look for in the MediaInfo output (httphostheader). Thanks for the feedback.

muvipix
02-25-2010, 10:21 AM
Hi Unreal,

I had no problem playing that video on the PBO using both type of YouTube video container (Mpeg4 and FLV). I use UPnP and the video was streamed using mediatomb without any transcoding apply to it.

I am guessing that this video does not work for you???

The PBO is NOT doing the work there. Your server software is still sending the stream. Otherwise, the PBO could play it (the culprit file) natively.

Unreal, if you're using a server software as well, you may just need the proper codecs installed.

snappy46
02-25-2010, 02:10 PM
Muvpix, I can play that video without any transcode hence the codec do not even come into play. The stream is taken by the media server (In this case mediatomb) and basically just pass to the PBO without being modify into any other format.

In other words codec should not be needed to play this video.

Unreal how do you play that video? UPnP, Shared folder, Hdd or USB mount etc... Are you streaming that video or saving it on you computer and play it from there? It is strange that this video works for me but not for you. Just to make sure that I have the right video this is a Al yankovich... or whatever is name is music video..correct??? If that is correct there should not be any need to convert this video it should play fine without any conversion.

What PBO firmware version are you using?

wigout
02-25-2010, 02:58 PM
The Weird Al Yankovic video downloaded as a flv (both the high quality flv and the regular) will not play on my PBO.

I copied the files to the internal hard drive of the pbo, browsed to them and got the invalid file warning.

Here's the codec info from mplayer classic properties for the low quality flv:


General
Complete name : test flv low Weird Al Yankovic - White & Nerdy.flv
Format : Flash Video
File size : 6.56 MiB
Duration : 2mn 50s
Overall bit rate : 323 Kbps
httphostheader :

Video
Format : H.263
Duration : 2mn 50s
Bit rate : 256 Kbps
Width : 400 pixels
Height : 224 pixels
Display aspect ratio : 16:9
Frame rate : 29.917 fps
Bits/(Pixel*Frame) : 0.096
Stream size : 5.20 MiB (79%)

Audio
Format : MPEG Audio
Format version : Version 2
Format profile : Layer 3
Format_Settings_Mode : Joint stereo
Format_Settings_ModeExtension : MS Stereo
Duration : 2mn 50s
Bit rate mode : Variable
Bit rate : 58.7 Kbps
Channel(s) : 2 channels
Sampling rate : 22.05 KHz
Stream size : 1.19 MiB (18%)


And here's the same info from the high quality flv:

General
Complete name : test flv high Weird Al Yankovic - White & Nerdy.flv
Format : Flash Video
File size : 27.1 MiB
Duration : 2mn 50s
Overall bit rate : 1 332 Kbps
httphostheader :

Video
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Main@L3.1
Format settings, CABAC : Yes
Format settings, ReFrames : 3 frames
Muxing mode : Container profile=Unknown@3.1
Duration : 2mn 50s
Bit rate : 1 202 Kbps
Width : 854 pixels
Height : 480 pixels
Display aspect ratio : 16:9
Frame rate : 29.970 fps
Resolution : 8 bits
Colorimetry : 4:2:0
Scan type : Progressive
Bits/(Pixel*Frame) : 0.098
Stream size : 24.5 MiB (90%)

Audio
Format : AAC
Format/Info : Advanced Audio Codec
Format version : Version 4
Format profile : LC
Format settings, SBR : No
Duration : 2mn 50s
Bit rate : 125 Kbps
Channel(s) : 2 channels
Channel positions : L R
Sampling rate : 44.1 KHz
Stream size : 2.55 MiB (9%)



So... no VP6 Flash encoding on these files. Though, on other flv files of mine that have failed, I have seen that video codec, too.

-wigout

muvipix
02-25-2010, 02:59 PM
Muvpix, I can play that video without any transcode hence the codec do not even come into play. The stream is taken by the media server (In this case mediatomb) and basically just pass to the PBO without being modify into any other format.

In other words codec should not be needed to play this video.

If you're playing it through a server software, the codec is at the originating source, not the PBO. I didn't say it was being modified, but it's being encoded at the source.

Try playing the file directly on your PBO. You'll see what I mean.

muvipix
02-25-2010, 03:06 PM
So... no VP6 Flash encoding on these files. Though, on other flv files of mine that have failed, I have seen that video codec, too.

There are many flavors of FLV Video (as many other video formats). Just chalk up another that won't play on the PBO. I'm sure they can include these codecs in an update.

snappy46
02-25-2010, 04:59 PM
Hi Muvipix,

Now you really peak my curiousity; I am not home right now but I will give this a try tonight to see what happen. I still not really sure what you mean by the FLV being encoded at the source. Do you mean that youtube somehow feeds me a format that it detects as being acceptable to my setup??

I am pretty sure that the video I viewed had the following caracteristic when I pressed the display button: Low resolution: 400 X 224 sounds right but I believe that the video format displayed was H.264 not H.263 as indicated by wigout.... Hmmm I will have to look at that again. I tought the H.263 format was no longer available since Feb 2009 on You tube see link below:

http://en.wikipedia.org/wiki/YouTube

I guess I am missing a few pieces of the puzzles...

wigout
02-25-2010, 06:19 PM
Also just wanted to chime in that the original poster had noted the presence of the "httphostheader " in MediaInfo (I accessed through mplayer); I noted the same header on all of the flv's that could not play- except for the VP6 Flash Videos, which don't produce the "Invalid File!!" warning and instead play audio but no video. YMMV

A googling of httphostheader and video/video codec and/or metadata produced nothing of relevance.

-wigout

muvipix
02-25-2010, 06:53 PM
I happened to notice that as well.

wigout
02-25-2010, 07:58 PM
The M of RTFM states:

FLV support [up to] 352x288

All of our non-playable examples in this thread exceed that limit.

-wigout

muvipix
02-25-2010, 08:00 PM
Nope, not the issue... I've played 640x480 content without a problem.

Unreal
02-25-2010, 11:09 PM
For reference, I downloaded that YT video to a USB drive, then moved the USB drive to the PBO and play it from there. I am using the latest P02 firmware, and I suspect the manual is only for P01. I have tons of FLV files at full 720p that work just fine, so I don't think resolution is the issue. In my case, about 80-85% of the files play just fine. The only ones that fail all have httphostheader in the MediaInfo output, and httphostheader does not appear in any of the FLVs that work. Of course, all of the files play fine on the computer, with or without httphostheader. It is not clear to me if httphostheader is put in there by the YT downloader, or if it is something encoded into the file itself. It is also not clear to me whether httphostheader is the cause of the problem for the PBO, or just another symptom of some other cause. Any insight is appreciated as I would prefer not to transcode the videos. FWIW, I transcode the FLV to MKV and it works fine, it just takes time I'd rather use watching videos ;)

snappy46
02-26-2010, 01:02 AM
Ok I downloaded the video and play it through the net. No surprise there it did not work. This is very strange I am not sure what the difference is between streaming the video using UPnP directly from Youtube and saving it to play locally.

That probably won't help much but that saved video did not play on my standard movie player (Mplayer for Linux). It give me error in the stream but video plays fine using VLC player for Linux. I know that the VLC player is pretty good at playing anything I throw at it.

aasoror
02-26-2010, 01:55 AM
This is very strange I am not sure what the difference is between streaming the video using UPnP directly from Youtube and saving it to play locally.


The difference is UPnP trans-codes.

muvipix
02-26-2010, 10:49 AM
This is very strange I am not sure what the difference is between streaming the video using UPnP directly from Youtube and saving it to play locally.


The difference is UPnP trans-codes.
Alas, I tried to convey the same, still doesn't believe it.

snappy46
02-26-2010, 03:13 PM
Alas, I tried to convey the same, still doesn't believe it.

Nothing to do with not believing as much as not understanding it. I don't mean to be a pain about that I am just trying to understand what is going on. As far as I understand UPnP is just a set of computer network protocols to allow devices to connect seamlessly and to simplify the implementation of networks. According to this definition here are some assumptions that maybe correct or incorrect:

1) UPnP does not provide for any kind of transcoding; data may be wrap inside different protocol but the actual data (in this case the video file) remains as is.

2) If the data remains unchange as per assumption 1) then the codec to play that file is available on the PBO since it plays the file properly when steamed directly from You Tube through my media server.

3) This is not an assumption but more of a fact; my media server (mediatomb)does not do any transcoding because it is set up that way. The only transcoding it does are for internet radio station using the Ogg format and does transcode that to mp3. I am not using tversity here which I know automatically transcode Youtube video to a format more accessible to the various media players.

So based upon those assumptions I would have to guess that the only reason it works using UPnP is because of the way that the data is presented to the PBO not the actual codec support for that file... well maybe ????

Can anyone shed some light on this and tell me which one of my assumption is incorrect if not all.....

muvipix
02-26-2010, 03:27 PM
Touche. You bring up some valid points.

BTW, you can tell TVersity not to transcode as well. Works quite well. It's a good test (how ever this all works). I haven't tested in a while, but on some files, if I turned transcode off, PBO (and my DirecTV box) wouldn't play some of the files. But, there's also a selection to "transcode when needed" - this solved the problem of the boxes not being able to play the particular files.

wigout
02-28-2010, 01:26 PM
As a test I went to youube's main video page then selected hd.
http://www.youtube.com/videos?s=mphd
I opened and downloaded the flv versions of the first 7 videos. When copied over to the internal drive on the pbo (that is, no transcoding is involved), only one of the videos played.

Now my library of downloaded videos have been pieced together over a few years from a number of sources. Most of the old flv's I'd downloaded seem to play.

If anyone wants to try something similar I'd be interested in know the results.

The FLV size limit mentioned in the manual certainly isn't true. After I noticed that limit I paid attention and have had some flv's over that 352x288 that have played.

-wigout

Beetlebug01
03-01-2010, 02:57 PM
I'm a newbie to forum and the Patriot Box Office, so bear with me here. I just want to put my own 2 cents worth in on my experiences with playing FLV media files. Out of the 30 or so FLV videos I loaded into the HDD I installed on the PBO, it will play just over 1/2 of them. Either get the Invalid File error, or it will play the audio track and blank video. I tried to find a corralation with what codecs are involved with each file. I used VLC media player to play the particular file in question on the computer and called up the media information window. Here's what I learned: If the video codec says VP6F, PBO plays only the audio portion and blank screen. This happens on ALL videos with this video codec. If video has h264 video and mp4a audio codec, SOME files play, but not all! I don't know what else is affecting it here. If video codec is FLV1, video plays fine. Thanks! I realize some people on the board here are far more advanced than me on this stuff and I hope they help Patriot resolve this issue in future firmware updates. I have posted other issues on this forum in the appropriate areas regarding other problems and issues. After going through the so called manual, I found that they show a size parameter of the FLV file listed as 352x288. That's crazy. Welp, maybe that is a reason some files work and some don't? Hope that gets fixed soon.

wigout
05-04-2010, 09:53 PM
Hi Snappy,

Well, most of my FLV files work fine on the PBO too, but about 15-20% of them fail. For comparison, please tell me what happens for you with this video when you do not do any transcode...

http://www.youtube.com/watch?v=N9qYF9DZPdw&fmt=35

Thanks


The above video downloaded as an flv plays on the pbo under p05. The "httppostheader" error, for lack of a better insight into the problem, seems solved under firmware 05.

-wigout

Unreal
05-05-2010, 06:01 AM
Thanks for the update wigout.