video - Converting Real Media with ffmpeg -
i have number of old crusty real media files need convert , hoping write script batch process them. i'm able real media -> avi conversion ffmpegx, when try replicate conversion ffmpeg, errors out like:
[avi @ 0x10084fa00] large number of skipped frames 117425 > 60000
it may have funky format of these real media files:
duration: 01:28:23.42, start: 0.000000, bitrate: 448 kb/s stream #0:0: data: none, 32 kb/s stream #0:1: data: none, 192 kb/s stream #0:2: audio: sipr (sipr / 0x72706973), 8000 hz, mono, flt, 6 kb/s stream #0:3: video: rv20 (rv20 / 0x30325652), yuv420p, 320x240, 13 kb/s, 15 fps, 15 tbr, 1k tbn, 1k tbc stream #0:4: video: rv20 (rv20 / 0x30325652), yuv420p, 320x240, 8 kb/s, 15 fps, 15 tbr, 1k tbn, 1k tbc stream #0:5: video: rv20 (rv20 / 0x30325652), yuv420p, 320x240, 5 kb/s, 15 fps, 15 tbr, 1k tbn, 1k tbc stream #0:6: video: rv20 (rv20 / 0x30325652), yuv420p, 320x240, 27 kb/s, 15 fps, 15 tbr, 1k tbn, 1k tbc stream #0:7: audio: cook (cook / 0x6b6f6f63), 22050 hz, mono, fltp, 32 kb/s stream #0:8: video: rv20 (rv20 / 0x30325652), yuv420p, 320x240, 192 kb/s, 30 fps, 30 tbr, 1k tbn, 1k tbc stream #0:9: video: rv20 (rv20 / 0x30325652), yuv420p, 320x240, 136 kb/s, 30 fps, 30 tbr, 1k tbn, 1k tbc stream #0:10: audio: sipr (sipr / 0x72706973), 8000 hz, mono, flt, 6 kb/s stream #0:11: audio: sipr (sipr / 0x72706973), 8000 hz, mono, flt, 6 kb/s stream #0:12: video: rv20 (rv20 / 0x30325652), yuv420p, 320x240, 13 kb/s, 15 fps, 15 tbr, 1k tbn, 1k tbc stream #0:13: video: rv20 (rv20 / 0x30325652), yuv420p, 320x240, 13 kb/s, 15 fps, 15 tbr, 1k tbn, 1k tbc stream #0:14: video: rv20 (rv20 / 0x30325652), yuv420p, 320x240, 13 kb/s, 15 fps, 15 tbr, 1k tbn, 1k tbc stream #0:15: video: rv20 (rv20 / 0x30325652), yuv420p, 320x240, 5 kb/s, 15 fps, 15 tbr, 1k tbn, 1k tbc
does have tips on either how find out ffmpegx doing make conversion work, or better way go using ffmpeg this?
edit
including ffmpeg command (thank @mondain teaching me stream mapping!) , output:
command:
ffmpeg -i cc121307pm.rm -map 0:8 -map 0:7 -c:v libx264 -c:a libfaac -b:a 32k test.avi
output:
ffmpeg version 1.2.1 copyright (c) 2000-2013 ffmpeg developers built on aug 7 2013 12:29:30 gcc 4.2.1 (gcc) (apple inc. build 5664) configuration: --prefix=/usr/local/cellar/ffmpeg/1.2.1 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --enable-vda --cc=/usr/bin/gcc-4.2 --host-cflags='-os -w -pipe -march=core2 -msse4.1 -mmacosx-version-min=10.6' --host-ldflags=-l/usr/local/lib --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid libavutil 52. 18.100 / 52. 18.100 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.104 / 54. 63.104 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 42.103 / 3. 42.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [rm @ 0x10180f200] unsupported stream type 00000265 [rm @ 0x10180f200] unsupported stream type 00000652 [rm @ 0x10180f200] max_analyze_duration 5000000 reached @ 5004000 microseconds input #0, rm, 'input.rm': metadata: file id : 41deac0f-94fb-3595-325c-c717943bc532 content rating : (pics-1.1 "http://www.classify.org/safesurf" labels comment "realproducer plus 8.5.0.200 windows" ratings (ss~~000 1)) modification date: 12/13/2007 16:26:16 generated : realproducer plus 8.5.0.200 windows keywords : abstract : target audiences: 28k modem (20 kbps);56k modem (34 kbps);256k dsl/cable modem (225 kbps); video quality : normal motion video audio format : voice creation date : 12/13/2007 14:57:49 asmrulebook : #($bandwidth < 15000),stream2bandwidth = 6500, stream3bandwidth = 5499;#($bandwidth >= 15000) && ($bandwidth < 20000),stream2ba title : author : copyright : ?2007 comment : duration: 01:28:23.42, start: 0.000000, bitrate: 448 kb/s stream #0:0: data: none, 32 kb/s stream #0:1: data: none, 192 kb/s stream #0:2: audio: sipr (sipr / 0x72706973), 8000 hz, mono, flt, 6 kb/s stream #0:3: video: rv20 (rv20 / 0x30325652), yuv420p, 320x240, 13 kb/s, 15 fps, 15 tbr, 1k tbn, 1k tbc stream #0:4: video: rv20 (rv20 / 0x30325652), yuv420p, 320x240, 8 kb/s, 15 fps, 15 tbr, 1k tbn, 1k tbc stream #0:5: video: rv20 (rv20 / 0x30325652), yuv420p, 320x240, 5 kb/s, 15 fps, 15 tbr, 1k tbn, 1k tbc stream #0:6: video: rv20 (rv20 / 0x30325652), yuv420p, 320x240, 27 kb/s, 15 fps, 15 tbr, 1k tbn, 1k tbc stream #0:7: audio: cook (cook / 0x6b6f6f63), 22050 hz, mono, fltp, 32 kb/s stream #0:8: video: rv20 (rv20 / 0x30325652), yuv420p, 320x240, 192 kb/s, 30 fps, 30 tbr, 1k tbn, 1k tbc stream #0:9: video: rv20 (rv20 / 0x30325652), yuv420p, 320x240, 136 kb/s, 30 fps, 30 tbr, 1k tbn, 1k tbc stream #0:10: audio: sipr (sipr / 0x72706973), 8000 hz, mono, flt, 6 kb/s stream #0:11: audio: sipr (sipr / 0x72706973), 8000 hz, mono, flt, 6 kb/s stream #0:12: video: rv20 (rv20 / 0x30325652), yuv420p, 320x240, 13 kb/s, 15 fps, 15 tbr, 1k tbn, 1k tbc stream #0:13: video: rv20 (rv20 / 0x30325652), yuv420p, 320x240, 13 kb/s, 15 fps, 15 tbr, 1k tbn, 1k tbc stream #0:14: video: rv20 (rv20 / 0x30325652), yuv420p, 320x240, 13 kb/s, 15 fps, 15 tbr, 1k tbn, 1k tbc stream #0:15: video: rv20 (rv20 / 0x30325652), yuv420p, 320x240, 5 kb/s, 15 fps, 15 tbr, 1k tbn, 1k tbc [libx264 @ 0x101889c00] using cpu capabilities: mmx2 sse2fast ssse3 fastshuffle sse4.1 cache64 [libx264 @ 0x101889c00] profile high, level 1.3 output #0, avi, 'test.avi': metadata: file id : 41deac0f-94fb-3595-325c-c717943bc532 content rating : (pics-1.1 "http://www.classify.org/safesurf" labels comment "realproducer plus 8.5.0.200 windows" ratings (ss~~000 1)) modification date: 12/13/2007 16:26:16 generated : realproducer plus 8.5.0.200 windows keywords : abstract : target audiences: 28k modem (20 kbps);56k modem (34 kbps);256k dsl/cable modem (225 kbps); video quality : normal motion video audio format : voice creation date : 12/13/2007 14:57:49 asmrulebook : #($bandwidth < 15000),stream2bandwidth = 6500, stream3bandwidth = 5499;#($bandwidth >= 15000) && ($bandwidth < 20000),stream2ba inam : author : icop : ?2007 icmt : isft : lavf54.63.104 stream #0:0: video: h264 (h264 / 0x34363248), yuv420p, 320x240, q=-1--1, 30 tbn, 30 tbc stream #0:1: audio: aac ([255][0][0][0] / 0x00ff), 22050 hz, mono, s16, 32 kb/s stream mapping: stream #0:8 -> #0:0 (rv20 -> libx264) stream #0:7 -> #0:1 (cook -> libfaac) press [q] stop, [?] [rm @ 0x10180f200] data tag in middle of chunk, file may broken. truncating packet of size 775215378 283607526 [rm @ 0x10180f200] impossibly sized packet truncating packet of size 686581284 279055389 [rm @ 0x10180f200] impossibly sized packet truncating packet of size 845942319 279042877 [rm @ 0x10180f200] impossibly sized packet truncating packet of size 519635011 279040757 [rm @ 0x10180f200] impossibly sized packet truncating packet of size 302013449 260425302 [rm @ 0x10180f200] impossibly sized packet truncating packet of size 671112232 260422550 [rm @ 0x10180f200] impossibly sized packet truncating packet of size 670137329 260371048 [rm @ 0x10180f200] impossibly sized packet truncating packet of size 674387680 260336787 [rm @ 0x10180f200] impossibly sized packet truncating packet of size 698852899 260336757 [rm @ 0x10180f200] impossibly sized packet truncating packet of size 881600768 260281240 [rm @ 0x10180f200] impossibly sized packet truncating packet of size 623325768 241694111 [rm @ 0x10180f200] impossibly sized packet truncating packet of size 273397034 241679920 [rm @ 0x10180f200] impossibly sized packet truncating packet of size 245534365 241615319 [rm @ 0x10180f200] impossibly sized packet truncating packet of size 264614026 220525004 [rm @ 0x10180f200] impossibly sized packet [rm @ 0x10180f200] data tag in middle of chunk, file may broken. truncating packet of size 637535515 219973842 [rm @ 0x10180f200] impossibly sized packet truncating packet of size 432193588 219973831 [rm @ 0x10180f200] impossibly sized packet truncating packet of size 286760544 219962162 [rm @ 0x10180f200] impossibly sized packet truncating packet of size 1070610764 219737624 [rm @ 0x10180f200] impossibly sized packet truncating packet of size 259875548 219371853 [rm @ 0x10180f200] impossibly sized packet truncating packet of size 362059391 219371844 [rm @ 0x10180f200] impossibly sized packet truncating packet of size 885179606 219371833 [rm @ 0x10180f200] impossibly sized packet truncating packet of size 587434829 206214002 [rm @ 0x10180f200] impossibly sized packet truncating packet of size 816942211 165623435 [rm @ 0x10180f200] impossibly sized packet truncating packet of size 471624979 113266905 [rm @ 0x10180f200] impossibly sized packet truncating packet of size 674059889 113266894 [rm @ 0x10180f200] impossibly sized packet truncating packet of size 459361272 113253548 [rm @ 0x10180f200] impossibly sized packet truncating packet of size 637535515 91792709 [rm @ 0x10180f200] impossibly sized packet truncating packet of size 432193588 91792698 [rm @ 0x10180f200] impossibly sized packet truncating packet of size 286760544 91781029 [rm @ 0x10180f200] impossibly sized packet truncating packet of size 157876310 91505934 [rm @ 0x10180f200] impossibly sized packet truncating packet of size 469953408 91505925 [rm @ 0x10180f200] impossibly sized packet truncating packet of size 260215377 91486921 [rm @ 0x10180f200] impossibly sized packet truncating packet of size 877425642 91335612 [rm @ 0x10180f200] impossibly sized packet truncating packet of size 259887697 91322050 [rm @ 0x10180f200] impossibly sized packet truncating packet of size 885071836 91245341 [rm @ 0x10180f200] impossibly sized packet truncating packet of size 264614182 90930431 [rm @ 0x10180f200] impossibly sized packet truncating packet of size 811350015 90930422 [rm @ 0x10180f200] impossibly sized packet truncating packet of size 128974975 90713958 [rm @ 0x10180f200] impossibly sized packet truncating packet of size 801151589 89195724 [rm @ 0x10180f200] impossibly sized packet truncating packet of size 654645420 85989435 [rm @ 0x10180f200] impossibly sized packet truncating packet of size 184860915 85989426 [rm @ 0x10180f200] impossibly sized packet truncating packet of size 1072093904 85980304 [rm @ 0x10180f200] impossibly sized packet truncating packet of size 907644163 85521587 [rm @ 0x10180f200] impossibly sized packet truncating packet of size 187973624 52762203 [rm @ 0x10180f200] impossibly sized packet truncating packet of size 315276941 52762157 [rm @ 0x10180f200] impossibly sized packet truncating packet of size 947559309 23894660 [rm @ 0x10180f200] impossibly sized packet truncating packet of size 183681448 2582872 [rm @ 0x10180f200] impossibly sized packet input.rm: input/output error frame= 0 fps=0.0 q=0.0 lsize= 10kb time=00:00:00.00 bitrate=n/a video:0kb audio:0kb subtitle:0 global headers:0kb muxing overhead inf% output file empty, nothing encoded (check -ss / -t / -frames parameters if used)
it appear file contains several streams , when working ffmpeg, need select ones want convert. 1 assume want audio / video pair @ highest quality within file. here how use "map" option target streams: http://trac.ffmpeg.org/wiki/how%20to%20use%20-map%20option
if had file use command:
ffmpeg -i [real-input-file] \ -map 0:8 -map 0:7 \ -c:v libx264 \ -c:a libfaac -b:a 32k \ output.mkv
Comments
Post a Comment