Tuesday, May 02, 2006

Demux and fix audio sync with ProjectX

[root@be mnt]# cd -
/root/tmp_jre/jre1.5.0_06/bin
[root@be bin]# ./java -jar ~/tmp3/ProjectX_Source_0.90.3/ProjectX.jar > -demux -out /mythtv -name scrubs_demux /mnt/1041_20060425210000_20060425213000.nuv
Reading GUI-Switch...
Reading Help Switch...
Reading Config File Switch...
Start without GUI...
Loading last Config or Standard File...
Loading Language -> 'en'

ProjectX 0.90.3.00/31.12.2005 TEST PROJECT ONLY , User: root


TERMS AND CONDITIONS:
(1) this is a free Java based demux utility.
(2) It is intended for educational purposes only, as a non-commercial test project.
(3) released under the terms of the GNU GPL.
(4) there is NO WARRANTY of any kind attached to this software.
(5) use it at your own risk and for your own education.

Java Environment
May 2, 2006 4:03:47 PM PDT
java.version 1.5.0_06
java.vendor Sun Microsystems Inc.
java.home /root/tmp_jre/jre1.5.0_06
java.vm.version 1.5.0_06-b05
java.vm.vendor Sun Microsystems Inc.
java.vm.name Java HotSpot(TM) Client VM
java.class.vers 49.0
java.class.path /root/tmp3/ProjectX_Source_0.90.3/ProjectX.jar
os.name Linux
os.arch i386
os.version 2.6.9-1.667
ini.file /root/tmp_jre/jre1.5.0_06/bin/X.ini
ext.disk.access disabled or library not found
user.language en
user.name root
user.home /root

quick CL usage:
Note: CL doesn't load the GUI components, except with switch [-gui]
...starts the GUI
switches and inputfiles can be in any order

options:
[-ini ] ..use that specified iniFile instead of the standard
[-dvx1] ..create a .d2v ProjectFile on demux
[-dvx2] ..create a .d2v ProjectFile + .ac3.wav (RIFF WAVE Header)
[-dvx3] ..create a .d2v ProjectFile + .mpa.wav (RIFF WAVE Header)
[-dvx4] ..create a .d2v ProjectFile + .ac3.wav + mpa.wav (RIFF WAVE Header)
[-out ] ..use that specified directory for output
[-name ] ..use that specified filename for output
[-cut ] ..use that text based file as cutpoint list
[-chp ] ..use that text based file as chapterpoint list
[-id ] ..use only these (P)IDs, separated by comma ","
[-gui] ..display the GUI using all given CLI options
[-log] ..write the normal logfile
[-saveini] ..save changes made bei CLI in active .ini
[-split ] ..split output at xxx MB
[-demux, -tom2p, -topva, -tovdr, -tots, -filter] ..action types

Loading Basic Classes...
Reading CLI Switches...
Checking Commons-Net library access...
Loading AC3 frames...
Starting Collection Process...
preparing collection(s)...
1 %Tuesday, May 2, 2006 4:03:48 PM PDT
ProjectX 0.90.3.00 (31.12.2005)

<<< session infos >>>

-> working with collection 0

-> save normal log file
-> write all video data
-> write all other data
-> patch c.d.flagged infos of pictures
-> add sequence end code
-> set resolution in SDE
-> PVA: strictly specs. for audio streams
-> VOB: determine diff. Cell timelines
-> TS: ignore scrambled packets
-> TS: enhanced search for open packets
-> TS: join file segments (of Dreambox®)
-> TS: generate PMT stream dependent
-> get only enclosed PES/TS packets
-> concatenate different recordings
-> ensure 1st PES-packet start with video
-> generate PCR/SCR from PTS

-> write output files to: '/mythtv'

-> Input File 0: '/mnt/1041_20060425210000_20060425213000.nuv' (2,345,324,440 bytes)
-> Filetype is TS (generic PES Container)
-> demux
-> Service ID 0x1
-> PMT 0x10 refers to these usable streams:
Video:
n/a
Audio:
n/a
Teletext:
n/a
Subpict.:
n/a

