bplaum / gmerlin-avdecoder

Gmerlin audio/video decoder library
GNU General Public License v2.0
0 stars 1 forks source link

Unable to play MOV/MPEG4-files (AVC codec) #6

Open umlaeute opened 1 year ago

umlaeute commented 1 year ago

Investigating more with decoding issues, I converted the file used in #5 with ffmpeg to a MOV-container (which also seemingly changed the Codec):

$ ffmpeg fmpeg -i S071C018_210930_FNIY.mxf  test.mov
[...]
$ mediainfo test.mov
General
Complete name                            : test.mov
Format                                   : MPEG-4
Format profile                           : QuickTime
Codec ID                                 : qt   0000.02 (qt  )
File size                                : 4.24 MiB
Duration                                 : 8 s 42 ms
Overall bit rate                         : 4 427 kb/s
Writing application                      : Lavf59.27.100

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High 4:4:4 Predictive@L5.1
Format settings                          : CABAC / 4 Ref Frames
Format settings, CABAC                   : Yes
Format settings, Reference frames        : 4 frames
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 8 s 42 ms
Bit rate                                 : 4 350 kb/s
Width                                    : 3 072 pixels
Height                                   : 2 880 pixels
Display aspect ratio                     : 2.000
Frame rate mode                          : Constant
Frame rate                               : 24.000 FPS
Chroma subsampling                       : 4:4:4
Bit depth                                : 10 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.020
Stream size                              : 4.17 MiB (98%)
Writing library                          : x264 core 164 r3095 baee400
Encoding settings                        : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=4 / threads=12 / lookahead_threads=2 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=24 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=23.0 / qcomp=0.60 / qpmin=0 / qpmax=81 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Color range                              : Limited
Codec configuration box                  : avcC

[...]

Gmerlin still cannot play this file back:

$ gmerlin-play test.mov 
no more csLADSPA plugins
Setting audio stream 0
Setting subtitle stream -1
[player] Opening location: test.mov
[       0:00 ]/[       0:00 ][ffmpeg_video] Unsupported pixelformat 68
[track] Starting video decoder for stream 1 failed

While gmerlin does not crash, it apparently hangs while repeatedly calling clock_nanosleep().

Again this is not using the latest and greatest gmerlin/gmerlin-avdecoder/gavl from git, but those versions found in Debian (svn6298, with some FFmpeg5 patches applied).

bplaum commented 1 year ago

Looks like this file has a resolution > 8 bit. Can I have a sample file? Consumer-level H.264 works perfectly here.

Also, if you have a Quicktime or mp4 with Prores video, I'd also like to test this.

umlaeute commented 8 months ago

i'm using the files ALEXA Mini LF MXF/Apple ProRes from https://www.arri.com/en/learn-help/learn-help-camera-system/camera-sample-footage-reference-image, which (currently) point to https://app.frame.io/reviews/aeea51e4-139f-4810-85c8-cbd74f7a2ce9

the original images are huge (350MB for 11secs), the ffmpeg-converted one is small (1.6MB) so i'm attaching it here

i do not own the copyright on these files; i haven't found any information about it (most likely it belongs to ARRI; but who knows), so please do not include it in your sources :-)