I need to create DASH with multiple renditions. As a source I have some (mostly random) video files. The algorithm is as follows:

1) Create MP4 file from source:
`ffmpeg -y -i r207997.mov -movflags +faststart -force_key_frames expr:gte(t,n_forced*0.96) -map 0:v:0 -c:v:0 libx264 -preset:v:0 ultrafast -r:v:0 25.000 -s:v:0 960x540 -level:v:0 3.0 -b:v:0 1800000 -minrate:v:0 1440000 -maxrate:v:0 2160000 -bufsize:v:0 3240000 -profile:v:0 main -bf:v:0 1 -b_strategy:v:0 0 -sc_threshold:v:0 0 -pix_fmt:v:0 yuv420p -map 0:v:0 -c:v:1 libx264 -preset:v:1 ultrafast -r:v:1 25.000 -s:v:1 1280x720 -level:v:1 4.0 -b:v:1 3584000 -minrate:v:1 2867200 -maxrate:v:1 4300800 -bufsize:v:1 6451200 -profile:v:1 high -bf:v:1 1 -b_strategy:v:1 0 -sc_threshold:v:1 0 -pix_fmt:v:1 yuv420p -map 0:v:0 -c:v:2 libx264 -preset:v:2 ultrafast -r:v:2 25.000 -s:v:2 1920x1080 -level:v:2 4.0 -b:v:2 8000000 -minrate:v:2 6400000 -maxrate:v:2 9600000 -bufsize:v:2 14400000 -profile:v:2 high -bf:v:2 1 -b_strategy:v:2 0 -sc_threshold:v:2 0 -pix_fmt:v:2 yuv420p intermediate-video.mp4`

`ffmpeg -y -i r207997.mov -map 0:a:0 -c:a:0 libfdk_aac -profile:a:0 aac_he -b:a:0 128000 /mnt/nemo-ssai-shared/r207997.mov/intermediate-audio.mp4`

(I need separate audio and video for some other reasons)

2) Package to DASH:
`MP4Box -dash 1920 -frag 1920 -rap -bs-switching no intermediate-video.mp4#trackID=1 intermediate-video-1.mp4#trackID=2 intermediate-video-2.mp4#trackID=3 intermediate-audio.mp4#trackID=1 -single-file -single-segment -out output/manifest.mpd`

you see there - intermediate-video-1.mp4, intermediate-video-2.mp4 - they should be either symlinks or copies of intermediate-video.mp4 - otherwise it just doesn't work and the result contains only 1 rendition. I just cannot use the same file! It was not a problem with symlinks, but now we moved to the NFS storage and they are not an option anymore. Copying the file is too slow.

Is there a way to use one source mp4 file to get multiple renditions in the manifest?

Thanks for reporting your issue. Please make sure these boxes are checked before submitting your issue - thank you!

- [ v ] I looked for a similar issue and couldn't find any.
- [ v ] I tried with the latest version of GPAC. Installers available at http://gpac.io/downloads/gpac-nightly-builds/
- [ v ] I give enough information for contributors to reproduce my issue (meaningful title, github labels, platform and compiler, command-line ...). I can share files anonymously with this dropbox: https://www.mediafire.com/filedrop/filedrop_hosted.php?drop=eec9e058a9486fe4e99c33021481d9e1826ca9dbc242a6cfaab0fe95da5e5d95

Detailed guidelines: http://gpac.io/2013/07/16/how-to-file-a-bug-properly/


Create DASH with multiple renditions from single mp4 file
This is a GitHub Issue
repo:gpac
owner:gpac
Title : Create DASH with multiple renditions from single mp4 file
Issue date:

--- start body ---
I need to create DASH with multiple renditions. As a source I have some (mostly random) video files. The algorithm is as follows:

1) Create MP4 file from source:
`ffmpeg -y -i r207997.mov -movflags +faststart -force_key_frames expr:gte(t,n_forced*0.96) -map 0:v:0 -c:v:0 libx264 -preset:v:0 ultrafast -r:v:0 25.000 -s:v:0 960x540 -level:v:0 3.0 -b:v:0 1800000 -minrate:v:0 1440000 -maxrate:v:0 2160000 -bufsize:v:0 3240000 -profile:v:0 main -bf:v:0 1 -b_strategy:v:0 0 -sc_threshold:v:0 0 -pix_fmt:v:0 yuv420p -map 0:v:0 -c:v:1 libx264 -preset:v:1 ultrafast -r:v:1 25.000 -s:v:1 1280x720 -level:v:1 4.0 -b:v:1 3584000 -minrate:v:1 2867200 -maxrate:v:1 4300800 -bufsize:v:1 6451200 -profile:v:1 high -bf:v:1 1 -b_strategy:v:1 0 -sc_threshold:v:1 0 -pix_fmt:v:1 yuv420p -map 0:v:0 -c:v:2 libx264 -preset:v:2 ultrafast -r:v:2 25.000 -s:v:2 1920x1080 -level:v:2 4.0 -b:v:2 8000000 -minrate:v:2 6400000 -maxrate:v:2 9600000 -bufsize:v:2 14400000 -profile:v:2 high -bf:v:2 1 -b_strategy:v:2 0 -sc_threshold:v:2 0 -pix_fmt:v:2 yuv420p intermediate-video.mp4`

`ffmpeg -y -i r207997.mov -map 0:a:0 -c:a:0 libfdk_aac -profile:a:0 aac_he -b:a:0 128000 /mnt/nemo-ssai-shared/r207997.mov/intermediate-audio.mp4`

(I need separate audio and video for some other reasons)

2) Package to DASH:
`MP4Box -dash 1920 -frag 1920 -rap -bs-switching no intermediate-video.mp4#trackID=1 intermediate-video-1.mp4#trackID=2 intermediate-video-2.mp4#trackID=3 intermediate-audio.mp4#trackID=1 -single-file -single-segment -out output/manifest.mpd`

you see there - intermediate-video-1.mp4, intermediate-video-2.mp4 - they should be either symlinks or copies of intermediate-video.mp4 - otherwise it just doesn't work and the result contains only 1 rendition. I just cannot use the same file! It was not a problem with symlinks, but now we moved to the NFS storage and they are not an option anymore. Copying the file is too slow.

Is there a way to use one source mp4 file to get multiple renditions in the manifest?

Thanks for reporting your issue. Please make sure these boxes are checked before submitting your issue - thank you!

- [ v ] I looked for a similar issue and couldn't find any.
- [ v ] I tried with the latest version of GPAC. Installers available at http://gpac.io/downloads/gpac-nightly-builds/
- [ v ] I give enough information for contributors to reproduce my issue (meaningful title, github labels, platform and compiler, command-line ...). I can share files anonymously with this dropbox: https://www.mediafire.com/filedrop/filedrop_hosted.php?drop=eec9e058a9486fe4e99c33021481d9e1826ca9dbc242a6cfaab0fe95da5e5d95

Detailed guidelines: http://gpac.io/2013/07/16/how-to-file-a-bug-properly/


--- end body ---

None