magento2 – How to upload mp4 video using wyswing editor in Magento 2

Although I haven’t done it with the video files, I have done some changes to wysiwyg in a project. Maybe I could guide you to the right direction.

Something to know as of Magento 2.3.x versions the TinyMCE have been upgraded to v4.

First of all you need to extend the TinyMCE, which you can find documentation here

In the plugin for MagentoCmsModelWysiwygGalleryDefaultConfigProvider in the function afterGetConfig you can include your custom configuration, which you can get from TinyMCE documentation. Here is the link for the media config.

video – How do I move mp4 files from fotos to files on an ipad

I airdropped 3 movies from my laptop to the ipad. Since they were mp4’s they ended up in fotos, but I’d rather watch them with VLC. How do I get these files “moved” from fotos to files so that VLC can deal with them. I’ve been working with .avi files up until now so it hasn’t been a problem, but evidently fotos is claiming the mp4s and not even giving me a way to control where they go.

macos – Why can’t Finder quicklook the mp4 I just encoded with ffmpeg?

I just did ffmpeg -i My Movie.mov vid.mp4 to convert iMovie output to an MP4.

I can’t quicklook the mp4 as usual (by pressing space), nor does Finder show a thumbnail for it.

Here is ffmpeg -i information for a quicklookable mp4:

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'playable.mp4'
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.45.100
  Duration: 00:00:21.04, start: 0.000000, bitrate: 746 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 640x360 (SAR 1:1 DAR 16:9), 612 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
    Metadata:
      handler_name    : ISO Media file produced by Google Inc.
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
    Metadata:
      handler_name    : SoundHandler

Here is ffmpeg -i vid.mp4:

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'vid.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    title           : My Movie
    encoder         : Lavf58.45.100
    keywords        : iMovie
  Duration: 00:00:53.40, start: 0.000000, bitrate: 316 kb/s
    Stream #0:0(und): Video: h264 (High 4:2:2) (avc1 / 0x31637661), yuv422p10le, 480x270 (SAR 1:1 DAR 16:9), 190 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
    Metadata:
      handler_name    : Core Media Video
      timecode        : 00:00:00:00
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 119 kb/s (default)
    Metadata:
      handler_name    : Core Media Audio
    Stream #0:2(eng): Data: none (tmcd / 0x64636D74)
    Metadata:
      handler_name    : Core Media Video
      timecode        : 00:00:00:00

How am I meant to use ffmpeg to turn My Movie into an MP4 that can be quicklooked?

FFMPEG – Convert M2TS file to MP4 or M4V while retaining TrueHD + AC3

I wonder if some good folks online can help me out with my problem. I want to remux a .m2ts into a .mv4 (or .mp4) with the latest version of FFMPEG. From last years release of FFMPEG, I see TrueHD in a MP4 container is now supported. I want to mux (not transcode) to MP4M4V

The file contains 2 streams, 1 Video, 1 Audio, the audio has AC3 fallback included “AC3 core + True-HD. Peak 5445Kbps (core 640Kbps) Sample Rate: 48KHz Channels 5.1”

TSMuxer view

The command is ffmpeg -i 00000.m2ts -strict -2 -c copy dex2.mp4.

The result is a smaller file 11.4Gb to 10.2Gb, and streams 3 is missing. This is the AC3 fallback. Does anyone know how to remux and combine the both the TrueHD and AC3 with fallback

I did read that MP4 has a limitation with multi audio streams, I could save as M4V, this supports multiply audio streams, but not sure how it will handle TrueHD

Any Help will be very welcome…..Thanks

Original with from FFProbe

Input #0, mpegts, from ‘00001.m2ts’:
Duration: 00:53:03.20, start: 4200.000000, bitrate: 29399 kb/s
Program 1
Stream #0:0(0x1011): Video: h264 (High) (HDMV / 0x564D4448), yuv420p(progressive), 1920×1080 (SAR 1:1 DAR 16:9), 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc
Stream #0:1(0x1100): Audio: truehd (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), s32 (24 bit)
Stream #0:2(0x1100): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), fltp, 640 kb/s

