Jump to content

Recommended Posts

Posted
Hi Guys .
 
I have problem, couldn't encode audio with video at the same time by using ffmpeg
 
This my avs script ( I tried both of them )
 
V=  FFvideoSource("Detective_Conan.mkv")
A = FFAudioSource("Detective_Conan.mka") 
AudioDub(V,A)
trim(0,400)
 
FFmpegSource2("Detective_Conan.mp4",atrack=-1)  
trim(0,400)
 
and this's  the command line 
 

avs2yuv 842.avs - | ffmpeg -y -i -  -c:v libx264 -c:a aac -b:a 128  output_.mp4

 
the result is video without audio.   :wacko:
Waldonnis
Posted

While I love AviSynth for a lot of things, it looks like an operation that would be more easily done with just ffmpeg.  You're passing the output to ffmpeg anyway and it's just remuxing to add an audio stream.  Specifying the video and audio files as inputs, then using the appropriate -map options should work just fine. 

 

That being said, do either of the scripts play properly (with audio), out of curiosity?  Also, I don't think avs2yuv handles audio, as it was intended to be used with video-only encoders like x264.  ffmpeg should be able to take avs files as inputs (at least on Windows it does), so you can try that as well.

Posted

Hello and welcome ! We love talking encoding and codecs.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...