svt / encore

Transcode media files in an epic manner
European Union Public License 1.2
273 stars 25 forks source link

Can we integrate the forward processing of moov in MP4 files? #24

Closed jd7352 closed 8 months ago

jd7352 commented 9 months ago

Hello everyone: Our project has scenarios where HLS playback cannot be used. We use the traditional moov forward shift method to achieve simultaneous playback,

ffmpeg -i src.mp4 -movflags faststart -c copy dst.mp4

How can this process be integrated into the Encore process and controlled to be enabled through a profile?

fhermansson commented 8 months ago

Yes you can add any param to an output. Here is a simple example for a x264 profile with -movflags faststart:

name: faststart
description: Faststart example
encodes:
  - type: X264Encode
    twoPass: false
    suffix: _x264_faststart
    params:
      movflags: faststart
jd7352 commented 8 months ago

HI fhermansson: The parameters are valid, thank you very much for your help!