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 )
Code:V= FFvideoSource("Detective_Conan.mkv") A = FFAudioSource("Detective_Conan.mka") AudioDub(V,A) trim(0,400)and this's the command lineCode:FFmpegSource2("Detective_Conan.mp4",atrack=-1) trim(0,400)
the result is video without audio.avs2yuv 842.avs - | ffmpeg -y -i - -c:v libx264 -c:a aac -b:a 128 output_.mp4
+ Reply to Thread
Results 1 to 16 of 16
ffmpeg can directly open avs scripts just like it can directly open mkv files.
ffmpeg -i "842.avs" -c:v libx264 -c:a aac -b:a 128k output_.mp4
Or you can mix multiple inputs:
avs2yuv 842.avs - | ffmpeg -f yuv4mpegpipe -i - -i "Detective_Conan.mkv" -map 0:0 -map 1:1 -c:v libx264 -c:a copy output_.mp4
Last edited by alkoon; 18th Dec 2016 at 13:54.
ffmpeg so i see no point to even consider think to use it for encoding (lack of avisynth seem to be obvious especially for Linux where avisynth simply not exist).
Go go for zeranoe build or build own version of ffmpeg https://github.com/jb-alvarado/media-autobuild_suite - it is more than recommended as you can enable nonfree libs.
First of all thank you for reply. secondly sorry for delay.
I build my FFmpeg, and I got a note when I tried to encode in 'yuv420p10le' pixel format, the not is " Incompatible pixel format 'yuv420p10le' for codec 'libx264'" in yellow color
this is my tools, following my code
ffmpeg -i "test.avs" -c:v libx264 -pix_fmt yuv420p10le -profile:v high420 -level 4.2 -crf 16 "output.mp4"
shouldn't come an option with "media-autobuild_suite-master" to build FFmpeg 10bit as well as x264/x265?!
I just want to use FFmpeg for encoding video & audio at the same time, so i want to know also if it's possible to do a multiple input so I cant encode video with x264 or libx264
and audio with "-c:a aac" or another audio tool like fdkaac or qaac.
Thanks in advance
You can check ffmpeg build and particular codec capabilities by:
ffmpeg -h encoder=libx264 >ff_libx264.txtSupported pixel formats: yuv420p yuvj420p yuv422p yuvj422p yuv444p yuvj444p nv12 nv16 nv21
AFAIK ffmpeg is unable to support 8 and 10 bit libx264 at the same time - consider to use external 10 bit x264.exe encoder - but as i'm not a software guy i will be happy to learn something new (you may try to add switch to force 10 bit compilation).
You can try build own 10 bit libx264 ffmpeg build
I just finished download and install "build_locally_gpl_32_bit_option"
after that I got note it says :
so I followed the instruction, but i got an error "command not found"
If couldn't complete 10 bit libx264 ffmpeg build, I want try this one if it's possible ..
... to do a multiple input so I cant encode video with x264 or libx264 and audio with "-c:a aac" or another audio tool like fdkaac or qaac. at the same time?
Last edited by alkoon; 14th Jan 2017 at 03:29.
Supported pixel formats: yuv420p yuvj420p yuv422p yuvj422p yuv444p yuvj444p nv12 nv16 nv21
Supported pixel formats: yuv420p10le yuv422p10le yuv444p10le nv20le
anyway thank you so much pandy or helping =) .
About avs2yuv not support audio import only wav as I know --"
I will try to use AviSynth+ later.
Thanx again .
ffmpeg to open 32 bit AviSynth. Compile ffmpeg as 32 bit.