https://bugs.kde.org/show_bug.cgi?id=421849

Manuel López Antequera <mlopezantequ...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mlopezantequ...@gmail.com

--- Comment #6 from Manuel López Antequera <mlopezantequ...@gmail.com> ---
I'd like to add that I have the same problem with videos from my DJI drone. I
can report the same behavior as Karol when running with and without -map 0. 

It seems like there is some stream that ffmpeg does not support in DJI video
files.

I used ffprobe and ffprobe -show_streams on the file to get more info (check
below for dumps). There are 3 streams: #0 is video, #1 is some non-standard
drone metadata, and #2 is a subtitle track for telemetry. ffmpeg is choking on
#1 because of the -map 0 flag.

The documentation of ffmpeg (https://trac.ffmpeg.org/wiki/Map) reveals that
using "-map 0" will attempt to use all of the streams in the file.

Removing -map 0 initiates some sort of automatic way of picking 1 video and 1
audio stream (https://ffmpeg.org/ffmpeg.html#Stream-selection). I think this
makes sense since we have no GUI to select streams anyways.

-------- dump of ffprobe ---------------------------

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'DJI_0031.MP4':
  Metadata:
    major_brand     : avc1
    minor_version   : 538182144
    compatible_brands: avc1isom
    creation_time   : 2020-03-24T11:24:59.000000Z
    location        : +7.6107+99.0316
    location-{    : +7.6107+99.0316
    comment         : DE=None,SN=1SFLH170AB0C14, Type=Normal, HQ=Normal, Mode=P
  Duration: 00:00:29.16, start: 0.000000, bitrate: 40112 kb/s
    Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv,
bt709), 2720x1530 [SAR 1:1 DAR 16:9], 40067 kb/s, 29.97 fps, 29.97 tbr, 30k
tbn, 59.94 tbc (default)
    Metadata:
      creation_time   : 2020-03-24T11:24:59.000000Z
      handler_name    : ?DJI.AVC
      encoder         : AVC encoder
    Stream #0:1(eng): Data: none (priv / 0x76697270)
    Metadata:
      creation_time   : 2020-03-24T11:24:59.000000Z
      handler_name    : ?DJI.Meta
    Stream #0:2(eng): Subtitle: mov_text (text / 0x74786574), 2 kb/s (default)
    Metadata:
      creation_time   : 2020-03-24T11:24:59.000000Z
      handler_name    : ?DJI.Subtitle
Unsupported codec with id 0 for input stream 1

-------- dump of ffprobe -show_streams ----------------

[STREAM]
index=0
codec_name=h264
codec_long_name=H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
profile=High
codec_type=video
codec_time_base=1001/60000
codec_tag_string=avc1
codec_tag=0x31637661
width=2720
height=1530
coded_width=2720
coded_height=1536
has_b_frames=1
sample_aspect_ratio=1:1
display_aspect_ratio=16:9
pix_fmt=yuv420p
level=50
color_range=tv
color_space=bt709
color_transfer=bt709
color_primaries=bt709
chroma_location=left
field_order=unknown
timecode=N/A
refs=1
is_avc=true
nal_length_size=4
id=N/A
r_frame_rate=30000/1001
avg_frame_rate=30000/1001
time_base=1/30000
start_pts=0
start_time=0.000000
duration_ts=874874
duration=29.162467
bit_rate=40067874
max_bit_rate=N/A
bits_per_raw_sample=8
nb_frames=874
nb_read_frames=N/A
nb_read_packets=N/A
DISPOSITION:default=1
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
DISPOSITION:timed_thumbnails=0
TAG:creation_time=2020-03-24T11:24:59.000000Z
TAG:language=eng
TAG:handler_name=DJI.AVC
TAG:encoder=AVC encoder
[/STREAM]
[STREAM]
index=1
codec_name=unknown
codec_long_name=unknown
profile=unknown
codec_type=data
codec_tag_string=priv
codec_tag=0x76697270
id=N/A
r_frame_rate=0/0
avg_frame_rate=0/0
time_base=1/30000
start_pts=0
start_time=0.000000
duration_ts=0
duration=0.000000
bit_rate=N/A
max_bit_rate=N/A
bits_per_raw_sample=N/A
nb_frames=31
nb_read_frames=N/A
nb_read_packets=N/A
DISPOSITION:default=0
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
DISPOSITION:timed_thumbnails=0
TAG:creation_time=2020-03-24T11:24:59.000000Z
TAG:language=eng
TAG:handler_name=DJI.Meta
[/STREAM]
[STREAM]
index=2
codec_name=mov_text
codec_long_name=MOV text
profile=unknown
codec_type=subtitle
codec_time_base=0/1
codec_tag_string=text
codec_tag=0x74786574
width=N/A
height=N/A
id=N/A
r_frame_rate=0/0
avg_frame_rate=0/0
time_base=1/30000
start_pts=0
start_time=0.000000
duration_ts=900000
duration=30.000000
bit_rate=2048
max_bit_rate=N/A
bits_per_raw_sample=N/A
nb_frames=30
nb_read_frames=N/A
nb_read_packets=N/A
DISPOSITION:default=1
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
DISPOSITION:timed_thumbnails=0
TAG:creation_time=2020-03-24T11:24:59.000000Z
TAG:language=eng
TAG:handler_name=DJI.Subtitle
[/STREAM]

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to