transcoding-tastic NOT

The place to post if you need help or advice

Moderators: ChrisThornett, LXF moderators

transcoding-tastic NOT

Postby nordle » Mon Jul 11, 2005 10:48 pm

Hi guys, I've googled but have not managed to get anywhere.

I have a hauppage DVB-T, and use kaffeine to record stuff to MPEG PS. This uses about 1.5GB/hour, so thought I'd re-encdode a bunch of stuff using xvid to shrink the files down.

So I tried ffmpeg with:
ffmpeg -i input.mpg -f avi -vcodec xvid -b 1650 -maxrate 1850 -minrate 1200 -acodec mp3 -ab 160 output.avi

This seemed to work well, however there were errors thrown up during the encoding process, and when playing the file, it gets half way through and the sound and visual go out of sync. I've tried a few times, and tried several players, the syncing problem is the same.

ffmpeg version 0.4.9-pre1, build 4756, Copyright (c) 2000-2004 Fabrice Bellard
configuration: --prefix=/usr/local --enable-a52 --enable-mp3lame --enable-xvid --enable-shared --enable-pthreads --enable-gpl
built on Jun 19 2005 00:48:38, gcc: 3.3.5
Input #0, mpeg, from 'input.mpg':
Duration: 00:19:23.6, start: 92028.242522, bitrate: 2953 kb/s
Stream #0.0[0x1ea]: Video: mpeg2video, yuv420p, 704x576, 25.00 fps, 10000 kb/s
Stream #0.1[0x1c0]: Audio: mp2, 48000 Hz, stereo, 192 kb/s
Output #0, avi, to 'output.avi':
Stream #0.0: Video: xvid, yuv420p, 704x576, 25.00 fps, q=2-31, 1650 kb/s
Stream #0.1: Audio: mp3, 48000 Hz, stereo, 160 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Press [q] to stop encoding
Press [q] to stop encoding
[mpeg2video @ 0xa7e2cbe8]ac-tex damaged at 43 14rate=1854.7kbits/s
[mpeg2video @ 0xa7e2cbe8]ac-tex damaged at 0 15
[mpeg2video @ 0xa7e2cbe8]Warning MVs not available
[mpeg2video @ 0xa7e2cbe8]concealing 88 DC, 88 AC, 88 MV errors
[mpeg2video @ 0xa7e2cbe8]00 motion_type at 40 32rate=1828.5kbits/s
[mpeg2video @ 0xa7e2cbe8]Warning MVs not available
[mpeg2video @ 0xa7e2cbe8]concealing 176 DC, 176 AC, 176 MV errors
[mpeg2video @ 0xa7e2cbe8]mb incr damaged28.2 bitrate=1824.2kbits/s
[mpeg2video @ 0xa7e2cbe8]Warning MVs not available
[mpeg2video @ 0xa7e2cbe8]concealing 88 DC, 88 AC, 88 MV errors
[mpeg2video @ 0xa7e2cbe8]ac-tex damaged at 38 18rate=1819.6kbits/s
[mpeg2video @ 0xa7e2cbe8]ac-tex damaged at 42 21
[mpeg2video @ 0xa7e2cbe8]skipped MB in I frame at 4 22
[mpeg2video @ 0xa7e2cbe8]Warning MVs not available
[mpeg2video @ 0xa7e2cbe8]concealing 176 DC, 176 AC, 176 MV errors
[mpeg2video @ 0xa7e2cbe8]00 motion_type at 11 33rate=1818.5kbits/s
[mpeg2video @ 0xa7e2cbe8]Warning MVs not available
[mpeg2video @ 0xa7e2cbe8]concealing 44 DC, 44 AC, 44 MV errors
[mpeg2video @ 0xa7e2cbe8]ac-tex damaged at 23 29rate=1818.3kbits/s
[mpeg2video @ 0xa7e2cbe8]Warning MVs not available
[mpeg2video @ 0xa7e2cbe8]concealing 308 DC, 308 AC, 308 MV errors
[mpeg2video @ 0xa7e2cbe8]invalid cbp at 8 20 bitrate=1818.3kbits/s
[mpeg2video @ 0xa7e2cbe8]invalid mb type in B Frame at 6 14
[mpeg2video @ 0xa7e2cbe8]mb incr damaged
[mpeg2video @ 0xa7e2cbe8]00 motion_type at 5 25


