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 throws error when attempting to add rescaler to live stream. #2868

Closed
alex-rsk opened this issue Jun 11, 2024 · 2 comments
Closed

MP4Box throws error when attempting to add rescaler to live stream. #2868

alex-rsk opened this issue Jun 11, 2024 · 2 comments

Comments

@alex-rsk
Copy link

alex-rsk commented Jun 11, 2024

[x] I looked for a similar issue and couldn't find any.
[x] I tried with the latest version of GPAC.
[x] I give enough information for contributors to reproduce my issue (meaningful title, github labels, platform and compiler, command-line ... etc).
Greetings.

My goal now is, to add different representations with different bitrate to live mpeg-dash.
I'm feeding chunks one by one, calling MP4Box for each, making live stream.

To achieve this I'm trying:

MP4Box -dash 10000   \
     -dash-ctx /dev/shm/broadcast/context.txt  \
     -profile dashavc264:live  \
     --utcs="https://time.akamai.com/?iso&ms" \
     -mpd-refresh 2 -dynamic -bs-switching no \
     -segment-timeline \
     -url-template \
     -insert-utc  \
     -min-buffer 15 \
     -time-shift 30  \
/dev/shm/broadcast/input.mp4#video:@ffsws:osize=160x120@enc:c=avc:b=100k:#Representation=1@@ffsws:osize=320x240@enc:c=avc:b=200k:#Representation=2  \
/dev/shm/broadcast/input.mp4#audio \
-out  /dev/shm/broadcast/manifest.mpd 

The first run of MP4Box is successfull, but the next run of MPEG_DASH with same command line fails

[2024-06-11 16:43:46] local.DEBUG: 4011: [Dasher] No template assigned, using $File$_dash$FS$$Time$
[FFSWS] Converting from 640x480@yuv420 to 160x120@yuv420                                                                              
[FFSWS] Setup rescaler from 640x480 fmt yuv420 to 160x120 fmt yuv420                                                                  
[FFSWS] Converting from 640x480@yuv420 to 320x240@yuv420                                                                              
[FFSWS] Setup rescaler from 640x480 fmt yuv420 to 320x240 fmt yuv420                                                                  
[FFSWS] Converting from 640x480@yuv420 to 160x120@yuv420                                                                              
[FFSWS] Setup rescaler from 640x480 fmt yuv420 to 160x120 fmt yuv420                                                                  
[FFSWS] Converting from 640x480@yuv420 to 320x240@yuv420                                                                              
[FFSWS] Setup rescaler from 640x480 fmt yuv420 to 320x240 fmt yuv420                                                                  
[AVC|H264] Possible Variable Frame Rate: VUI "fixed_frame_rate_flag" absent                                                           
[AVC|H264] Possible Variable Frame Rate: VUI "fixed_frame_rate_flag" absent                                                           
[Dasher] Synchronized clock to remote https://time.akamai.com/?iso&ms - UTC diff (local - remote) 6 ms                                
[Dasher] Input /dev/shm/broadcast/input.mp4: max audio duration 9935/1000 in the period is less than duration 10000/1000, clamping will happen                                                                                                                   
[Dasher] Input /dev/shm/broadcast/input.mp4: max audio duration 9935/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/input_dashinit_rep2.mp4:gfopt:segdur=10000/1000:tpl:stl:dynamic:reschedule:ntp=yes:bs_switch=off:profile=dashavc264.live:buf=1500:!check_dur:tsb=30:
refresh=2:state=/dev/shm/broadcast/context.txt:loop:_p_gentime=0x580a7557d388:_p_mpdtime=0x580a7557d390:pssh=v:subs_sidx=0:noinit:frag:xps_inband=no:nofragdef:psshs=moov:mime=�,~�X::title=Test) (idx=14) 
                                                                                                                                      
double free or corruption (!prev)                                                                                                     
Aborted (core dumped)
@alex-rsk alex-rsk changed the title MP4Box throws segmentation fault when attempt to add rescaler MP4Box throws error when attempting to add rescaler to live stream. Jun 11, 2024
@jeanlf jeanlf closed this as completed in 1c19268 Jun 12, 2024
@jeanlf
Copy link
Member

jeanlf commented Jun 12, 2024

Now fixed, thanks for the report.

@alex-rsk
Copy link
Author

Thank you very much!!

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