[Ffmpeg-devel] closed captioning bug?

Luca Abeni lucabe72
Mon Apr 24 07:49:17 CEST 2006


On Sun, 2006-04-23 at 12:05 -0400, Cyrus A wrote:
> The vdelta hack didn't work. I tried -5, 5 and -15, 15. The first line 
> read "if (vdelta < -1.1)" which is what I'm assuming you meant in your 
> hack (you had it without the negative sign).
Yes, sorry... I was away from my computer, and I had no way to check the
source: I just had some old notes. Anyway, the "dirty hack" was
something like this:
diff -u -r1.379 ffmpeg.c
--- ffmpeg.c    20 Apr 2006 12:57:19 -0000      1.379
+++ ffmpeg.c    24 Apr 2006 06:31:38 -0000
@@ -726,9 +726,9 @@
         double vdelta;
         vdelta = get_sync_ipts(ost) / av_q2d(enc->time_base) - ost->sync_opts;
         //FIXME set to 0.5 after we fix some dts/pts bugs like in avidec.c
-        if (vdelta < -1.1)
+        if (vdelta < -10.0)
             nb_frames = 0;
-        else if (vdelta > 1.1)
+        else if (vdelta > 10.0)
             nb_frames = lrintf(vdelta);
 //fprintf(stderr, "vdelta:%f, ost->sync_opts:%lld, ost->sync_ipts:%f nb_frames:%d\n", vdelta, ost->sync_opts, ost->sync_ipts, nb_frames);
         if (nb_frames == 0){

The values depend on the hw configuration. If this did not work, then
the solution is v4l2.

> I'm not sure how to force ffmpeg to use v4l2. The configure output says 
> nothing about it. Any help on how to force that change would be greatly 
> appreciated.
Try the attached "v4l2-fedora.diff" patch. After applying it, do
make distclean; ./configure
At this point, your config.h file should contain the line
If it does not, let me know and I'll try to understand why v4l2
detection is not working on your system.

If config.h is ok, recompile ffmpeg and try your usual command line...
The ffmpeg output should indicate that video4linux2 is used. Hopefully,
this will fix your problem. If it does not, I do not really know what to
say... I never used the /dev/vbi device, and I only used PAL systems.
We'll need some more debugging

Anyway, let me know... 

Proud to be "coglione"

-------------- next part --------------
A non-text attachment was scrubbed...
Name: v4l2-fedora.diff
Type: text/x-patch
Size: 503 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20060424/21bf8384/attachment.bin>

More information about the ffmpeg-devel mailing list