demuxing DVB MPEG-TS file 1041_20060425210000_20060425213000.nuv
--> PID 0x0 (PAT) (0 #1) -> ignored
--> PID 0x10 (PMT) (188 #2) -> ignored
ok> PID 0x31 has PES-ID 0xE0 (MPEG Video) (376 #3)
ok> PID 0x34 has PES-ID 0xBD (private stream 1) (190068 #1012)
-> video basics: 1920*1080 @ 29.97fps @ 0.7031 (16:9) @ 10957600bps, vbvBuffer 222
-> starting export of video data @ GOP# 0
!> dropping useless B-Frames @ GOP# 0 / new Timecode 00:00:00.000
9 %!> dropping GOP# 309 @ orig.PTS 06:37:12.030 (2144882778)
-> Pics exp/cnt 15/15, inGOP PTS diff. 100ms, new Timecode 00:02:34.587
!> dropping GOP# 310 @ orig.PTS 06:37:12.664 (2144939835)
-> Pics exp/cnt 15/15, inGOP PTS diff. 83ms, new Timecode 00:02:34.587
!> dropping GOP# 311 @ orig.PTS 06:37:13.282 (2144995390)
-> Pics exp/cnt 15/15, inGOP PTS diff. 100ms, new Timecode 00:02:34.587
!> PTS difference of 171171 (00:00:01.901) to last exported GOP detected
!> dropping useless B-Frames @ GOP# 312 / new Timecode 00:02:34.587
10 %!> dropping GOP# 373 @ orig.PTS 06:37:44.429 (2147798691)
-> Pics exp/cnt 15/15, inGOP PTS diff. 83ms, new Timecode 00:03:05.051
!> dropping GOP# 374 @ orig.PTS 06:37:45.047 (2147854246)
-> Pics exp/cnt 15/15, inGOP PTS diff. 83ms, new Timecode 00:03:05.051
!> dropping GOP# 375 @ orig.PTS 06:37:45.664 (2147909802)
-> Pics exp/cnt 15/15, inGOP PTS diff. 100ms, new Timecode 00:03:05.051
!> dropping GOP# 376 @ orig.PTS 06:37:46.298 (2147966859)
-> Pics exp/cnt 15/15, inGOP PTS diff. 33ms, new Timecode 00:03:05.051
!> PTS difference of 216216 (00:00:02.402) to last exported GOP detected
!> dropping useless B-Frames @ GOP# 377 / new Timecode 00:03:05.051
70 %!> dropping GOP# 2527 @ orig.PTS 06:55:42.957 (2244866161)
-> Pics exp/cnt 15/15, inGOP PTS diff. 100ms, new Timecode 00:21:01.061
!> dropping GOP# 2528 @ orig.PTS 06:55:43.591 (2244923218)
-> Pics exp/cnt 15/15, inGOP PTS diff. 83ms, new Timecode 00:21:01.061
!> dropping GOP# 2529 @ orig.PTS 06:55:44.208 (2244978774)
-> Pics exp/cnt 15/15, inGOP PTS diff. 100ms, new Timecode 00:21:01.061
!> PTS difference of 171171 (00:00:01.901) to last exported GOP detected
!> dropping useless B-Frames @ GOP# 2530 / new Timecode 00:21:01.061
101 %packs: 12418057 100% 2345324440

-> Video: fr/ ct/ 1p/ cg/ og/ dg -> 53362/ 12/ 0/ 3558/ 0/ 10
-> Video length: 53362 frames @ 00:29:40.510
-> GOP summary: min. 26, max. 30 fields; contains interlaced & progressive frames
-> avg. nom. bitrate 10020434bps (min/max: 1488400/14322400)
-> set first sequenceheader bitrate to 9000000bps
---> new File: /mythtv/scrubs_demux.m2v

--> AC-3/DTS Audio on PID 0x34
check & synchronize audio file scrubs_demux.ac
1 %-> check CRC of AC-3 / MPEG-Audio L1,2
-> delete CRC in MPEG-Audio Layer1,2
-> add frames
Audio PTS: first packet 06:34:37.132, last packet 07:04:24.332
Video PTS: start 1.GOP 06:34:37.409, end last GOP 07:04:24.328
-> adjusting audio at video-timeline
-> src_audio: AC-3, CM, 1/0(1.0), dn -27dB, 48000Hz, 192kbps @ 00:00:00.000
101 %audio frames: wri/pre/skip/ins/add 55641/0/0/0/0 @ 00:29:40.512 done...
---> new File: '/mythtv/scrubs_demux.ac3'

summary of created media files:
.Video (m2v): 53362 Frames 00:29:40.510 '/mythtv/scrubs_demux.m2v'
Audio 0 (ac3): 55641 Frames 00:29:40.512 0/0/0/0 '/mythtv/scrubs_demux.ac3'
=> 2,272,920,218 bytes written...
-> we have 17 warnings/errors.
done... 1 collection(s) processed @ 00:05:41.806

[root@be bin]#

0 Comments:

Post a Comment

<< Home