how to send metadata in mpegts via ffmpeg

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

how to send metadata in mpegts via ffmpeg

qw
Hi,


mpeg2 ts supports metadata and private data. How to send some metadata in mpeg2 ts periodically at some fixed interval via ffmpeg?


Thanks!


Regards


Andrew
_______________________________________________
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: how to send metadata in mpegts via ffmpeg

Carl Eugen Hoyos-2


> Am 15.10.2019 um 11:14 schrieb qw <[hidden email]>:

> mpeg2 ts supports metadata and private data.

Please provide a sample containing the metadata you need.

> How to send some metadata in mpeg2 ts periodically at some fixed interval via ffmpeg?

I believe this is (always) done automatically. Since you did not provide the command line you tested together with the complete, uncut console output I cannot guess why it does not work for you.

Or are you searching for the option pat_period?

Carl Eugen
_______________________________________________
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: how to send metadata in mpegts via ffmpeg

kumowoon1025
In reply to this post by qw
> mpeg2 ts supports metadata and private data. How to send some metadata in mpeg2 ts periodically at some fixed interval via ffmpeg?

Are you talking about timed id3 metadata?
_______________________________________________
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".
qw
Reply | Threaded
Open this post in threaded view
|

Re: how to send metadata in mpegts via ffmpeg

qw
In reply to this post by Carl Eugen Hoyos-2


>> mpeg2 ts supports metadata and private data.
>
>Please provide a sample containing the metadata you need.

flv demuxer/muxer can decode/encode metadata in data stream. Does mpegts demuxer/muxer have the same function?
Mpeg2 ts standard provides several methods to transport metadata. Is there some apporpriate way to transport some metadata at some fixed interval?





>> How to send some metadata in mpeg2 ts periodically at some fixed interval via ffmpeg?
>
>I believe this is (always) done automatically. Since you did not provide the command line you tested together with the complete, uncut console output I cannot guess why it does not work for you.
>
>Or are you searching for the option pat_period?

I have read the source code of mpegts demuxer/muxer in ffmpeg, which doesn't support decoding/encoding self-defined metadata.







At 2019-10-15 18:00:38, "Carl Eugen Hoyos" <[hidden email]> wrote:

>
>
>> Am 15.10.2019 um 11:14 schrieb qw <[hidden email]>:
>
>> mpeg2 ts supports metadata and private data.
>
>Please provide a sample containing the metadata you need.
>
>> How to send some metadata in mpeg2 ts periodically at some fixed interval via ffmpeg?
>
>I believe this is (always) done automatically. Since you did not provide the command line you tested together with the complete, uncut console output I cannot guess why it does not work for you.
>
>Or are you searching for the option pat_period?
>
>Carl Eugen
>_______________________________________________
>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".
qw
Reply | Threaded
Open this post in threaded view
|

Re: how to send metadata in mpegts via ffmpeg

qw
In reply to this post by kumowoon1025


>> mpeg2 ts supports metadata and private data. How to send some metadata in mpeg2 ts periodically at some fixed interval via ffmpeg?
>
>Are you talking about timed id3 metadata?

In ISO/IEC 13818-1, 2.12 carriage of metadata gives several options for transport of metadata. I don't know timed id3 metadata.


Andrew

At 2019-10-15 23:55:49, "Ted Park" <[hidden email]> wrote:

>> mpeg2 ts supports metadata and private data. How to send some metadata in mpeg2 ts periodically at some fixed interval via ffmpeg?
>
>Are you talking about timed id3 metadata?
>_______________________________________________
>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: how to send metadata in mpegts via ffmpeg

Carl Eugen Hoyos-2
In reply to this post by qw
Am Di., 15. Okt. 2019 um 18:18 Uhr schrieb qw <[hidden email]>:

> >> How to send some metadata in mpeg2 ts periodically at some fixed interval via ffmpeg?
> >
> > I believe this is (always) done automatically. Since you did not provide the command line
> > you tested together with the complete, uncut console output I cannot guess why it does
> > not work for you.
> >
> > Or are you searching for the option pat_period?
>
> I have read the source code of mpegts demuxer/muxer in ffmpeg, which doesn't support
> decoding/encoding self-defined metadata.

If you already know the answer for a question we cannot understand (see above),
why are you asking?

Carl Eugen
_______________________________________________
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: how to send metadata in mpegts via ffmpeg

kumowoon1025
>> I have read the source code of mpegts demuxer/muxer in ffmpeg, which doesn't support
>> decoding/encoding self-defined metadata.
>
> If you already know the answer for a question we cannot understand (see above),
> why are you asking?

Maybe he found the answer while reading the source after the fact. On the other hand, I think this may be related to the strange issue of the mpegts decoder complaining of invalid timestamps on a reference (albeit obsolete) HLS stream that was brought up a while ago. <http://ffmpeg.org/pipermail/ffmpeg-user/2019-September/045489.html> <http://ffmpeg.org/pipermail/ffmpeg-user/2019-September/045489.html>
_______________________________________________
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".
qw
Reply | Threaded
Open this post in threaded view
|

Re: how to send metadata in mpegts via ffmpeg

qw
In reply to this post by kumowoon1025
>> mpeg2 ts supports metadata and private data. How to send some metadata in mpeg2 ts periodically at some fixed interval via ffmpeg?
>
>Are you talking about timed id3 metadata?


Thanks for your reply.
Yes, I want to transport some metadata similar to timed id3 metadata. What is id3 metadata used for?