The result is 10.2GB from FFProbe

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from ‘dex2.mp4’:
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf58.65.100
Duration: 00:53:03.18, start: 0.000000, bitrate: 26407 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920×1080 (SAR 1:1 DAR 16:9), 22953 kb/s, 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc (default)
Metadata:
handler_name : VideoHandler
vendor_id : (0)(0)(0)(0)
Stream #0:1(und): Audio: truehd (mlpa / 0x61706C6D), 48000 Hz, 5.1(side), s32 (24 bit), 3408 kb/s (default)
Metadata:
handler_name : SoundHandler
vendor_id : (0)(0)(0)(0)

how can put executable code in mp4 and pdf file?

The field that you’re nibbling at is called Digital Rights Management (DRM), and it’s a big field. Protecting your documents and music, for example, fall under Content Restrictions.

There are significant shortcomings to applying DRM, some of which are:

  • It may make it harder for legitimate readers to access your content
  • It may break or end-of-life and leave your content unreadable
  • It may be possible for attackers to bypass DRM and access your content

As an example, if you Google “mp4 drm” almost all the top hits have to do with bypassing the protections, not with enforcing them.

In short, it’s a hard problem with many bad solutions and a smaller number of usable ones. For these reasons, and because of the ethical implications of restricting content owner’s rights, some people have rebranded DRM as “Digital Restrictions Management.”

In summary:

  1. What you want is hard to do. It’s not as simple as “putting executable code in mp4 and pd4 file”
  2. Solutions exist, but may be limited in usability

audio – Converting Videos using ffmpeg (mkv to mp4)

I’ve been trying to convert a series of mkv videos to mp4 using ffmpeg. I’ve tried the following and it doesn’t seem to actually keep the 60fps frame rate, and it also removes the second audio track.

ffmpeg -ac 2 -r 60 -i video.mkv video.mp4

I know there are a couple threads out there about converting while re-encoding but I don’t really know how to go about that. I want to make sure that the dual audio tracks are preserved as well.
Any help is appreciated.

ffmpeg – Unable to concat MP4 partial files

I have a handful of partial MP4s to make up an entire file.

ffmpeg.exe -i "concat:0.mp4|1.mp4|2.mp4|3.mp4|4.mp4|5.mp4 -c copy -strict -2 "combined.mp4"

This results in a file with 30 seconds playable. The rest of the track is garble. I realized then that

I grabbed ffmpeg-N-100616-gca21cb1e36-win64-gpl, used command ffmpeg -f concat -safe 0 -i segments.txt -c copy output.mp4, and segements.txt with this content:

file 0.mp4
file 1.mp4
file 2.mp4
file 3.mp4
file 4.mp4
file 5.mp4

Output is

(mov,mp4,m4a,3gp,3g2,mj2 @ 000001c058bde9c0) could not find corresponding trex (id 1)
(mov,mp4,m4a,3gp,3g2,mj2 @ 000001c058bde9c0) could not find corresponding track id 0
(mov,mp4,m4a,3gp,3g2,mj2 @ 000001c058bde9c0) trun track id unknown, no tfhd was found
(mov,mp4,m4a,3gp,3g2,mj2 @ 000001c058bde9c0) error reading header
(concat @ 000001c058bd5d80) Impossible to open '1.mp4'
segments.txt: I/O error

If there’s other information you need, let me know.

javascript – Como visualizar/transmitir um video de uma página que força o download e não tem a extensão .mp4 no final

Estou querendo pegar o video gerado de um site de download de videos, porém ele gera um link sem o .mp4 no final e que automaticamente faz o download, sem ter a opção de visualizar no navegador. Preciso saber como eu faço para transmitir em um <video> ou forçar a visualização do arquivo sem fazer download.