LXF decoder ! Need help !

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

LXF decoder ! Need help !

Tuuls
Hello. Someone can help with unpacking LXF container?
The fact that the LXF files from the new servers can not be preprocessed in ffmpeg. The case is probably not in the files themselves, as they are exported from the old systems are handled beautifully, but the problem is probably in the file header.
And can we somehow add the module metadata extraction?

http://refile.net/f/?6j

Here is a small file that I exported from Harris server. It contains the metadata and the video format DVСPRO25 .

when I try to open it in ffmpeg, I get an error
[lxf @ 000000000035A920] checksum error
[lxf @ 000000000035A920] expected 120 B size header, got 0

Thanks in advance !
Reply | Threaded
Open this post in threaded view
|

Re: LXF decoder ! Need help !

Dave Rice
On May 8, 2011, at 2:16 PM, Tuuls wrote:

> Hello. Someone can help with unpacking LXF container?

Sorry for an un-ffmpeg answer, but you could try to investigate the header using mediainfo, which added lxf support recently. Try `mediainfo --inform='Details;1' file.lxf`.
Dave Rice
avpreserve.com

> The fact that the LXF files from the new servers can not be preprocessed in
> ffmpeg. The case is probably not in the files themselves, as they are
> exported from the old systems are handled beautifully, but the problem is
> probably in the file header.
> And can we somehow add the module metadata extraction?
>
> http://refile.net/f/?6j
>
> Here is a small file that I exported from Harris server. It contains the
> metadata and the video format DVСPRO25 .
>
> when I try to open it in ffmpeg, I get an error
> [lxf @ 000000000035A920] checksum error
> [lxf @ 000000000035A920] expected 120 B size header, got 0
>
> Thanks in advance !
>
> --
> View this message in context: http://ffmpeg-users.933282.n4.nabble.com/LXF-decoder-Need-help-tp3507549p3507549.html
> Sent from the FFmpeg-users mailing list archive at Nabble.com.
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

Re: LXF decoder ! Need help !

Tuuls
MediaInfo well read this lxf , and well send metadata :

General
Complete name                    : D:\AT110416_7349.lxf
Format                           : LXF
File size                        : 114 MiB
Duration                         : 29s 880ms
Overall bit rate                 : 31.9 Mbps
Track name                       : Держстандарт України. Заявка  < its a well right metadata
Writing library                  : NX3000VESX-16C/VR1
Service name                     : aeg

Audio #1
Format                           : PCM
Duration                         : 29s 880ms
Bit rate mode                    : Constant
Bit rate                         : 768 Kbps
Channel(s)                       : 1 channel
Sampling rate                    : 48.0 KHz
Bit depth                        : 16 bits
Stream size                      : 2.74 MiB (2%)

Audio #2
Format                           : PCM
Duration                         : 29s 880ms
Bit rate mode                    : Constant
Bit rate                         : 768 Kbps
Channel(s)                       : 1 channel
Sampling rate                    : 48.0 KHz
Bit depth                        : 16 bits
Stream size                      : 2.74 MiB (2%)

Audio #3
Format                           : PCM
Duration                         : 29s 880ms
Bit rate mode                    : Constant
Bit rate                         : 768 Kbps
Channel(s)                       : 1 channel
Sampling rate                    : 48.0 KHz
Bit depth                        : 16 bits
Stream size                      : 2.74 MiB (2%)

Audio #4
Format                           : PCM
Duration                         : 29s 880ms
Bit rate mode                    : Constant
Bit rate                         : 768 Kbps
Channel(s)                       : 1 channel
Sampling rate                    : 48.0 KHz
Bit depth                        : 16 bits
Stream size                      : 2.74 MiB (2%)
Reply | Threaded
Open this post in threaded view
|

Re: LXF decoder ! Need help !

Tuuls
In reply to this post by Dave Rice
MediaInfo well read this lxf , and well send metadata !

Sorry , dubl post
Reply | Threaded
Open this post in threaded view
|

Re: LXF decoder ! Need help !

Jerome Martinez
In reply to this post by Tuuls
Tuuls wrote
MediaInfo well read this lxf , and well send metadata :
I apologize if I am out of topic (not focused on ffmpeg).

Actually, video part is missing (I adapted my code so DV PAL is now displayed) + Windows version of MediaInfo has "trace" feature disabled for binary size optimization (Dave is using the Linux/Mac version, with trace feature activated, his command has not the same result than your test).

