[Ffmpeg-devel] closed captioning bug?
Cyrus A
lists
Fri Apr 28 21:30:33 CEST 2006
The audio seems broken now.
I upgraded the AMD 64 X2 system to FC4, downloaded the latest CVS,
applied the v4l2 patch and ran a test.
The video looks nice, the captions are fine, but there is no sound. I
can confirm with 100% certainty that sound on my system and audio device
DOES work since trying the EXACT same ffmpeg command on a different
build has sound. Plus, I noticed the same behavior when the patch was
applied to CVS build of ffmpeg on an i386 FC5 machine I own as well.
Why do you think the audio is now broken?
Luca Abeni wrote:
> Hi,
>
> 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
> #define CONFIG_VIDEO4LINUX2 1
> 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...
>
> Thanks,
> Luca
>
> ------------------------------------------------------------------------
>
> Index: configure
> ===================================================================
> RCS file: /cvsroot/ffmpeg/ffmpeg/configure,v
> retrieving revision 1.263
> diff -u -r1.263 configure
> --- configure 14 Apr 2006 23:33:34 -0000 1.263
> +++ configure 24 Apr 2006 06:28:09 -0000
> @@ -1264,6 +1264,7 @@
> if test "$v4l2" = "yes"; then
> # check for video4linux2 --- V4L2_PIX_FMT_YUV420
> cat > $TMPC << EOF
> +#include <sys/types.h>
> #include <sys/time.h>
> #include <linux/videodev.h>
> int dummy = V4L2_PIX_FMT_YUV420;
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at mplayerhq.hu
> http://mplayerhq.hu/mailman/listinfo/ffmpeg-devel
>
More information about the ffmpeg-devel
mailing list