Convert to DV (file gets no audio)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Convert to DV (file gets no audio)

Renato Ornelas
Hello,

I'm trying to convert some files to DV (NTSC) but the files I get, doesn't
have audio and get some image glitches. If I convert the files to PAL, I get
a perfect black & white image (no glitches) and sound. The files created
with ffmpeg gets identified as DVCPRO when using target dv-ntsc and as DV in
PAL.

renato:/home/dv # file *
001.kinofx.dv: DIF (DV) movie file (NTSC)
ntsc.dv:       DIF (DVCPRO) movie file (NTSC)
pal.dv:        DIF (DV) movie file (PAL)

The 001.kinofx.dv is my original file. It's in NTSC and plays perfectly with
audio. The other two where converted with ffmpeg using the following command
line:

ffmpeg -i 001.kinofx.dv -target pal-dv pal.dv
ffmpeg -i 001.kinofx.dv -target ntsc-dv ntsc.dv

Can you please tell me if this is a problem in libavcodec or in libavformat?
Or if there are any command line switches to force plain DV output?


Thanks in advance,

Renato
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: Convert to DV (file gets no audio)

Roman V. Shaposhnik
On Mon, 2007-12-17 at 16:45 -0200, Renato Ornelas wrote:

> Hello,
>
> I'm trying to convert some files to DV (NTSC) but the files I get, doesn't
> have audio and get some image glitches. If I convert the files to PAL, I get
> a perfect black & white image (no glitches) and sound. The files created
> with ffmpeg gets identified as DVCPRO when using target dv-ntsc and as DV in
> PAL.
>
> renato:/home/dv # file *
> 001.kinofx.dv: DIF (DV) movie file (NTSC)
> ntsc.dv:       DIF (DVCPRO) movie file (NTSC)
> pal.dv:        DIF (DV) movie file (PAL)
>
> The 001.kinofx.dv is my original file. It's in NTSC and plays perfectly with
> audio. The other two where converted with ffmpeg using the following command
> line:
>
> ffmpeg -i 001.kinofx.dv -target pal-dv pal.dv
> ffmpeg -i 001.kinofx.dv -target ntsc-dv ntsc.dv
>
> Can you please tell me if this is a problem in libavcodec or in libavformat?
> Or if there are any command line switches to force plain DV output?

  This should work. However, you didn't provide enough information to
diagnose the problem. At the very minimum post the entire output
of the ffmpeg command plus the command itself.

Thanks,
Roman.

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: Convert to DV (file gets no audio)

Renato Ornelas
Hi,

I'm using openSUSE 10.3, and ffmpeg from packman

For the NTSC output:

renato:/home/dv # ffmpeg -i 001.kinofx.dv -target ntsc-dv ntsc.dv
FFmpeg version SVN-r10937, Copyright (c) 2000-2007 Fabrice Bellard, et al.
  configuration: --shlibdir=/usr/lib --prefix=/usr --mandir=/usr/share/man
--libdir=/usr/lib --enable-shared --enable-libmp3lame --enable-libogg
--enable-libvorbis --enable-libtheora --enable-libfaad --enable-libfaac
--enable-libxvid --enable-liba52 --enable-swscaler --enable-pp --enable-gpl
--enable-vhook --enable-x11grab --enable-libgsm --enable-libx264
--enable-libamr-nb --enable-libamr-wb
  libavutil version: 49.5.0
  libavcodec version: 51.47.2
  libavformat version: 51.17.1
  built on Nov  7 2007 00:38:44, gcc: 4.2.1 (SUSE Linux)
Input #0, dv, from '001.kinofx.dv':
  Duration: 00:00:20.3, start: 0.000000, bitrate: 28771 kb/s
    Stream #0.0: Video: dvvideo, yuv411p, 720x480 [PAR 10:11 DAR 15:11],
28771 kb/s, 29.97 fps(r)
    Stream #0.1: Audio: pcm_s16le, 48000 Hz, stereo, 1536 kb/s
Output #0, dv, to 'ntsc.dv':
    Stream #0.0: Video: dvvideo, yuv411p, 720x480 [PAR 10:11 DAR 15:11],
q=2-31, 200 kb/s, 29.97 fps(c)
    Stream #0.1: Audio: pcm_s16le, 48000 Hz, stereo, 1536 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop encoding
frame=  611 fps= 73 q=0.0 Lsize=   71602kB time=20.4 bitrate=28771.2kbits/s

video:71602kB audio:3823kB global headers:0kB muxing overhead -5.068110%



For the PAL output:

