How to split video or audio by silent parts

You could first use ffmpeg to detect intervals of silence, like this ffmpeg -i “input.mov” -af silencedetect=noise=-30dB:d=0.5 -f null – 2> vol.txt This will produce console output with readings that look like this: [silencedetect @ 00000000004b02c0] silence_start: -0.0306667 [silencedetect @ 00000000004b02c0] silence_end: 1.42767 | silence_duration: 1.45833 [silencedetect @ 00000000004b02c0] silence_start: 2.21583 [silencedetect @ 00000000004b02c0] silence_end: … Read more

HTML5 Video / End of a Video Poster

A straightforward way of doing this: <script> var video = document.querySelector(‘video’); video.addEventListener(‘ended’, function() { video.load(); }); </script> Indeed when changing the src of a video tag you implicitly call a load() on it. This method has the caveat to request the media URL again and depending on caching settings it may re-download the full-length media … Read more

HTML5 callbacks?

You can view a complete list of events in the spec here. For example: $(“video”).bind(“ended”, function() { alert(“I’m done!”); }); You can bind to the event on the element like anything else in jQuery…as for your comment question, whatever element you’re delivering for IE, yes, it would need a separate handler rigged up to whatever … Read more

play pause html5 video javascript

$(‘#play-pause-button’).click(function () { var mediaVideo = $(“#media-video”).get(0); if (mediaVideo.paused) { mediaVideo.play(); } else { mediaVideo.pause(); } }); I have done this in jQuery, which is simple and fast. To try it, you just need to use the ID of the video tag and your play/pause button. EDIT: In vanilla JavaScript: a video is not a … Read more

How to get h264 video info?

I’ve found out that the best way for this is using FFprobe with -show_streams parameter. It shows both h.264 profile and B-frames usage for video streams of the movie. ffprobe -show_streams -i “file.mp4” [STREAM] index=0 codec_name=h264 codec_long_name=H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 profile=High codec_type=video codec_time_base=1001/48000 codec_tag_string=avc1 codec_tag=0x31637661 width=1920 height=1080 has_b_frames=0 sample_aspect_ratio=0:1 … Read more

How to use hardware accelerated video decoding on Android?

To answer the above question, let me introduce few concepts related to Android OpenMAX Android uses OpenMAX for codec interface. Hence all native codecs (hardware accelerated or otherwise) provide OpenMAX interface. This interface is used by StageFright(Player framework) for decoding media using codec NDK Android allows Java Applications to interact with underlying C/C++ native libraries … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)