mp4

Android VideoView Cannot play video mp4

一世执手 提交于 2019-11-30 18:59:02
I used the Android VideoView to play a video file via HTTP. My problem is my phone prompts "Cannot play video Sorry, this video cannot be played." when playing a mp4 file from HTTP. But it is ok when playing another mp4 video file. When used in a newer phone, like Samsung Galaxy S, my program can play both mp4 video file from HTTP successfully. My phone: Samsung GT-S5830 Android version: 2.3.4 Display: 320x480. Video file 1 (OK): Video Codec: H.264 Resolution: 640x360 Others: 16:9, 340kbps, 29.92fps Audio Codec: AAC, 44kHz 96kbps Stereo. Video file 2 (Fail): Video Codec: H.264 Resolution:

Convert .mp4 to .mp3 using pure PHP [closed]

狂风中的少年 提交于 2019-11-30 16:58:37
How do I convert a video (.mp4) from an external site (ex: youtube.com) to an .mp3 using PHP without wasting a lot of resources? So similar to http://youtube-mp3.org/ , they are able to convert it very easily. Thanks. you can convert it by shell-command eg [*] <?php exec('ffmpeg -i video.mp4 -f mp3 -ab 192000 -vn music.mp3'); ?> if your OS is unix and ffmpeg is installed Pure PHP is not suitable for this task. Let the user upload the file via PHP. Then direct PHP (via the exec() function) an external program like ffmpeg or gstreamer to convert the file. After the conversion you can make the

Enabling mp4/mpeg4/avc support for Qt5 WebEngine on Linux

。_饼干妹妹 提交于 2019-11-30 16:12:33
i installed Qt 5.4.1 x64 on LUbuntu and created an app which uses the new QtWebEngine. I`m trying to display a html5 page with that component which is using the tag. All works fine except if I try to playback a mp4 video. The video area remains black. It works if I use other video types like webm/ogg as source. I know this is due to license restrictions, so that mp4 is deactivated by default in Ubuntu/Linux for Qt. What is needed in Qt to activate it to allow mp4 playback and on what do I have pay attention in case of license terms (I read that statically linking the library is allowed?) ? I

Enabling mp4/mpeg4/avc support for Qt5 WebEngine on Linux

泄露秘密 提交于 2019-11-30 16:08:27
问题 i installed Qt 5.4.1 x64 on LUbuntu and created an app which uses the new QtWebEngine. I`m trying to display a html5 page with that component which is using the tag. All works fine except if I try to playback a mp4 video. The video area remains black. It works if I use other video types like webm/ogg as source. I know this is due to license restrictions, so that mp4 is deactivated by default in Ubuntu/Linux for Qt. What is needed in Qt to activate it to allow mp4 playback and on what do I

Does RTSP support streaming file video MP4?

烂漫一生 提交于 2019-11-30 14:17:44
问题 Anyone know does RTSP support MP4 for streaming? Or what file video formats that RTSP support? 回答1: RTSP is a protocol for realtime streaming. You can stream any data, in any format you want including text, audio, video, presentation... bricks... no meter what, you can RTSP-it. Main idea is that when new streaming session opens you have to DESCRIBE your streaming content to the client with a SDP response (Session Description Protocol). There you say "my content is video, it has N FPS, uses

How to combine a .mp4 video with a .wav audio with an offset in ffmpeg from command line?

杀马特。学长 韩版系。学妹 提交于 2019-11-30 13:41:00
I've got a TV clip in mp4 format containing audio and video, and an WAV audio_commentary track. I've been trying to combine them in ffmpeg and then play it online with a flash player (which can only take h264 format) What's the best ffmpeg command to accomplish this? My inputs are MP4 video, WAV audio, and an offset in seconds, the time the audio commentary starts relative to the start of the mp4 video. I tried ffmpeg -i input_audio.wav -i input_vid.mp4 -vcodec copy output.mp4 and ffmpeg -vcodec copy -ss offset -i input_audio.wav -i input_video.mp4 output.mp4 nether of these do what I want and

Camera2 video recording without preview on Android: mp4 output file not fully playable

回眸只為那壹抹淺笑 提交于 2019-11-30 13:08:52
I am trying to record video from the back camera (the one that faces the face) on my Samsung Galaxy S6 (which supports 1920x1080 at about 30 fps). I do not want to have to use any surface for previewing if I do not have to as this is to just happen in the background. I seem to have it working, but the output files are not playable in a way that actually is correct. On my Windows 10 PC, Windows Media Player will show the first frame and then play the audio, VLC will not show any of the frames. On my phone, the recorded file is playable but not totally. It will hold the first frame for 5-8

HTML5实现首页动态视频背景

放肆的年华 提交于 2019-11-30 12:21:11
话不多说,先看效果图: ​ ​ ​ 炫酷吗?你想实现这种动态视频作为背景的首页吗?来,一起来学习,本文将带你一起实现H5动态视频背景; 首先网上找一段清晰的视频下载下来,最好是MP4格式的; 下载好了之后我们新建一个html文件来写代码: html代码: <video id="v1" autoplay loop muted> <source src="./video2.mp4" type="video/mp4" /> </video> 一个video标签包裹着,source代表来源文件,autoplay属性是自动播放,loop代表循环播放,muted代表无声播放; 如果不加入autoplay属性是无法自动播放的,页面将会黑屏展示; css代码: *{ margin: 0px; padding: 0px; } video{ position: fixed; right: 0px; bottom: 0px; min-width: 100%; min-height: 100%; height: auto; width: auto; /*加滤镜*/ /*filter: blur(15px); //背景模糊设置 */ /*-webkit-filter: grayscale(100%);*/ /*filter:grayscale(100%); //背景灰度设置*/ z-index:-11 }

Convert compressed swf to mp4

前提是你 提交于 2019-11-30 10:41:35
问题 I'm looking for a batch script to convert swf to mp4, lossless. I tried using both ffmpeg and handbrake, but apparently swf is compressed and I can't convert them this way. ffmpeg -i input -c:v libx264 -preset ultrafast -qp 0 output.mkv HandBrakeCLI -i source -o destination I know I acn use a tool like xilisoft, but I've more than 3000 videos and would need to run this automatically. Is there a script/ algorithm that can help me automate this process? 回答1: Get gnash: git clone git://git.sv

Does RTSP support streaming file video MP4?

こ雲淡風輕ζ 提交于 2019-11-30 10:09:59
Anyone know does RTSP support MP4 for streaming? Or what file video formats that RTSP support? RTSP is a protocol for realtime streaming. You can stream any data, in any format you want including text, audio, video, presentation... bricks... no meter what, you can RTSP-it. Main idea is that when new streaming session opens you have to DESCRIBE your streaming content to the client with a SDP response (Session Description Protocol) . There you say "my content is video, it has N FPS, uses this codec, these are the required parameters for decoding a picture..." so the client can tell if it can