Trace of your file with the command from Dave + MediaInfo compiled with trace feature is available at this URL:
http://pastebin.com/Z6wKx8ik
Example:
00000000 Header (355 bytes)
00000000  Header (72 bytes)
00000000   Signature:                               LEITCH
00000008   Version:                                 1 (0x00000001)
0000000C   Header size:                             72 (0x00000048)
00000010   Type:                                    2 (0x2)
00000014   Stream ID:                               0 (0x00000000)
00000018   ? (Always 0x00000000):                   0 (0x0)
00000020   ?:                                       21513600 (0x1484580)
00000028   ? (Always 0x00000001):                   1 (0x00000001)
0000002C   Block size:                              120 (0x78)
00000030   Block size:                              163 (0xA3)
00000034   ? (Always 0x00000000):                   0 (0x00000000)
00000038   ? (Always 0x00000000):                   0 (0x00000000)
0000003C   ? (Always 0x00000000):                   0 (0x00000000)
00000040   Reverse TimeStamp?:                      2859346826 (0xAA6E2B8A) - 3971315.036 ms
00000048  Info? (120 bytes)
00000048   Unknown:                                 (120 bytes)
000000C0  Tags? (163 bytes)
000000C0   Size:                                    8 (0x08)
000000C1   ? (8 opaque bytes):                      (8 bytes)
000000C9   Size:                                    18 (0x12)
000000CA   Library?:                                NX3000VESX-16C/VR1
000000DC   Size:                                    0 (0x00)
000000DD   Size:                                    0 (0x00)
000000DE   Size:                                    16 (0x10)
000000DF   0x00000008:                              0 (0x00000000)
000000E3   0x00000000:                              4 (0x00000004)
000000E7   0x00000000:                              0 (0x00000000)
000000EB   0x00000092:                              146 (0x00000092)
000000EF   Size:                                    0 (0x00)
000000F0   Size:                                    0 (0x00)
000000F1   Size:                                    6 (0x06)
000000F2   Channel?:                                aeg
000000F8   Size:                                    0 (0x00)
000000F9   Size:                                    0 (0x00)
000000FA   Size:                                    0 (0x00)
000000FB   Size:                                    0 (0x00)
000000FC   Size:                                    56 (0x38)
000000FD   Title:                                   ???????????? ???????. ??????
00000135   Size:                                    14 (0x0E)
00000136   ? (in UTF-16):                           Arh New
00000144   Size:                                    8 (0x08)
00000145   Data:                                    (8 bytes)
0000014D   Size:                                    8 (0x08)
0000014E   Data:                                    (8 bytes)
00000156   Size:                                    0 (0x00)
00000157   Size:                                    0 (0x00)
00000158   Size:                                    0 (0x00)
00000159   Size:                                    0 (0x00)
0000015A   Size:                                    8 (0x08)
0000015B   ? (8 opaque bytes):                      (8 bytes)
00000163 Video (72 bytes)
00000163  Header (72 bytes)
00000163   Signature:                               LEITCH
0000016B   Version:                                 1 (0x00000001)
0000016F   Header size:                             72 (0x00000048)
00000173   Type:                                    0 (0x0)
00000177   Stream ID:                               0 (0x00000000)
0000017B   TimeStamp:                               0 (0x0) - 0.000 ms
00000183   Duration:                                28800 (0x7080) - 40.000 ms
0000018B   Format:                                  5 (0x05) - DV
0000018B   GOP (N):                                 1 (0x01)
0000018C   GOP (M):                                 1 (0x01)
0000018C   Bit rate:                                25 (0x19) - 25000000 bps
0000018D   Picture type:                            0 (0x00) - I
0000018E   Reserved:                                0 (0x00)
0000018F   Video data size:                         144000 (0x23280)
00000197   VBI data size:                           0 (0x0)
0000019F   ? (Always 0x00000000):                   0 (0x00000000)
000001A3   Reverse TimeStamp:                       2880276243 (0xABAD8713) - 4000383.671 ms
000001AB  Stream (144000 bytes)
...

With all of this, you can adapt ffmpeg to handle your file (this should not be complex, video stream is a basic DV PAL)
You can also check MediaInfo source code for LXF:
http://mediainfo.svn.sourceforge.net/viewvc/mediainfo/MediaInfoLib/trunk/Source/MediaInfo/Multiple/File_Lxf.cpp?view=markup

Note: LXF parsing in MediaInfo is 100% made by reverse engineering, so a lot of bytes are still opaque and I may have done some mistakes, this is only some help for you with unpacking LXF container.
Good luck for implementing a better ffmpeg LXF parser!

Note 2: your error is at offset [lxf @ 000000000035A920], this is inside the DV data (I intentionaly removed the DV trace in my dump, but I also have it), so maybe your problem is inside DV parsing, not at the LXF level.

Jerome, developer of MediaInfo
Reply | Threaded
Open this post in threaded view
|

Re: LXF decoder ! Need help !

Tuuls
In reply to this post by Tuuls
The problem continues still with us. Someone can help? Really need help!
Reply | Threaded
Open this post in threaded view
|

Re: LXF decoder ! Need help !

Tuuls
Oh ! A thousand apologies ! The new version of ffmpeg everything works fine ! Thanks a lot !