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
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 16 of 16
Thread
-
-
-
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 12:54.
-
one more question,
I want to encode in 10bit, so I download this one : https://sourceforge.net/projects/ffmpeg-hi/files/
But it doesn't support avs script input directly !Last edited by alkoon; 28th Dec 2016 at 11:06.
-
Please elaborate on this - it looks like very old 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:
Code:ffmpeg -h encoder=libx264 >ff_libx264.txt
Supported 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).
https://ffmpeg.zeranoe.com/forum/viewtopic.php?t=2270
https://ffmpeg.zeranoe.com/forum/viewtopic.php?t=3672
You can try build own 10 bit libx264 ffmpeg build
https://github.com/rdp/ffmpeg-windows-build-helpers -
Back again.
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 02:29.
-
Some complied ffmpeg binaries are here - https://sourceforge.net/projects/ffmpegwindowsbi/files/ - you may try to find suitable high bitdepth x264 .
-
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 =) . -
FFmpegSource2("DC_MV.mp4")
interleaved "hack"
About avs2yuv not support audio import only wav as I know --"
I will try to use AviSynth+ later.
Thanx again . -
You cannot use 64 bit ffmpeg to open 32 bit AviSynth. Compile ffmpeg as 32 bit.
http://avisynth.nl/index.php/High_bit-depth_Support_with_Avisynth
I don't know why that is relevant.
Similar Threads
-
encoding audio PCM in a MP4 container with FFMPEG?
By marcorocchini in forum Newbie / General discussionsReplies: 1Last Post: 31st Jan 2016, 16:03 -
encoding levels pc-->TV with ffmpeg
By marcorocchini in forum Newbie / General discussionsReplies: 1Last Post: 17th Jun 2014, 19:31 -
How to 2Pass encoding with ffmpeg?
By dubya11 in forum Video ConversionReplies: 2Last Post: 9th Apr 2014, 14:13 -
ffmpeg 3gp encoding help
By hss2293 in forum Video ConversionReplies: 6Last Post: 19th Nov 2013, 08:47 -
libfaac encoding with ffmpeg
By chicken264 in forum Video ConversionReplies: 31Last Post: 20th Dec 2012, 08:04