搜索 社区服务 统计排行 帮助
  • 5815阅读
  • 71回复

[求助]MediaCoder使用这个设置压无损可以么?

楼层直达
级别: 新手上路
注册时间:
2009-03-07
在线时间:
0小时
发帖:
167
只看该作者 30楼 发表于: 2009-05-15
压无损设置多少为适合
级别: 精灵王
注册时间:
2008-04-08
在线时间:
44小时
发帖:
2855
只看该作者 31楼 发表于: 2009-05-15
压无损不要用level,其他设置应该没什么问题(很多是没用的,不过设了也没事)
级别: 新手上路
注册时间:
2009-03-07
在线时间:
0小时
发帖:
167
只看该作者 32楼 发表于: 2009-05-15
不要用level也就是设置0?
级别: 精灵王
注册时间:
2008-04-08
在线时间:
44小时
发帖:
2855
只看该作者 33楼 发表于: 2009-05-15
可能是吧,不知道
级别: 新手上路
注册时间:
2003-08-16
在线时间:
1小时
发帖:
229
只看该作者 34楼 发表于: 2009-05-15
[/han]
你要保持高质量就用megui里面的x264 insane profile来压。不知道搞什么无损,你都转码了还无损[/han] ,只有remux才能叫无损

级别: 精灵王
注册时间:
2008-04-08
在线时间:
44小时
发帖:
2855
只看该作者 35楼 发表于: 2009-05-15
楼上你不识字码,他的片源是HuffYUV啊,无损的。无损转无损有问题吗?

P.S. 你知道insane profile是什么参数吗?不懂就不要对别人指手画脚
级别: 新手上路
注册时间:
2009-01-10
在线时间:
0小时
发帖:
103
只看该作者 36楼 发表于: 2009-05-15
引用
最初由 roozhou 发布
楼上你不识字码,他的片源是HuffYUV啊,无损的。无损转无损有问题吗?

P.S. 你知道insane profile是什么参数吗?不懂就不要对别人指手画脚



roozhou,还是那样的严厉啊!呵呵,不懂得小白闪过~~~~
级别: 新手上路
注册时间:
2005-06-30
在线时间:
1小时
发帖:
529
只看该作者 37楼 发表于: 2009-05-15
引用
最初由 roozhou 发布
压无损不要用level,其他设置应该没什么问题(很多是没用的,不过设了也没事)
x264不会因为Level设定而有所限制的,只是给个Warning而已。解码端会不会受Level影响我就不知道了……

级别: 精灵王
注册时间:
2008-04-08
在线时间:
44小时
发帖:
2855
只看该作者 38楼 发表于: 2009-05-15
引用
最初由 ssnake 发布
x264不会因为Level设定而有所限制的,只是给个Warning而已。解码端会不会受Level影响我就不知道了……


就是这个问题,x264输出的实际level和bitstream header中的level不同,有可能导致解码器出错
级别: 新手上路
注册时间:
2009-03-07
在线时间:
0小时
发帖:
167
只看该作者 39楼 发表于: 2009-05-15
设为0无法转换,设为5-10画面还是无法播放

Compiled with runtime CPU detection.
success: format: 0 data: 0x0 - 0x1b45aec
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO: [HFYU] 640x480 24bpp 30.000 fps 63655.7 kbps (7770.5 kbyte/s)
[V] filefmt:3 fourcc:0x55594648 size:640x480 fps:30.000 ftime:=0.0333
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [format fmt=i420]
Opening video filter: [harddup]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffhuffyuv] vfm: ffmpeg (FFmpeg HuffYUV)
==========================================================================
VDec: vo config request - 640 x 480 (preferred colorspace: Planar YV12)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDec: using Planar YV12 as output csp (no 2)
Movie-Aspect is undefined - no prescaling applied.
[swscaler @ 0pb4f0bc]using unscaled yuv420p -> yuv420p special converter

# ".\codecs\x264.exe" - 640x480 --fps 30/1 --quiet --no-psnr --no-ssim --keyint
250 --min-keyint 25 --level 10 --me hex --merange 16 --no-dct-decimate --no-fast
-pskip --non-deterministic --ref 2 --subme 6 --bframes 2 --direct auto --trellis
1 --b-rdo --bime --crf 0 --sar 640:640 --threads auto -o "C:\DOCUME~1\wi\LOCALS
~1\Temp\mcstream3636.264"


