After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 620529 - [playbin] add support for subtitle delay
[playbin] add support for subtitle delay
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other All
: Normal enhancement
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2010-06-04 00:16 UTC by Shay
Modified: 2018-11-03 11:16 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Shay 2010-06-04 00:16:17 UTC
Hi all , 

i want to use gstreamer for playing video , 
but i cant cause missing feather / very hard/complicated to achieve  

i have some missing properties in playbin 


1) Subtitle delay :
    i want to give delay to some subtitles ,where they are not synced 
    with the movie , 
    i am trying to do that for 3 days now ,and still dont know how ,
    a new property for delay in milliseconds will be great 

2) subtitle delay , apply :
   give option to apply current delay ,
    and write to subtitle file the3 time changes

3) playbin source : 
   make it also write ,so can replaced 
   i am using gstreamer-java , and i want to give source from inputstream
   so i can read video stream from an archive 
   or just support for playing files located in archive (RAR ,ZIP ,etc..);

   
4) get subtitle language from playbin it self 
   it will be nice the have it from new property "text-language" gint. 

5) "suburi" property :
    dose not work at run time ,
    very bad i need to restart a player just to change subtitle

i know playbin was first made for make things simple ,
and not linking element ,why not keep this simple ,
by adding thous capabilities to playbin 


please please can i do that
i am writing an application in java
and after searching for a long time now .
i don't see any other alternative for strong video player in java 

thank you
Comment 1 Tim-Philipp Müller 2010-06-04 17:16:24 UTC
> 1) Subtitle delay :

This is indeed a missing playbin2 feature. Same for audio I guess, although there one can use the sink's properties already. Retitling bug accordingly.

 
> 2) subtitle delay , apply :
>    give option to apply current delay ,
>     and write to subtitle file the3 time changes

playbin2 is for playback. It will never support something like that. You will need to write a dedicated separate pipeline to remux the subtitle file and apply a delay. You can probably do that already by using a pipeline such as filesrc ! subparse ! srtenc timestamp=-1000000000 ! filesink. If you need more help with this, please ask on IRC or the mailing list.


> 3) playbin source : 
>    make it also write ,so can replaced 
>    i am using gstreamer-java , and i want to give source from inputstream
>    so i can read video stream from an archive 
>    or just support for playing files located in archive (RAR ,ZIP ,etc..);

You can do that already by passing an appsrc:// URI and using appsrc. That's the API GStreamer provides for this kind of thing. If you want to use a java inputstream, you need to talk to the gstreamer-java people and ask them to provide some API/wrappers. They need to do that, there's not much we can do about this.


> 4) get subtitle language from playbin it self 
>    it will be nice the have it from new property "text-language" gint. 

You can do that already (totem does it after all). Use the get-text-tags action signal and look at the GST_TAG_LANGUAGE tag in the taglist. If you need more help to make this work, please ask on IRC or the mailing list.


> 5) "suburi" property :
>     dos not work at run time ,
>     very bad i need to restart a player just to change subtitle

It works quite well 'at run time', but ony before you start playback. You don't need to restart the player application, just interrupt/restart the current playback. But in any case, there's already a bug for this, namely bug #589515.


In short, let's keep this bug about the subtitle delay and A/V sync properties.

PS: Version 0.10.6? Of what module? (core/base 0.10.6 is ancient..)
Comment 2 Shay 2010-06-04 20:35:31 UTC
i am using gstreamer for windows 
http://www.gstreamer-winbuild.ylatuya.es/doku.php?id=download
0.10.6 was at the download section ,so seems like its the last for windows versions
Comment 3 Shay 2010-06-04 20:50:55 UTC
1> 
thanks 

2> 
sounds fair 

3>
what about support of playing video located inside an archive 
for example a uri like this 
"jar:file:/D:/path1/path2/archive_file.jar!/inner_path1/innet_path2/movies.jar

4>
will check on irc 

5>
i see the last update for bug #589515. was 6 months ago ,
what dose mean , that no one is going to fix this ?

why do i have to work around so many things
Comment 4 Tim-Philipp Müller 2010-06-04 22:38:33 UTC
> what about support of playing video located inside an archive 
> for example a uri like this 
> "jar:file:/D:/path1/path2/archive_file.jar!/inner_path1/innet_path2/movies.jar

Not supported at the moment (we don't have API for that). There are bugs about that somewhere, but I wouldn't hold my breath.


> i see the last update for bug #589515. was 6 months ago ,
> what dose mean , that no one is going to fix this ?

It will get fixed when someone comes up with a patch to fix it. That may be tomorrow or next year, no one can say. That's just how free software works.
Comment 5 Wim Taymans 2010-06-07 12:41:01 UTC
commit ecc9a2815260e63341b5c7773b346365252a154a
Author: Wim Taymans <wim.taymans@collabora.co.uk>
Date:   Mon Jun 7 14:38:42 2010 +0200

    playbin2: add av-offset property
    
    Add av-offset property to control the audio and video sync offset. This can be
    used to to manually correct badly synced streams.
    
    See #620529
Comment 6 Shay 2010-06-07 14:18:45 UTC
what about the subtitle-offset ?
Comment 7 Wim Taymans 2010-06-07 14:21:03 UTC
(In reply to comment #6)
> what about the subtitle-offset ?

I'm still figuring out how to do that.
Comment 8 Shay 2010-06-07 14:21:47 UTC
thank you
Comment 9 GStreamer system administrator 2018-11-03 11:16:58 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/issues/35.