c# – É possível inserir vídeos em mp4 no visual studio?

estou fazendo um programa no visual studio com C# e para o usuário ter uma melhor experiência eu gostaria de adicionar loaders na minha form, que basicamente são aquelas animações de carregamento.

Estou querendo comprar um pack com vários tipos de loaders, porém eu gostaria de saber se é possível adicionar esses loaders em mp4 na minha form. Não achei nada relacionado a isso na internet e alguns vídeos que vi eram com um player.

winapi – Check the integrity of mp4 in C ++

I have a large collection of MP4 files and an unstable internet connection, so I use this batch file to check the integrity of the files.

After posting this primitive code and receiving valuable feedback, I decided to take into consideration as much as possible, in particular not to mix the C code, except when using the API Windows and implement said batch file using this code as the basis.

This program works in CMD, it takes a path to the MP4 location as an argument.

#include 
#include 
#include 

#ifndef INVALID_FILE_ATTRIBUTES
#define INVALID_FILE_ATTRIBUTES ((DWORD)-1)
#endif

bool DirectoryExists(const std::string& path)
{
   DWORD present = GetFileAttributesA(path.c_str());

   if (present == INVALID_FILE_ATTRIBUTES)
          return false;

   if (present & FILE_ATTRIBUTE_DIRECTORY)
          return true;

   return false;
}

