• Ricki Ashley@lemmynsfw.comOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      Yep, not working in this post… I sent a pm to the community mod. Glad you are here, you may be able to help.

      In most posts it plays. Not in this one.

      When uploading the mp4 I get this error SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

      If you download the video https://files.catbox.moe/gq81xb.mp4 it will play fine, but not in the browser. Checked on FF & Chrome. But open this community on the phone in any lemmy app and all the videos play.

      Could be a video encoding issue. Am gonna download a few videos from other posts and compare their ffprobe output to the one I grabbed from tiktok for this post.

    • Ricki Ashley@lemmynsfw.comOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      Here we go … new test post … Video working

      https://lemmynsfw.com/post/1491306

      Looks like the lemmy instance does not like playing hevc videos , basically the thing that tiktok gives… gotta reencode.,

      Original video that was not working FFPROBE output Stream #0:0[0x1](und): Video: hevc (Main) (hvc1 / 0x31637668), yuv420p(tv, progressive), 720x1280, 739 kb/s, SAR 1:1 DAR 9:16, 30 fps, 30 tbr, 15360 tbn (default)

      Same video reencoded uploaded to this post https://lemmynsfw.com/post/1491306 FFPROBE output Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(progressive), 720x1280 [SAR 1:1 DAR 9:16], 2705 kb/s, 30 fps, 30 tbr, 15360 tbn (default)

    • Ricki Ashley@lemmynsfw.comOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      Joining and Re-encoding the video(s) to H264. Will amend original post when encode finishes and delete the other test post at that time. Thank you all for helping debug this.

  • Ricki Ashley@lemmynsfw.comOP
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    1 year ago

    For anyone else running in to this problem till this issue is fixed feel free to re-encode videos downloaded from the tiktok web interface, using

    ffmpeg.exe -i DOWNLOADED_TIKTHOT.mp4 -c:v libx264 -preset fast -profile:v high -level 4.2 -pix_fmt yuv420p -crf 23 -codec:a aac -ar 44100 -b:a 128k -movflags faststart CONVERTED_TIKTHOT.mp4

    And for a multi-thot post, quick and easy way to join many clips in to one meta video. Just place all clips in to one folder and run

    for f in *.mp4 ; do echo file \'$f\' >> list.txt; done && ffmpeg -f concat -safe 0 -i list.txt -c:v libx264 -preset fast -profile:v high -level 4.2 -pix_fmt yuv420p -crf 23 -c:a aac -b:a 128k -movflags faststart output_video.mp4