Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
K

Kasun Lee

@Kasun Lee
About
Posts
3
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Video Merging with Xabe.FFmpeg. How to track the progress?
    K Kasun Lee

    Hi I wrote the below simple code to merge two video files, it's working. But I wanna track the merging task percentage (or something that shows the progress), so I could show it using a progress bar. How to track the progress? Thanks.

    textBox_taskMsg.Text = "Task is being performed.. This may take some time.";

    string[] files = { textBox_Source1.Text, textBox_Source2.Text }; // Vids to be merged
    string output = textBox_Source1.Text + "_merged.mp4"; // Output vid name
    var conversion = await FFmpeg.Conversions.FromSnippet.Concatenate(output, files); // Merge
    await conversion.Start();

    // SHOW MERGING PROGRESS

    textBox_taskMsg.Text = "Merge Complete.";

    C# tutorial question

  • Video Merging using Splicer Lib
    K Kasun Lee

    Thanks. The two files I'm trying to merge are around 30MB each. I'm actually not that familiar with working videos in C#, just playing around and testing here. Anyways, a video merger like Wondershare would take less than 5 mins to do it, and the resulting video would be less than 100MB. I'm not sure how to properly do that.

    C# tutorial mobile data-structures help question

  • Video Merging using Splicer Lib
    K Kasun Lee

    Hi. I tried to merge two videos into one using Splicer library. When I ran the code (below), the codeĀ got non-responsive, so after awhile I stopped the code from executing. The resulting file (which was created by the code while it has became non-responsive) was over 11GB. I'm not sure how to fix that. Could anyone guide me please? Thanks.

    --------
    //Create a string array to store file paths
    string[] filepaths = new string[10];
    filepaths.SetValue(textBox_Source1.Text, 0);
    filepaths.SetValue(textBox_Source2.Text, 1);
    //Call the video merging function
    MergeVideos(filepaths, filepaths[0] + "_merged");


    using (ITimeline timeline = new DefaultTimeline())
    {
    IGroup group = timeline.AddVideoGroup(32, 720, 576); // Set bitrate, width, height

    var firstClip = group.AddTrack().AddVideo(videoPaths\[0\]);
    var secondClip = group.AddTrack().AddVideo(videoPaths\[1\], firstClip.Duration /\* offset \*/);
    
    using (AviFileRenderer renderer = new AviFileRenderer(timeline, outputFilePath))
    {
        renderer.Render();
    }
    

    }

    C# tutorial mobile data-structures help question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups