Demuxing HLS stream of fmp4 segments

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Demuxing HLS stream of fmp4 segments

Pedro Pedrosa
Hello all

I'm trying to demux an HLS stream containing fmp4 segments. It works fine
if I demux from the start of the input but as soon as I add the -ss flag to
skip to a timecode it no longer produces any output.

I have tested on my own ffmpeg-generated streams and also on a public file
at
https://bitmovin-a.akamaihd.net/content/MI201109210084_1/m3u8s-fmp4/f08e80da-bf1d-4e3d-8899-f0f6155f6efa_video_270_400000.m3u8

Exact command that does not work: ffmpeg -ss 00:03:00 -i
https://bitmovin-a.akamaihd.net/content/MI201109210084_1/m3u8s-fmp4/f08e80da-bf1d-4e3d-8899-f0f6155f6efa_video_270_400000.m3u8
-y -frames 1 -f image2 test.jpg

Usage that works (omit -ss): ffmpeg -i
https://bitmovin-a.akamaihd.net/content/MI201109210084_1/m3u8s-fmp4/f08e80da-bf1d-4e3d-8899-f0f6155f6efa_video_270_400000.m3u8
-y -frames 1 -f image2 test.jpg

Any help would be greatly appreciated
_______________________________________________
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: Demuxing HLS stream of fmp4 segments

Brainiarc7
On Fri, 17 Apr 2020, 15:26 Pedro Pedrosa, <[hidden email]> wrote:

> Hello all
>
> I'm trying to demux an HLS stream containing fmp4 segments. It works fine
> if I demux from the start of the input but as soon as I add the -ss flag to
> skip to a timecode it no longer produces any output.
>
> I have tested on my own ffmpeg-generated streams and also on a public file
> at
>
> https://bitmovin-a.akamaihd.net/content/MI201109210084_1/m3u8s-fmp4/f08e80da-bf1d-4e3d-8899-f0f6155f6efa_video_270_400000.m3u8
>
> Exact command that does not work: ffmpeg -ss 00:03:00 -i
>
> https://bitmovin-a.akamaihd.net/content/MI201109210084_1/m3u8s-fmp4/f08e80da-bf1d-4e3d-8899-f0f6155f6efa_video_270_400000.m3u8
> -y
> <https://bitmovin-a.akamaihd.net/content/MI201109210084_1/m3u8s-fmp4/f08e80da-bf1d-4e3d-8899-f0f6155f6efa_video_270_400000.m3u8-y>
> -frames 1 -f image2 test.jpg
>
> Usage that works (omit -ss): ffmpeg -i
>
> https://bitmovin-a.akamaihd.net/content/MI201109210084_1/m3u8s-fmp4/f08e80da-bf1d-4e3d-8899-f0f6155f6efa_video_270_400000.m3u8
> -y
> <https://bitmovin-a.akamaihd.net/content/MI201109210084_1/m3u8s-fmp4/f08e80da-bf1d-4e3d-8899-f0f6155f6efa_video_270_400000.m3u8-y>
> -frames 1 -f image2 test.jpg
>
> Any help would be greatly appreciated
>

What build version of FFmpeg are you using, and on what platform?

Where possible, use a recent build from the master git tip. John Van Sickle
and Zeranoe's static builds should do. Then retest and report back, with
full, uncut console output.

There have been patches published recently that improve FFmpeg's handling
of fragmented mp4.
_______________________________________________
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: Demuxing HLS stream of fmp4 segments

vectronic
In reply to this post by Pedro Pedrosa


> On 17 Apr 2020, at 13:26, Pedro Pedrosa <[hidden email]> wrote:
>
> Hello all
>
> I'm trying to demux an HLS stream containing fmp4 segments. It works fine
> if I demux from the start of the input but as soon as I add the -ss flag to
> skip to a timecode it no longer produces any output.
>
> I have tested on my own ffmpeg-generated streams and also on a public file
> at
> https://bitmovin-a.akamaihd.net/content/MI201109210084_1/m3u8s-fmp4/f08e80da-bf1d-4e3d-8899-f0f6155f6efa_video_270_400000.m3u8
>
> Exact command that does not work: ffmpeg -ss 00:03:00 -i
> https://bitmovin-a.akamaihd.net/content/MI201109210084_1/m3u8s-fmp4/f08e80da-bf1d-4e3d-8899-f0f6155f6efa_video_270_400000.m3u8
> -y -frames 1 -f image2 test.jpg
>
> Usage that works (omit -ss): ffmpeg -i
> https://bitmovin-a.akamaihd.net/content/MI201109210084_1/m3u8s-fmp4/f08e80da-bf1d-4e3d-8899-f0f6155f6efa_video_270_400000.m3u8
> -y -frames 1 -f image2 test.jpg
>
> Any help would be greatly appreciated
>

