2009-04-13, 01:06
I was told not long ago that rtmpdump uses code from the XBMC project so I'm hoping someone here can answer an rtmpdump question for me.
I am currently helping debug a project that allows MLB.TV subscribers to watch the content without using a web browser or flash plugin.
Basically, here is the problem. We are using a patched version of rtmpdump to get the data off the server. MLB.TV uses MP4 files, but the files downloaded by rtmpdump have FLV headers. I am able to use a FLV demuxer to extract the elementary streams, which are h.264 video and AAC audio. Once extracted, these files play fine, which tells me that the raw file downloaded by rtmpdump would play if only the header correctly identified it as MP4.
Can anyone tell me to what extent rtmpdump "processes" files when downloading? My working theory is that rtmpdump begins by writing the 9-byte FLV header then simply appends the data gathered from the server without further processing. Is this more or less correct?
If anyone could work with me on figuring some of this stuff out, I'd really appreciate it. I think the bottom line is that the created MP4 files merely have an incorrect FLV header and if that could be corrected, the files would play perfectly.
Thanks in advance!
I am currently helping debug a project that allows MLB.TV subscribers to watch the content without using a web browser or flash plugin.
Basically, here is the problem. We are using a patched version of rtmpdump to get the data off the server. MLB.TV uses MP4 files, but the files downloaded by rtmpdump have FLV headers. I am able to use a FLV demuxer to extract the elementary streams, which are h.264 video and AAC audio. Once extracted, these files play fine, which tells me that the raw file downloaded by rtmpdump would play if only the header correctly identified it as MP4.
Can anyone tell me to what extent rtmpdump "processes" files when downloading? My working theory is that rtmpdump begins by writing the 9-byte FLV header then simply appends the data gathered from the server without further processing. Is this more or less correct?
If anyone could work with me on figuring some of this stuff out, I'd really appreciate it. I think the bottom line is that the created MP4 files merely have an incorrect FLV header and if that could be corrected, the files would play perfectly.
Thanks in advance!