RTMP MKV H264/AAC

Issues related to playing with Flash Player

RTMP MKV H264/AAC

Postby eruiz » Thu Apr 28, 2016 6:03 am

Hi,
I'm trying to use your flashplayer in order to play a mkv file encoded with h264/aac from media server using RTMP protocol.
I've copied FlashBigFile.html and changed the RTMP URL to a local one.
It works fine with mp4 file, but we haven't got it working with the same file but in mkv format. In fact, the original file was the mkv one, and we got mp4 file using ffmpg changing only container, not codecs:

ffmpeg -i prueba.mkv -vcodec copy -acodec copy prueba.mp4

The error message is "Video codec not supported by flash".
We've alredy tested it with other mkv file encoded with H264 mainconcept codec, and we have tried too with a video downloaded from a "sample videos web":
http://www.sample-videos.com/video/mkv/ ... p_10mb.mkv

Finally we have used two media servers for the tests, UMedia Server 9.5 and UMedia Server 11.0, and we always get the same error message.

These are the properties from both videos (mp4 and mkv) got with mediainfo:
========================================================================
General
Complete name : C:\ARCONTE\prueba.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom
File size : 8.93 MiB
Duration : 1mn 13s
Overall bit rate mode : Variable
Overall bit rate : 1 013 Kbps
Writing application : Lavf55.32.100

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Main@L3.1
Format settings, CABAC : Yes
Format settings, ReFrames : 2 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 1mn 13s
Bit rate mode : Variable
Bit rate : 1 000 Kbps
Width : 720 pixels
Height : 576 pixels
Display aspect ratio : 5:4
Frame rate mode : Variable
Frame rate : 25.000 fps
Minimum frame rate : 24.390 fps
Maximum frame rate : 25.641 fps
Standard : PAL
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.096
Stream size : 8.79 MiB (98%)
Language : English

Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : 40
Duration : 1mn 13s
Bit rate mode : Constant
Bit rate : 13.7 Kbps
Channel(s) : 1 channel
Channel positions : Front: C
Sampling rate : 8 000 Hz
Compression mode : Lossy
Stream size : 124 KiB (1%)
Language : English

=====================================================

General
Complete name : C:\ARCONTE\prueba.mkv
Format : Matroska
Format version : Version 2
File size : 8.92 MiB
Duration : 1mn 14s
Overall bit rate mode : Variable
Overall bit rate : 1 011 Kbps
Writing application : SolveigMM Matroska Muxer Version 1.0.1110.11
Writing library : libmatroska 1.3.0

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Main@L3.1
Format settings, CABAC : Yes
Format settings, ReFrames : 2 frames
Codec ID : V_MS/VFW/FOURCC / H264
Duration : 1mn 14s
Bit rate mode : Variable
Maximum bit rate : 1 000 Kbps
Width : 720 pixels
Height : 576 pixels
Display aspect ratio : 5:4
Frame rate mode : Constant
Frame rate : 25.000 fps
Standard : PAL
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Language : English
Default : No
Forced : No

Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : A_AAC
Duration : 1mn 14s
Channel(s) : 1 channel
Channel positions : Front: C
Sampling rate : 8 000 Hz
Compression mode : Lossy
Delay relative to video : -1mn 5s
Language : English
Default : No
Forced : No

================================================================

Thanks in advance!
eruiz
 
Posts: 0
Joined: Wed Apr 27, 2016 10:04 am

Re: RTMP MKV H264/AAC

Postby admin » Thu Apr 28, 2016 7:13 am

Hello,

We can play all our .mkv files just fine via RTMP with Flash player. Video codec must be H.264/AVC.

We checked http://www.sample-videos.com/video/mkv/ ... p_10mb.mkv
and it appears that video codec of that file is FMP4 which is mpeg-4, so obviously Flash player cannot play it.

Please publish a link to C:\ARCONTE\prueba.mkv so we can check it.
admin
Site Admin
 
Posts: 1030
Joined: Fri Aug 21, 2009 10:13 am

Re: RTMP MKV H264/AAC

Postby eruiz » Thu Apr 28, 2016 9:02 am

Hello, thanks for your quick response.
This is a link to google drive:

https://drive.google.com/open?id=0B1DVW ... kx6czNpMjg
eruiz
 
Posts: 0
Joined: Wed Apr 27, 2016 10:04 am

Re: RTMP MKV H264/AAC

Postby admin » Thu Apr 28, 2016 10:23 am

That file can be played perfectly in Flash player in any browser, tested with Unreal Media Server v11.0 and 11.5.

You must be mistaken somewhere; your rtmp link in the webpage should look like this:
rtmp://127.0.0.1:5119/vod/mediaroot/prueba.mkv
You may be using a very old version of Unreal Media Server. No other ideas.
admin
Site Admin
 
Posts: 1030
Joined: Fri Aug 21, 2009 10:13 am

Re: RTMP MKV H264/AAC

Postby eruiz » Mon May 02, 2016 10:12 am

Hello,

We have tested the prueba.mkv file with Media Server 11.0 and Media Server 11.5. The audio is ok, but the video shows unrecognizable. In these links you can appreciate it:

https://drive.google.com/open?id=0B1DVW ... 2xTSTZBSTA
https://drive.google.com/open?id=0B1DVW ... WRyM2F6bVE

The server is installed in a windows server 2012 O.S., and we have enabled Media Foundation as it was asked during the installation process.
On the other hand, we can see properly the video using the Streaming Media Player (TCP and RTP). We are interested in using Flash player because of the discontinuity of NPAPI plugins.
Any idea?

Thanks again.
eruiz
 
Posts: 0
Joined: Wed Apr 27, 2016 10:04 am

Re: RTMP MKV H264/AAC

Postby admin » Mon May 02, 2016 11:00 am

Yes we see the same thing with latest Flash player v21, but video looks fine with Flash player v18.

I think this is because your prueba.mkv is not a properly created .mkv file, so looks like your
SolveigMM Matroska Muxer is not doing a good job creating .mkv files.
MKV container must have AVC1 encoding, not H264 (annex-b is the difference). Also, audio bitrate is not written at all into mkv properties.

Download normal .mkv files and try them. They play OK with any version of Flash player.
http://www.divx.com/en/devices/solution ... s-hd/video
admin
Site Admin
 
Posts: 1030
Joined: Fri Aug 21, 2009 10:13 am

Re: RTMP MKV H264/AAC

Postby eruiz » Tue May 03, 2016 3:55 am

We have changed prueba.mkv using mktoolnix and now the CodeId for the output file is "V_MPEG4/ISO/AVC".
It works fine!!

Thank you very much.
eruiz
 
Posts: 0
Joined: Wed Apr 27, 2016 10:04 am


Return to Playing with Flash Player

Who is online

Users browsing this forum: No registered users and 1 guest