Changing start number in segment name - ffmpeg mpeg dash encoder

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Changing start number in segment name - ffmpeg mpeg dash encoder

Sai Balaji
Hi, I'm trying to implement MPEG dash live streaming using FFmpeg dash
encoder and shaka player.

Is there any way to set the start number to any value other than 1?

For example, chunk-stream0-00009.m4s instead of the default starting
segment chunk-stream0-00001.m4s

ffmpeg -f avfoundation -video_size 800x600 -framerate 30 -i 0  -vcodec
libx264 -x264-params keyint=30:scenecut=0  -acodec aac  -b:v 1M -b:a 192k
-f dash  -use_template 0 -use_timeline 0 -single_file 0  -streaming 1
-start_number
10 -seg_duration  1 sai.mpd


This is the command I am using.


Thanks and regards,

Sai
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Changing start number in segment name - ffmpeg mpeg dash encoder

韦林
it seems ffmpeg had hardcode starting from 1.
you could modify source code file 'libavformat/dashenc.c’ in function dash_init, member ‘segment_index' of OutputStream.
i’m not sure which unexpected result would be raised up.

> 在 2019年3月8日,下午2:27,Sai Balaji <[hidden email]> 写道:
>
> Hi, I'm trying to implement MPEG dash live streaming using FFmpeg dash
> encoder and shaka player.
>
> Is there any way to set the start number to any value other than 1?
>
> For example, chunk-stream0-00009.m4s instead of the default starting
> segment chunk-stream0-00001.m4s
>
> ffmpeg -f avfoundation -video_size 800x600 -framerate 30 -i 0  -vcodec
> libx264 -x264-params keyint=30:scenecut=0  -acodec aac  -b:v 1M -b:a 192k
> -f dash  -use_template 0 -use_timeline 0 -single_file 0  -streaming 1
> -start_number
> 10 -seg_duration  1 sai.mpd
>
>
> This is the command I am using.
>
>
> Thanks and regards,
>
> Sai
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Changing start number in segment name - ffmpeg mpeg dash encoder

DopeLabs
looks like you can specify if you use webm_dash_manifest.. check the manpage

> On Mar 8, 2019, at 12:05 57AM, 韦林 <[hidden email]> wrote:
>
> it seems ffmpeg had hardcode starting from 1.
> you could modify source code file 'libavformat/dashenc.c’ in function dash_init, member ‘segment_index' of OutputStream.
> i’m not sure which unexpected result would be raised up.
>
>> 在 2019年3月8日,下午2:27,Sai Balaji <[hidden email]> 写道:
>>
>> Hi, I'm trying to implement MPEG dash live streaming using FFmpeg dash
>> encoder and shaka player.
>>
>> Is there any way to set the start number to any value other than 1?
>>
>> For example, chunk-stream0-00009.m4s instead of the default starting
>> segment chunk-stream0-00001.m4s
>>
>> ffmpeg -f avfoundation -video_size 800x600 -framerate 30 -i 0  -vcodec
>> libx264 -x264-params keyint=30:scenecut=0  -acodec aac  -b:v 1M -b:a 192k
>> -f dash  -use_template 0 -use_timeline 0 -single_file 0  -streaming 1
>> -start_number
>> 10 -seg_duration  1 sai.mpd
>>
>>
>> This is the command I am using.
>>
>>
>> Thanks and regards,
>>
>> Sai
>> _______________________________________________
>> ffmpeg-user mailing list
>> [hidden email]
>> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>
>> To unsubscribe, visit link above, or email
>> [hidden email] with subject "unsubscribe".
>
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Changing start number in segment name - ffmpeg mpeg dash encoder

Sai Balaji
ffmpeg -f avfoundation -video_size 800x600 -framerate 30 -i 0  -vcodec
libx264 -x264-params keyint=30:scenecut=0  -acodec aac  -b:v 1M -b:a 192k
-f dash  -use_template 0 -use_timeline 1  -single_file 0  -streaming 1
 -start_number
10 -seg_duration  1 sai.mpd


This is the command which I use for dash.


When I try to modify the same for webm_dash_manifest, I am getting the
following error.


Input #0, avfoundation, from '1':

  Duration: N/A, start: 30498.367000, bitrate: N/A

    Stream #0:0: Video: rawvideo (UYVY / 0x59565955), uyvy422, 1280x720, 30
tbr, 1000k tbn, 1000k tbc

Output #0, webm_dash_manifest, to 'sai.mpd':

Output file #0 does not contain any stream

On Fri, Mar 8, 2019 at 7:07 PM DopeLabs <[hidden email]> wrote:

> looks like you can specify if you use webm_dash_manifest.. check the
> manpage
>
> > On Mar 8, 2019, at 12:05 57AM, 韦林 <[hidden email]> wrote:
> >
> > it seems ffmpeg had hardcode starting from 1.
> > you could modify source code file 'libavformat/dashenc.c’ in function
> dash_init, member ‘segment_index' of OutputStream.
> > i’m not sure which unexpected result would be raised up.
> >
> >> 在 2019年3月8日,下午2:27,Sai Balaji <[hidden email]> 写道:
> >>
> >> Hi, I'm trying to implement MPEG dash live streaming using FFmpeg dash
> >> encoder and shaka player.
> >>
> >> Is there any way to set the start number to any value other than 1?
> >>
> >> For example, chunk-stream0-00009.m4s instead of the default starting
> >> segment chunk-stream0-00001.m4s
> >>
> >> ffmpeg -f avfoundation -video_size 800x600 -framerate 30 -i 0  -vcodec
> >> libx264 -x264-params keyint=30:scenecut=0  -acodec aac  -b:v 1M -b:a
> 192k
> >> -f dash  -use_template 0 -use_timeline 0 -single_file 0  -streaming 1
> >> -start_number
> >> 10 -seg_duration  1 sai.mpd
> >>
> >>
> >> This is the command I am using.
> >>
> >>
> >> Thanks and regards,
> >>
> >> Sai
> >> _______________________________________________
> >> ffmpeg-user mailing list
> >> [hidden email]
> >> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> >>
> >> To unsubscribe, visit link above, or email
> >> [hidden email] with subject "unsubscribe".
> >
> > _______________________________________________
> > ffmpeg-user mailing list
> > [hidden email]
> > https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> >
> > To unsubscribe, visit link above, or email
> > [hidden email] with subject "unsubscribe".
>
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".