Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ssl/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用gstreamer创建的MP4文件不';不能在Windows Media Player上播放_Gstreamer_Mp4_Windows Media Player - Fatal编程技术网

使用gstreamer创建的MP4文件不';不能在Windows Media Player上播放

使用gstreamer创建的MP4文件不';不能在Windows Media Player上播放,gstreamer,mp4,windows-media-player,Gstreamer,Mp4,Windows 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,

我使用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视频文件(.MP4、.m4v、.mp4v、.3g2、.3gp、.3gp)

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


我在安装“K-Lite编解码器包”后解决了这个问题。非常感谢。