|
chance
| 来自北京
感谢提供!
2022-7-25亲测可行,使用楼主方法一,仅限非独播版权视频。
tips:转码视频文件名最好使用英文或者数字。
优酷客户端版本:7.5
操作系统:Windows 11
测试文件大小:1.16G,几秒钟转码成功。
方式:Windows terminal 执行change.bat文件,这一步骤设置优酷ffmpeg.exe路径。个人是准备好旧版本优酷客户端文件,使用解压缩软件(7z或者360zip)提取nplayer文件。
思考:主要调用优酷自带的ffmpeg.exe文件,采用取巧的方式提取。
最后附上转码部分日志参考:
PS D:\bak\test> .\change.bat
ffmpeg version 3.4 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 4.8.1 (GCC)
configuration: --disable-static --enable-shared --enable-protocols --disable-devices --disable-avdevice --disable-avfilter --disable-encoders --disable-muxers --disable-iconv
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavfilter 6.107.100 / 6.107.100
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
Input #0, kux, from 'D:\bak\test\2014K1.kux':
Metadata:
hasAudio : true
metadatacreator : modified by youku.com in 20111202
hasKeyframes : true
hasVideo : true
hasMetadata : true
Duration: 02:15:56.14, start: 0.000000, bitrate: 1229 kb/s
Stream #0:0: Video: h264 (High), yuv420p(progressive), 1104x622 [SAR 1105:1104 DAR 1105:622], 25 fps, 25 tbr, 1k tbn, 50 tbc
Stream #0:1: Audio: aac (HE-AAC), 44100 Hz, stereo, fltp
Output #0, mp4, to 'D:\bak\test\2014K1.mp4':
Metadata:
hasAudio : true
metadatacreator : modified by youku.com in 20111202
hasKeyframes : true
hasVideo : true
hasMetadata : true
encoder : Lavf57.83.100
Stream #0:0: Video: h264 (High) (avc1 / 0x31637661), yuv420p(progressive), 1104x622 [SAR 1105:1104 DAR 1105:622], q=2-31, 25 fps, 25 tbr, 16k tbn, 1k tbc
Stream #0:1: Audio: aac (HE-AAC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp
分析:使用到input、ouout,输入输出流,最终成功将aux格式转换成mp4。 |
|