使用gstreamer创建的MP4文件无法在Window Media Player上播放

现代公园

我使用gstreamer创建了mp4文件。

gst-launch-1.0 videotestsrc num-buffers=10 ! "video/x-raw, format=(string)NV12, width=(int)1280, height=(int)720, framerate=(fraction)30/1"  ! videoconvert ! avenc_mpeg4 ! avmux_mp4 ! filesink location=/tmp/test.mp4

我可以使用Mplayer,VLC等播放它。但是我不能在Windows Media Player上播放它。

我选中了MP4框。但似乎没有问题。我如何尝试其他方式?

[Mplayer]

$ mplayer test.mp4 
MPlayer 1.3.0 (Debian), built with gcc-7 (C) 2000-2016 MPlayer Team
do_connect: could not connect to socket
connect: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing test.mp4.
libavformat version 57.83.100 (external)
libavformat file format detected.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fc21b56d2a0]Protocol name not provided, cannot determine if input is local or a network protocol, buffers and access patterns cannot be configured optimally without knowing the protocol
[lavf] stream 0: video (mpeg4), -vid 0
VIDEO:  [MP4V]  1280x720  24bpp  29.970 fps  11338.9 kbps (1384.1 kbyte/s)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 57.107.100 (external)
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
Clip info:
 major_brand: isom
 minor_version: 512
 compatible_brands: isomiso2mp41
 creation_time: 2020-04-09T11:11:51.000000Z
 encoder: Lavf57.71.100
Load subtitles in ./
Audio: no sound
Starting playback...
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [vdpau] 1280x720 => 1280x720 Planar YV12 
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [vdpau] 1280x720 => 1280x720 Planar YV12 
V:   0.3   0/  0 ??% ??% ??,?% 0 0 
Exiting... (End of file)

MP4盒

弗洛里安·卓奇(Florian Zwoch)

请参阅https://support.microsoft.com/zh-cn/help/316992/file-types-supported-by-windows-media-player

MP4视频文件(.mp4,.m4v,.mp4v,.3g2,.3gp2,.3gp,.3gpp)

[..] Windows Media Player不支持播放.mp4文件格式。安装兼容DirectShow的MPEG-4解码器包时,可以在Windows Media Player中播放.mp4媒体文件。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

“ Windows Media Player无法播放文件” mp4

使用Media Player库在Chromecast上播放广告

如何在wx.media中播放mp4文件

Python如何使用Windows Media Player打开和播放mp3文件列表

Media Player无法播放音频

在Win7上为Windows Media Player创建“播放选择”的快捷方式。

如何在Windows Media Player上播放FLAC音频文件?

如何在Windows Media Player 12上右键单击并播放音频文件夹

难以使用ffmpeg将示例mkv转换为mp4,并无法在Windows Media Player中播放

无法在Rhythmbox或Movie Player中播放MP3或MP4文件

无法在Movie Player和VLC中播放avi或mp4文件

哪些编解码器最适合在Windows XP上使用Windows Media Player播放?

当PC与Internet断开连接时,Windows Media Player 12将无法通过IIS本地托管网站播放mp4,mp3,wmv文件

完成播放后如何关闭Window Media Player?

Android Media Player随机引发错误且无法播放

停止一次后无法播放Android Media Player

如何在Windows Media Player中播放FLV文件?

Windows Media Center中的mp4文件

Windows Media Player在新编辑的播放列表上覆盖

如何显示vb.net中播放列表中Media Player正在播放哪个文件?

Android Media Player 无法通过路径播放音频文件

Android Media Player无法在按钮上单击

在Windows 7 Media Player中播放Apple Lossless(.m4a,ALAC)文件吗?

如何在MotionEvent上使用Android Media Player

如何使Windows Media Player 12从mp3文件中读取刷新的标签?

电子播放本地mp4文件

无法播放网页中嵌入的mp4文件

从react-native上传的.mp4文件无法在Chrome中播放

Mozilla Firefox 36无法播放我的h264 MP4文件