So I thought I'd try transcode instead, with:

transcode -i input.mpg -F mpeg4 -y xvid,lame -w 1850,250,100 -b 160,0,0 -V -o output.avi

transcode v1.0.0rc1 (C) 2001-2003 Thomas Oestreich, 2003-2004 T. Bitterberg
libdvdread: Using libdvdcss version 1.2.8 for DVD access
libdvdread: Can't open file VIDEO_TS.IFO.
[transcode] (probe) suggested AV correction -D 0 (0 ms) | AV 0 ms | 0 ms
[transcode] auto-probing source input.mpg (ok)
[transcode] V: import format | MPEG (V=null|A=null)
[transcode] V: AV demux/sync | (0) sync AV at PTS start - demuxer disabled
[transcode] V: import frame | disabled
[transcode] V: bits/pixel | 0.000 (unknown)
[transcode] V: decoding fps,frc | 25.000,0
[transcode] V: Y'CbCr | YV12/I420
[transcode] A: import | disabled
[transcode] A: export | disabled
[transcode] V: encoding fps,frc | 25.000,3
[transcode] A: bytes per frame | 0 (0.000000)
[transcode] A: adjustment | 0@1000
[transcode] V: IA32/AMD64 accel | sse3 (sse3 sse2 sse 3dnowext 3dnow mmxext mmx asm C)
tc_memcpy: using sse for memcpy
[transcode] V: video buffer | 10 @ 0x0
[import_null.so] v0.2.0 (2002-01-19) (video) null | (audio) null
[export_null.so] v0.1.2 (2001-08-17) (video) null | (audio) null
[export_xvid4.so] v0.0.5 (2003-12-05) (video) XviD 1.0.x series (aka API 4.0) | (audio) MPEG/AC3/PCM
[export_xvid4.so] Reading configuration from '/nordle/.transcode/xvid4.cfg'
[export_xvid4.so] Reading config section 'features' from '/nordle/.transcode/xvid4.cfg'
[export_xvid4.so] Reading config section 'quantizer' from '/nordle/.transcode/xvid4.cfg'
[export_xvid4.so] Reading config section 'cbr' from '/nordle/.transcode/xvid4.cfg'
[export_xvid4.so] Reading config section 'vbr' from '/nordle/.transcode/xvid4.cfg'
[export_xvid4.so] Encoder initialization failed
[transcode] warning : (encoder.c) video export module error: init failed
[transcode] critical: failed to init encoder

Totally failing to do anything.

I ran a tcprobe, but it seemed to be ok, other than the audio thing which struck me as odd.
#tcprobe -i input.mpg
[tcprobe] MPEG program stream (PS)
[tcprobe] summary for input.mpg, (*) = not default, 0 = not detected
detected (3) presentation unit(s) (SCR reset)
no audio track: use "null" import module for audio

Versions:
ffmpeg version 0.4.9-pre1, build 4756, Copyright (c) 2000-2004 Fabrice Bellard
configuration: --prefix=/usr/local --enable-a52 --enable-mp3lame --enable-xvid --enable-shared --enable-pthreads --enable-gpl
built on Jun 19 2005 00:48:38, gcc: 3.3.5
ffmpeg 0.4.9-pre1
libavcodec 4756
libavformat 4626

transcode v1.0.0rc1 (C) 2001-2003 Thomas Oestreich, 2003-2004 T. Bitterberg


Google has not come up with the goods on this occasion, does anyone else have any experience with this?

Thanks.
User avatar
nordle
LXF regular
 
Posts: 1500
Joined: Fri Apr 08, 2005 9:56 pm

RE: transcoding-tastic NOT

Postby jjmac » Tue Jul 12, 2005 2:17 am

No, none ..., but

>>
transcode] warning : (encoder.c) video export module error: init failed
no audio track: use "null" import module for audio
>>

seem to be curious messages.

Would running it with "strace" or "ltrace", piping the screen output to a log file be of any use ?


