mp4

How to check a video has sound or not in Android?

这一生的挚爱 提交于 2019-12-11 14:36:30
问题 I am using a TextureView with a MediaPlayer to play an mp4 video from a url. Is there any way I can programatically check if the video I am playing has sound? Edit: I'm using API 14, so I don't have access to the MediaPlayer method getTrackInfo Many Thanks 回答1: In API level 16 or later, the MediaPlayer class has a getTrackInfo method that returns a TrackInfo[]. You could then call getTrackType for each element in the array and see if you get MEDIA_TRACK_TYPE_AUDIO . 来源: https://stackoverflow

UWP MediaPlayerElement - how to loop/repeat mp4

爷,独闯天下 提交于 2019-12-11 11:52:46
问题 I have an mp4 that I need to repeat in a page. How can this be achieved? <MediaPlayerElement Grid.Row="0" Background="White" Source="{x:Bind MovieSource}" Width="900" AutoPlay="True" > </MediaPlayerElement> I tried to use a storyboard but found out that MediaTimeline is not available in UWP. Can't find a working alternative... 回答1: The MediaPlayer property of the MediaPlayerElement class has an IsLoopingEnabled property. 来源: https://stackoverflow.com/questions/52128282/uwp-mediaplayerelement

opening mp4 via php results in full download before playback

心已入冬 提交于 2019-12-11 11:23:52
问题 I'm trying to feed an mp4 file to flash player via php and the video is downloaded completely before starting playback. $src = '/var/www/user/data/www/domain.com/video.mp4'; if(file_exists($src) and is_readable($src)) { header('Content-Type: video/mp4'); header('Content-Length: '.filesize($src)); readfile($src); } else die('error'); I've tried curl with similar results. Any ideas what's causing this delay? 回答1: Most likely your Flash player is hoping you'll handle HTTP Range requests so it

Wowza VOD App with JW Player and SMIL file - not working on mobile

◇◆丶佛笑我妖孽 提交于 2019-12-11 10:07:45
问题 I posted this in the wowza forums but have gotten a total of 0 responses, so I wanted to post here as well. I haven't done a lot of media streaming work and I'm trying to close out some details of a VOD project that basically streams video to a website and have run into an issue with enabling the correct stream to go to the correct consumer (ex: android browser, chrome desktop browser, iOS, etc). I've cycled through a bunch of tutorials, forums, etc and can't find the right fix, including

mp4 content won't play in webpages served to Samsung Internet browser

∥☆過路亽.° 提交于 2019-12-11 08:39:54
问题 I have a website which is able to play mp4 media (via the <video> tag and via DASH) in every browser except the Samsung Internet browser, which comes as default on Samsung Galaxy phones and probably a lot of other Samsung devices. On a desktop, iPad, or even an ancient HP TouchPad tablet, it works fine. Using other browsers on the same Samsung device (e.g. Chrome), the mp4 media plays fine, so it's not a limitation of Android or the device hardware. I can detect the Samsung browser with

How to concatenate two MP4 files using FFmpeg?

六眼飞鱼酱① 提交于 2019-12-11 08:38:52
问题 I'm trying to concatenate two mp4 files using ffmpeg. I need this to be an automatic process hence why I chose ffmpeg. I'm converting the two files into .ts files and then concatenating them and then trying to encode that concated .ts file. The files are h264 and aac encoded and I'm hoping to keep the quality the same or as close to original as possible. ffmpeg -i part1.mp4 -vcodec copy -vbsf h264_mp4toannexb -acodec copy part1.ts ffmpeg -i part2.mp4 -vcodec copy -vbsf h264_mp4toannexb

MP4 Not Playing Before Fully Loaded on Jwplayer

无人久伴 提交于 2019-12-11 06:09:47
问题 I've searched a lot but couldn't find any solution to the situation i'm in What i do is i watermark video using ffmpeg.exe via php script but the output file doesn't play on jwplayer. i've found out that it is an encoding issue and i tried QTIndexSwapper but it is for windows. the input files i used is working nice on jwplayer but after watermark not working here is the code for ffmpeg i used $ffmpeg_bin -i input.mp4 -s 320x240 -vf 'movie=$watermarkx $watermark_pos' -c:v libx264 -c:a aac

ffmpeg - mp4 plays in safari unless it is not the first source? Chrome wont play same mp4?

China☆狼群 提交于 2019-12-11 04:56:17
问题 Yet another issue trying to get html5 video working. I have created 3 versions of the same video in 3 different formats using ffmpeg: mp4, ogg, and webm. The .ogg plays fine in chrome when listed as the first html5 video source, and the .mp4 plays fine in safari when listed as the first html5 video source, however, if I list the .mp4 source above the .ogg source, chrome will no longer load/play the .ogg video as it is defaulting to the .mp4 video which will not play, and in the same fashion,

JAVA - Xuggler - Play video while combining an MP3 audio file and a MP4 movie

两盒软妹~` 提交于 2019-12-11 01:13:15
问题 Using JAVA and Xuggler - the following code combines an MP3 audio file and a MP4 movie file and outputs a combined mp4 file. I want outputVideo file should be play automatically while combining audio and video file. String inputVideoFilePath = "in.mp4"; String inputAudioFilePath = "in.mp3"; String outputVideoFilePath = "out.mp4"; IMediaWriter mWriter = ToolFactory.makeWriter(outputVideoFilePath); IContainer containerVideo = IContainer.make(); IContainer containerAudio = IContainer.make(); //

MP4 is downloading instead of playing

核能气质少年 提交于 2019-12-11 01:08:34
问题 MP4 files are sometimes downloaded, and other times they play in the browser. What is the difference between these two links? 1) If you open this URL in Chrome, the video will download: http://video.video-mall.com/video_mall/400241188377_video.mp4 2) If you open this URL on Chrome, the video will play in the browser: http://www.simplethoughtproductions.com/wp-content/uploads/SimpleShorts/Morning_Mail/morning_mail.mp4 Why is that? 回答1: First link has Content-Type: application/octet-stream