SubJunk wrote:I'm waiting until VOBSUB support is added before seeing what is causing no sound, so I don't know.mazey wrote:since i dont use subtitles i been trying to get the newer then 32735 mencoder builds to work but i keep getting no sound. does pms code have to be altered in someway in the future if we use the newer ones, or is it yet another new bug introduced.
An upcoming SubJunk Build will add support for another project called MPlayer2 which will - if all goes well - replace MPlayer/MEncoder in PMS.
The short story is that the reason MPlayer has kept getting worse for over a year is because the best devs left to make MPlayer2.
Dropped features
MEncoder is no longer available
The MEncoder codebase was thoroughly rotten and has been deleted. A different solution to provide some encoding functionality will be added in a future version.
What works
Encoding at variable frame rate (default)
Encoding at constant frame rate using -ofps framerate -oharddup
2-pass encoding (specify flags=+pass1 in the first pass's -ovcopts, specify flags=+pass2 in the second pass)
Hardcoding subtitles using vobsub, ass or srt subtitle rendering (just configure mplayer for the subtitles as usual)
Hardcoding any other mplayer OSD (e.g. time codes, using -osdlevel 3 and -vf expand=::::1)
Encoding directly from a DVD, network stream, webcam, or any other source mplayer supports
Using x264 presets/tunings/profiles (either using @profile in the -ovcopts, or using -vpre profile)
Deinterlacing/Inverse Telecine with any of mplayer's filters for that
Audio file converting: mplayer -o outfile.mp3 infile.flac -novideo -oac libmp3lame -oacopts ab=320k
inverse telecine filters (confirmed working: detc, pullup, filmdint)
What does not work yet
3-pass encoding (ensuring constant total size and bitrate constraints while having VBR audio; mencoder calls this "frameno")
Direct stream copy (is this possible using mplayer's support for video acceleration like VDPAU?)
SubJunk wrote:An upcoming SubJunk Build will add support for another project called MPlayer2 which will - if all goes well - replace MPlayer/MEncoder in PMS.
#!/bin/bash
# test.sh - Script to test mencoder and tsMuxeR on OSX without the noisy PMS log messages
# - Install PS3 Media Server
# - Download a QuickTime movie (e.g. from trailers.apple.com), save it as "test.mov"
# - Run this script with "sh test.sh"
MENCODER="/Applications/PS3 Media Server.app/Contents/Resources/Java/osx/mencoder"
TSMUXER="/Applications/PS3 Media Server.app/Contents/Resources/Java/osx/tsMuxeR"
# PMS would create this file
if [ ! -f tsMuxeR.meta ]; then
cat > tsMuxeR.meta <<EOM
MUXOPT --no-pcr-on-video-pid --new-audio-pes --no-asyncio --vbr --vbv-len=500
V_MPEG4/ISO/AVC, "video", fps=25, level=4.1, insertSEI, contSPS, track=1
A_AC3, "audio", track=2
EOM
fi
# Same as PMS calls, but stripped of "-quiet" and "-really-quiet" arguments and used simple filenames
"$MENCODER" -ss 0 test.mov -msglevel statusline=2 -ovc copy -nosound -mc 0 -noskip -of rawvideo -o video
"$MENCODER" -ss 0 test.mov -msglevel statusline=2 -channels 6 -ovc copy -of rawaudio -mc 0 -noskip \
-oac lavc -lavcopts acodec=ac3:abitrate=256 -af lavcresample=48000 -srate 48000 -o audio
"$TSMUXER" tsMuxeR.meta video.mp4
MEncoder SVN-r33342-4.2.1 (C) 2000-2011 MPlayer Team
success: format: 0 data: 0x0 - 0xc5e222f
libavformat file format detected.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1803e00] max_analyze_duration reached
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (aac), -aid 0, -alang eng
VIDEO: [H264] 1920x816 24bpp 23.976 fps 10188.7 kbps (1243.7 kbyte/s)
[V] filefmt:44 fourcc:0x34363248 size:1920x816 fps:23.976 ftime:=0.0417
videocodec: framecopy (1920x816 24bpp fourcc=34363248)
Video stream: 10188.687 kbit/s (1273585 B/s) size: 205411929 bytes 161.286 secs 3867 frames
MEncoder SVN-r33342-4.2.1 (C) 2000-2011 MPlayer Team
success: format: 0 data: 0x0 - 0xc5e222f
libavformat file format detected.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1803e00] max_analyze_duration reached
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (aac), -aid 0, -alang eng
VIDEO: [H264] 1920x816 24bpp 23.976 fps 10188.7 kbps (1243.7 kbyte/s)
[V] filefmt:44 fourcc:0x34363248 size:1920x816 fps:23.976 ftime:=0.0417
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 98.2 kbit/6.96% (ratio: 12272->176400)
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
Ignoring video stream!
videocodec: framecopy (1920x816 24bpp fourcc=34363248)
Encoder requires input not properly supported.Try using e.g. 'ac3_fixed' instead of 'ac3' as codec
[ac3 @ 0xd9faa0]channel_layout not specified
[ac3 @ 0xd9faa0]No channel layout specified. The encoder will guess the layout, but it might be incorrect.
Video stream: 10188.687 kbit/s (1273585 B/s) size: 205411929 bytes 161.286 secs 3867 frames
Audio stream: 256.000 kbit/s (32000 B/s) size: 5177344 bytes 161.792 secs
SmartLabs tsMuxeR. Version 1.10.6 http://www.smlabs.net
Assertion failed: ((*buffer & 0x80) == 0), function deserialize, file ../vodTransport/src/nalUnits.cpp, line 210.
test.sh: line 18: 67847 Abort trap "$TSMUXER" tsMuxeR.meta video.mp4
MEncoder SVN-r29241-snapshot-4.0.1 (C) 2000-2009 MPlayer Team
success: format: 0 data: 0x0 - 0xc5e222f
libavformat file format detected.
[lavf] Video stream found, -vid 0
[lavf] Audio stream found, -aid 1
VIDEO: [avc1] 1920x816 24bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:44 fourcc:0x31637661 size:1920x816 fps:23.976 ftime:=0.0417
videocodec: framecopy (1920x816 24bpp fourcc=31637661)
Video stream: 10188.697 kbit/s (1273587 B/s) size: 205411929 bytes 161.286 secs 3867 frames
MEncoder SVN-r29241-snapshot-4.0.1 (C) 2000-2009 MPlayer Team
success: format: 0 data: 0x0 - 0xc5e222f
libavformat file format detected.
[lavf] Video stream found, -vid 0
[lavf] Audio stream found, -aid 1
VIDEO: [avc1] 1920x816 24bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:44 fourcc:0x31637661 size:1920x816 fps:23.976 ftime:=0.0417
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
FAAD: compressed input bitrate missing, assuming 128kbit/s!
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
Ignoring video stream!
videocodec: framecopy (1920x816 24bpp fourcc=31637661)
[ac3 @ 0x104c400]No channel layout specified. The encoder will guess the layout, but it might be incorrect.
Video stream: 10188.697 kbit/s (1273587 B/s) size: 205411929 bytes 161.286 secs 3867 frames
Audio stream: 256.000 kbit/s (31999 B/s) size: 5161984 bytes 161.312 secs
SmartLabs tsMuxeR. Version 1.10.6 http://www.smlabs.net
Assertion failed: ((*buffer & 0x80) == 0), function deserialize, file ../vodTransport/src/nalUnits.cpp, line 210.
test.sh: line 18: 67866 Abort trap "$TSMUXER" tsMuxeR.meta video.mp4
SubJunk wrote:It's just the most popular Windows build. I don't see that there's anything to be gained by building myself, and I guess Shagrath felt the same way
Users browsing this forum: No registered users and 5 guests