[Libav-user] QuickTime failed to play transcoded video
Nikolay Lineckiy
nlineckiy at yandex.ru
Tue Nov 28 15:02:10 EET 2017
Hi. I'm writing a trascoder based on av libs. And there is a problem with playing result videos in Apple's QuickTime player in case of H264 encoder. The problem is that QuickTime unable to properly handle result video stream - there is just black screen. Audio works as expected. I have read that in case of H264 encoder QuickTime needs pixel format to be YUV420P. This is true for result video in my case. I wonder if I'm missing some vital detail, because transcoding with ffmpeg produce absolutely valid video file, which is works nicely with QuickTime.
I have prepared a simple example based on official transcode example, where issue is reproducing. Below is output from ffprobe for result video:
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'transcode-result.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf57.71.100
Duration: 00:01:51.57, start: 0.000000, bitrate: 1687 kb/s
Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 192:143 DAR 1024:429], 1368 kb/s, 24.01 fps, 24 tbr, 12288 tbn, 48 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 317 kb/s (default)
Metadata:
handler_name : SoundHandler
Output for original video:
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'fantastic_beasts.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
title : Fantastic Beasts and Where to Find Them (2016) Trailer F1 DCPRip 2k encode by messafan / Conversion tool by alexx
encoder : Lavf57.83.100
Duration: 00:01:51.56, start: 0.000000, bitrate: 1212 kb/s
Stream #0:0(rus): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 192:143 DAR 1024:429], 890 kb/s, 24 fps, 24 tbr, 12288 tbn, 48 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(rus): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 317 kb/s (default)
Metadata:
handler_name : SoundHandler
Example program source attached to the letter.
Link to original video file: https://www.dropbox.com/s/lc8rq1z8kr0hi6b/fantastic_beasts.mp4?dl=0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: transcoding-example.c
Type: text/x-c
Size: 22720 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20171128/ab4becb0/attachment.bin>
More information about the Libav-user
mailing list