mp4

How to play video mp4 using intent from my android app? This is possible?

╄→尐↘猪︶ㄣ 提交于 2019-12-12 10:49:12
问题 I need to play a mp4 video in my app, bat I want to use intent. Is this possible? private void startTrailer(){ Uri contentUri = Uri.parse("android.resource://" + pkgName + "/" +R.raw.v01_homem_ferro_3); Intent intent = new Intent( Intent.ACTION_VIEW ); intent.setDataAndType( contentUri, "video/mp4" ); context.startActivity( intent ); } Exception: No Activity found to handle Intent. 回答1: Somebody had this issue before. Check these links and see if they give you a good starting point to solve

MP4 to DASH (bash script)

和自甴很熟 提交于 2019-12-12 09:58:37
问题 I have a web site in which users can upload video files. I want to stream all of them using DASH to obtain an adaptive bitrate streaming. So I wrote a bash script (to run by cron) that converts all mp4 files to DASH, but it doesn't work properly: what is wrong? For example, using the following script, I obtained: https://www.informatica-libera.net/dash_faq/stream.mpd It validates, but it doesn't play. I tested it on: http://dash-mse-test.appspot.com/dash-player.html?url=https%3A%2F%2Fwww

Unable to store pcm audio in .mp4 container file

北战南征 提交于 2019-12-12 09:35:21
问题 Is it possible to store a pcm audio file into .mp4 file? I used ffmpeg command "ffmpeg -i tempA.wav -acodec copy temp.mp4" but unable to store it in mp4 container file. Input #0, wav, from 'tempA.wav': Duration: 00:01:36.51, bitrate: 128 kb/s Stream #0.0: Audio: pcm_s16le, 8000 Hz, 1 channels, s16, 128 kb/s [mp4 @ 0x7d70e0] Tag [1][0][0][0]/0x00000001 incompatible with output codec id '65536' Output #0, mp4, to 'temp.mp4': Stream #0.0: Audio: pcm_s16le, 8000 Hz, 1 channels, 128 kb/s Stream

Convert swf file to mp4 using ffmpeg

假装没事ソ 提交于 2019-12-12 09:10:03
问题 I need to convert swf files to mp4 files using ffmpeg commands (command line). There is text in swf files which must be converted too. But when I convert files using the following ffmpeg command text in swf file is not converted to mp4 / no text is visible in mp4 file: ffmpeg -i file.swf video.mp4 Is there any other command to convert text? 回答1: ffmeg doesn't support shapes and sprites in swf . It can only convert video (Sorenson Spark, VP6), audio (pcm, adpcm, mp3) and images (jpeg)

Coding a certain MP4 GOP with FFMPEG

和自甴很熟 提交于 2019-12-12 09:06:24
问题 I have a .y4m video file, and I want to convert it to .mp4 using FFmpeg. The problem is that I want a certain kind of GOP, this one: IBBPBBPBBPBB . But what I get, when I set the GOP size to 12 ( -g 12 ) is IPPPPPPPPPPP . I've also tried using the -bf 8 option, but I get results like IPBBB... and the video doesn't play right. Could you please tell me how to get the exact IBBPBBPBBPBB GOP using FFmpeg? Thanks for your help 回答1: I think you want something to the effect of : -g 12 -bf 2 sgop The

Qt开发笔记之编码x264码流并封装mp4(三):Qt使用x264库对.yuv文件编码为.h264文件

醉酒当歌 提交于 2019-12-12 08:44:54
若该文为原创文章,未经允许不得转载 原博主博客地址: https://blog.csdn.net/qq21497936 本文章博客地址: https://blog.csdn.net/qq21497936/article/details/103486861 目录 前言 YUV格式详解 概述 拓展 Yuv转rgb Rgb转Yuv H264编码 概述 功能 性价比 码率 帧数 MPEG-1压缩(H264位MPEG-1的第十部分) IPB帧 I帧:帧内编码帧 P帧:前向预测编码帧。 B帧:双向预测内插编码帧。 Demo的编码转换效果对比 关键代码 工程模板v1.1.0 参考 Qt 开发笔记之编码x264 码流并封装mp4 《 Qt开发笔记之编码x264码流并封装mp4(一):x264介绍、windows平台x264库编译 》 《 Qt开发笔记之编码x264码流并封装mp4(二):windows平台x264添加mp4支持,gpac库的介绍与编译 》 《 Qt开发笔记之编码x264码流并封装mp4(三):Qt使用x264库对.yuv文件编码为.h264文件 》 《Qt开发笔记之编码x264码流并封装mp4(四):mp4v2库的介绍和windows平台编译》:待发布 《Qt开发笔记之编码x264码流并封装mp4(五):ubuntu平台编译x264》:待发布

HTML5 lagging videos MP4

戏子无情 提交于 2019-12-12 07:07:07
问题 I have a problem, When i upload a video to my website And play the video in my HTML5 player(video.js) They are lagging, But it's weird because not all mp4 files are lagging on the site only some videos, But when i download them from my server and play them on my computer it's playing normal. Why are some video's lagging? Does someone have a explanation for it? 回答1: If the problem is bandwidth, then depending on format, source bit rate, framesize etc you'll want to re-encode to a more optimal

How to get video from web socket url in android?

社会主义新天地 提交于 2019-12-12 05:49:00
问题 I want to get a video mp4 file from web socket URL in android, The URL look like the following example: "ws://xxxx.xxxx.xxxx.com/mp4 I have no idea if its possible in exoplayer , and if so then how is it possible in a web socket url (Not Http). I would be happy to receive any example to this problem 回答1: Take a look at okhttp from 3.5.0 they support websockets. Then you can OkHttpDataSource with ExoPlayer. 来源: https://stackoverflow.com/questions/44725871/how-to-get-video-from-web-socket-url

3gpp and mp4 on android

人走茶凉 提交于 2019-12-12 04:55:17
问题 I uploaded some video file from Android phone which was shoot by the built in video recorder app. The video file format is shown as mp4 when it is played. When I uploaded to amazon s3, the result is a file of extention 3gpp. Why is that? What should I do to convert the file in s3 from 3gpp to mp4 format? 回答1: Firstly, the actual video file itself should not have changed unless you have used some conversion services also, or converted as part of your upload procedure - to test this you can

Play mp4 file from URL on android

帅比萌擦擦* 提交于 2019-12-12 04:09:26
问题 I've been researching for some time now, and all the questions I can find point to mp4 'hinting' but I have no control over the videos. I was about to give up when i discovered that MX video player on the android market can somehow play these mp4 urls I have. So at the moment I use an intent to launch the urls in mx player but I'd much rather display the video within my app. Any ideas how mx player does this would be great, Thanks 回答1: Refer this link i had pasted the whole code for playing