2012-11-25 7 views
8

मुझे मूवी फाइलों से बंद कैप्शन जानकारी निकालने की ज़रूरत है, मैंने ccextractor को आजमाया है लेकिन ऐसा लगता है कि यह काम नहीं कर रहा है।मूवी फाइलों से बंद कैप्शन निकालने का सबसे अच्छा तरीका क्या है?

मैंने एक वीडियो स्ट्रीम (इसमें बंद कैप्शन के साथ) पर कब्जा कर लिया है और फ़ाइल में सहेजा गया है और फिर मैं ccextractor चलाता हूं ... लेकिन यह कुछ भी नहीं मिल रहा है!

मेरे वीडियो नमूने में नीचे हैं:

http://dl.dropbox.com/u/10244901/gsd.mpg

http://dl.dropbox.com/u/10244901/gsd_b.mpg

पहला प्रयास:

cvlc -I dummy v4l2:///dev/video1:width=720:height=480:norm=ntsc:standard=ntsc:pixelformat=2:aspect-ratio=4\:3:channel=0 --sout "#transcode{vcodec=mp2v}:standard{access=file,mux=dummy,dst=gsd.mpg}" 

[email protected]:~/Downloads/ccextractor.0.64/linux$ ./ccextractor gsd.mpg 
CCExtractor 0.64, Carlos Fernandez Sanz, Volker Quetschke. 
Teletext portions taken from Petr Kutalek's telxcc 
-------------------------------------------------------------------------- 
Input: gsd.mpg 
[Raw Mode: Broadcast] [Extract: 1] [Stream mode: Autodetect] 
[Program : Auto ] [Hauppage mode: No] [Use MythTV code: Auto] 
[Timing mode: Auto] [Debug: No] [Buffer input: No] 
[Use pic_order_cnt_lsb for H.264: No] [Print CC decoder traces: No] 
[Target format: .srt] [Encoding: Latin-1] [Delay: 0] [Trim lines: No] 
[Add font color data: Yes] [Add font typesetting: Yes] 
[Convert case: No] [Video-edit join: No] 
[Extraction start time: not set (from start)] 
[Extraction end time: not set (to end)] 
[Live stream: No] [Clock frequency: 90000] 
Teletext page: Autodetect] 
Start credits text: [None] 
Creating gsd.srt 

----------------------------------------------------------------- 
Opening file: gsd.mpg 
File seems to be an elementary stream, enabling ES mode 
Analyzing data in general mode 


New video information found 
[720 * 480] [AR: 02 - 4:3] [FR: 03 - 25] [progressive: yes] 

133% | 01:40 
Number of NAL_type_7: 0 
Number of VCL_HRD: 0 
Number of NAL HRD: 0 
Number of jump-in-frames: 0 
Number of num_unexpected_sei_length: 0 

Total frames time:  00:01:41:200 (2530 frames at 25.00fps) 

Min PTS:    00:00:00:000 
Max PTS:    00:01:41:200 
Length:     00:01:41:200 

Initial GOP time:  00:00:00:000 
Final GOP time:   00:01:40:800+10F 
Diff. GOP length:  00:01:40:800+10F (00:01:41:133) 
Done, processing time = 0 seconds 
This is beta software. Report issues to cfsmp3 at gmail... 

दूसरा कोशिश:

cvlc -I dummy gsd.mpg --sout "#standard{access=file,mux=ts,dst=gsd_b.mpg}" 



[email protected]:~/Downloads/ccextractor.0.64/linux$ ./ccextractor gsd_b.mpg 
CCExtractor 0.64, Carlos Fernandez Sanz, Volker Quetschke. 
-------------------------------------------------------------------------- 
Input: gsd_b.mpg 
[Raw Mode: Broadcast] [Extract: 1] [Stream mode: Autodetect] 
[Program : Auto ] [Hauppage mode: No] [Use MythTV code: Auto] 
[Timing mode: Auto] [Debug: No] [Buffer input: No] 
[Use pic_order_cnt_lsb for H.264: No] [Print CC decoder traces: No] 
[Target format: .srt] [Encoding: Latin-1] [Delay: 0] [Trim lines: No] 
[Add font color data: Yes] [Add font typesetting: Yes] 
[Convert case: No] [Video-edit join: No] 
[Extraction start time: not set (from start)] 
[Extraction end time: not set (to end)] 
[Live stream: No] [Clock frequency: 90000] 
Teletext page: Autodetect] 
Start credits text: [None] 
Creating gsd_b.srt 

----------------------------------------------------------------- 
Opening file: gsd_b.mpg 
File seems to be a transport stream, enabling TS mode 
Analyzing data in general mode 
Decode captions from MPEG-2 video stream [0x02] - PID: 68 

New PID found: 68 


New video information found 
[720 * 480] [AR: 02 - 4:3] [FR: 03 - 25] [progressive: yes] 

100% | 00:00 
Number of NAL_type_7: 0 
Number of VCL_HRD: 0 
Number of NAL HRD: 0 
Number of jump-in-frames: 0 
Number of num_unexpected_sei_length: 0 

Total frames time:  00:01:41:040 (2526 frames at 25.00fps) 

Min PTS:    02:59:52:437 
Max PTS:    02:59:52:677 
Length:     00:00:00:240 

Initial GOP time:  00:00:00:000 
Final GOP time:   00:01:40:800 +6F 
Diff. GOP length:  00:01:40:800 +6F (00:01:41:000) 
Done, processing time = 0 seconds 
This is beta software. Report issues to cfsmp3 at gmail... 
+0

इस सवाल के रूप में, प्रोग्रामिंग के साथ कुछ भी नहीं है। इस विषय पर एक प्रश्न हो सकता है जो प्रोग्रामिंग से संबंधित है, लेकिन यह सवाल बंद कैप्शनिंग निकालने के लिए उपकरण खोजने के बारे में है, न कि बंद कैप्शन को निकालने वाले टूल को कैसे लिखना है। – Makyen

उत्तर

1

कुछ फिल्मों में कैप्शन वाली छिपी हुई फ़ाइल नहीं है, लेकिन उपशीर्षक वीडियो में हार्डकोड किए गए हैं, जिसका अर्थ है कि वे वास्तव में वीडियो का हिस्सा हैं और इन्हें प्रतिष्ठित नहीं किया जा सकता है।

आप किसी फिल्म के लिए उपशीर्षक के स्टैंडअलोन संस्करण के लिए Google पर आज़मा सकते हैं।

संबंधित मुद्दे