Flushing video frames.

Video stream:0.240 kbit/s (30 B/s) size: 105 bytes 3.500 secs 105 frames


encoded 105 frames, 21.47 fps, 43703.61 kb/s
File C:\DOCUME~1\wi\LOCALS~1\Temp\mcstream3636.264 is scheduled to be added into
container as type 2.

# ".\tools\mp4box.exe" -tmp "C:\DOCUME~1\wi\LOCALS~1\Temp" -fps 30 -add "C:\DOCU
ME~1\wi\LOCALS~1\Temp\mcstream3636.264" "E:\ds043_PMCcn.com_1_000733.mp4"

AVC-H264 import - frame size 640 x 480 at 30.000 FPS
Import results: 105 samples - Slices: 1 I 53 P 51 B - 1 SEI - 1 IDR
Saving to E:\ds043_PMCcn.com_1_000733.mp4: 0.500 secs Interleaving

# ".\codecs\mencoder.exe" -quiet -of rawvideo -ovc raw -rawvidopts pipe=7 -chann
els 1 -subcp cp936 -sub-fuzziness 1 -subfont-autoscale 3 -subfont-blur 2 -subfon
t-outline 2 -subfont C:\WINDOWS\Fonts\simhei.ttf -vf harddup,format=i420 -endpos
3 -nosound "H:\剪\ds043_PMCcn.com_1_000733.avi" -o NUL

MEncoder dev-SVN-rUNKNOWN-4.2.3 (C) 2000-2008 MPlayer Team
CPU: Pentium(R) Dual-Core CPU E5200 @ 2.50GHz (Family: 6, Model: 23, Step
ping: 6)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
success: format: 0 data: 0x0 - 0x1b45aec
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO: [HFYU] 640x480 24bpp 30.000 fps 63655.7 kbps (7770.5 kbyte/s)
[V] filefmt:3 fourcc:0x55594648 size:640x480 fps:30.000 ftime:=0.0333
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [format fmt=i420]
Opening video filter: [harddup]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffhuffyuv] vfm: ffmpeg (FFmpeg HuffYUV)
==========================================================================
VDec: vo config request - 640 x 480 (preferred colorspace: Planar YV12)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDec: using Planar YV12 as output csp (no 2)
Movie-Aspect is undefined - no prescaling applied.
[swscaler @ 0pb4f0bc]using unscaled yuv420p -> yuv420p special converter

# ".\codecs\x264.exe" - 640x480 --fps 30/1 --quiet --no-psnr --no-ssim --keyint
250 --min-keyint 25 --level 15 --me hex --merange 16 --no-dct-decimate --no-fast
-pskip --non-deterministic --ref 2 --subme 6 --bframes 2 --direct auto --trellis
1 --b-rdo --bime --crf 0 --sar 640:640 --threads auto -o "C:\DOCUME~1\wi\LOCALS
~1\Temp\mcstream3636.264"

x264 [error]: x264_encoder_open failed
File C:\DOCUME~1\wi\LOCALS~1\Temp\mcstream3636.264 is scheduled to be added into
container as type 2.

# ".\codecs\mencoder.exe" -quiet -of rawvideo -ovc raw -rawvidopts pipe=8 -chann
els 1 -subcp cp936 -sub-fuzziness 1 -subfont-autoscale 3 -subfont-blur 2 -subfon
t-outline 2 -subfont C:\WINDOWS\Fonts\simhei.ttf -vf harddup,format=i420 -endpos
3 -nosound "H:\剪\ds043_PMCcn.com_1_000733.avi" -o NUL

MEncoder dev-SVN-rUNKNOWN-4.2.3 (C) 2000-2008 MPlayer Team
CPU: Pentium(R) Dual-Core CPU E5200 @ 2.50GHz (Family: 6, Model: 23, Step
ping: 6)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
success: format: 0 data: 0x0 - 0x1b45aec
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO: [HFYU] 640x480 24bpp 30.000 fps 63655.7 kbps (7770.5 kbyte/s)
[V] filefmt:3 fourcc:0x55594648 size:640x480 fps:30.000 ftime:=0.0333
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [format fmt=i420]
Opening video filter: [harddup]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffhuffyuv] vfm: ffmpeg (FFmpeg HuffYUV)
==========================================================================
VDec: vo config request - 640 x 480 (preferred colorspace: Planar YV12)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDec: using Planar YV12 as output csp (no 2)
Movie-Aspect is undefined - no prescaling applied.
[swscaler @ 0pb4f0bc]using unscaled yuv420p -> yuv420p special converter