Thanks!


andrew



At 2019-10-15 23:55:49, "Ted Park" <[hidden email]> wrote:

>> mpeg2 ts supports metadata and private data. How to send some metadata in mpeg2 ts periodically at some fixed interval via ffmpeg?
>
>Are you talking about timed id3 metadata?
>_______________________________________________
>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: how to send metadata in mpegts via ffmpeg

kumowoon1025


> On Oct 19, 2019, at 8:39 AM, qw <[hidden email]> wrote:

>
>>>>> mpeg2 ts supports metadata and private data. How to send some metadata in mpeg2 ts periodically at some fixed interval via ffmpeg?
>>>>
>>>> Are you talking about timed id3 metadata?
>>>
>>> In ISO/IEC 13818-1, 2.12 carriage of metadata gives several options for transport of metadata. I don't know timed id3 metadata.
>>
>> …
>
> Thanks for your reply.
> Yes, I want to transport some metadata similar to timed id3 metadata. What is id3 metadata used for?


Uh. Not sure how you know you want to transport data “similar to timed id3 metadata” when you don’t know what it is, it would help if you could tell us what kind of metadata you’re looking to include…

Timed ID3 tags are only used in HLS (I think, don’t quote me on that). They’re literally ID3 tags (such as that you might find in an mp3 file, for example), that are inserted at certain points in time in the TS stream.

The way I’ve seen it being it used is to change the title of the stream at discontinuity points (for example it could be a tag with metadata for an episode of a TV show, then another could be inserted when ads play, or another show starts, etc)
_______________________________________________
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".
qw
Reply | Threaded
Open this post in threaded view
|

Re: how to send metadata in mpegts via ffmpeg

qw
>Uh. Not sure how you know you want to transport data “similar to timed id3 metadata” when you don’t know what it is, it would help if you could tell us what kind of metadata you’re looking to include…
>
>Timed ID3 tags are only used in HLS (I think, don’t quote me on that). They’re literally ID3 tags (such as that you might find in an mp3 file, for example), that are inserted at certain points in time in the TS stream.
>
>The way I’ve seen it being it used is to change the title of the stream at discontinuity points (for example it could be a tag with metadata for an episode of a TV show, then another could be inserted when ads play, or another show starts, etc)


The usage of id3 timed metadata can be found in the following link:


https://developer.apple.com/library/archive/documentation/AudioVideo/Conceptual/HTTP_Live_Streaming_Metadata_Spec/2/2.html#//apple_ref/doc/uid/TP40010435-CH2-DontLinkElementID_9



The format of metadata in flv is of AMF, and you can find some company has implemented it, i.e. to convert amf into id3:


https://www.wowza.com/docs/how-to-use-timed-metadata-in-wowza-live-streaming-workflows


I think the function can be implemented in some self-defined bsf.


Thanks!


Regards


Andrew




At 2019-10-22 07:30:24, "Ted Park" <[hidden email]> wrote:

>
>
>> On Oct 19, 2019, at 8:39 AM, qw <[hidden email]> wrote:
>
>>
>>>>>> mpeg2 ts supports metadata and private data. How to send some metadata in mpeg2 ts periodically at some fixed interval via ffmpeg?
>>>>>
>>>>> Are you talking about timed id3 metadata?
>>>>
>>>> In ISO/IEC 13818-1, 2.12 carriage of metadata gives several options for transport of metadata. I don't know timed id3 metadata.
>>>
>>> …
>>
>> Thanks for your reply.
>> Yes, I want to transport some metadata similar to timed id3 metadata. What is id3 metadata used for?
>
>
>Uh. Not sure how you know you want to transport data “similar to timed id3 metadata” when you don’t know what it is, it would help if you could tell us what kind of metadata you’re looking to include…
>
>Timed ID3 tags are only used in HLS (I think, don’t quote me on that). They’re literally ID3 tags (such as that you might find in an mp3 file, for example), that are inserted at certain points in time in the TS stream.
>
>The way I’ve seen it being it used is to change the title of the stream at discontinuity points (for example it could be a tag with metadata for an episode of a TV show, then another could be inserted when ads play, or another show starts, etc)
>_______________________________________________
>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: how to send metadata in mpegts via ffmpeg

kumowoon1025
> On Oct 21, 2019, at 9:36 PM, qw <[hidden email]> wrote:
>
> The usage of id3 timed metadata can be found in the following link:
>
>
> https://developer.apple.com/library/archive/documentation/AudioVideo/Conceptual/HTTP_Live_Streaming_Metadata_Spec/2/2.html#//apple_ref/doc/uid/TP40010435-CH2-DontLinkElementID_9
>
Other than a general premise that it is to be used in transport streams served over HLS, I can’t find any info regarding usage, but it does spell out the implementation details fairly quickly.

I have ITU-T H.222.0 specs which is pretty much identical to the ISO specification, and Apple’s “Timed ID3” sounds like it falls into the “carriage in PES packets” method of 2.12.3 of that document.

>
> The format of metadata in flv is of AMF, and you can find some company has implemented it, i.e. to convert amf into id3:
>
>
> https://www.wowza.com/docs/how-to-use-timed-metadata-in-wowza-live-streaming-workflows
>
I still can’t figure out what you want to do. Do you have a source of real-time metadata that you want to include in a stream? I feel like this could have been a possible feature of ffserver if it were still around, maybe you should set your sight on whatever software is responsible for the actual streaming to do this.
_______________________________________________
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".