3gp

ffmpeg 视音处理

随声附和 提交于 2020-04-02 15:08:52
(经常用到ffmpeg 做一些视频数据的处理转换等,用来做测试,今天总结了一下,参考了网上部分朋友的经验,一起在这里汇总了一下,有需要的朋友可以收藏测试一下,有问题欢迎在下面回帖交流,谢谢;by ternence.hsu) 1、ffmpeg使用语法 命令格式: ffmpeg -i [输入文件名] [参数选项] -f [格式] [输出文件] ffmpeg [[options][`-i' input_file]]... {[options] output_file}... 1、参数选项: (1) -an: 去掉音频 (2) -acodec: 音频选项, 一般后面加copy表示拷贝 (3) -vcodec:视频选项,一般后面加copy表示拷贝 2、格式: (1) h264: 表示输出的是h264的视频裸流 (2) mp4: 表示输出的是mp4的视频 (3)mpegts: 表示ts视频流 如果没有输入文件,那么视音频捕捉(只在Linux下有效,因为Linux下把音视频设备当作文件句柄来处理)就会起作用。作为通用的规则,选项一般用于下一个特定的文件。如果你给 –b 64选项,改选会设置下一个视频速率。对于原始输入文件,格式选项可能是需要的。缺省情况下,ffmpeg试图尽可能的无损转换,采用与输入同样的音频视频参数来输出。(by ternence.hsu) 2、视频转换

ffmpeg转码参数设置

孤街浪徒 提交于 2020-01-22 05:51:13
ffmpeg用了很久了,也没有想写点什么。 刚接触ffmpeg也是有大量的不理解的地方,不过慢慢的了解多了基本上都是可以使用的。 本文主要介绍如何使用ffmpeg.exe进行转码。编译好的ffmpeg可以从下面目录下载: http://ffmpeg.org/download.html 首先,可以使用-formats命令,查看ffmpeg支持的封装格式。 下面截取一段:(D、E分别表示解复用和复用) File formats: D. = Demuxing supported .E = Muxing supported -- E 3g2 3GP2 (3GPP2 file format) E 3gp 3GP (3GPP file format) D 4xm 4X Technologies E a64 a64 - video for Commodore 64 D aac raw ADTS AAC (Advanced Audio Coding) DE ac3 raw AC-3 D act ACT Voice file format D adf Artworx Data Format D adp ADP E adts ADTS AAC (Advanced Audio Coding) DE adx CRI ADX D aea MD STUDIO audio D afc AFC DE aiff

How to Play 3gp Video in HTML5?

非 Y 不嫁゛ 提交于 2019-12-30 10:35:14
问题 Playing a 3gp file with HTML5 does not work. I have Firefox 16 and Chromium Version 22 and the result I got is the following: No video with supported format and MIME type found. Here's the code I used: <video controls="controls"> <source src="rtsp://v2.cache2.c.youtube.com/CiQLENy73wIaGwlkcZfgin6szRMYDSANFEgGUghzdGFuZGFyZAw=/0/0/0/video.3gp" type="video/3gpp"> Your browser does not support the video tag. </video> 来源: https://stackoverflow.com/questions/13220019/how-to-play-3gp-video-in-html5

mp4, 3gp, mpeg, mp3 streamed inside or outside of webview

*爱你&永不变心* 提交于 2019-12-24 21:42:22
问题 Is there any confirmed solution to running mp4, 3gp or mp3 files via webView? I finally have my code working public boolean shouldOverrideUrlLoading(WebView view, String url) { if (url.endsWith(".mp3")) { Intent intent = new Intent(Intent.ACTION_VIEW); intent.setDataAndType(Uri.parse(url), "audio/*"); view.getContext().startActivity(intent); return true; } else if (url.endsWith(".mp4") || url.endsWith(".3gp")) { Intent intent = new Intent(Intent.ACTION_VIEW); intent.setDataAndType(Uri.parse

Extract audio frames from AMR-NB file

北战南征 提交于 2019-12-24 00:33:30
问题 I wrote an algorithm to extract each frame from an AMR file. I considered the first 6 bytes of the file to be the header and the following information is audio frames. Each audio frame is composed by frame header and audio data. Frame header tells the frame's size in bytes (using CMR Mode table - http://www.developer.nokia.com/Community/Wiki/AMR_format). The frame size is stored in the first byte of the frame -> second bit to 5-th bit, counting MSB as first bit. The algorithm does not work

flv stream decoding, 3gp encoding

南楼画角 提交于 2019-12-13 03:52:27
问题 Are there any open source projects in any language and other recourses that I need to look at in order to implement flv to 3gp conversion? It's better to be streaming, I mean return first portion of 3gp before last portion of flv is downloaded. Or are there any similar services already implemented - my goal is to have something like http://converter.org?source=sourceUrl.flv&targetFormat=3gp that I can feed to 3gp player, in my case - on iPhone, and not wait until server downloads entire flv.

MPMoviePlayer loading the video but never enters readyToPlay state

◇◆丶佛笑我妖孽 提交于 2019-12-12 01:33:42
问题 I have been trying to get a video to play using MPMoviePlayerController for about a week with very little success! I have finally got it to the stage where it loads the video (or at least I presume it does as it can tell me the video duration). However, my video never becomes playable therefore I am just presented with a black square. My code is as follows: - (void)loadMovieWithURL:(NSURL *)movieURL { NSLog( @"Video URL = '%@'", [movieURL path]); NSData *data = [NSData dataWithContentsOfURL

how to differentiate between 3gp audio and 3gp video

柔情痞子 提交于 2019-12-11 11:59:01
问题 I am accessing the videos directly from content provider without storing it in my database. But it is giving me 3gp audio file along with other video and 3gp videos. how could i filter only the video files.I am working for API 8 回答1: Try this since you are working on API 8, otherwise METADATA_KEY_HAS_VIDEO could have done the job if API level >= 10. A work around using MediaPlayer. If media has height it means it is a video. public boolean isVideoFile(File file) { int height = 0; try {

How to tell if .3gp file is audio or video in android

北慕城南 提交于 2019-12-09 07:03:26
问题 I have an app which allows user to import media (videos, photos, audio) which will then be managed by the application (as evidence). I've found that some audio recording apps will save audio in .3gp format (specifically Whats App messenger). If i get the mime type using the following code: MimeTypeMap.getSingleton().getMimeTypeFromExtension(fileExtension); it will come back as video/3gp which my app takes to mean it is of the type "video" and tries to make thumbnails and what not (I use the

How to make convert operation from .MOV to 3GP in Java

假装没事ソ 提交于 2019-12-08 06:28:11
问题 I wanna convert ".MOV" extentioned files to 3GP extentioned Files in java. Currently i m using Java Media Framework for creation opetion of .MOV file. But now my need is converting these videos to 3GP. I googled my issue but i couldnt get any solution. How can i do this? Any help will be appreciated. 回答1: I suggest that you use xuggler (java wrapper library for ffmpeg). With their bundled ffmpeg you can test one of your videos with this command. ffmpeg -i input.mov -acodec libamr_nb -ar 8000