# ".\codecs\x264.exe" - 640x480 --fps 30/1 --quiet --no-psnr --no-ssim --keyint
250 --min-keyint 25 --level 5 --me hex --merange 16 --no-dct-decimate --no-fast-
pskip --non-deterministic --ref 2 --subme 6 --bframes 2 --direct auto --trellis
1 --b-rdo --bime --crf 0 --sar 640:640 --threads auto -o "C:\DOCUME~1\wi\LOCALS~
1\Temp\mcstream3636.264"


Flushing video frames.

Video stream:0.240 kbit/s (30 B/s) size: 91 bytes 3.033 secs 91 frames

encoded 90 frames, 21.57 fps, 43860.53 kb/s
File C:\DOCUME~1\wi\LOCALS~1\Temp\mcstream3636.264 is scheduled to be added into
container as type 2.

# ".\tools\mp4box.exe" -tmp "C:\DOCUME~1\wi\LOCALS~1\Temp" -fps 30 -add "C:\DOCU
ME~1\wi\LOCALS~1\Temp\mcstream3636.264" "E:\ds043_PMCcn.com_1_000733.mp4"

AVC-H264 import - frame size 640 x 480 at 30.000 FPS
Import results: 90 samples - Slices: 1 I 47 P 42 B - 1 SEI - 1 IDR
Saving to E:\ds043_PMCcn.com_1_000733.mp4: 0.500 secs Interleaving

# ".\codecs\mencoder.exe" -quiet -of rawvideo -ovc raw -rawvidopts pipe=8 -chann
els 1 -subcp cp936 -sub-fuzziness 1 -subfont-autoscale 3 -subfont-blur 2 -subfon
t-outline 2 -subfont C:\WINDOWS\Fonts\simhei.ttf -vf harddup,format=i420 -nosoun
d "H:\剪\ds043_PMCcn.com_1_000733.avi" -o NUL

MEncoder dev-SVN-rUNKNOWN-4.2.3 (C) 2000-2008 MPlayer Team
CPU: Pentium(R) Dual-Core CPU E5200 @ 2.50GHz (Family: 6, Model: 23, Step
ping: 6)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
success: format: 0 data: 0x0 - 0x1b45aec
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO: [HFYU] 640x480 24bpp 30.000 fps 63655.7 kbps (7770.5 kbyte/s)
[V] filefmt:3 fourcc:0x55594648 size:640x480 fps:30.000 ftime:=0.0333
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [format fmt=i420]
Opening video filter: [harddup]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffhuffyuv] vfm: ffmpeg (FFmpeg HuffYUV)
==========================================================================
VDec: vo config request - 640 x 480 (preferred colorspace: Planar YV12)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDec: using Planar YV12 as output csp (no 2)
Movie-Aspect is undefined - no prescaling applied.
[swscaler @ 0pb4f0bc]using unscaled yuv420p -> yuv420p special converter

# ".\codecs\x264.exe" - 640x480 --fps 30/1 --quiet --no-psnr --no-ssim --keyint
250 --min-keyint 25 --level 5 --me hex --merange 16 --no-dct-decimate --no-fast-
pskip --non-deterministic --ref 2 --subme 6 --bframes 2 --direct auto --trellis
1 --b-rdo --bime --crf 0 --sar 640:640 --threads auto -o "C:\DOCUME~1\wi\LOCALS~
1\Temp\mcstream3636.264"


Flushing video frames.

Video stream:0.240 kbit/s (30 B/s) size: 105 bytes 3.500 secs 105 frames


encoded 105 frames, 21.40 fps, 43703.40 kb/s
File C:\DOCUME~1\wi\LOCALS~1\Temp\mcstream3636.264 is scheduled to be added into
container as type 2.

# ".\tools\mp4box.exe" -tmp "C:\DOCUME~1\wi\LOCALS~1\Temp" -fps 30 -add "C:\DOCU
ME~1\wi\LOCALS~1\Temp\mcstream3636.264" "E:\ds043_PMCcn.com_1_000733.mp4"