jm
http://counter.li.org
#313537

The FVWM wm -=- www.fvwm.org -=-

Somebody stole my air guitar, It happened just the other day,
But it's ok, 'cause i've got a spare ...
jjmac
LXF regular
 
Posts: 1996
Joined: Fri Apr 08, 2005 1:32 am
Location: Sydney, Australia

RE: transcoding-tastic NOT

Postby nordle » Wed Jul 13, 2005 10:22 pm

Hi jjmac, thanks for the strace suggestion, here's the output. Its full of "No Such File or Directory) as loads of components seem to be missing / can't find them. Which is a little odd, as I tries re-compiling xvid, libmpeg, lame, ffmpeg, a52dec and transcode from source, and the ./configure's showed that various components have been found...more time needed to look into it me thinks:)

eg
open("/usr/lib/./tls/i686/libstdc++.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/./tls/i686", 0xafe81bd8) = -1 ENOENT (No such file or directory)
open("/usr/lib/./tls/sse2/libstdc++.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)

and
open("/usr/local/lib/transcode/libxvidcore.so.4", O_RDONLY) = -1 ENOENT (No such file or directory)


The whole thing:

strace transcode -i myFile.mpg -F mpeg4 -y xvid,lame -w 1850,250,100 -b 160,0,0 -V -o myFile.avi
execve("/usr/local/bin/transcode", ["transcode", "-i", "myFile.mpg", "-F", "mpeg4", "-y", "xvid,lame", "-w", "1850,250,100", "-b", "160,0,0", "-V", "-o", "myFile.avi"], [/* 49 vars */]) = 0
uname({sys="Linux", node="axia3", ...}) = 0
brk(0) = 0x80a3000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=129512, ...}) = 0
mmap2(NULL, 129512, PROT_READ, MAP_PRIVATE, 3, 0) = 0xa7f4f000
close(3) = 0
open("/usr/lib/libxml2.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300\231"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1098744, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xa7f4e000
mmap2(NULL, 1100532, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xa7e41000
mmap2(0xa7f45000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x104) = 0xa7f45000
mmap2(0xa7f4d000, 2804, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xa7f4d000
close(3) = 0
open("/lib/tls/libpthread.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0000H\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=87827, ...}) = 0
mmap2(NULL, 70104, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xa7e2f000
mmap2(0xa7e3d000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xd) = 0xa7e3d000
mmap2(0xa7e3f000, 4568, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xa7e3f000
close(3) = 0
open("/usr/local/lib/libiconv.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20\22\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=913274, ...}) = 0
mmap2(NULL, 884592, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xa7d57000
mmap2(0xa7e2e000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xd6) = 0xa7e2e000
close(3) = 0
open("/lib/tls/libm.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0P3\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=176352, ...}) = 0
mmap2(NULL, 139424, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xa7d34000
mmap2(0xa7d55000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x20) = 0xa7d55000
close(3) = 0
open("/usr/lib/libz.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20\26\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=66584, ...}) = 0
mmap2(NULL, 69204, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xa7d23000
mmap2(0xa7d33000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xf) = 0xa7d33000
close(3) = 0
open("/lib/tls/libdl.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300\v\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=13120, ...}) = 0
mmap2(NULL, 12392, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xa7d1f000
mmap2(0xa7d21000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0xa7d21000
close(3) = 0
open("/lib/tls/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300P\1"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1366940, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xa7d1e000
mmap2(NULL, 1162428, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xa7c02000
mprotect(0xa7d17000, 27836, PROT_NONE) = 0
mmap2(0xa7d18000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x115) = 0xa7d18000
mmap2(0xa7d1c000, 7356, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xa7d1c000
close(3) = 0
open("/usr/lib/./tls/i686/sse2/libstdc++.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/./tls/i686/sse2", 0xafe81bd8) = -1 ENOENT (No such file or directory)
open("/usr/lib/./tls/i686/libstdc++.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/./tls/i686", 0xafe81bd8) = -1 ENOENT (No such file or directory)
open("/usr/lib/./tls/sse2/libstdc++.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/./tls/sse2", 0xafe81bd8) = -1 ENOENT (No such file or directory)
open("/usr/lib/./tls/libstdc++.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/./tls", {st_mode=S_IFDIR|0755, st_size=136, ...}) = 0
open("/usr/lib/./i686/sse2/libstdc++.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/./i686/sse2", 0xafe81bd8) = -1 ENOENT (No such file or directory)
open("/usr/lib/./i686/libstdc++.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/./i686", 0xafe81bd8) = -1 ENOENT (No such file or directory)
open("/usr/lib/./sse2/libstdc++.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/./sse2", 0xafe81bd8) = -1 ENOENT (No such file or directory)
open("/usr/lib/./libstdc++.so.5", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320\277"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=732224, ...}) = 0
mmap2(NULL, 750496, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xa7b4a000
mmap2(0xa7bf8000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xae) = 0xa7bf8000
mmap2(0xa7bfd000, 17312, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xa7bfd000
close(3) = 0
open("/usr/lib/./tls/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/./libgcc_s.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360\22"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=31360, ...}) = 0
mmap2(NULL, 33264, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xa7b41000
mmap2(0xa7b49000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7) = 0xa7b49000
close(3) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xa7b40000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xa7b3f000
mprotect(0xa7d18000, 4096, PROT_READ) = 0
mprotect(0xa7d23000, 65536, PROT_READ|PROT_WRITE) = 0
mprotect(0xa7d23000, 65536, PROT_READ|PROT_EXEC) = 0
set_thread_area({entry_number:-1 -> 6, base_addr:0xa7b3f6c0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
munmap(0xa7f4f000, 129512) = 0
set_tid_address(0xa7b3f708) = 10882
rt_sigaction(SIGRTMIN, {0xa7e33700, [], SA_SIGINFO}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0xa7e33780, [], SA_RESTART|SA_SIGINFO}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
_sysctl({{CTL_KERN, KERN_VERSION}, 2, 0xafe823b0, 30, (nil), 0}) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(2, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
brk(0) = 0x80a3000
brk(0x80c4000) = 0x80c4000
rt_sigprocmask(SIG_BLOCK, [INT TERM], NULL, 8) = 0
mmap2(NULL, 8388608, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xa733f000
mprotect(0xa733f000, 4096, PROT_NONE) = 0
clone(child_stack=0xa7b3e504, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0xa7b3ebf8, {entry_number:6, base_addr:0xa7b3ebb0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}, child_tidptr=0xa7b3ebf8) = 10883
stat64("myFile.mpg", {st_mode=S_IFREG|0644, st_size=175246910, ...}) = 0
write(2, "*** WARNING: The option -V is de"..., 393*** WARNING: The option -V is deprecated. ***
*** Transcode internal frame handling is now in YV12 / YUV420 ***
*** format by default because most codecs can only handle this format, ***
*** otherwise leading to unnecessary time and quality wasting conversions. ***
*** If you want to have to "old" behaviour (RGB24 as internal format), ***
*** then please use the new -1/--use_rgb option ***
) = 393
write(2, "transcode v1.0.0rc1 (C) 2001-200"..., 76transcode v1.0.0rc1 (C) 2001-2003 Thomas Oestreich, 2003-2004 T. Bitterberg
) = 76
pipe([3, 4]) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xa7b3f708) = 10884
close(4) = 0
fstat64(3, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xa733e000
read(3, "\204*\0\0", 4096) = 4
read(3, libdvdread: Using libdvdcss version 1.2.8 for DVD access
libdvdread: Can't open file VIDEO_TS.IFO.
"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\363\0\0\0\363"..., 4096) = 1504
close(3) = 0
waitpid(10884, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0) = 10884
--- SIGCHLD (Child exited) @ 0 (0) ---
munmap(0xa733e000, 4096) = 0
fstat64(1, {st_mode=S_IFCHR|0700, st_rdev=makedev(136, 1), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xa733e000
write(1, "[transcode] (probe) suggested AV"..., 73[transcode] (probe) suggested AV correction -D 0 (0 ms) | AV 0 ms | 0 ms
) = 73
write(1, "[transcode] auto-probing source "..., 67[transcode] auto-probing source myFile.mpg (ok)
) = 67
write(1, "[transcode] V: import format "..., 58[transcode] V: import format | MPEG (V=null|A=null)
) = 58
write(1, "[transcode] V: AV demux/sync "..., 78[transcode] V: AV demux/sync | (0) sync AV at PTS start - demuxer disabled
) = 78
write(1, "[transcode] V: import frame "..., 43[transcode] V: import frame | disabled
) = 43
write(1, "[transcode] V: bits/pixel "..., 50[transcode] V: bits/pixel | 0.000 (unknown)
) = 50
write(1, "[transcode] V: decoding fps,frc "..., 43[transcode] V: decoding fps,frc | 25.000,0
) = 43
write(1, "[transcode] V: Y\'CbCr "..., 44[transcode] V: Y'CbCr | YV12/I420
) = 44
write(1, "[transcode] A: import "..., 43[transcode] A: import | disabled
) = 43
write(1, "[transcode] A: export "..., 43[transcode] A: export | disabled
) = 43
write(1, "[transcode] V: encoding fps,frc "..., 43[transcode] V: encoding fps,frc | 25.000,3
) = 43
write(1, "[transcode] A: bytes per frame "..., 47[transcode] A: bytes per frame | 0 (0.000000)
) = 47
write(1, "[transcode] A: adjustment "..., 41[transcode] A: adjustment | 0@1000
) = 41
write(1, "[transcode] V: IA32/AMD64 accel "..., 87[transcode] V: IA32/AMD64 accel | sse3 (sse3 sse2 sse 3dnowext 3dnow mmxext mmx asm C)
) = 87
write(2, "tc_memcpy: using sse for memcpy\n", 32tc_memcpy: using sse for memcpy
) = 32
write(1, "[transcode] V: video buffer "..., 43[transcode] V: video buffer | 10 @ 0x0
) = 43
mmap2(NULL, 581632, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xa72b0000
mmap2(NULL, 581632, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xa7222000
mmap2(NULL, 581632, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xa7194000
mmap2(NULL, 581632, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xa7106000
mmap2(NULL, 581632, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xa7078000
mmap2(NULL, 581632, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xa6fea000
mmap2(NULL, 581632, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xa6f5c000
mmap2(NULL, 581632, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xa6ece000
mmap2(NULL, 581632, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xa6e40000
mmap2(NULL, 581632, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xa6db2000
mmap2(NULL, 581632, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xa6d24000
futex(0xa7d22064, FUTEX_WAKE, 2147483647) = 0
open("/usr/local/lib/transcode/import_null.so", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0\5\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=6647, ...}) = 0
mmap2(NULL, 6476, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xa6d22000
mmap2(0xa6d23000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0) = 0xa6d23000
close(3) = 0
write(2, "[import_null.so] v0.2.0 (2002-01"..., 65[import_null.so] v0.2.0 (2002-01-19) (video) null | (audio) null
) = 65
open("/usr/local/lib/transcode/export_null.so", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320\4\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=6801, ...}) = 0
mmap2(NULL, 6480, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xa7f6d000
mmap2(0xa7f6e000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0) = 0xa7f6e000
close(3) = 0
open("/usr/local/lib/transcode/export_xvid.so", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`0\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=90790, ...}) = 0
mmap2(NULL, 122540, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xa7f4f000
mmap2(0xa7f61000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x11) = 0xa7f61000
mmap2(0xa7f63000, 40620, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xa7f63000
close(3) = 0
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=129512, ...}) = 0
mmap2(NULL, 129512, PROT_READ, MAP_PRIVATE, 3, 0) = 0xa6d02000
close(3) = 0
open("/usr/local/lib/libavcodec.so", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0P\4\3\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=2600132, ...}) = 0
mmap2(NULL, 2964356, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xa6a2e000
mmap2(0xa6ca2000, 28672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x273) = 0xa6ca2000
mmap2(0xa6ca9000, 363396, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xa6ca9000
close(3) = 0
open("/usr/local/lib/libmp3lame.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 k\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=283022, ...}) = 0
mmap2(NULL, 599552, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xa699b000
mmap2(0xa69d8000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3d) = 0xa69d8000
mmap2(0xa69da000, 341504, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xa69da000
close(3) = 0
open("/usr/local/lib/libxvidcore.so.4", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360\375"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=705647, ...}) = 0
mmap2(NULL, 1117028, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xa688a000
mmap2(0xa6927000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x9d) = 0xa6927000
mmap2(0xa6928000, 469860, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xa6928000
mprotect(0xa7f84000, 3836, PROT_READ|PROT_WRITE) = 0
mprotect(0xa7f84000, 3836, PROT_READ) = 0
mprotect(0xafe82000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC|0x1000000) = 0
mprotect(0xa7340000, 8384512, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
close(3) = 0
mprotect(0xa688a000, 643072, PROT_READ|PROT_WRITE) = 0
mprotect(0xa688a000, 643072, PROT_READ|PROT_EXEC) = 0
mprotect(0xa6a2e000, 2572288, PROT_READ|PROT_WRITE) = 0
mprotect(0xa6a2e000, 2572288, PROT_READ|PROT_EXEC) = 0
munmap(0xa6d02000, 129512) = 0
write(2, "[export_null.so] v0.1.2 (2001-08"..., 65[export_null.so] v0.1.2 (2001-08-17) (video) null | (audio) null
) = 65
write(2, "[export_xvid4.so] v0.0.5 (2003-1"..., 101[export_xvid4.so] v0.0.5 (2003-12-05) (video) XviD 1.0.x series (aka API 4.0) | (audio) MPEG/AC3/PCM
) = 101
mmap2(NULL, 8388608, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xa608a000
mprotect(0xa608a000, 4096, PROT_NONE) = 0
clone(child_stack=0xa6889504, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0xa6889bf8, {entry_number:6, base_addr:0xa6889bb0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}, child_tidptr=0xa6889bf8) = 10886
mmap2(NULL, 8388608, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xa588a000
mprotect(0xa588a000, 4096, PROT_NONE) = 0
clone(child_stack=0xa6089504, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0xa6089bf8, {entry_number:6, base_addr:0xa6089bb0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}, child_tidptr=0xa6089bf8) = 10887
mmap2(NULL, 8388608, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xa508a000
mprotect(0xa508a000, 4096, PROT_NONE) = 0
clone(child_stack=0xa5889504, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0xa5889bf8, {entry_number:6, base_addr:0xa5889bb0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}, child_tidptr=0xa5889bf8) = 10888
mmap2(NULL, 8388608, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xa488a000
mprotect(0xa488a000, 4096, PROT_NONE) = 0
clone(child_stack=0xa5089504, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0xa5089bf8, {entry_number:6, base_addr:0xa5089bb0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}, child_tidptr=0xa5089bf8) = 10889
open("/usr/local/lib/transcode/libxvidcore.so.4", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("./xvid4.cfg", {st_mode=S_IFREG|0644, st_size=1171, ...}) = 0
write(2, "[export_xvid4.so] Reading config"..., 59[export_xvid4.so] Reading configuration from './xvid4.cfg'
) = 59
open("./xvid4.cfg", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=1171, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xa4889000
read(3, "################################"..., 4096) = 1171
read(3, "", 4096) = 0
close(3) = 0
munmap(0xa4889000, 4096) = 0
write(2, "[export_xvid4.so] Reading config"..., 71[export_xvid4.so] Reading config section 'features' from './xvid4.cfg'
) = 71
write(2, "[export_xvid4.so] Reading config"..., 72[export_xvid4.so] Reading config section 'quantizer' from './xvid4.cfg'
) = 72
write(2, "[export_xvid4.so] Reading config"..., 66[export_xvid4.so] Reading config section 'cbr' from './xvid4.cfg'
) = 66
write(2, "[export_xvid4.so] Reading config"..., 66[export_xvid4.so] Reading config section 'vbr' from './xvid4.cfg'
) = 66
rt_sigaction(SIGILL, {0xa68a5be0, [ILL], SA_RESTART}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGILL, {SIG_DFL}, {0xa68a5be0, [ILL], SA_RESTART}, 8) = 0
rt_sigaction(SIGILL, {0xa68a5be0, [ILL], SA_RESTART}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGILL, {SIG_DFL}, {0xa68a5be0, [ILL], SA_RESTART}, 8) = 0
write(2, "[export_xvid4.so] Encoder initia"..., 48[export_xvid4.so] Encoder initialization failed
) = 48
write(2, "[\33[31;1mtranscode\33[0m] \33[33;1mwa"..., 95[transcode] warning : (encoder.c) video export module error: init failed
) = 95
write(2, "[\33[31;1mtranscode\33[0m] \33[31;1mcr"..., 67[transcode] critical: failed to init encoder
) = 67
tgkill(10882, 10883, SIGRTMIN) = 0
munmap(0xa733e000, 4096) = 0
exit_group(1) = ?
I think, therefore I compile
User avatar
nordle
LXF regular
 
Posts: 1500
Joined: Fri Apr 08, 2005 9:56 pm

RE: transcoding-tastic NOT

Postby jjmac » Fri Jul 15, 2005 10:52 am

Hi nordle,


(grin) Yes, eyes know :)

piping to a text file is always a good idea with that critter, .... hmmmm


>>
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
>>

>>
No Such File or Directory) as loads of components seem to be missing / can't find them
>>

Don't be to concerned about those, there just false negatives...

It's interesting to see the defaults that are actually built into a program and the kernel. They sure try to cover a number of different possibilities. I like to just sit and watch strace output sometimes, when i'm a bit bored :). If it was slowed down a bit, and maybe stylised a little ... it could make a good screensaver, well, of soughts.

Back to the issue though ... somewhere in there there is an answer !!!

But there will also be a lot of __false negatives__ ... such as the "/etc/ld.so.preload" not found result above.

It's probably a lib that exists on another plateform like a "sun" or one of the other unix-like systems. They do tend to add to the output, but then ... thats what strace is all about.

>>
open("/usr/lib/./tls/i686/sse2/libstdc++.so.5", O_RDONLY) = -1 ENOENT (No such file or directory)
>>

Thats curious ..., "sse2" sounds like something that involves the athlon ...

>>
open("/usr/lib/./libstdc++.so.5", O_RDONLY) = 3
>>

Eventual success ... thats what i mean by the false negatives. In that, they wern't real errors. Some systems probably do have that lib, or a support lib installed there.


>>
rt_sigaction(SIGRTMIN, {0xa7e33700, [], SA_SIGINFO}, NULL, :cool: = 0
>>

Seems positive (grin).


I haven't got _any_ direct experiance with what your doing mind, but there do seem to be two things that stand out ...

>>
write(2, "*** WARNING: The option -V is de"..., 393*** WARNING: The option -V is deprecated. ***
*** Transcode internal frame handling is now in YV12 / YUV420 ***
>>

# the warnings on deprecated cli switches and ...

>>
open("/usr/local/lib/transcode/libxvidcore.so.4", O_RDONLY) = -1 ENOENT (No such file or directory)
>>

# and the faild opening of the above.

>>
write(2, "[export_xvid4.so] Encoder initia"..., 48[export_xvid4.so] Encoder initialization failed
) = 48
>>

That must be the hint ...

/libxvidcore.so.4 <---> export_xvid4.so

They do seem to be relating somehow, ....

"export" ... Some sought of function symbol may be missing, as a result of the failed opening, possibly having something to do with the deprecated cli switches (maybe)

As it's all compiled from source ... could there be an abi conflict involved with your compiler/libs/kernel ... do they all match, including binutils and libc6. I have had some strange results over this year with programs/libs compiled with different compilers. Fails at the compile stage (gcc-3.3.5), success with gcc-3.2.3.

Wish i could suggest something more helpfull :) .... but ..., you may find "ltrace' output interesting too (sly_grin).

Good Luck.


jm
http://counter.li.org
#313537

The FVWM wm -=- www.fvwm.org -=-

Somebody stole my air guitar, It happened just the other day,
But it's ok, 'cause i've got a spare ...
jjmac
LXF regular
 
Posts: 1996
Joined: Fri Apr 08, 2005 1:32 am
Location: Sydney, Australia


Return to Help!

Who is online

Users browsing this forum: No registered users and 1 guest