renato:/home/dv # ffmpeg -i 001.kinofx.dv -target pal-dv pal.dv
FFmpeg version SVN-r10937, Copyright (c) 2000-2007 Fabrice Bellard, et al.
  configuration: --shlibdir=/usr/lib --prefix=/usr --mandir=/usr/share/man
--libdir=/usr/lib --enable-shared --enable-libmp3lame --enable-libogg
--enable-libvorbis --enable-libtheora --enable-libfaad --enable-libfaac
--enable-libxvid --enable-liba52 --enable-swscaler --enable-pp --enable-gpl
--enable-vhook --enable-x11grab --enable-libgsm --enable-libx264
--enable-libamr-nb --enable-libamr-wb
  libavutil version: 49.5.0
  libavcodec version: 51.47.2
  libavformat version: 51.17.1
  built on Nov  7 2007 00:38:44, gcc: 4.2.1 (SUSE Linux)
Input #0, dv, from '001.kinofx.dv':
  Duration: 00:00:20.3, start: 0.000000, bitrate: 28771 kb/s
    Stream #0.0: Video: dvvideo, yuv411p, 720x480 [PAR 10:11 DAR 15:11],
28771 kb/s, 29.97 fps(r)
    Stream #0.1: Audio: pcm_s16le, 48000 Hz, stereo, 1536 kb/s
Output #0, dv, to 'pal.dv':
    Stream #0.0: Video: dvvideo, yuv420p, 720x576 [PAR 12:11 DAR 15:11],
q=2-31, 200 kb/s, 25.00 fps(c)
    Stream #0.1: Audio: pcm_s16le, 48000 Hz, stereo, 1536 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop encoding
frame=  510 fps= 51 q=0.0 Lsize=   71578kB time=20.4 bitrate=28761.7kbits/s

video:71719kB audio:3823kB global headers:0kB muxing overhead -5.246404%

Here are the first 128 bytes of each 3 files:

FILE: 001.kinofx.dv
----------------------
00000000  1f 07 00 3f 68 78 78 78  ff ff ff ff ff ff ff ff
|...?hxxx........|
00000010  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
|................|
*
00000050  3f 07 00 01 40 ff ff ff  ff ff ff ff ff ff ff ff
|?...@...........|
00000060  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
|................|
*
00000080

FILE: ntsc.dv
----------------------
00000000  1f 07 00 3f f9 79 79 79  ff ff ff ff ff ff ff ff
|...?.yyy........|
00000010  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
|................|
*
00000050  3f 07 00 8f f0 ff 13 40  80 80 c0 8f f1 ff 13 40
|?......@.......@|
00000060  80 80 c0 8f f2 ff 13 40  80 80 c0 8f f3 ff 13 40
|.......@.......@|
00000070  80 80 c0 8f f4 ff 13 40  80 80 c0 8f f5 ff 13 40
|.......@.......@|
00000080

FILE: pal.dv
----------------------
00000000  1f 07 00 bf f8 78 78 78  ff ff ff ff ff ff ff ff
|.....xxx........|
00000010  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
|................|
*
00000050  3f 07 00 8f f0 ff 13 40  80 80 c0 8f f1 ff 13 40
|?......@.......@|
00000060  80 80 c0 8f f2 ff 13 40  80 80 c0 8f f3 ff 13 40
|.......@.......@|
00000070  80 80 c0 8f f4 ff 13 40  80 80 c0 8f f5 ff 13 40
|.......@.......@|
00000080


Do you need some more info?


Thanks again!
Renato

2007/12/17, Roman Shaposhnik <[hidden email]>:

>
> On Mon, 2007-12-17 at 16:45 -0200, Renato Ornelas wrote:
> > Hello,
> >
> > I'm trying to convert some files to DV (NTSC) but the files I get,
> doesn't
> > have audio and get some image glitches. If I convert the files to PAL, I
> get
> > a perfect black & white image (no glitches) and sound. The files created
> > with ffmpeg gets identified as DVCPRO when using target dv-ntsc and as
> DV in
> > PAL.
> >
> > renato:/home/dv # file *
> > 001.kinofx.dv: DIF (DV) movie file (NTSC)
> > ntsc.dv:       DIF (DVCPRO) movie file (NTSC)
> > pal.dv:        DIF (DV) movie file (PAL)
> >
> > The 001.kinofx.dv is my original file. It's in NTSC and plays perfectly
> with
> > audio. The other two where converted with ffmpeg using the following
> command
> > line:
> >
> > ffmpeg -i 001.kinofx.dv -target pal-dv pal.dv
> > ffmpeg -i 001.kinofx.dv -target ntsc-dv ntsc.dv
> >
> > Can you please tell me if this is a problem in libavcodec or in
> libavformat?
> > Or if there are any command line switches to force plain DV output?
>
>   This should work. However, you didn't provide enough information to
> diagnose the problem. At the very minimum post the entire output
> of the ffmpeg command plus the command itself.
>
> Thanks,
> Roman.
>
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
>
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: Convert to DV (file gets no audio)