I’ve had success using the patch I submitted against this ticket:

https://trac.ffmpeg.org/ticket/7359 <https://trac.ffmpeg.org/ticket/7359>


_______________________________________________
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: Demuxing HLS stream of fmp4 segments

Pedro Pedrosa
Any reason this hasn't been merged to master?

On Fri, Apr 17, 2020 at 2:11 PM vectronic <[hidden email]> wrote:

>
>
> I’ve had success using the patch I submitted against this ticket:
>
> https://trac.ffmpeg.org/ticket/7359 <https://trac.ffmpeg.org/ticket/7359>
>
>
_______________________________________________
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: Demuxing HLS stream of fmp4 segments

Brainiarc7
In reply to this post by vectronic
On Fri, 17 Apr 2020, 16:11 vectronic, <[hidden email]> wrote:

>
>
> > On 17 Apr 2020, at 13:26, Pedro Pedrosa <[hidden email]>
> wrote:
> >
> > Hello all
> >
> > I'm trying to demux an HLS stream containing fmp4 segments. It works fine
> > if I demux from the start of the input but as soon as I add the -ss flag
> to
> > skip to a timecode it no longer produces any output.
> >
> > I have tested on my own ffmpeg-generated streams and also on a public
> file
> > at
> >
> https://bitmovin-a.akamaihd.net/content/MI201109210084_1/m3u8s-fmp4/f08e80da-bf1d-4e3d-8899-f0f6155f6efa_video_270_400000.m3u8
> >
> > Exact command that does not work: ffmpeg -ss 00:03:00 -i
> >
> https://bitmovin-a.akamaihd.net/content/MI201109210084_1/m3u8s-fmp4/f08e80da-bf1d-4e3d-8899-f0f6155f6efa_video_270_400000.m3u8
> > -y -frames 1 -f image2 test.jpg
> >
> > Usage that works (omit -ss): ffmpeg -i
> >
> https://bitmovin-a.akamaihd.net/content/MI201109210084_1/m3u8s-fmp4/f08e80da-bf1d-4e3d-8899-f0f6155f6efa_video_270_400000.m3u8
> > -y -frames 1 -f image2 test.jpg
> >
> > Any help would be greatly appreciated
> >
>
> I’ve had success using the patch I submitted against this ticket:
>
> https://trac.ffmpeg.org/ticket/7359 <https://trac.ffmpeg.org/ticket/7359>
>
>
> _______________________________________________
> 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".



That patch needs to be split into two, with commit messages explaining what
each change does, as Michael Niedermayer explained.

Apply the recommendations mentioned therein and the ffmpeg-devel mailing
list will review the patch.
_______________________________________________
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: Demuxing HLS stream of fmp4 segments

Pedro Pedrosa
On Fri, Apr 17, 2020 at 2:30 PM Dennis Mungai <[hidden email]> wrote:

> That patch needs to be split into two, with commit messages explaining what
> each change does, as Michael Niedermayer explained.
>
> Apply the recommendations mentioned therein and the ffmpeg-devel mailing
> list will review the patch.
>

This is a critical feature for my application, I would do this myself but
I'm no expert in C development so I have no idea what the patch is doing.

It seems that this working patch has been stuck on a formality issue for
almost two years now, any chance that this can be merged soon or any
chances that the patch submitter can address the issues raised by the team?
Thank you.
_______________________________________________
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: Demuxing HLS stream of fmp4 segments

Pedro Pedrosa
Hello all,

I can see that the feedback for the patch has been addressed and two new
patches have been submitted (thank you vectronic) here
https://patchwork.ffmpeg.org/project/ffmpeg/list/?series=1018.

I also see this has been submitted to the FFmpeg-devel mailing list but
doesn't look like it has been merged to the git repo. Are there still any
issues with the patch? How does one make a successful contribution to
ffmpeg?

On Fri, Apr 17, 2020 at 3:05 PM Pedro Pedrosa <[hidden email]>
wrote:

> On Fri, Apr 17, 2020 at 2:30 PM Dennis Mungai <[hidden email]> wrote:
>
>> That patch needs to be split into two, with commit messages explaining
>> what
>> each change does, as Michael Niedermayer explained.
>>
>> Apply the recommendations mentioned therein and the ffmpeg-devel mailing
>> list will review the patch.
>>
>
> This is a critical feature for my application, I would do this myself but
> I'm no expert in C development so I have no idea what the patch is doing.
>
> It seems that this working patch has been stuck on a formality issue for
> almost two years now, any chance that this can be merged soon or any
> chances that the patch submitter can address the issues raised by the team?
> Thank you.
>
>
_______________________________________________
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".