by Drefsab » Tue Aug 30, 2011 11:57 am
I just tried yostinso's script and get the same errors when playing video's (video not found or permission denied etc). Checking the log files they show nothing it suggests the transcode is finished. the pipe folder gets a 0kb file in it for the transcode.
So I had a look at the mencoder command thats being called:
mencoder "/home/drefsab/Downloads/1.mkv" -ss 0 -of lavf -oac lavc -ovc lavc -lavcopts vcodec=flv:vbitrate=1000:acodec=libmp3lame:abitrate=96 -srate 44100 -af lavcresample=44100 -lavfopts format=flv -vf harddup,scale=644:-3 -o test.flv
Gives:
MEncoder SVN-r1.0~rc3+svn20090426-4.4.3 (C) 2000-2009 MPlayer Team
success: format: 0 data: 0x0 - 0x11b724f8
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC), -vid 0
[mkv] Track ID 2: audio (A_AAC), -aid 0, -alang und
[mkv] Track ID 3: subtitles (S_TEXT/ASS), -sid 0, -slang und
[mkv] Will play video track 1.
Matroska file format detected.
VIDEO: [avc1] 1280x720 24bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:31 fourcc:0x31637661 size:1280x720 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))
==========================================================================
** MUXER_LAVF *****************************************************************
REMEMBER: MEncoder's libavformat muxing is presently broken and can generate
INCORRECT files in the presence of B-frames. Moreover, due to bugs MPlayer
will play these INCORRECT files as if nothing were wrong!
*******************************************************************************
OK, exit.
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [scale w=644 h=-3]
Opening video filter: [harddup]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
Audio LAVC, couldn't find encoder for codec libmp3lame.
Exiting..
As you can see it doesn't like the audio codec so I swapped this to:
mencoder "/home/drefsab/Downloads/1.mkv" -ss 0 -of lavf -oac mp3lame -ovc lavc -lavcopts vcodec=flv:vbitrate=1000:acodec=libmp3lame:abitrate=96 -srate 44100 -af lavcresample=44100 -lavfopts format=flv -vf harddup,scale=644:-3 -o test.flv
This gave:
MEncoder SVN-r1.0~rc3+svn20090426-4.4.3 (C) 2000-2009 MPlayer Team
success: format: 0 data: 0x0 - 0x11b724f8
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC), -vid 0
[mkv] Track ID 2: audio (A_AAC), -aid 0, -alang und
[mkv] Track ID 3: subtitles (S_TEXT/ASS), -sid 0, -slang und
[mkv] Will play video track 1.
Matroska file format detected.
VIDEO: [avc1] 1280x720 24bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:31 fourcc:0x31637661 size:1280x720 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))
==========================================================================
** MUXER_LAVF *****************************************************************
REMEMBER: MEncoder's libavformat muxing is presently broken and can generate
INCORRECT files in the presence of B-frames. Moreover, due to bugs MPlayer
will play these INCORRECT files as if nothing were wrong!
*******************************************************************************
OK, exit.
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [scale w=644 h=-3]
Opening video filter: [harddup]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
MP3 audio selected.
Pos: 0.0s 1f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
1 duplicate frame(s)!
VIDEO CODEC ID: 22
AUDIO CODEC ID: 15001, TAG: 0
Writing header...
[flv @ 0xccb300]dimensions not set
Floating point exception
So I got past the first error but now have another, I've tried altering the scale setting but cant for the life of me figure out why its not setting the dimension.
*edit*
I have tried commands like:
mencoder "/home/drefsab/Downloads/1.mkv" "-ss" "0" "-of" "lavf" "-oac" "mp3lame" "-ovc" "lavc" "-lavcopts" "vcodec=flv:vbitrate=1000:acodec=libmp3lame:abitrate=96" "-srate" "44100" "-af" "lavcresample=44100" "-lavfopts" "format=flv" "-vf" "harddup,scale=644:360" "-o" "/var/subsonic/pipes/2257.mencoder" "-ass" "-sub" "/home/drefsab/Downloads/1.ass" "-subpos" "95"
as well but with no luck