简体   繁体   English

强制VLC播放h264视频文件

[英]forcing VLC to play h264 video file

I have an h264 video file without video container information, but I am using only a 8.3 FAT File system. 我有一个没有视频容器信息的h264视频文件,但是我仅使用8.3 FAT文件系统。 When opening a *.h264 file with VLC, VLC plays it correctly since it understands that this is an h264 encoded video. 使用VLC打开* .h264文件时,VLC可以正确播放它,因为它知道这是h264编码的视频。 But how can this be done if I am only able to have 8.3 format for filenames? 但是,如果我只能使用8.3格式的文件名,该怎么办? How can I tell VLC that a file named X.264 for example is an h264 video file? 如何告诉VLC例如名为X.264的文件是h264视频文件? Windows Media Player 10 and above is able to identify this automatically. Windows Media Player 10及更高版本能够自动识别。 Thanks, Avi Tal. 谢谢,阿维·塔尔(Avi Tal)。

I usually use this command to play raw h.264 from my MAC. 我通常使用此命令从MAC播放原始h.264

/Applications/VLC.app/Contents/MacOS/VLC ~/Movies/demo.264 --demux h264

Note that you have to invoke it from terminal. 请注意,您必须从终端调用它。

Hope it answer your question. 希望它能回答您的问题。

This also works if you find .mp4 files won't play (and you know they were encoded with H264). 如果您发现.mp4文件无法播放(并且您知道它们是使用H264编码的),则此方法也适用。 In those circumstances the prompt is "/Applications/VLC.app/Contents/MacOS/VLC ~/Movies/demo.mp4 --demux h264" 在这种情况下,提示为“ /Applications/VLC.app/Contents/MacOS/VLC〜/ Movies / demo.mp4 --demux h264”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM