popcornmix / omxplayer

omxplayer
GNU General Public License v2.0
1.01k stars 334 forks source link

Vcodec id unknown: 93 #792

Open plain-panda opened 3 years ago

plain-panda commented 3 years ago

I want to use Pi-Video-Looper to loop a video from usb. I've tested 4 files, 2 .mp4's and 2 .mov's. Only 1 .mp4 works. The other 3 only produce a black screen.

I get this msg when I try to open one of the .mov files in omxplayer.

Vcodec id unknown: 93

It plays choppy in vlc on the pi but plays fine in Quicktime on mac? What's the problem here and how can I fix or avoid creating faulty .mov's or .mp4's that won't play in pi-video-looper? Any thoughts?

Here's the output of mediainfo for the file in question:

General
Complete name                            : Techno_0009.mov
Format                                   : MPEG-4
Format profile                           : QuickTime
Codec ID                                 : qt   2005.03 (qt  )
File size                                : 807 MiB
Duration                                 : 20 s 53 ms
Overall bit rate mode                    : Variable
Overall bit rate                         : 338 Mb/s
Encoded date                             : UTC 2019-12-19 14:10:51
Tagged date                              : UTC 2019-12-19 14:13:45
Writing library                          : Apple QuickTime
TIM                                      : 00;00;00;00
TSC                                      : 2997
TSZ                                      : 100

Video
ID                                       : 1
Format                                   : ProRes
Format version                           : Version 0
Format profile                           : 422
Codec ID                                 : apcn
Duration                                 : 20 s 53 ms
Bit rate mode                            : Variable
Bit rate                                 : 337 Mb/s
Width                                    : 3 840 pixels
Height                                   : 2 160 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 29.970 (30000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:2
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 1.356
Stream size                              : 806 MiB (100%)
Writing library                          : adb0
Language                                 : English
Encoded date                             : UTC 2019-12-19 14:10:51
Tagged date                              : UTC 2019-12-19 14:10:51
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709

Other
ID                                       : 2
Type                                     : Time code
Format                                   : QuickTime TC
Duration                                 : 20 s 53 ms
Frame rate                               : 29.970 (29970/1000) FPS
Time code of first frame                 : 00:00:00;00
Time code, striped                       : Yes
Language                                 : English
Encoded date                             : UTC 2019-12-19 14:10:51
Tagged date                              : UTC 2019-12-19 14:10:51
popcornmix commented 3 years ago

omxplayer is designed for playing hardware decoded videos (h264, mpeg4, mpeg2 and vc1). It doesn't support: "Apple ProRes is a family of proprietary video codecs used for storing and editing high definition video data in Apple's Final Cut Pro"

I would suggest you use something like vlc which handles software decode, but no chance of that with 4k video. You'll need to save them in a different format (e.g. h264) if you want to play them on a pi.

plain-panda commented 3 years ago

Alright thank you man. Good to know. My research has led me to believe .mov files are not supported and do not seem to convert well in handbrake for me. However when omxplayer in video_looper doesn't play an .mp4, a quick run through handbrake to h264 seems to do the trick.

popcornmix commented 3 years ago

.mov and .mp4 are containers and all containers are supported by omxplayer. What matters is the codec (like h.264) which is inside.