Skip first part of file when playing from HTTP

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

Skip first part of file when playing from HTTP

Kyrylo V Polezhaiev
Hello there!

I have modified mp4 file placed on HTTP server. File is playing via decodebin2. Now I added additional information (512 bytes) to beginning of file, this information has to be ignored by gstreamer pipeline. Is there possibility (f.e. some element or property) to skip first 512 bytes and work with tail of file regular way? For me its important to use seeking in push mode.

Sincerely,
Kyrylo V. Polezhaiev.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Skip first part of file when playing from HTTP

Stefan Sauer
On 08/09/2012 07:03 PM, Kyrylo V Polezhaiev wrote:
> Hello there!
>
> I have modified mp4 file placed on HTTP server. File is playing via decodebin2. Now I added additional information (512 bytes) to beginning of file, this information has to be ignored by gstreamer pipeline. Is there possibility (f.e. some element or property) to skip first 512 bytes and work with tail of file regular way? For me its important to use seeking in push mode.
Not really, as this won't be a valid mp4 file anymore. I'd suggest to
put your extradata into a custom atom inside the mp4 instead. Then
gstreamer will simply ignore the unknown atom.

Stefan
>
> Sincerely,
> Kyrylo V. Polezhaiev.
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Skip first part of file when playing from HTTP

Kyrylo V Polezhaiev
Can I wrote some new element (skiper) instead? :-)

> On 08/09/2012 07:03 PM, Kyrylo V Polezhaiev wrote:
> > Hello there!
> >
> > I have modified mp4 file placed on HTTP server. File is playing via decodebin2. Now I added additional information (512 bytes) to beginning of file, this information has to be ignored by gstreamer pipeline. Is there possibility (f.e. some element or property) to skip first 512 bytes and work with tail of file regular way? For me its important to use seeking in push mode.
> Not really, as this won't be a valid mp4 file anymore. I'd suggest to
> put your extradata into a custom atom inside the mp4 instead. Then
> gstreamer will simply ignore the unknown atom.
>
> Stefan
> >
> > Sincerely,
> > Kyrylo V. Polezhaiev.
> > _______________________________________________
> > gstreamer-devel mailing list
> > [hidden email]
> > http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Skip first part of file when playing from HTTP

Stefan Sauer
On 08/10/2012 03:37 PM, Kyrylo V Polezhaiev wrote:
> Can I wrote some new element (skiper) instead? :-)

Sure. It might be easier to add the data to the end instead. Then
gstreamer will most likely ignore it too.


Stefan

>
>> On 08/09/2012 07:03 PM, Kyrylo V Polezhaiev wrote:
>>> Hello there!
>>>
>>> I have modified mp4 file placed on HTTP server. File is playing via decodebin2. Now I added additional information (512 bytes) to beginning of file, this information has to be ignored by gstreamer pipeline. Is there possibility (f.e. some element or property) to skip first 512 bytes and work with tail of file regular way? For me its important to use seeking in push mode.
>> Not really, as this won't be a valid mp4 file anymore. I'd suggest to
>> put your extradata into a custom atom inside the mp4 instead. Then
>> gstreamer will simply ignore the unknown atom.
>>
>> Stefan
>>> Sincerely,
>>> Kyrylo V. Polezhaiev.
>>> _______________________________________________
>>> gstreamer-devel mailing list
>>> [hidden email]
>>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>> _______________________________________________
>> gstreamer-devel mailing list
>> [hidden email]
>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel