最近为了在ubuntu上搭建流媒体服务器,目的是为了在ipad上观看电脑上的视频并且不用将视频文件下载到本地,这是找到的编码相关的资料~

For HTTP pseudo-streaming to iPhones, and RTSP streaming to other mobiles, .mp4 files need to be correctly encoded.


Normally a .mp4 file has its data information included at the end which, if streamed, would require the entire video to be downloaded before playback can begin.

Videos can be correctly encoded using ffmpeg but for a less stressful process, using a graphical interface, install Handbrake. Unfortunately there is no longer .deb package available for Ubuntu, but the PPA may be added to Synaptic:

deb http://ppa.launchpad.net/stebbins/handbrake-snapshots/ubuntu lucid main
deb-src http://ppa.launchpad.net/stebbins/handbrake-snapshots/ubuntu lucid main

with the signing key: 1024R/816950D8

Or use: 
~$ sudo add-apt-repository ppa:stebbins/handbrake-snapshots

Update the package list: 
~$ sudo aptitude update

and install Handbrake 
~$ sudo aptitude install handbrake

Handbrake will now be available in “Applications > Sound & Video > HandBrake”

Choose the output format that you require, making sure to select the “Web Optimized” box as well.

To complete the encoding time data must now be added to the .mp4 file. Install MP4Box using: 
~$ sudo aptitude install gpac

and run: 
~$ MP4Box -hint YOURFILENAME.mp4

The .mp4 file can now be uploaded to the server for streaming 

If you are using HTTP streaming, for instance to an iPhone, ensure that your server does not have the Apache module “mod_h264_streaming” enabled as this interferes with HTTP progressive block requests.

转载于:https://www.cnblogs.com/gigbit/archive/2013/05/04/3059735.html

How to correctly encode .mp4 files for streaming相关推荐

  1. php curl 下载mp4,使用PHP CURL下载MP4文件(Downloading MP4 files with PHP CURL)

    使用PHP CURL下载MP4文件(Downloading MP4 files with PHP CURL) 我正在尝试从我的一台服务器下载视频到另一台服务器. 我使用的是CURL,因为copy()没 ...

  2. chrome html5 mp4,HTML5 Video Chrome - ffmpeg - mp4 working in all but Chrome

    问题 I have successfully encoded a file to .mp4 using ffmpeg which will play in all tested devices (Sa ...

  3. 网易视频云:用Nginx搭建flv,mp4,hls流媒体服务

    网易视频云是网易倾力打造的一款基于云计算的分布式多媒体处理集群和专业音视频技术,提供稳定流畅.低时延.高并发的视频直播.录制.存储.转码及点播等音视频的PAAS服务,在线教育.远程医疗.娱乐秀场.在线 ...

  4. 网页视频之MP4文件解析

    为了研究如何把H264打包成fMp4文件,今天先开始研究如何从fMp4中解析出H264数据. fMP4包括ftype+moov+(moof+mdat)*N这种格式组成. Box的定义: ftyp格式: ...

  5. 翻录cda文件_翻录电视连续剧DVD并转换为单独的H.264 MP4文件

    翻录cda文件 Would you like to rip an entire TV Series disc set and convert the episodes to individual MP ...

  6. ffmpeg mp4 to wmv and wmv to mp4

    //大小=>变小 ffmpeg -i 1.mp4 -b:v 2M -vcodec msmpeg4 -acodec wmav2 1_mp4.wmv //大小=>变大 ffmpeg -i 1. ...

  7. linux打开.mp4文件,mp4文件扩展名,mp4文件怎么打开?

    .mp4 文件类型:MPEG-4 Video File 扩展名为.mp4的文件是一个视频文件. 文件说明:Movie or video clip that uses MPEG-4 compressio ...

  8. 关于RTP的一些背景知识

    原文来自 rtp-i-intro-rtp-and-sdp rtp-ii-streaming-ffmpeg 周末本来想弄一下译文的,然后堂弟过来,消耗了不少时间在社交上,另一半时间是在研究turn se ...

  9. 微软云平台媒体服务实践系列 1- 使用静态封装为iOS, Android 设备实现点播(VoD)方案...

    微软的云平台媒体服务为流媒体服务提供了多种选择,在使用流媒体服务为企业做流媒体方案时,首先需要确认要流媒体接收目标,如针对广大iOS, Android移动设备,由于它们都支持HLS 格式的流媒体,基于 ...

最新文章

  1. 201521123016《Java程序设计》第12周学习总结
  2. php删除所以文件,php如何删除所有文件
  3. XML篇---可配置化的取值方式[便于维护]
  4. 使用pil读取gif图有些位置为黑色_使用 Pillow 快速创建 GIF 动图
  5. Android UI布局之LinearLayout
  6. 【NOIP考前模拟赛】纯数学方法推导——旅行者问题
  7. java 数据结构详解,数组,集合,HashMap
  8. Win10+Ubuntu16.04双系统安装教程
  9. 动软代码生成器连接Oracle 11g
  10. arduino 嗡鸣器 音乐_arduino蜂鸣器怎么输出指定的音乐
  11. sqlserver 中怎样查看一个数据库中表的关系
  12. 通过Git WebHooks+脚本实现自动更新发布代码之Shell脚本(二)
  13. python pywin32模块详解_python模块win32com用法详解
  14. 如何在数学建模比赛中稳拿奖——个人100%获奖经验分享
  15. 63岁老太太不远千里来传销 被玩坏的IPFS矿机游戏
  16. 小强统一认证中心开源介绍
  17. C++ 类(继承中的构造和析构)
  18. 【12】Kotlin函数泛型协程
  19. Java动态追踪技术
  20. 下载的软件包保存在缓存中,直到下次成功执行事务。 您可以通过执行 'dnf clean packages' 删除软件包缓存。 错误:事务检查错误

热门文章

  1. 电脑时钟不准_电脑维修第三课:常见故障判断(上)
  2. 函数使用了堆栈的字节超过_单片机地址空间,堆栈理解
  3. js利用localStorage和sessionStorage完成记住我功能
  4. 获取系统特殊文件夹的路径
  5. 十分钟读懂『卡尔曼滤波算法』
  6. linux多线程简介
  7. 坑 之 Tensor XXX must be from the same graph as Tensor XXX
  8. TypeError系列之:TypeError: 'tuple' object is not callable.
  9. C宏定义-SWAP的妙用
  10. 15.10.4 捕获异常