iuriguilherme / iacecil

O repositório mais fofo do Github
GNU General Public License v3.0
3 stars 1 forks source link

[plugin-storify] Some videos can't be split #9

Open iuriguilherme opened 1 year ago

iuriguilherme commented 1 year ago

Edit: see https://github.com/iuriguilherme/iacecil/issues/9#issuecomment-1250118394


Original issue:

/iacecil/plugins/storify.py", line 55, in storify_callback
    for index, video in enumerate(sorted(videos)):
TypeError: 'NoneType' object is not iterable
iuriguilherme commented 1 year ago
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/tmp/ic.74050240-c481-428a-923f-7750e9cf7cd9.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    creation_time   : 2022-08-07T03:20:50.000000Z
  Duration: 00:01:00.09, start: 0.000000, bitrate: 306 kb/s
    Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p(tv, bt709), 340x426, 253 kb/s, 29 fps, 29 tbr, 90k tbn, 58 tbc (default)
    Metadata:
      creation_time   : 2022-08-07T03:20:49.000000Z
      handler_name    : VideoHandle
    Stream #0:1(eng): Audio: aac (HE-AACv2) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 48 kb/s (default)
    Metadata:
      creation_time   : 2022-08-07T03:20:49.000000Z
      handler_name    : SoundHandle
Could not write header for output file #0 (incorrect codec parameters ?): Muxer not found
iuriguilherme commented 1 year ago

ffmpeg parameters

https://github.com/iuriguilherme/iacecil/blob/257d2b4b9e0bc5d5db161998b344b60e0d3d88dc/iacecil/controllers/ffmpeg_wrapper.py#L96 https://github.com/iuriguilherme/iacecil/blob/257d2b4b9e0bc5d5db161998b344b60e0d3d88dc/iacecil/controllers/ffmpeg_wrapper.py#L97 https://github.com/iuriguilherme/iacecil/blob/257d2b4b9e0bc5d5db161998b344b60e0d3d88dc/iacecil/controllers/ffmpeg_wrapper.py#L98 https://github.com/iuriguilherme/iacecil/blob/257d2b4b9e0bc5d5db161998b344b60e0d3d88dc/iacecil/controllers/ffmpeg_wrapper.py#L99 https://github.com/iuriguilherme/iacecil/blob/257d2b4b9e0bc5d5db161998b344b60e0d3d88dc/iacecil/controllers/ffmpeg_wrapper.py#L100 https://github.com/iuriguilherme/iacecil/blob/257d2b4b9e0bc5d5db161998b344b60e0d3d88dc/iacecil/controllers/ffmpeg_wrapper.py#L101 https://github.com/iuriguilherme/iacecil/blob/257d2b4b9e0bc5d5db161998b344b60e0d3d88dc/iacecil/controllers/ffmpeg_wrapper.py#L102

iuriguilherme commented 1 year ago

Talvez converter o vídeo pra um formato que o ffmpeg consiga dividir antes de tentar cortar