AVC-H264 import - frame size 640 x 480 at 30.000 FPS
Import results: 105 samples - Slices: 1 I 53 P 51 B - 1 SEI - 1 IDR
Saving to E:\ds043_PMCcn.com_1_000733.mp4: 0.500 secs Interleaving

# ".\codecs\mencoder.exe" -quiet -of rawvideo -ovc raw -rawvidopts pipe=8 -chann
els 1 -subcp cp936 -sub-fuzziness 1 -subfont-autoscale 3 -subfont-blur 2 -subfon
t-outline 2 -subfont C:\WINDOWS\Fonts\simhei.ttf -vf harddup,format=i420 -endpos
3 -nosound "H:\剪\ds043_PMCcn.com_1_000733.avi" -o NUL

MEncoder dev-SVN-rUNKNOWN-4.2.3 (C) 2000-2008 MPlayer Team
CPU: Pentium(R) Dual-Core CPU E5200 @ 2.50GHz (Family: 6, Model: 23, Step
ping: 6)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
success: format: 0 data: 0x0 - 0x1b45aec
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO: [HFYU] 640x480 24bpp 30.000 fps 63655.7 kbps (7770.5 kbyte/s)
[V] filefmt:3 fourcc:0x55594648 size:640x480 fps:30.000 ftime:=0.0333
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [format fmt=i420]
Opening video filter: [harddup]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffhuffyuv] vfm: ffmpeg (FFmpeg HuffYUV)
==========================================================================
VDec: vo config request - 640 x 480 (preferred colorspace: Planar YV12)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDec: using Planar YV12 as output csp (no 2)
Movie-Aspect is undefined - no prescaling applied.
[swscaler @ 0pb4f0bc]using unscaled yuv420p -> yuv420p special converter

# ".\codecs\x264.exe" - 640x480 --fps 30/1 --quiet --no-psnr --no-ssim --keyint
250 --min-keyint 25 --level 5 --me hex --merange 16 --no-dct-decimate --no-fast-
pskip --non-deterministic --ref 2 --subme 6 --bframes 2 --direct auto --trellis
1 --b-rdo --bime --crf 0 --sar 640:640 --threads auto -o "C:\DOCUME~1\wi\LOCALS~
1\Temp\mcstream3636.264"


Flushing video frames.

Video stream:0.240 kbit/s (30 B/s) size: 91 bytes 3.033 secs 91 frames

encoded 90 frames, 20.57 fps, 43860.53 kb/s
File C:\DOCUME~1\wi\LOCALS~1\Temp\mcstream3636.264 is scheduled to be added into
container as type 2.

# ".\tools\mp4box.exe" -tmp "C:\DOCUME~1\wi\LOCALS~1\Temp" -fps 30 -add "C:\DOCU
ME~1\wi\LOCALS~1\Temp\mcstream3636.264" "E:\ds043_PMCcn.com_1_000733.mp4"

AVC-H264 import - frame size 640 x 480 at 30.000 FPS
Import results: 90 samples - Slices: 1 I 47 P 42 B - 1 SEI - 1 IDR
Saving to E:\ds043_PMCcn.com_1_000733.mp4: 0.500 secs Interleaving

# ".\codecs\mencoder.exe" -quiet -of rawvideo -ovc raw -rawvidopts pipe=8 -chann
els 1 -subcp cp936 -sub-fuzziness 1 -subfont-autoscale 3 -subfont-blur 2 -subfon
t-outline 2 -subfont C:\WINDOWS\Fonts\simhei.ttf -vf harddup,format=i420 -nosoun
d "H:\剪\ds043_PMCcn.com_1_000733.avi" -o NUL

MEncoder dev-SVN-rUNKNOWN-4.2.3 (C) 2000-2008 MPlayer Team
CPU: Pentium(R) Dual-Core CPU E5200 @ 2.50GHz (Family: 6, Model: 23, Step
ping: 6)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
success: format: 0 data: 0x0 - 0x1b45aec
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO: [HFYU] 640x480 24bpp 30.000 fps 63655.7 kbps (7770.5 kbyte/s)
[V] filefmt:3 fourcc:0x55594648 size:640x480 fps:30.000 ftime:=0.0333
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [format fmt=i420]
Opening video filter: [harddup]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffhuffyuv] vfm: ffmpeg (FFmpeg HuffYUV)
==========================================================================
VDec: vo config request - 640 x 480 (preferred colorspace: Planar YV12)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDec: using Planar YV12 as output csp (no 2)
Movie-Aspect is undefined - no prescaling applied.
[swscaler @ 0pb4f0bc]using unscaled yuv420p -> yuv420p special converter

