Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • gst-plugins-good gst-plugins-good
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 648
    • Issues 648
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 82
    • Merge requests 82
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GStreamer
  • gst-plugins-goodgst-plugins-good
  • Issues
  • #781

Closed
Open
Created Aug 27, 2020 by Florent Thiery@florent.thiery

mp4mux reserved-max-duration property should not accept value 0

mp4mux's property documentation states that value 0 is accepted:

  reserved-max-duration: When set to a value > 0, reserves space for index tables at the beginning of the file.
                        flags: accès en lecture, accès en écriture
                        Unsigned Integer64. Range: 0 - 18446744073709551615 Default: 18446744073709551615 

However:

$ gst-launch-1.0 videotestsrc is-live=true ! x264enc tune=zerolatency ! mp4mux reserved-max-duration=0 reserved-moov-update-period=30000000000 ! filesink location=/tmp/test.mp4
...
ERROR: from element /GstPipeline:pipeline0/GstMP4Mux:mp4mux0: reserved-max-duration of 0 is not allowed
Additional debug info:
../subprojects/gst-plugins-good/gst/isomp4/gstqtmux.c(3052): gst_qt_mux_start_file (): /GstPipeline:pipeline0/GstMP4Mux:mp4mux0

As a workaround, i used the value -1

$ LANG=C gst-launch-1.0 videotestsrc is-live=true ! x264enc tune=zerolatency ! mp4mux reserved-max-duration=-1 reserved-moov-update-period=30000000000 ! filesink location=/tmp/test.mp4

Why is 0 even in the accepted range ? Should the documentation not state When set to a value >= 0 ?

Edited Aug 27, 2020 by Florent Thiery
Assignee
Assign to
Time tracking