How to sync audio and video with a DVB src ?

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

How to sync audio and video with a DVB src ?

Julien Pauty
Hello,

I'm writing an application to watch DVB-T tv. I'm using the dvbsrc and the flutsdemux elements. Unfortunatelly, I can't get the sound and video in sync: the sound is always a bit late. This is the pipeline I came up with:

gst-launch -v dvbsrc do-timestamp=true modulation=AUTO trans-mode=AUTO bandwidth=AUTO frequency=586000000 code-rate-lp=AUTO  guard=AUTO hierarchy=NONE pids=16:17:18:110:120:130:140 ! flutsdemux  name=demux program-number=257 !  queue max-size-buffers=0 max-size-time=0 !  mpeg2dec  ! xvimagesink sync=false  demux. ! queue max-size-buffers=0 max-size-time=0 ! mad ! alsasink sync=false 

I got there using some source files from flumotion, but I am a bit stuck now. I tried to tune various parameters such the "slave-method" and  "provide-clock" of the alsasink. I also tried to change parameters on the dvbsrc. This improves synchronization a bit, but the result is never in sync. After all those trials I thought that I probably do something wrong.

Thank you for your help,

Julien


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How to sync audio and video with a DVB src ?

Zaheer Merali
On Wed, Jul 16, 2008 at 6:46 PM, Julien Pauty <[hidden email]> wrote:

> Hello,
>
> I'm writing an application to watch DVB-T tv. I'm using the dvbsrc and the
> flutsdemux elements. Unfortunatelly, I can't get the sound and video in
> sync: the sound is always a bit late. This is the pipeline I came up with:
>
> gst-launch -v dvbsrc do-timestamp=true modulation=AUTO trans-mode=AUTO
> bandwidth=AUTO frequency=586000000 code-rate-lp=AUTO  guard=AUTO
> hierarchy=NONE pids=16:17:18:110:120:130:140 ! flutsdemux  name=demux
> program-number=257 !  queue max-size-buffers=0 max-size-time=0 !  mpeg2dec
> ! xvimagesink sync=false  demux. ! queue max-size-buffers=0 max-size-time=0
> ! mad ! alsasink sync=false

Change sync=false to sync=true, assuming you are using recent
gstreamer, gst-plugins-base and flutsdemux.

Zaheer

>
> I got there using some source files from flumotion, but I am a bit stuck
> now. I tried to tune various parameters such the "slave-method" and
> "provide-clock" of the alsasink. I also tried to change parameters on the
> dvbsrc. This improves synchronization a bit, but the result is never in
> sync. After all those trials I thought that I probably do something wrong.
>
> Thank you for your help,
>
> Julien
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How to sync audio and video with a DVB src ?

Julien Pauty
Thank you very much that did it. Synchronization is perfect now.

Julien

2008/7/17 Zaheer Merali <[hidden email]>:
On Wed, Jul 16, 2008 at 6:46 PM, Julien Pauty <[hidden email]> wrote:
> Hello,
>
> I'm writing an application to watch DVB-T tv. I'm using the dvbsrc and the
> flutsdemux elements. Unfortunatelly, I can't get the sound and video in
> sync: the sound is always a bit late. This is the pipeline I came up with:
>
> gst-launch -v dvbsrc do-timestamp=true modulation=AUTO trans-mode=AUTO
> bandwidth=AUTO frequency=586000000 code-rate-lp=AUTO  guard=AUTO
> hierarchy=NONE pids=16:17:18:110:120:130:140 ! flutsdemux  name=demux
> program-number=257 !  queue max-size-buffers=0 max-size-time=0 !  mpeg2dec
> ! xvimagesink sync=false  demux. ! queue max-size-buffers=0 max-size-time=0
> ! mad ! alsasink sync=false

Change sync=false to sync=true, assuming you are using recent
gstreamer, gst-plugins-base and flutsdemux.

Zaheer
>
> I got there using some source files from flumotion, but I am a bit stuck
> now. I tried to tune various parameters such the "slave-method" and
> "provide-clock" of the alsasink. I also tried to change parameters on the
> dvbsrc. This improves synchronization a bit, but the result is never in
> sync. After all those trials I thought that I probably do something wrong.
>
> Thank you for your help,
>
> Julien
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel