We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I want the same effect as this command line, but I don't know how to make it
ffmpeg -i 1.video -i 1.audio -vcodec copy -acodec copy output.mp4
let video_file = "1.video".to_owned(); let audio_file = "1.audio".to_owned(); let mix_file = "1.mp4".to_owned(); let mut video_input = ffmpeg::format::input(&video_file).unwrap(); let mut audio_input = ffmpeg::format::input(&audio_file).unwrap(); let mut mix_output = ffmpeg::format::output(&mix_file).unwrap(); video_input .streams() .best(ffmpeg::media::Type::Video) .map(|stream| { // ???? }); let best_audio_stream_index = audio_input .streams() .best(ffmpeg::media::Type::Audio) .map(|stream| stream.index()); mix_output.set_metadata() mix_output.........
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I want the same effect as this command line, but I don't know how to make it
The text was updated successfully, but these errors were encountered: