Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MP4Box doesn't generate chunks when called without "-segment-timeline -url-template" #2887

Closed
3 tasks done
alex-rsk opened this issue Jun 20, 2024 · 3 comments
Closed
3 tasks done

Comments

@alex-rsk
Copy link

alex-rsk commented Jun 20, 2024

  • I looked for a similar issue and couldn't find any.
  • I tried with the latest version of GPAC. Installers available at https://gpac.io/downloads/gpac-nightly-builds/
  • I give enough information for contributors to reproduce my issue (meaningful title, github labels, platform and compiler, command-line ...etc).

Greetings.
Trying to make MPEG-DASH without segment-timeline.

Command

MP4Box -dash 10000  \
-dash-ctx /dev/shm/broadcast/ozDBQ3NVL7/context.txt \
-profile dashavc264:live \
--utcs="https://time.akamai.com/?iso&ms" \
 -mpd-refresh 5 \
 -dynamic  \
-bs-switching no \
 -insert-utc \
 -min-buffer 15 \
 -mpd-title "ABR test"  \
--force_flush \
-time-shift 30 \
/dev/shm/broadcast/ozDBQ3NVL7/input.mp4#video:sreg:#Bitrate=500k:#Representation=norm:dur=10 \
 /dev/shm/broadcast/ozDBQ3NVL7/input.mp4#audio:sreg:#Bitrate=48k:dur=10 -out \
   /dev/shm/broadcast/ozDBQ3NVL7/manifest.mpd 

The player doesn't play, it can not find segments, because they're not generating, except initial segments and 2 first:

image

Actually, they are absent in the out dir:
image

First run is succesfull. Second and further runs give an error.
Output of the MP4box:

[Dasher] No template assigned, using $File$_dash$FS$$Number$
[Dasher] Synchronized clock to remote https://time.akamai.com/?iso&ms - UTC diff (local - remote) 89 ms                               
[Dasher] Input /dev/shm/broadcast/ozDBQ3NVL7/input.mp4: max audio duration 9929/1000 in the period is less than duration 10000/1000, clamping will happen                                                                                                                   
No filter chain found for PID V1 in filter dasher to any loaded filters - NOT CONNECTED                                               
No filter chain found for PID A2 in filter dasher to any loaded filters - NOT CONNECTED                                               
Filters not connected:                                                                                                                
fout (dst=/dev/shm/broadcast/ozDBQ3NVL7/input_dash_track1_init.mp4:gfopt:segdur=10000/1000:dynamic:reschedule:ntp=yes:bs_switch=off:profile=dashavc264.live:buf=1500:!check_dur:tsb=30:refresh=2:state=/dev/shm/broadcast/ozDBQ3NVL7/context.txt:loop:_p_gentime=0x59706cc58338:_p_mpdtime=0x59706cc58340:pssh=v:subs_sidx=0:noinit:frag:xps_inband=no:nofragdef:psshs=moov:mime=(null)::title=ABR Test) (idx=7)  
fout (dst=/dev/shm/broadcast/ozDBQ3NVL7/input_dash_track2_init.mp4:gfopt:segdur=10000/1000:dynamic:reschedule:ntp=yes:bs_switch=off:profile=dashavc264.live:buf=1500:!check_dur:tsb=30:refresh=2:state=/dev/shm/broadcast/ozDBQ3NVL7/context.txt:loop:_p_gentime=0x59706cc58338:_p_mpdtime=0x59706cc58340:pssh=v:subs_sidx=0:noinit:frag:xps_inband=no:nofragdef:psshs=moov:mime=(null)::title=ABR Test) (idx=8)  
                                                     

Looks like in the revison 268 it somehow worked. Now its version 2.5-DEV-rev298-g2e71a1ec9-master.
Reminded issue #2875, but setting/unsetting "#Bitrate" does not change anything.

UPD
Creating stream with segment-timeline also get broken! It happened with latest updates of repository, it seems.

@jeanlf

@jeanlf
Copy link
Member

jeanlf commented Jun 20, 2024

I have been cleaning up a few things in the dasher context and cannot reproduce with latest master, could you cross-check ?

@alex-rsk
Copy link
Author

I'm sorry for late response.
I was unable to check the very new version.
Now, checked 2.5-DEV-rev337, and it is working with segment-timeline.

@alex-rsk
Copy link
Author

Thank you a lot.

@jeanlf jeanlf closed this as completed Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants