avs是用来改分辨率的,这帖之前那个在ffd里设置我没看懂。
扩展名的低级错误修正了,但结果还是不行,我换了一个小的视频测试,完成后全是噪音。
引用
D:\Media_Store\nico\sm7157371.mp4
General
Complete name : D:\Media_Store\nico\sm7157371.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom
File size : 14.4 MiB
Duration : 2mn 19s
Overall bit rate : 866 Kbps
Encoded date : UTC 2009-05-24 16:21:37
Tagged date : UTC 2009-05-24 16:21:37
Copyright : SMILEVIDEO_MP4
Video #1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L3.0
Format settings, CABAC : Yes
Format settings, ReFrames : 3 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 2mn 19s
Bit rate mode : Variable
Bit rate : 800 Kbps
Maximum bit rate : 1 615 Kbps
Width : 512 pixels
Height : 384 pixels
Display aspect ratio : 4/3
Frame rate mode : Constant
Frame rate : 29.970 fps
Resolution : 24 bits
Colorimetry : 4:2:0
Scan type : Progressive
Bits/(Pixel*Frame) : 0.136
Stream size : 13.3 MiB (92%)
Writing library : x264 core 67 r1120 8544346
Encoding settings : cabac=1 / ref=3 / deblock=1:-2:-2 / analyse=0x3:0x113 / me=umh / subme=9 / psy_rd=0.5:0.0 / mixed_ref=1 / me_range=32 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / chroma_qp_offset=-2 / threads=1 / nr=0 / decimate=1 / mbaff=0 / bframes=5 / b_pyramid=1 / b_adapt=2 / b_bias=0 / direct=3 / wpredb=1 / keyint=300 / keyint_min=30 / scenecut=54 / rc=2pass / bitrate=800 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=16 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / pb_ratio=1.30 / aq=1:1.00
Encoded date : UTC 2009-05-24 16:00:22
Tagged date : UTC 2009-05-24 16:21:37
Audio #2
Format : AAC
Format/Info : Advanced Audio Codec
Format version : Version 4
Format profile : LC
Format settings, SBR : No
Codec ID : 40
Duration : 2mn 19s
Bit rate mode : Variable
Bit rate : 62.0 Kbps
Maximum bit rate : 66.0 Kbps
Channel(s) : 2 channels
Channel positions : L R
Sampling rate : 44.1 KHz
Resolution : 16 bits
Stream size : 1.03 MiB (7%)
Encoded date : UTC 2009-05-24 16:21:37
Tagged date : UTC 2009-05-24 16:21:37
现在的bat内容
引用
set hpath=D:\Program Files (x86)\Encoder\dshow2raw
set ipath=D:\Media_Store\nico
set opath=D:\EncoderOut\
set wpath=F:
start "音频压制中" /D "%hpath%" /MIN /BELOWNORMAL ctaacencoder.exe -b 64000 -m 1 -d -o "%wpath%\tmp_a.aac" "%ipath%\sm7157371.mp4"
"%hpath%\x264" --crf 26 --level 1 --ref 3 --mixed-refs --no-fast-pskip --bframes 3 --b-pyramid --weightb --direct auto --subme 5 --trellis 1 --psy-rd 0.0:0 --partitions p8x8,b8x8,i4x4,p4x4 --me umh --merange 24 --threads 0 --thread-input --progress --no-dct-decimate --no-psnr --no-ssim --versioninfo --swapuv -o "%wpath%\tmp_v.mp4" "%ipath%\sm7157371.mp4"
"%hpath%\ex\ffmpeg" -i "%wpath%\tmp_v.mp4" -vcodec copy -i "%wpath%\tmp_a.aac" -acodec copy "%opath%\sm7157371_new.mp4"
del "%wpath%\tmp_v.mp4"
del "%wpath%\tmp_a.aac"
pause
尝试用下面格式的语句来完成音频部分,
dshow2wav.exe E:\VIDEO_TS\VTS_01_0.IFO 2 | neroaacenc.exe -q 0.2 -ignorelength -if - -of dvd_audio.mp4
但在neroaacenc的界面出现后就会出现:could not parse wav file。
音频还是没搞定。
唔,命令行真好玩~
MeGUI、MediaCoder都去死吧。