Wowza 4 vod 录播多层目录无法播放问题

找到一个解决方案,但是无法下载zip包

https://stackoverflow.com/questions/21303361/how-to-stream-mp4-files-from-subdirectories-with-flowplayer

怕失效,原文贴出来:

I am using Wowza Media Server to enable streaming of MP4 files and as video player I use Flowplayer.

To get some structure for my content I use sub directories within the configured StorageDir for my Wowza application.

The problem I have is that no matter what URL-format I use, Wowza keep looking for the file in the root storage directory.

I‘ve tried using the URL format specified by Wowza here, but with no luck:

rtmp://[wowza-ip-address]/myapp/_definst_/mp4:mysubdirectory/sample.mp4

I also tried everything suggested in posts on the Wowza forum:

But Wowza keeps looking in the root storage directory, throwing exceptions like these:

404 b0c9be70-a33c-41ce-9692-199e3a1caccf.mp4
   open: java.io.FileNotFoundException:
   C:\Program Files (x86)\Wowza Media Systems\Wowza Media Server 3.6.2\content\b0c9be70-a33c-41ce-9692-199e3a1caccf.mp4.flv
   (The system cannot find the file specified)

Somehow Wowza thinks it should look for an FLV file in the root storage directory, even though the URL specify that it is an MP4 file in a subdirectory. Why is that?

After spending hours looking into this, I finally found this post on the Wowza forum.

The problem:

Apparently there is an issue with some flash-based video players (like Flowplayer that I use), that accept a single string for the RTMP connection and stream name. Some of these players do not separate the RTMP connection and stream name properly when using sub directories.

When breaking this URL apart:

rtmp://[wowza-address]:1935/vod/_definst_/mp4:subfolder/sample.mp4

The player will use this as the RTMP connection:

rtmp://[wowza-address]:1935/vod/_definst_/mp4:subfolder

The player will then try to play sample.mp4 instead of subfolder/sample.mp4 which will fail.

The solution:

To remedy this problem, there is a plugin for Wowza that fixes the URL, available for download here:

Unzip the package and copy the JAR file into your Wowza /libs directory, then add this to your /conf/[app-name]/Application.xml configuration file:

<Module>
    <Name>ModuleFixStreamPath</Name>
    <Description>ModuleFixStreamPath</Description>
    <Class>com.wowza.wms.plugin.collection.module.ModuleFixStreamPath</Class>
</Module>

Doing so got it all working for me!

下载地址:

http://www.ttstream.com/WowzaServerAddOnCollection_4.0.zip

要重启服务!

时间: 2024-10-27 13:33:52

Wowza 4 vod 录播多层目录无法播放问题的相关文章

Java多层目录打包和解压代码(apache commons compress, io, lang)

Java多层目录打包和解压代码(apache commons compress, io, lang) package zip;   import java.io.BufferedOutputStream; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.Fil

Java File类 mkdir 不能创建多层目录,如果是多层,可以调mkdirs

public static void createDir(String destDirName) { File dir = new File(destDirName); if (!dir.exists()) {// 判断目录是否存在 dir.mkdir(); //dir.mkdirs(); //多层目录需要调用mkdirs } }   注意:在JavaFile类 的mkdir方法的实现中,不能同时创建多层目录,如果是多层,可以调mkdirs!

linux mkdir创建多层目录

默认情况下,无法建立多层目录 [[email protected] ~]$ mkdir -p 3/4/5 加了-p参数后可以直接建立多层目录 -p, --parents no error if existing, make parent directories as needed 版权声明:本文为博主原创文章,未经博主允许不得转载.

C#利用SharpZipLib解压或压缩文件(支持多层目录递归压缩)

需要下载ICSharpCode.SharpZipLib.dll 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 using System.IO; 8 using ICSharpCode.SharpZipLib.Checksums; 9 using ICSharpCode.SharpZip

windows 删除多层目录

目前文件夹d:\clu_1下有99个文件夹,名字为0,1....99,每个文件夹下又有25个文件夹,文件夹名为0,1,....24,其下其下又有以日期命名的文件夹(如20140521),最后是zip文件.如一个zip的文件路径d:\clu_1\88\23\20140521\Raw_0432.zip. 这些文件已经占用了7T,现在需要删除部分文件,方法有2种: 1.按时间只删除最里层的zip文件,如删除20140608以前的的文件(含20140608),命令如下: forfiles  /p  d:

用mkdir()创建多层目录

使用mkdir()函数直接创建目录时,只能一层一层目录的依次创建,如果父级目录不存在,使用mkdir()会报错:mkdir(): No such file or directory 所以最好自己封装函数来递归创建层级目录: 基本思路:从下向上层级递归操作: 步骤一,判断底层目录是否存在,存在时不操作直接返回true,否则进入第二步骤 步骤二,判断父级目录是否存在,不存在时一直递归本函数操作父级目录(获取返回值如果为true代表父级目录已存在或者已经创建成功,可接着创建当前目录),存在就创建当前目

php建立多层目录的函数

/** *根据路径path建立多级目录 *$dir目标目录 $mode权限,0700表示最高权限 */ function makedir( $dir , $mode = "0700" ) { if(strpos($dir , "/" )){ $dir_path = "" ; $dir_info = explode ( "/" , $dir ); foreach($dir_info as $key => $value ){

办公自动化15-一次性生成多层目录

excel里面的目录是这样的: 生成的目录是这样的 代码如下: import os, sys import pandas as pd path = 'C:/Users/17360/Desktop/cy/' df = pd.read_excel(r'C:\Users\17360\Desktop\test.xlsx',sheet_name= 'Sheet1')#将excel表中的文件夹名称读入DataFrame df.head() menu = list(df['目录']) for lst in m

兼容各个浏览器的H.264播放: H.264+HTML5+FLOWPLAYER+WOWZA+RMTP

一.方案确定 计划做视频播放,要求可以播放H264编码的mp4文件,各个浏览器,各种终端都能播放. 首先查找可行性方案, http://www.cnblogs.com/sink_cup/archive/2011/04/21/html5_video_ipad_firefox_chrome_ie9876_flash.html.这个方法将视频播放分为两部分.一是html5播放,二是flash播放.假设浏览器支持用html5的video标签播放h264的mp4文件,如ie9,chrome,safari採