Roman V. Shaposhnik
On Mon, 2007-12-17 at 17:41 -0200, Renato Ornelas wrote:
> Hi,
>
> I'm using openSUSE 10.3, and ffmpeg from packman

  First problem -- its not latest -- upgrade to SVN ;-)

> For the NTSC output:

  This looked very reasonable. Next step -- try to reproduce
the problem with the current revision of ffmpeg from SVN
and if it gets reproduced I can take a look at it.

Thanks,
Roman.

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: Convert to DV (file gets no audio)

Renato Ornelas
Got the SVN and I got the same DVCPRO file...

renato:/home/dv # ffmpeg -i /home/dv/001.kinofx.dv -target ntsc-dv ntsc2.dv
FFmpeg version SVN-r11258, Copyright (c) 2000-2007 Fabrice Bellard, et al.
  configuration: --shlibdir=/usr/lib --prefix=/usr --mandir=/usr/share/man
--libdir=/usr/lib --enable-shared --enable-libmp3lame --enable-libvorbis
--enable-libtheora --enable-libfaad --enable-libfaac --enable-libxvid
--enable-liba52 --enable-swscaler --enable-pp --enable-gpl --enable-vhook
--enable-x11grab --enable-libx264 --enable-libamr-nb --enable-libamr-wb
  libavutil version: 49.6.0
  libavcodec version: 51.49.0
  libavformat version: 52.2.0
  built on Dec 17 2007 23:13:25, gcc: 4.2.1 (SUSE Linux)
Input #0, dv, from '/home/dv/001.kinofx.dv':
  Duration: 00:00:20.3, start: 0.000000, bitrate: 28771 kb/s
    Stream #0.0: Video: dvvideo, yuv411p, 720x480 [PAR 10:11 DAR 15:11],
28771 kb/s, 29.97 tb(r)
    Stream #0.1: Audio: pcm_s16le, 48000 Hz, stereo, 1536 kb/s
Output #0, dv, to 'ntsc2.dv':
    Stream #0.0: Video: dvvideo, yuv411p, 720x480 [PAR 10:11 DAR 15:11],
q=2-31, 200 kb/s, 29.97 tb(c)
    Stream #0.1: Audio: pcm_s16le, 48000 Hz, stereo, 1536 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop encoding
frame=  611 fps= 64 q=0.0 Lsize=   71602kB time=20.4 bitrate=28771.2kbits/s
video:71602kB audio:3823kB global headers:0kB muxing overhead -5.068110%

renato:/home/dv # file ntsc2.dv
ntsc2.dv: DIF (DVCPRO) movie file (NTSC)

renato:/home/dv # hexdump -Cn64 ntsc2.dv
00000000  1f 07 00 3f f9 79 79 79  ff ff ff ff ff ff ff ff
|...?.yyy........|
00000010  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
|................|


Renato

2007/12/17, Roman Shaposhnik <[hidden email]>:

> On Mon, 2007-12-17 at 17:41 -0200, Renato Ornelas wrote:
> > Hi,
> >
> > I'm using openSUSE 10.3, and ffmpeg from packman
>
> First problem -- its not latest -- upgrade to SVN ;-)
>
> > For the NTSC output:
>
> This looked very reasonable. Next step -- try to reproduce
> the problem with the current revision of ffmpeg from SVN
> and if it gets reproduced I can take a look at it.
>
> Thanks,
> Roman.
>
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
>
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: Convert to DV (file gets no audio)

Roman V. Shaposhnik
On Dec 17, 2007, at 5:18 PM, Renato Ornelas wrote:

> renato:/home/dv # file ntsc2.dv
> ntsc2.dv: DIF (DVCPRO) movie file (NTSC)

   Ok. The problem seems to be that you hardware doesn't like
DVCPRO. On the other hand, *I* don't like IEC61834 (AKA DV).
For one simple reason: I don't have an access to its full spec,
thus I can't take care of VAUX and AUX subtleties and claim
full conformance.

   On the other hand, I can try to add an explicit IEC61834
switch that will try to mimic as much of data as to make
various hardware happy. It still could break in other
places, but its better than nothing.

   Now, in order for this to happen I would need your
agreement to quickly test intermediate versions of the patch.

   And here's one other thing: Michael, what's the best
way to put such non standard compliant stuff out there?
I'm thinking of generating a warning(error?) unless
-strict -1 is specified.

Thanks,
Roman.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user