Showing posts with label MP4. Show all posts
Showing posts with label MP4. Show all posts
01 February 2026
How to convert a .webm video into a .mp4 one?
ffmpeg -i output_trimmed.webm -c:v libx264 -crf 23 -preset medium -c:a aac output.mp4
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.mp401 January 2022
How to Remove all large files by a file extension name e.g. .mp4 or by file size from Every Commit in git?
How to Remove all large files by a file extension name e.g. .mp4 or by file size from Every Commit in git?
13 June 2019
Convert DVD videos into mp4 files with ffmpeg
Convert DVD videos into mp4 files with ffmpeg
https://www.tech-g.com/2017/01/15/converting-dvd-to-mp4-h264-on-windows/
https://www.tech-g.com/2017/01/15/converting-dvd-to-mp4-h264-on-windows/
ffmpeg -i "concat:VTS_01_1.VOB|VTS_02_1.VOB|VTS_03_1.VOB|VTS_04_1.VOB|VTS_05_1.VOB" outfile.mp4
24 July 2018
How to convert mp4 videos into flv ones with ffmpeg?
How to convert mp4 videos into flv ones with ffmpeg?
I'm late, but if this can help somebody, it's time well spent.
If I understand correctly, you want to convert MP4 to FLV using FFMPEG. Here are two command lines to help you do that; I'm currently using them myself (you can adjust them to your needs too) :
ffmpeg -i source.mp4 -c:v libx264 -crf 19 destinationfile.flv
and if the first one doesn't work :
ffmpeg -i source.mp4 -c:v libx264 -ar 22050 -crf 28 destinationfile.flv
Please note that
-crf XX is the quality of the video you will create. It's between 0 and 51 (but between 17 and 23 is a reasonable range and the lower the number is, the better quality the video is going to be).
The
-ar 22050 is for adjusting the audio sample range (audio quality). You can choose 11025, 22050 or 44100.
I suggest you read this Tutorial for FFMPEG . It's really complete and has many useful tips.
Hope this will help you or somebody in the same situation.
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.
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.
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:
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):
The end result can be seen below; a good quality video that plays back on any device with a single embed code:
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:
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)

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.
11 January 2016
How to export clearer mp4 video within Adobe Premiere?
How to export clearer mp4 video within Adobe Premiere?
I find that mp4 videos exported from Adobe Premiere are usually not clear. (.flv is clear)
Here is a quite good solution -
1. The larger the dimension of source video, the better.
2. When you create a new project, and in the 'New sequence' dialogue box, choose
HDV | HDV 1080i30 (60i)
3. In 'Export Setting', choose 'H.264' in Format.
4. Choose 'NDSC DV High Quality' in Preset.
5. On 'Video' tab, the larger Frame width and height, the better.
6. Choose 'Use Maximum Render Quality'.
You will get clearer MP4 video.
I find that mp4 videos exported from Adobe Premiere are usually not clear. (.flv is clear)
Here is a quite good solution -
1. The larger the dimension of source video, the better.
2. When you create a new project, and in the 'New sequence' dialogue box, choose
HDV | HDV 1080i30 (60i)
3. In 'Export Setting', choose 'H.264' in Format.
4. Choose 'NDSC DV High Quality' in Preset.
5. On 'Video' tab, the larger Frame width and height, the better.
6. Choose 'Use Maximum Render Quality'.
You will get clearer MP4 video.
06 January 2016
How to convert a Flash file into a FLV and mp4 file?
How to convert a Flash file into an FLV file?
1. Firstly, export the flash file (.fla) into an AVI video file.
2. Convert the AVI file into an FLV file using Format Factory.
How to convert a Flash file into an mp4 file?
1. Firstly, export the flash file (.fla) into an AVI video file.
2. Export the AVI file into a MP4 file using Adobe Premiere.
1. Firstly, export the flash file (.fla) into an AVI video file.
2. Convert the AVI file into an FLV file using Format Factory.
How to convert a Flash file into an mp4 file?
1. Firstly, export the flash file (.fla) into an AVI video file.
2. Export the AVI file into a MP4 file using Adobe Premiere.
21 April 2015
How to put video on a web page
http://www.gromkov.com/faq/conversion/add_flash_video_to_website.html
(S. Chen: IE uses FLV; Firefox/Chrome use MP4.)
How to add flash video to web site (FLV or SWF)? If you have a web site, then you possibly plan to add a video using FLASH format (.flv or .swf). How to create .flv file? Are there any special things you have to do on the server? What is the easiest way to add flash video to web site? You should convert your video into FLV format. FLV (Flash Video) is a file format used to deliver video over the Internet. FLV content may be embedded within SWF files. SWF is a vector graphics file format. Intended to be small enough for publication on the web, SWF files can contain animations or applets of varying degrees of interactivity and function. SWF file can be played directly in web browser, such as Internet Explorer. But FLV file can not be played directly, because it requires a separate SWF file which reads the video content from FLV. The SWF file that plays FLV file is called ONLINE FLASH PLAYER. If you want to add flash video to your site, then there are two options, which you can consider: OPTION #1 - Host video on your site. Pros: - you can use any online flash player with any skin, interface, look & feel etc; - quality of video is controlled by you only -- make it very good or bad, as you wish; - video size is not limited, you can set any size you like;Cons: - it requires a high bandwidth; - your hosting must be reliable to support requests from many visitors simultaneously;OPTION #2 - Host video on YouTube.com, but insert the video player directly into your web page. Pros: - it doesn't require high bandwidth, it's almost FREE even if you have a lot of visitors; Cons: - flash player includes advertisements and logo of YouTube; #1 - HOST VIDEO ON YOUR WEB SITE
BlueHost offers high-quality web hosting, unlimited space and bandwidth.
Click here to learn more about BlueHost Web Hosting...
Step 1. Download and install FREEWARE Oxelon Media Converter. (S. Chen: For FLV, use Format Factory instead of Oxelon.)
Click here to download Oxelon Media Converter
Step 2. Launch Oxelon Media Converter. Click Start -> Programs -> Oxelon Media Converter -> Oxelon Media Converter.
Step 3. Click the "Add Files" button, and select your video file, for example myvideo.avi
Step 4. Click the "Browse..." button to select the output directory (where your converted FLV file must be saved).
Step 5. Choose Media Format: "FLV (.flv)", Video Codec: "FLV", Audio Codec: "MP3", Specify Movie Size (Width and Height) (S. Chen: choose 'Default' in Format Factory), Bitrate (quality level) (S. Chen: video 512 audio 128 are ok) and click "Conversion".
Step 6. Upload the converted FLV video file to your website.
Step 7. Download free ONLINE FLASH PLAYER: Click here to download FLV Player
Step 8. Unzip it, and upload the file player.swf to your website (to the same folder where your FLV video file is located).
Step 9. Finally, insert the following HTML code into web page on your site:
Where www.mysite.com - is the name of your web server/site
folder - path where FLV file and FLASH PLAYER are located
myvideo.flv - name of your FLV file
You can also set any width and height values. Note, the height must be increased by 29 pixels from the original source value. It is the height of the player's bar. So, if the height of your video is 240, you must enter 269.
Done!
Here's a screenshot of FLV player:
You can switch player to fullscreen mode by clicking on the button at the bottom-right corner.
It is possible to use several additional variables in the "flashvars" param. Just enter & before each variable.
autoplay = false or true (false by default if missing)
vdo = http://www.mysite.com/folder/myvideo.flv (this is the video file in flv format, required)
sound = 50 (sound volume 0 to 100; 50 by default if missing)
advert = intro or commercial video (optional)
advertdesc = intro or commercial title (optional)
mylogo = path to image file with your logo (optional)
tracker = URL to track videos on play, statistics (optional)
buffer = buffer size in seconds (type: number, default:2 if missing)
splashscreen = splash image URL (optional)
clickTAG = URL, creates a clickable button over video (optional)
endclipaction = auto call javascript function or open URL at the end of the clip (optional)
Related Sites HTML5 SOLUTION
The method described above will work on many popular internet browsers, but there are some exceptions. For example, internet browsers on iPhone and iPad doesn't support FLASH, but can render HTML5 Video. Therefore, if you want to create a web page with video that works on these "exclusive" HTML5 devices/browsers, you must convert video into MP4 (H264 for video + AAC for audio) and into OGG (Theora for video + OGG Vorbis for audio). Here's how to do that:
Launch freeware Oxelon Media Converter.
Step 1. Click "Add Files", find and open your original video file (for example, myvideo.avi). Select the path where to save the converted files (click "Browse..." to choose the folder).
Step 2. Next, select Media Format: "MP4 (.mp4)", Video Codec: "H264", Audio Codec: "AAC". Choose width, height (S. Chen: 640x480 is ok), bitrates (S. Chen: video 512 audio 128 are ok). (S. Chen: For MP4, use Adobe Premiere instead of Oxelon.)
Step 3. Click "Conversion". Wait several minutes.
Step 4. Next, click "Add Files", open your original video file once again.
Step 5. Select Media Format: "OGG Video and Audio (.ogg)", Video Codec: "Theora", Audio Codec: "VORBIS". Choose width, height, bitrates.
Step 6. Click "Conversion". Wait several minutes.
Step 7. Upload the converted OGG and MP4 files into the folder on your web site (where FLV file is already located).
Step 8. Insert the following HTML code into the web page on your site:
Where www.mysite.com is the name of your web server/site
folder is the path where MP4, OGG files are located
myvideo.mp4 is the name of your MP4 file
myvideo.ogg is the name of your OGG file
Automatic playback in HTML5 is also possiblle. Just substitute autoplay for controls.
Example: <video width="420" height="315" autoplay>
Also, make sure your server is using the correct mime-types. This is very important! Find ".htaccess" file in the root of your apache server. Add the following lines into .htaccess file:
You can even try a mix of both methods. However, in older browsers it may not work at all. Anyway, this is the code -- combination of HTML5 and FLASH, all-in-one:
Related Sites #2 - HOST VIDEO ON YOUTUBE, AND INSERT VIDEO INTO YOUR WEB PAGE
Step 1. Convert your video to one of the supported formats, using freeware Oxelon Media Converter.
Here is a list of some well-known formats that YouTube supports:
.MPEG4, 3GPP and MOV files - Typically supporting h264, mpeg4 video codecs, and AAC audio codec
.FLV - Adobe-FLV1 video codec, MP3 audio codec
.AVI - Many cameras output this format - typically the video codec is MJPEG and audio is PCM
.MPEGPS - Typically supporting MPEG2 video codec and MP2 audio
.WMV
WebM files - Vp8 video codec and Vorbis Audio codecs
Step 2. Upload video to YouTube: http://www.youtube.com/my_videos_upload
Step 3. On the page, where your video is located on YouTube you can see the following buttons below the player's bar:
Click the "Share" button. Next, click "Embed".
Step 4. Select and copy HTML code. After that, paste the HTML code into your web page.
Step 5. Upload web page to your server. That's all.
(S. Chen: IE uses FLV; Firefox/Chrome use MP4.)
How to add flash video to web site (FLV or SWF)? If you have a web site, then you possibly plan to add a video using FLASH format (.flv or .swf). How to create .flv file? Are there any special things you have to do on the server? What is the easiest way to add flash video to web site? You should convert your video into FLV format. FLV (Flash Video) is a file format used to deliver video over the Internet. FLV content may be embedded within SWF files. SWF is a vector graphics file format. Intended to be small enough for publication on the web, SWF files can contain animations or applets of varying degrees of interactivity and function. SWF file can be played directly in web browser, such as Internet Explorer. But FLV file can not be played directly, because it requires a separate SWF file which reads the video content from FLV. The SWF file that plays FLV file is called ONLINE FLASH PLAYER. If you want to add flash video to your site, then there are two options, which you can consider: OPTION #1 - Host video on your site. Pros: - you can use any online flash player with any skin, interface, look & feel etc; - quality of video is controlled by you only -- make it very good or bad, as you wish; - video size is not limited, you can set any size you like;Cons: - it requires a high bandwidth; - your hosting must be reliable to support requests from many visitors simultaneously;OPTION #2 - Host video on YouTube.com, but insert the video player directly into your web page. Pros: - it doesn't require high bandwidth, it's almost FREE even if you have a lot of visitors; Cons: - flash player includes advertisements and logo of YouTube; #1 - HOST VIDEO ON YOUR WEB SITE
BlueHost offers high-quality web hosting, unlimited space and bandwidth.
Step 1. Download and install FREEWARE Oxelon Media Converter. (S. Chen: For FLV, use Format Factory instead of Oxelon.)
Step 2. Launch Oxelon Media Converter. Click Start -> Programs -> Oxelon Media Converter -> Oxelon Media Converter.
Step 3. Click the "Add Files" button, and select your video file, for example myvideo.avi
Step 4. Click the "Browse..." button to select the output directory (where your converted FLV file must be saved).
Step 5. Choose Media Format: "FLV (.flv)", Video Codec: "FLV", Audio Codec: "MP3", Specify Movie Size (Width and Height) (S. Chen: choose 'Default' in Format Factory), Bitrate (quality level) (S. Chen: video 512 audio 128 are ok) and click "Conversion".
Step 6. Upload the converted FLV video file to your website.
Step 7. Download free ONLINE FLASH PLAYER: Click here to download FLV Player
Step 8. Unzip it, and upload the file player.swf to your website (to the same folder where your FLV video file is located).
Step 9. Finally, insert the following HTML code into web page on your site:
|
Where www.mysite.com - is the name of your web server/site
folder - path where FLV file and FLASH PLAYER are located
myvideo.flv - name of your FLV file
You can also set any width and height values. Note, the height must be increased by 29 pixels from the original source value. It is the height of the player's bar. So, if the height of your video is 240, you must enter 269.
Done!
Here's a screenshot of FLV player:
You can switch player to fullscreen mode by clicking on the button at the bottom-right corner.
It is possible to use several additional variables in the "flashvars" param. Just enter & before each variable.
autoplay = false or true (false by default if missing)
vdo = http://www.mysite.com/folder/myvideo.flv (this is the video file in flv format, required)
sound = 50 (sound volume 0 to 100; 50 by default if missing)
advert = intro or commercial video (optional)
advertdesc = intro or commercial title (optional)
mylogo = path to image file with your logo (optional)
tracker = URL to track videos on play, statistics (optional)
buffer = buffer size in seconds (type: number, default:2 if missing)
splashscreen = splash image URL (optional)
clickTAG = URL, creates a clickable button over video (optional)
endclipaction = auto call javascript function or open URL at the end of the clip (optional)
Related Sites HTML5 SOLUTION
The method described above will work on many popular internet browsers, but there are some exceptions. For example, internet browsers on iPhone and iPad doesn't support FLASH, but can render HTML5 Video. Therefore, if you want to create a web page with video that works on these "exclusive" HTML5 devices/browsers, you must convert video into MP4 (H264 for video + AAC for audio) and into OGG (Theora for video + OGG Vorbis for audio). Here's how to do that:
Launch freeware Oxelon Media Converter.
Step 1. Click "Add Files", find and open your original video file (for example, myvideo.avi). Select the path where to save the converted files (click "Browse..." to choose the folder).
Step 2. Next, select Media Format: "MP4 (.mp4)", Video Codec: "H264", Audio Codec: "AAC". Choose width, height (S. Chen: 640x480 is ok), bitrates (S. Chen: video 512 audio 128 are ok). (S. Chen: For MP4, use Adobe Premiere instead of Oxelon.)
Step 3. Click "Conversion". Wait several minutes.
Step 4. Next, click "Add Files", open your original video file once again.
Step 5. Select Media Format: "OGG Video and Audio (.ogg)", Video Codec: "Theora", Audio Codec: "VORBIS". Choose width, height, bitrates.
Step 6. Click "Conversion". Wait several minutes.
Step 7. Upload the converted OGG and MP4 files into the folder on your web site (where FLV file is already located).
Step 8. Insert the following HTML code into the web page on your site:
|
Where www.mysite.com is the name of your web server/site
folder is the path where MP4, OGG files are located
myvideo.mp4 is the name of your MP4 file
myvideo.ogg is the name of your OGG file
Automatic playback in HTML5 is also possiblle. Just substitute autoplay for controls.
Example: <video width="420" height="315" autoplay>
Also, make sure your server is using the correct mime-types. This is very important! Find ".htaccess" file in the root of your apache server. Add the following lines into .htaccess file:
|
You can even try a mix of both methods. However, in older browsers it may not work at all. Anyway, this is the code -- combination of HTML5 and FLASH, all-in-one:
|
Related Sites #2 - HOST VIDEO ON YOUTUBE, AND INSERT VIDEO INTO YOUR WEB PAGE
Step 1. Convert your video to one of the supported formats, using freeware Oxelon Media Converter.
Here is a list of some well-known formats that YouTube supports:
Step 2. Upload video to YouTube: http://www.youtube.com/my_videos_upload
Step 3. On the page, where your video is located on YouTube you can see the following buttons below the player's bar:
Click the "Share" button. Next, click "Embed".
Step 4. Select and copy HTML code. After that, paste the HTML code into your web page.
Step 5. Upload web page to your server. That's all.
Subscribe to:
Posts (Atom)