如何让ffmpeg正确输出这个wav文件?

时间:2016-06-04 05:31:39

标签: bash ffmpeg concatenation wav

我正在尝试连接很多wav文件,它远远超过了4GB的限制。

有人在某处提到ffmpeg -f concat -rf64 auto -i mylist.txt -c copy output.wav 将解决它,但在命令行中无法识别-rf64。在此命令行中我需要做什么来解决此问题?

import java.util.*;

public class Averages{ //name class as public

    public static void main(String[] args){

    Scanner sc = new Scanner(System.in); //initialized string using 'new'

        String Course;
        int knowledgemark;
        int communicationmark;
        int thinkingmark;
        int applicationmark;
        int average;
        int finalexam;
        int average2;
        String answer;
        int maxK;
        int maxC;
        int maxA;
        int maxT;
        int knowledgeweight;
        int communicationweight;
        int thinkingweight;
        int applicationweight;
        String Assignment;
        String Test;
        int average3;
        int weight;
        int weightaverage;
        int average4= 0;

        System.out.println("What class are you calculating for?");
        Course = Scan.nextLine();

        System.out.println("What's your knowledge mark for this course?");
        knowledgemark = Scan.nextLine();

        System.out.println("What's your application mark for this course?");
        applicationmark = Scan.nextLine();

        System.out.println("What's your thinking mark for this course?");
        thinkingmark = Scan.nextLine();

        System.out.println("What's your communication mark for this course?");
        communicationmark = Scan.nextLine();

        average = ((knowledgemark + communicationmark + applicationmark + thinkingmark)/4);
        average = Scan.nextInt();

        System.out.println("Your average for" + Course + "is" + average);

        System.out.println("Do you want to calculate your exam with your final exam mark? (yes or no)");
        answer = Scan.next();

        if(answer.equals ("yes")){
        System.out.println("What is your final exam mark?");
            finalexam = scan.nextInt();
            average2 = (((average * 70) + finalexam * 30) /100);
                System.out.println("Your final average in this course is" + average2);
                }

        else{
        System.out.println("You average for" + Course + "is" + average);
            }

            System.out.println("You can also calculate your marks with tests/assignments");
            Test = Scan.nextLine();

            System.out.println("What test/assignment are you calculating for?");
            Test = Scan.nextLine();

            System.out.println("What is the weighting for knowledge?");
            knowledgeweight = Scan.nextLine();

            System.out.println("What is your knowledge mark for the test/assignment?");
            maxK = Scan.nextLine();

            System.out.println("What is the weighting for communication?");
            communicationweight = Scan.nextLine();

            System.out.println("What is your communication mark for the test/assignment?");
            maxC = Scan.nextLine();

            System.out.println("What is the weighting for application?");
            applicationweight = Scan.nextLine();

            System.out.println("What is your application mark for the test/assignment?");
            maxA = Scan.nextLine();

            System.out.println("What is the weighting for knowledge?");
            thinkingweight = Scan.nextLine();

            System.out.println("What is your thinking mark for the test/assignment?");
            maxT = Scan.nextLine();

            average3 = (maxK * knowledgeweight + maxC * communicationweight + maxT * thinkingweight + maxA * applicationweight);

            System.out.println("Your final average for this test/assignment is" + average3);

            System.out.println("What is the weight of the test/assignment (10, 30, 50)?");
            weightaverage = Scan.nextInt;

            weightaverage = (average3 * weightaverage);

            System.out.println("Your assignment/test weighted is" + weightaverage);

            int length;

            Scanner scan = new Scanner(System.in);

            System.out.println("How many classes do you have?");

            length = scan.nextInt();

            int[] firstArray = new int[length];

            for(int i=0; i<length; i++){

                System.out.println("What is your course mark for each class in order" + (1 + i) + "?");

                firstArray[i] = scan.nextInt[];

        }
    }
}   

1 个答案:

答案 0 :(得分:2)

它应该是一个muxer选项,所以

ffmpeg -f concat -i mylist.txt -c copy -rf64 auto output.wav