日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

How to correctly encode .mp4 files for streaming

發(fā)布時間:2024/4/17 编程问答 48 豆豆
生活随笔 收集整理的這篇文章主要介紹了 How to correctly encode .mp4 files for streaming 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

最近為了在ubuntu上搭建流媒體服務(wù)器,目的是為了在ipad上觀看電腦上的視頻并且不用將視頻文件下載到本地,這是找到的編碼相關(guān)的資料~

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.

轉(zhuǎn)載于:https://www.cnblogs.com/gigbit/archive/2013/05/04/3059735.html

總結(jié)

以上是生活随笔為你收集整理的How to correctly encode .mp4 files for streaming的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。