Showing posts with label Play. Show all posts
Showing posts with label Play. Show all posts

27 March 2022

.dav video files | play | convert to .mp4 | concatenate .mp4 files

1. How to play .dav video files?

Wondershare UniConverter



2. How to convert .dav files into .mp4 files?

>ffmpeg -y -i input-file.dav -c:v libx264 -crf 24 output-file.mp4



3. How to concatenate .mp4 files?

For Linux:
$ cat mylist.txt
file '/path/to/file1'
file '/path/to/file2'
file '/path/to/file3'
    
$ ffmpeg -f concat -safe 0 -i mylist.txt -c copy output.mp4

For Windows:

(echo file 'first file.mp4' & echo file 'second file.mp4' )>list.txt
ffmpeg -safe 0 -f concat -i list.txt -c copy output.mp4

26 April 2018

A video can be watched in Chrome but not in IE, or in IE but not in Chrome

A video can be watched in Chrome but not in IE, or in IE but not in Chrome


1   <video width="480" height="300" controls autoplay>
2    <source src="https://app.cicscanada.com/video/english/homepage/cics_50th_anniversary_gala.mp4" type="video/mp4" />
3   <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="480" height="300">
4    <!--[if !IE]>-->
5    <object type="application/x-shockwave-flash" data="http://app.cicscanada.com/video/player/player.swf" width="480" height="300">
6    <!--<![endif]-->
7    <param name="movie" value="http://app.cicscanada.com/video/player/player.swf" />
8    <param name="wmode" value="transparent" />
9    <param name="bgcolor" value="#FFFFFF" />
10   <param name="quality" value="high" />
11   <param name="allowFullScreen" value="true" />
12   <param name="allowscriptaccess" value="always" />
13   <a href="http://www.adobe.com/go/getflash">
14   <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
15   </a>
16   <param name="flashvars" value="vdo=/video/english/homepage/cics_50th_anniversary_gala.flv&amp;autoplay=true" />
17   <!--[if !IE]>-->
18   </object>
19   <!--<![endif]-->
20   </object>
21  </video>

IE plays flv, while Chrome plays mp4.

Line #16 is for IE. You should not put 'https://app.cicscanada.com' before the file path '/video/english/homepage/...', otherwise, IE would not play the video.

Line #2 is for Chrome. You have to put 'https://app.cicscanada.com' before the file path '/video/english/homepage/...', otherwise, Chrome would not play the video.

(THE END)

17 February 2016

MP4 Video which can be played universally - on Apple, Android, Computers

H.264 video (up to 720p, 30 frames per second; main profile level 3.1 with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats)

11 February 2016

MP4 Videos not Playing on Mobile Phones

Supporting Mobile Video on Your Site

https://www.jwplayer.com/blog/supporting-mobile-video-on-your-site/


Update: JW7 is now available. Check it out here.
One of the most often asked questions when discussing transcoding is How do I support iPads, iPhones and Android devices?. The goal of this blogpost is to remove some of the mystery behind transcoding for devices and present a solution that will work across a wide range of them.

The Problem

Many popular video formats, like FLV or WMV, will not play on devices like the iPhone. Even videos encoded in MP4 may not play back, resulting in the following screen:
iPhone Error
Error playing video on an iPhone
The underlying issue is processing power. Today’s desktop computers and laptops are powerful enough to decode just about any video format and size. Sometimes they can do it in hardware, meaning the graphics card (GPU) decodes the video. If a format is not supported by the hardware, desktops can fallback to software decoding. At that point, the player software itself will decode the video frames. Software decoding is slower than hardware decoding, but either option works.
Phones, netbooks and tablets on the other hand are not that powerful yet. Most are only able to do hardware decoding of video. It means the range of supported formats is narrowed down to what the GPU chip supports. Additionally, devices generally have an upper limit on the frame size of the video. For example, while the iPhone 4 supports HD video (1280×720 pixels), older models only supported video up to about 640×360 pixels.

The Solution

Unfortunately, you cannot support every device under the sun with a single file. It cannot be done. What you can do, however, is support a wide range of devices with a single file. We call this targeting the least common denominator. This is what we do within our own video platform. The files we render are targeted at the following devices:
  • All iPad, iPhone and iPod Touch models (iPhone 3G, iPad 1 and above)
  • All Android 2/3/4 phones and tablets (testing HTC Legend, Samsung Galaxy 1, Google Nexus 1 and above)
Devices
Some devices that can play our videos (excluding the pencil)
A video encoded for these devices will also work on desktops/notebooks (Flash), on many other phones (e.g. Blackberries, Nokias, Windows Phones) and on settops like PS3, XboX, Roku, Boxee and AppleTV. The specifications of such a video are as follows:
  • Container format: MP4, headers at the beginning of the file (for seeking)
  • Video format: H.264, Main profile, 640×360 pixels, around 500/900 kbps (kilobits per second)
  • Audio format: AAC, Low Complexity profile, 44.1 kHz stereo, 96 kbps

Recommended Implementation

If you don’t have a tool for encoding to MP4/H264/AAC, you should download Handbrake. It is free, works on cross-platforms and produces high-quality results. Handbrake has a built-in present called iPhone & iPod Touch, which has exactly the right settings. Note that Handbrake supports a constant quality feature, which offers smaller files than a target size or target bitrate.
For embedding the video, you should use a recent version (6+) of the JW Player. In version 6, we released a download mode fallback, which allows devices that don’t support Flash or HTML5 to still play the video with their built-in media player. Here’s how the embed code looks with the default setup (Flash » HTML5 » Download):

jwplayer("container").setup({
file: "/static/video-360p.mp4",
height: 360,
width: 640
});

The end result can be seen below; a good quality video that plays back on any device with a single embed code:
Resulting videoplayer that works on all desktops & devices.
Note you can enhance this video even further by adding an HD quality video version. JW Player will enable this on select devices. See the HD Video Everywhere post for more info.

24 April 2013

HTML code to play flash swf in IE, Chrome, and Firefox

<object width="400" height="40"
classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://fpdownload.macromedia.com/
pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0">
< param name="SRC" value="bookmark.swf">
< embed src="bookmark.swf" width="400" height="40">
< /embed>
< /object>

HTML code to play WMV video in IE, Chrome and Firefox

Note: Chrome and Firefox would NOT play .wmv

<object width="100%" height="100%"
type="video/x-ms-asf" url="3d.wmv" data="3d.wmv"
classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
<param name="url" value="3d.wmv">
<param name="filename" value="3d.wmv">
<param name="autostart" value="1">
<param name="uiMode" value="full">
<param name="autosize" value="1">
<param name="playcount" value="1">
<embed type="application/x-mplayer2" src="3d.wmv" width="100%" height="100%" autostart="true" showcontrols="true" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/"></embed>
</object>