Can't stream f4v file

156 views
Skip to first unread message

Peter Ajamian

unread,
May 30, 2012, 4:20:58 PM5/30/12
to c-rtmp...@googlegroups.com
I can stream flv files just fine, but when I try to stream an f4v file I
get this:
http://pastebin.com/Eu7eyjiZ

Can someone have a look and see if you can tell me what's wrong?


Thanks,


Peter

C++ RTMP Server

unread,
May 30, 2012, 6:54:05 PM5/30/12
to c-rtmp...@googlegroups.com
You try to play "mp4:v596-double-wide" which is wrong. You have to play "mp4:v596-double-wide.f4v"

Please carefully read the table inside README.txt file from the media folder inside the sources. As a shortcut, here is the same file into the repo browser
http://trac.rtmpd.com/browser/trunk/media/README.txt

Best regards,
Andrei
> You received this message because you are subscribed to "C++ RTMP Server" mailing list.
> To post to this group, send email to c-rtmp...@googlegroups.com
> To unsubscribe from this group, send email to
> c-rtmp-serve...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/c-rtmp-server?hl=en

------
C++ RTMP Server
Web: http://www.rtmpd.com




Peter Ajamian

unread,
May 30, 2012, 10:03:49 PM5/30/12
to c-rtmp...@googlegroups.com
On 31/05/12 10:54, C++ RTMP Server wrote:
> You try to play "mp4:v596-double-wide" which is wrong. You have to
> play "mp4:v596-double-wide.f4v"

Ok, that clued me onto the issue, I was setting the url file to
v596-double-wide.f4v, setting it to mp4:v596-double-wide.f4v seems to
have fixed that particular issue, but it still won't play:
http://pastebin.com/0xDkRKJY

Can you take a look and tell me what the problem is this time?


Peter

C++ RTMP Server

unread,
May 31, 2012, 6:24:19 AM5/31/12
to c-rtmp...@googlegroups.com
put it somewhere for us to download please?

Peter Ajamian

unread,
Jun 1, 2012, 8:56:33 PM6/1/12
to c-rtmp...@googlegroups.com
On 31/05/12 22:24, C++ RTMP Server wrote:
> put it somewhere for us to download please?

I can, but it's very much X-rated, so probably not best to link to from
this list. Is there any info I can give you about it instead, or maybe
I can find out from my client exactly how it was encoded and try to
reproduce the issue with something more G-rated?


Peter

C++ RTMP Server

unread,
Jun 2, 2012, 7:22:02 AM6/2/12
to c-rtmp...@googlegroups.com
Peter,

I don't mind. Please put it somewhere and send me the link in private.
Thank you

Peter Ajamian

unread,
Jun 2, 2012, 4:19:34 PM6/2/12
to c-rtmp...@googlegroups.com
Hi Andrei,

File is at http://www.mr-s-leather.com/flashvids/v596-double-wide.f4v

Thanks,


Peter

C++ RTMP Server

unread,
Jun 2, 2012, 5:59:31 PM6/2/12
to c-rtmp...@googlegroups.com
Ok,

After I scrutinized the file, it looks like it has a lot of issues. The mp4 atom lengths are wrong and they overflow for avc1 and avcC atoms.
Players like VLC,ffmpeg,etc are playing it back because they are more fault-tolerant, but crtmpserver is not.
For the gore details, you can look inside the file at offset 416 (decimal, counting from 0) and you will see the following sequence of bytes (hex display)
00 00 00 9B 61 76 63 31
So, that is an atom that has 0x9B bytes and is called avc1 (61 76 63 31). If you count the bytes (including 00 00 00 9B), you will see that is stepping over the next atom

I'm sorry to say, but this file will never be supported by crtmpserver

Best regards,
Andrei

C++ RTMP Server

unread,
Jun 2, 2012, 6:17:16 PM6/2/12
to c-rtmp...@googlegroups.com
My bad!

The atom sizes are correct. The problem is that the atoms are reported with a bigger size than the one needed by the payload. So, I taught crtmpserver to tolerate those. However, pay attention to the warnings. The file STILL has issues but now is perfectly servable-able by crtmpserver

So, update from svn and enjoy your f4v :)

Best regards,
Andrei

Peter Ajamian

unread,
Jun 3, 2012, 9:02:51 AM6/3/12
to c-rtmp...@googlegroups.com
On 03/06/12 10:17, C++ RTMP Server wrote:
> My bad!
>
> The atom sizes are correct. The problem is that the atoms are
> reported with a bigger size than the one needed by the payload. So, I
> taught crtmpserver to tolerate those. However, pay attention to the
> warnings. The file STILL has issues but now is perfectly
> servable-able by crtmpserver

Yep, plays great now, thanks a bunch!

> So, update from svn and enjoy your f4v :)

HAHA, not my thing either, but my clients will be happy :-)


Peter
Reply all
Reply to author
Forward
0 new messages