std::string replace (const std::string& path)
{
   std::string in = path;
   std::replace(in.begin(), in.end(), '\', "https://codereview.stackexchange.com/");
   return in;
}

void findVideos (std::string& fspath)
{
   while(*(fspath.rbegin()) =="https://codereview.stackexchange.com/")  //used to get rid of trailing "https://codereview.stackexchange.com/" like a user inputs path/to/file//////
       fspath.pop_back();

   size_t i=1;
   WIN32_FIND_DATA FindFileData;
   std::string destpath = fspath + std::string("https://codereview.stackexchange.com/")+ std::string("*.mp4");
   std::string ffmpegPath = "ffmpeg.exe -v error -f null - -i ";

   HANDLE hFind = FindFirstFile(destpath.c_str(), &FindFileData);

   if (hFind != INVALID_HANDLE_VALUE)
   {
        do {
            std::string fullpath = std::string(fspath)+std::string("https://codereview.stackexchange.com/")+std::string(FindFileData.cFileName);
            std::cout<

The code works, I am open to criticism and any means to improve it, especially if I work in a professional company and I am asked to implement such a program.

EDIT: Please forgive my ignorance about indentation and other programming paradigms, I graduated a year ago and I failed to get an internship or a employment in the field. I have tried to go with the comments as much as possible after reading a few articles on indentations.

Help me! Convert WMV to MP4 without losing quality?

Hi, I'm trying to convert wmv files to mp4 but I am losing quality.
I have attached a screenshot of the details of the wmv.

please help, thank you !!

See attachment 76549

samsung – Get sound only through headphones on some mp4 videos, no sound from speakers

I have a Samsung Galaxy S7 with Android 8. I have some mp4 videos where I can only get sound when I plug in my headphones and no sound is output from the speakers when the headphones are off even if I turn the volume up to max. The volume works normally with the headphones connected and the sound of other mp4 videos with the same codecs can be heard without any problem on the phone's speakers. Properties of videos with the problem:

audio
Codec: MPEG-4 AAC
Channels: stereo
Sampling frequency: 44100 Hz
Bit rate: 128 kbps

Video
Codec: H.264 (high profile)
Framerate: 24 frames per second
Bit rate: 695 kbps

Audio also works when I play these videos in Ubuntu Linux, but not when I play them on any Windows 10 media player on my laptop, including VLC. What adjustments should I make on my phone or how can I fix these video files so that the audio can also be played on the phone's speakers?

video – How to create mp4 or gif from the background and a set of changes positioned

Here is the scenario:

  1. I have a static background png file let's say 1920x1080
  2. I have a set of a few hundred small png files (each with different dimensions, like smth 30x100, 10x20, 200x200 etc), each representing a rectangle modified compared to the previous frame. Each of these changes can appear in a different position, but I know these positions.
  3. there is no audio
  4. I would generate an mp4 or a fixed gif at 60 frames per second from these images, using each little png as diff. Each frame must apply a single png pre-assigned to a given position for this png.

Can it be done effectively? (I am mainly looking for time optimization).

for example, creating a video representing a user interface recording, where you have a starting image, then each image changes something small (the cursor moves a bit, a button is pressed and changes style), and you want to generate a full video recording, taking only small screenshot at each frame, to decrease the impact of the recording.

I chose this approach because generating small png changes is possible for me and takes much less time than taking FullHD images each time.

I'm aware that I could go for the full frame-by-frame generation, but life is too short to do it that way, especially if you want to create hundreds of such videos. I will go this way if necessary, but I want to push this idea as far as possible.

I would like to do this with anything that could work on AWS Lambda, i.e. with a limited processor, no more than 3G of RAM, preferably with technologies like node or python, or anything directly supported by Lambda.

video – mp4 to m3u8 bad duration

My problem is that the m3u8 file has a bad duration and that the video stream has no fps.

final.mp4 and test.m3u8 have a different duration.

How can I fix it?

Source file:

Input #0, matroska,webm, from 'panasonic.mkv':
  Metadata:
    ENCODER         : Lavf57.66.105
  Duration: 00:00:46.12, start: 0.000000, bitrate: 4548 kb/s
    Stream #0:0: Video: h264 (High), yuv420p(top coded first (swapped)), 1920x1080 (SAR 1:1 DAR 16:9), 25 fps, 25 tbr, 1k tbn, 50 tbc (default)
    Metadata:
      ENCODER         : Lavc57.83.101 libx264
      DURATION        : 00:00:46.083000000
    Stream #0:1: Audio: vorbis, 48000 Hz, stereo, fltp (default)
    Metadata:
      ENCODER         : Lavc57.83.101 libvorbis
      DURATION        : 00:00:46.115000000

1. Analyze the source file for remote encoding

ffmpeg -i panasonic.mkv -map 0:a -map 0:v -codec copy -f segment -segment_time $LEN -segment_format matroska tempfolder/chunk-%03d.orig

2. Encode all orig files

ffmpeg -i chunk-%03d.orig -threads 0 -vcodec libx264 -preset slow -crf 22 -vf scale="trunc(oh*a/2)*2:480" -threads 0 -acodec aac -ab 128k chunk-%03d.enc

3. Combine all enc files

echo "ffconcat version 1.0" > concat.txt
for f in `ls chunk-*.enc | sort`; do
    echo "file $f" >> concat.txt
done

ffmpeg -y -f concat -i concat.txt -map 0 -f matroska -c copy out.mp4

4. Repair file

ffmpeg -i out.mp4 -c copy final.mp4

5. MP4Box for the web

MP4Box -inter 500 -quiet -noprog final.mp4

6. Mp4 to m3u8

ffmpeg -i final.mp4 -c copy -start_number 1 -hls_list_size 0 hls/test.m3u8

Result

final output.mp4

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'final.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.20.100
  Duration: 00:00:46.30, start: 0.000000, bitrate: 743 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 852x480 (SAR 640:639 DAR 16:9), 610 kb/s, SAR 1:1 DAR 71:40, 24.91 fps, 50 tbr, 16k tbn, 50 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 127 kb/s (default)
    Metadata:
      handler_name    : SoundHandler

Test.m3u8 output

Input #0, hls,applehttp, from 'test.m3u8':
  Duration: 00:00:23.04, start: 1.480000, bitrate: 0 kb/s
  Program 0
    Metadata:
      variant_bitrate : 0
    Stream #0:0: Video: h264 (High) ((27)(0)(0)(0) / 0x001B), yuv420p, 852x480 (SAR 640:639 DAR 16:9), 50 tbr, 90k tbn, 50 tbc
    Metadata:
      variant_bitrate : 0
    Stream #0:1: Audio: aac (LC) ((15)(0)(0)(0) / 0x000F), 48000 Hz, stereo, fltp
    Metadata:
      variant_bitrate : 0

Watch mp4 from a remote phone

I have a lot of mp4 in my Windows laptop and I have an Android phone.

I want to watch these mp4 from my Android.

How can I just create a server in a Windows laptop to be able to watch videos from my Android.

Laptop and Android on the same network.

encoding – How to check if an mp4 file contains malware?

To answer your questions, we need to understand what malware really means in an mp4 file.

An mp4 file is not an executable, so it will not execute (malicious) code directly. Therefore, if an mp4 file contains malware that wishes to execute instructions, he must exploit a vulnerability (for example, a buffer overflow) in the program that reads the file. It can be a known vulnerability that has not been addressed or a 0-day.

I will answer your online questions below:

  • Is it easy to bypass google security which is implemented in gmail so that it is not detected as virus / malware by gmail?

Depends on malware. If it has a known signature or is easily detectable with heuristic methods, it is very likely to be detected by a malware detection system on gmail. But if you are dealing with a day 0, the chances drop considerably.

  • Once the video has been downloaded, how can I check whether or not it contains malware / viruses (other methods than using virustotal …)?

If you are not a reverse engineer, your best bet is actually established malware detection systems like virustotal. In case you REALLY need to read the file and are afraid of infection, use a disposable operating system (e.g. in a hardened virtual machine) to read it and wipe the system afterwards.

  • Is it possible that the malware can infect several OSes (Windows and Linux: mainly Ubuntu)?

Very unlikely, as the exploit probably uses a memory corruption bug, which is usually platform-specific.

encoding – How to check if an mp4 file contains malware?

I am not very familiar with malware security and analysis, but I do know that it is theoretically possible to embed malware in files like video, audio. ..

Let's say someone managed to embed malware in an mp4 file and send it via gmail.
I have the following questions.

  • Is it easy to bypass the Google security implemented in
    gmail so that it is not detected as virus / malware by gmail?

  • After downloading the video, how do I check if it contains a
    malware / virus or not (other methods than using virustotal …)?

  • Is it possible that malware can infect multiple OS
    (Windows and Linux: mainly Ubuntu)?

VideoCDN.tv – streaming and download of movie database | MP4 | API | Weekly payments | VAST Adv | NewProxyLists

You can use Google Translate if Russian is not your strongest language.

But when I click on & # 39; Zombies 2 & # 39;, another film appears. Search by year does not work.

But the first movie I tried (Batman) was in Russian. What is the use of an international cinema site?

You'd better promote this on the Russian wjunction. There is no use for most people here.

Great idea … but poorly targeted and executed.

Last modification: