한줄요약
MPlayer 소스 받아 ffmpeg 부분을 ffmpeg-mt로 교체해 컴파일했는데 로그로 보아 MT가 안되는 것 같아요.
지난 [url=http://ubuntu.or.kr/viewtopic.php?f=19&t=14775&p=73617#p73617:2gjacw45]글타래[/url:2gjacw45]에서 분리해서 질문 올립니다.
vaapi가 안되는 저에게 hanbin973님이 멀티코어 디코딩을 제안하셨고 마침 제 노트북이 듀얼코어라 시도해보게 되었습니다.
그래서 MPlayer 최신 코드를 받았는데 MPlayer 코드에 변화가 생긴 건지는 모르겠는데 ffmpeg 폴더가 아예 따로 있길래 ffmpeg-mt 소스를 받아 아예 폴더를 교체했습니다.
이부분 조금 자세히 설명하면 ffmpeg-mt에서 libswscale폴더는 mplayer것을 그냥 사용하게 되어있어 소스를 다운받으면 libswscale폴더가 비어있습니다.
그래서 mplayer에서 libswscale폴더만 남겨놓았다가 이를 사용했습니다.
그래서 간단히 ./configure && make로 컴파일을 했고 실행을 했는데…
[code:2gjacw45]jincreator@jincreator-laptop:~/비디오$ mplayer big_buck_bunny_1080p_h264.mov -lavdopts threads=2
MPlayer SVN-r32749-4.4.5 (C) 2000-2010 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing big_buck_bunny_1080p_h264.mov.
libavformat file format detected.
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 2: audio (aac), -aid 0, -alang eng
VIDEO: [H264] 1920x1080 24bpp 24.000 fps 9282.6 kbps (1133.1 kbyte/s)
Clip info:
major_brand: qt
minor_version: 537199360
compatible_brands: qt
creation_time: 2008-05-27 18:40:35
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
[vdpau] Error when calling vdp_device_create_x11: 1
Opening video decoder: [ffmpeg] FFmpeg’s libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 6 ch, s16le, 437.6 kbit/9.50% (ratio: 54700->576000)
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
[AO OSS] audio_setup: Can’t open audio device /dev/dsp: No such file or directory
AO: [alsa] 48000Hz 2ch floatle (4 bytes per sample)
Starting playback...
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 1920x1080 => 1920x1080 Planar YV12
A: 87.0 V: 87.0 A-V: 0.000 ct: -0.000 0/ 0 8% 10% 1.9% 11 0
Exiting... (Quit)[/code:2gjacw45]아무리 봐도 출력물에서 threads=2같은 부분이 보이지 않습니다.
게다가 기본제공 mplayer나 제가 컴파일한 mplayer나 threads=1을 넣으나 모두 cpu의 두 코어 점유율이 공평하게 올라가는군요.
멀티코어 인코딩 성공하신 분들의 조언 부탁드립니다.