# ".\codecs\x264.exe" - 640x480 --fps 30/1 --quiet --no-psnr --no-ssim --keyint
250 --min-keyint 25 --level 5 --me hex --merange 16 --no-dct-decimate --no-fast-
pskip --non-deterministic --ref 2 --subme 6 --bframes 2 --direct auto --trellis
1 --b-rdo --bime --crf 0 --sar 640:640 --threads auto -o "C:\DOCUME~1\wi\LOCALS~
1\Temp\mcstream3636.264"


Flushing video frames.

Video stream:0.240 kbit/s (30 B/s) size: 105 bytes 3.500 secs 105 frames


encoded 105 frames, 20.94 fps, 43703.46 kb/s
File C:\DOCUME~1\wi\LOCALS~1\Temp\mcstream3636.264 is scheduled to be added into
container as type 2.

# ".\tools\mp4box.exe" -tmp "C:\DOCUME~1\wi\LOCALS~1\Temp" -fps 30 -add "C:\DOCU
ME~1\wi\LOCALS~1\Temp\mcstream3636.264" "E:\ds043_PMCcn.com_1_000733.mp4"

AVC-H264 import - frame size 640 x 480 at 30.000 FPS
Import results: 105 samples - Slices: 1 I 53 P 51 B - 1 SEI - 1 IDR
Saving to E:\ds043_PMCcn.com_1_000733.mp4: 0.500 secs Interleaving
级别: 新手上路
注册时间:
2003-08-16
在线时间:
1小时
发帖:
229
只看该作者 40楼 发表于: 2009-05-15
:Zz: 继续折腾你们的所谓无损吧。640x480x30fps的无压缩码率自己算算是多少。这种分辨率的东西追求什么无损,再无损也比不了更高分辨率的有损。
http://en.wikipedia.org/wiki/H.264/MPEG-4_AVC
看得懂得自己去研究吧。level 2.1根本做不了那么大码率,这个码率已经超过了

级别: 新手上路
注册时间:
2003-08-16
在线时间:
1小时
发帖:
229
只看该作者 41楼 发表于: 2009-05-15
:Zz:
整天用main profile压片还搞这么大码率,不出问题才怪,这个码率已经和high4.1的上限码率相差无几,会造成硬解失败。

级别: 新手上路
注册时间:
2009-03-07
在线时间:
0小时
发帖:
167
只看该作者 42楼 发表于: 2009-05-15
引用
最初由 xreal 发布
:Zz: 继续折腾你们的所谓无损吧。640x480x30fps的无压缩码率自己算算是多少。这种分辨率的东西追求什么无损,再无损也比不了更高分辨率的有损。
http://en.wikipedia.org/wiki/H.264/MPEG-4_AVC
看得懂得自己去研究吧。level 2.1根本做不了那么大码率,这个码率已经超过了
H264到底有损无损?最好画质跟大小达到平衡,在片源无损的情况下

所谓无损你用什么格式来压,目前有比H264更好更清晰压缩更高的编码格式么,没有吧

工具我用的是MediaCoder不是main profile
级别: 新手上路
注册时间:
2003-08-16
在线时间:
1小时
发帖:
229
只看该作者 43楼 发表于: 2009-05-15
:Zz:
你的mediacoder设置在x264 main@level 5上面了 。一个才640x480的东西非要用比蓝光原盘还高一倍的码率,我对这种无损没研究,好像也没什么意思。

级别: 精灵王
注册时间:
2008-04-08
在线时间:
44小时
发帖:
2855
只看该作者 44楼 发表于: 2009-05-15
我基本知道原因了,是MP4Box的bug
如果x264直接输出mp4或mkv都是可以放的,但输出.264再用MP4Box mux一下就不能放了
建议把输出格式改成mkv

P.S.楼主的x264也太老了吧,居然还有b-rdo参数
赶快去换最新的MediaCoder吧
快速回复

限150 字节
上一个 下一个