- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
当我将文件从 mp4 转换为其他格式,如 flv 或 mp4(用于移动设备)时,对于某些文件,我的输出文件损坏,包含损坏的帧(像素化或完全灰色)。有些框架没问题,但大部分都坏了。
以下是使用的命令和一些日志错误:
Command:
=========================================================
/usr/local/bin/mencoder /home/msdemo/public_html/media/files_video/user9/11611ef5b5.mp4 -o /home/msdemo/public_html/media/files_flv/user9/11611ef5b5_ipod.mp4 -ovc x264 -x264encopts bitrate=1500:nocabac:vbv_maxrate=1500:vbv_bufsize=2000:level_idc=30:global_header:frameref=2:mixed_refs:me=umh:subq=6:partitions=all:threads=auto -af resample=44100:0:0,volnorm=1:0.25 -oac faac -faacopts mpeg=4:object=2:raw:br=128 -of lavf -lavfopts i_certify_that_my_video_stream_does_not_use_b_frames -ofps 25.000 -vf scale=640:368,harddup -demuxer lavf 2>&1
Output:
MEncoder 1.0rc1-4.1.2 (C) 2000-2006 MPlayer Team
CPU: Intel(R) Xeon(R) CPU X3460 @ 2.80GHz (Family: 6, Model: 30, Stepping: 5)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
get_path("config") problem
success: format: 0 data: 0x0 - 0x2c0b52d
libavformat file format detected.
VIDEO: [avc1] 1016x572 24bpp 25.000 fps 0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:35 fourcc:0x31637661 size:1016x572 fps:25.00 ftime:=0.0400
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
FAAD: compressed input bitrate missing, assuming 128kbit/s!
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio) decoder)
==========================================================================
** MUXER_LAVF *****************************************************************
You have certified that your video stream does not contain B frames.
REMEMBER: MEncoder's libavformat muxing is presently broken and will generate
INCORRECT files in the presence of B frames. Moreover, due to bugs MPlayer
will play these INCORRECT files as if nothing were wrong!
*******************************************************************************
OK, exit
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [harddup]
Opening video filter: [scale w=640 h=368]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
VDec: vo config request - 1016 x 572 (preferred colorspace: Planar YV12)
VDec: using Planar I420 as output csp (no 1)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
SwScaler: reducing / aligning filtersize 8 -> 8
SwScaler: reducing / aligning filtersize 8 -> 8
SwScaler: reducing / aligning filtersize 8 -> 7
SwScaler: reducing / aligning filtersize 8 -> 7
SwScaler: BICUBIC scaler, from yuv420p to yuv420p using MMX2
SwScaler: using 8-tap MMX scaler for horizontal luminance scaling
SwScaler: using 8-tap MMX scaler for horizontal chrominance scaling
SwScaler: using n-tap MMX scaler for vertical scaling (YV12 like)
SwScaler: 1016x572 -> 640x368
x264 [info]: using SAR=653/640
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 PHADD SSE4 Cache64
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
Pos: 0.0s 1f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
Pos: 0.0s 2f ( 0%) 0.00fps Trem: 0min 0mb A-V:-0.003 [0:0]
Pos: 0.0s 3f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.001 [0:0]
1 duplicate frame(s)!
Pos: 0.0s 4f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.005 [0:0]
[h264 @ 0x87cf698]abs_diff_pic_num overflow
[h264 @ 0x87cf698]decode_slice_header error
[h264 @ 0x87cf698]concealing 2304 DC, 2304 AC, 2304 MV errors
Pos: 0.0s 5f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.001 [0:0]
Pos: 0.0s 6f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.005 [0:0]
Pos: 0.0s 7f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.009 [0:0]
Pos: 0.0s 8f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.013 [0:0]
[h264 @ 0x87cf698]abs_diff_pic_num overflow
[h264 @ 0x87cf698]decode_slice_header error
[h264 @ 0x87cf698]concealing 2304 DC, 2304 AC, 2304 MV errors
Pos: 0.0s 9f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.009 [0:0]
Pos: 0.0s 10f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.013 [0:0]
Pos: 0.0s 11f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.017 [0:0]
Pos: 0.0s 12f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.021 [0:0]
[h264 @ 0x87cf698]abs_diff_pic_num overflow
[h264 @ 0x87cf698]decode_slice_header error
[h264 @ 0x87cf698]concealing 2304 DC, 2304 AC, 2304 MV errors
VIDEO CODEC ID: 28
AUDIO CODEC ID: 15002, TAG: 0
Writing header...
Pos: 0.0s 13f ( 0%) 0.00fps Trem: 0min 2mb A-V:0.017 [0:0]
Pos: 0.1s 14f ( 0%) 0.00fps Trem: 0min 2mb A-V:0.021 [0:0]
Pos: 0.1s 15f ( 0%) 0.00fps Trem: 0min 2mb A-V:0.025 [0:0]
Pos: 0.2s 16f ( 0%) 0.00fps Trem: 0min 3mb A-V:0.029 [0:0]
[h264 @ 0x87cf698]abs_diff_pic_num overflow
[h264 @ 0x87cf698]decode_slice_header error
[h264 @ 0x87cf698]concealing 2304 DC, 2304 AC, 2304 MV errors
Pos: 0.2s 17f ( 0%) 0.00fps Trem: 0min 3mb A-V:0.025 [0:0]
Pos: 0.2s 18f ( 0%) 0.00fps Trem: 0min 5mb A-V:0.027 [0:0]
Pos: 0.3s 19f ( 0%) 0.00fps Trem: 0min 7mb A-V:0.031 [0:0]
Pos: 0.3s 20f ( 0%) 0.00fps Trem: 0min 9mb A-V:0.035 [0:0]
[h264 @ 0x87cf698]abs_diff_pic_num overflow
[h264 @ 0x87cf698]decode_slice_header error
[h264 @ 0x87cf698]concealing 2304 DC, 2304 AC, 2304 MV errors
Pos: 0.4s 21f ( 0%) 0.00fps Trem: 0min 9mb A-V:0.031 [0:0]
Pos: 0.4s 22f ( 0%) 0.00fps Trem: 0min 9mb A-V:0.034 [0:0]
Pos: 0.4s 23f ( 0%) 0.00fps Trem: 0min 9mb A-V:0.038 [0:0]
Pos: 0.5s 24f ( 0%) 0.00fps Trem: 0min 9mb A-V:0.042 [0:0]
感谢您的任何建议。
最佳答案
您使用的 mencoder 版本 (1.0rc1) 是令人难以置信旧的 — 它是 2006 年左右的早期开发版本。开发团队从那时起修复了很多错误,其中最可能包括对您所看到的问题负责的问题,以及可能危及系统安全的问题。立即更新到更新的版本。
关于linux - MEncoder 转换 - 破帧,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25145159/
我正在为各种设备和平台进行大量视频编码。我在 mencoder 之间来回弹跳了几次和 ffmpeg .你推荐哪个,为什么? 附带问题:从谷歌搜索看来,mencoder 使用的是 ffmpeg。它是一直
白天,我每分钟都会用相机拍照。我想用图片制作视频。 1 天 -> 1 个视频 我使用 mencoder 在一天结束时这样做:mencoder "mf://*.jpg"-mf fps=25:type=j
Python - mencoder 不会在不同的文件夹中生成视频。 我正在使用 Python 调用 mencoder 来拍摄一堆图像并将它们转换成视频。我为此所做的代码是: def Video(sel
我似乎无法将图像提取到特定目录中。 我当前运行的命令是 mplayer -vo jpeg CustomLogoAni.mp4 是否也可以设置文件的前缀?类似于 ffmpeg %d.jpg 组合图像时,
当我将文件从 mp4 转换为其他格式,如 flv 或 mp4(用于移动设备)时,对于某些文件,我的输出文件损坏,包含损坏的帧(像素化或完全灰色)。有些框架没问题,但大部分都坏了。 以下是使用的命令和一
我有一个 USB 电视棒 Sundtek MediaTV Pro III,它具有模拟输入。使用以下命令,录音效果完美。 mencoder tv:// -tv driver=v4l2:width=720
我想用.srt刻录一个字幕文件使用 .mp4 将波斯语 (-utf8) 格式转换为视频文件使用 mencoder 格式化。我正在使用 ubuntu 14.04。此命令适用于在视频文件上刻录字幕的简单任
我正在从 python 脚本调用 mencoder 以从各种 .png 文件生成电影: import sys, os command = ''.join([ 'mplaye
首先我会说我是 Python 的新手。 我曾经有一个 Windows/Dos 批处理文件,以便使用正确的参数集启动 Mencoder,而不必每次都键入它们。 当我试图改进我的脚本时,事情变得一团糟,我
我有一组 H.264 图像(仅限 I 帧),我想用一个命令将它们编码为 JPEG。对于单个图像编码,我可以使用以下(ffmpeg): ffmpeg -i raw_image image.jpg 它工作
我正在开发一个在服务器上进行视频编码的应用程序,并且在使用 MEncoder 进行视频编码时遇到了问题。当通过命令行运行时,此解码器无法正常工作 Runtime.getRuntime().exec(“
我有 iso-8859-1 编码的字幕,至少 file-bi 是这么说的.. 它们有土耳其语特殊字符,如 ğ、ü、ş、ç、ö.. 当我尝试这个命令时 mencoder source.avi -sub
因此,这应该是对 this thread 的评论, 但它显然是关闭的,所以就这样吧。正如这里所建议的那样,我一直在使用 matplotlib、numpy 和 mencoder 玩得很成功。从那以后我就
嗨,我有合并视频文件的命令 但我想将图像加入视频文件。 我在做什么: 1) 使用 ffmpeg 将图像转换为 mp4 2) 使用 mencoder 将此转换后的视频加入我选择的视频 但它会提示错误:
我想抓取视频中的最后一帧( .mpg 、 .avi 等)并将其转储到图像文件中( .jpg 、 .png 等)。 Toolchain 是一个现代 Linux 命令行,所以像 mencoder 这样的东
问候, 对于一个脚本,我需要在我的服务器上提供以下支持。 Mencoder 1.0rc1 播放器 1.0rc1 FFmpeg(来自 SVN) flvtool2 或 yamdi 媒体信息 ( http:
Mencoder 有一个不错的选择,可以将 mjpeg 文件转换为 avi 文件,该文件带有在 VLC 中播放的“MJPG”编解码器。 执行此操作的命令行是: mencoder 文件名.mjpeg -
我想用mencoder将1.rmvb转换为avi; 和文件夹/app/tongweb02/部署/模块/cms-web/static/upload/video/origin/2015/03/03/和/a
我发现了关于使用 mencoder 和 ffmpeg 旋转视频的问题,但是我正在寻找一个完全自动化的解决方案。 有人可以帮忙吗? 我要 检测视频方向 必要时轮换 重置视频的元数据(否则在 iOS 设备
这个问题在这里已经有了答案: FFMPEG: get last 10 seconds [closed] (1 个回答) 5年前关闭。 我有许多 .mpeg 文件,我只想使用最后 10 秒(有点像重播)
我是一名优秀的程序员,十分优秀!