you could replace everything afterExElNeT wrote:I really like your scripts, they work nice.
Still there are some things I would like to see in your scripts. I am looking for a nice solution to encode a dvd into a mkv container. Your solution is perfect if you have the computing power. Unfortunately I dont. So I would like to use your scripts with a different codec or maybe no codec at all. (keep the mpeg2).
Where would I start if i wanted to extend your scripts?
thanks, greetz
exelnet
Code: Select all
nice -n 10 $mencoder $DEVICE $AUDIO $nosubs \
-ovc copy $audiocodec \
$INPUT_FRAMERATE $OUTPUT_FRAMERATE \
-o "${TMP}/""$moviename""_tmp.avi" 2>> "${TMP}/""$moviename""_mencoder.log"Code: Select all
blu2mkv -b 3000 -p hq casino-test.mkv
Video Bitrate set to 3000
x264 encoding preset set to hq
Source file is of Type AVI
Width = 1920
Height = 1080
Aspect = 1.77777777777778
Aspect should be 1.77777777777778
Source Framerate: 23.976
Input Framerate used: 24000/1001
Output Framerate used: 24000/1001
No audio stream specified. Trying to use specified languages if available in source file. If not, default stream will be used.
Resolution = 1920:1080
Do not scale is yes
video is interlaced: no
dynamic noise reduction is active: no
using audio stream: default
calling external program choose_x264_encoding_parameters.sh
external call was successfull
using seleted preset hq
geometryfilteroptions expand=1920:1080
video filters used for first pass: -vf expand=1920:1080,hqdn3d=2:1:2,harddup
AUDIO channel used
second audio
MEncoder SVN-r30985-4.3.4 (C) 2000-2010 MPlayer Team
success: format: 0 data: 0x0 - 0x17a79b54
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO: [avc1] 1920x1080 24bpp 23.976 fps 25996.1 kbps (3173.3 kbyte/s)
[V] filefmt:3 fourcc:0x31637661 size:1920x1080 fps:23.976 ftime:=0.0417
Input fps will be interpreted as 23.976 instead.
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [harddup]
Opening video filter: [hqdn3d=2:1:2]
Opening video filter: [expand w=1920 h=1080]
Expand: 1920 x 1080, -1 ; -1, osd: 0, aspect: 0.000000, round: 1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
audiocodec: framecopy (format=2000 chans=2 rate=48000 bits=16 B/s=56000 sample-1)
[h264 @ 0xb7cf00]concealing 8160 DC, 8160 AC, 8160 MV errors
[h264 @ 0xb7cf00]concealing 6921 DC, 6921 AC, 6921 MV errors.000 [0:0]
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
[h264 @ 0xb7cf00]concealing 7448 DC, 7448 AC, 7448 MV errors.004 [0:0]
[h264 @ 0xb7cf00]concealing 6970 DC, 6970 AC, 6970 MV errors.008 [0:0]
[h264 @ 0xb7cf00]concealing 8063 DC, 8063 AC, 8063 MV errors.011 [0:0]
[h264 @ 0xb7cf00]concealing 6805 DC, 6805 AC, 6805 MV errors.014 [0:0]
[h264 @ 0xb7cf00]concealing 8034 DC, 8034 AC, 8034 MV errors.017 [0:0]
[h264 @ 0xb7cf00]concealing 7001 DC, 7001 AC, 7001 MV errors.020 [0:0]
[h264 @ 0xb7cf00]concealing 7899 DC, 7899 AC, 7899 MV errors.022 [0:0]
[h264 @ 0xb7cf00]concealing 7268 DC, 7268 AC, 7268 MV errors.024 [0:0]
[h264 @ 0xb7cf00]concealing 8033 DC, 8033 AC, 8033 MV errors.026 [0:0]
[h264 @ 0xb7cf00]concealing 7035 DC, 7035 AC, 7035 MV errors.027 [0:0]
[h264 @ 0xb7cf00]concealing 8101 DC, 8101 AC, 8101 MV errors.029 [0:0]
[h264 @ 0xb7cf00]concealing 6543 DC, 6543 AC, 6543 MV errors.030 [0:0]
[h264 @ 0xb7cf00]concealing 7921 DC, 7921 AC, 7921 MV errors.031 [0:0]
[h264 @ 0xb7cf00]concealing 6535 DC, 6535 AC, 6535 MV errors.032 [0:0]
[h264 @ 0xb7cf00]concealing 8101 DC, 8101 AC, 8101 MV errors.033 [0:0]
[h264 @ 0xb7cf00]concealing 6068 DC, 6068 AC, 6068 MV errors.034 [0:0]
[h264 @ 0xb7cf00]concealing 8160 DC, 8160 AC, 8160 MV errors.035 [0:0]
Writing header...2f ( 1%) 10.75fps Trem: 4min 0mb A-V:0.042 [0:0]
ODML: vprp aspect is 16:9.
Setting audio delay to 0.083s.
Writing header...
ODML: vprp aspect is 16:9.
Setting audio delay to 0.083s.
Pos: 117.9s 2878f (99%) 14.61fps Trem: 0min 14mb A-V:0.042 [598:448]
Flushing video frames.
Writing index...
Writing header...
ODML: vprp aspect is 16:9.
Setting audio delay to 0.083s.
Video stream: 598.467 kbit/s (74808 B/s) size: 8979742 bytes 120.037 secs 2878 frames
Audio stream: 448.000 kbit/s (56000 B/s) size: 6636000 bytes 118.500 secs
video filters used for second pass: -vf spp,expand=1920:1080,hqdn3d=2:1:2,harddup
MEncoder SVN-r30985-4.3.4 (C) 2000-2010 MPlayer Team
success: format: 0 data: 0x0 - 0x17a79b54
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO: [avc1] 1920x1080 24bpp 23.976 fps 25996.1 kbps (3173.3 kbyte/s)
[V] filefmt:3 fourcc:0x31637661 size:1920x1080 fps:23.976 ftime:=0.0417
Input fps will be interpreted as 23.976 instead.
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [harddup]
Opening video filter: [hqdn3d=2:1:2]
Opening video filter: [expand w=1920 h=1080]
Expand: 1920 x 1080, -1 ; -1, osd: 0, aspect: 0.000000, round: 1
Opening video filter: [spp]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
audiocodec: framecopy (format=2000 chans=2 rate=48000 bits=16 B/s=56000 sample-1)
[h264 @ 0xb7cf00]concealing 8160 DC, 8160 AC, 8160 MV errors
[h264 @ 0xb7cf00]concealing 6921 DC, 6921 AC, 6921 MV errors.000 [0:0]
[PP] Using external postprocessing filter, max q = 6.
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
Exiting...
muxing to Matroska container
mkvmerge v2.9.9 ('Tutu') built on Apr 2 2010 15:14:22
Error: The file 'casino-test.avi' has unknown type. Please have a look at the supported
file types ('mkvmerge --list-types') and contact the author Moritz Bunkus <moritz@bunkus.org>
if your file type is supported but not recognized properly.
Code: Select all
/usr/local/bin/mencoder casino-test.mkv -oac copy -nosub -ovc x264 -x264encopts me=umh:me_range=16:nodct_decimate:8x8dct:
nofast_pskip:trellis=1:partitions=p8x8,b8x8,i8x8,i4x4:mixed_refs:keyint=240:psy_rd=0.8,0.2:frameref=3:bframes=4:b_adapt=2:
b_pyramid=normal:weight_b:weightp=1:direct_pred=auto:subq=6:mbtree:chroma_me:cabac:aq_mode=1:deblock:vbv_maxrate=9500:
vbv_bufsize=12000:level_idc=41:threads=auto:ssim:psnr:bitrate=3000:pass=2 -passlogfile casino-test_2pass.log
-vf spp,expand=1920:1080,hqdn3d=2:1:2,harddup -fps 24000/1001 -ofps 24000/1001 -o casino-test.avi
MEncoder SVN-r30985-4.3.4 (C) 2000-2010 MPlayer Team
success: format: 0 data: 0x0 - 0x17a79b54
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO: [avc1] 1920x1080 24bpp 23.976 fps 25996.1 kbps (3173.3 kbyte/s)
[V] filefmt:3 fourcc:0x31637661 size:1920x1080 fps:23.976 ftime:=0.0417
Input fps will be interpreted as 23.976 instead.
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [harddup]
Opening video filter: [hqdn3d=2:1:2]
Opening video filter: [expand w=1920 h=1080]
Expand: 1920 x 1080, -1 ; -1, osd: 0, aspect: 0.000000, round: 1
Opening video filter: [spp]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
audiocodec: framecopy (format=2000 chans=2 rate=48000 bits=16 B/s=56000 sample-1)
[h264 @ 0xb7cf00]Missing reference picture
[h264 @ 0xb7cf00]decode_slice_header error
[h264 @ 0xb7cf00]Missing reference picture
[h264 @ 0xb7cf00]decode_slice_header error
[h264 @ 0xb7cf00]Missing reference picture
[h264 @ 0xb7cf00]decode_slice_header error
[h264 @ 0xb7cf00]Missing reference picture
[h264 @ 0xb7cf00]decode_slice_header error
[h264 @ 0xb7cf00]concealing 8160 DC, 8160 AC, 8160 MV errors
[h264 @ 0xb7cf00]top block unavailable for requested intra4x4 mode -1 at 0 50
[h264 @ 0xb7cf00]error while decoding MB 0 50, bytestream (15385)
[h264 @ 0xb7cf00]concealing 6921 DC, 6921 AC, 6921 MV errors
[PP] Using external postprocessing filter, max q = 6.
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast FastShuffle SSEMisalign LZCNT
x264 [error]: requested bitrate is too low. estimated minimum is 78 kbps
x264_encoder_open failed.
FATAL: Cannot initialize video driver.
Exiting...
Code: Select all
Setting audio delay to 0.083s.
Video stream: 3001.905 kbit/s (375238 B/s) size: 48594983 bytes 129.504 secs 3106 frames
Audio stream: 448.000 kbit/s (56000 B/s) size: 7252000 bytes 129.500 secs
muxing to Matroska container
mkvmerge v2.9.9 ('Tutu') built on Apr 6 2010 18:51:09
Error: No language specified in '--language 0:'.
Code: Select all
first="eng"
second= ""Code: Select all
mkv_firstlanguage="eng"
mkv_firstlanguage=""


Come on... You wrote your previous scripts in bash, you say you've edited a few ebuilds... And you can't make one? I'm pretty sure you can!fangorn wrote:I don't have any experience with writing ebuilds (just a little editing) so it would take me quite some time.
I think a newsfeed (RSS or Atom) at your blog or project homepage might be the best solution. It's easy to implement, and it's easy for everyone to keep updated.fangorn wrote:At the moment I am thinking about a mailing list to announce releases and bugfixes.
Have you read the dependency list of avi2mkv? And I have reduced it already!CrazyTerabyte wrote:[ And since your scripts are quite "stand-alone.


I used to think like that... (really, that's true!) Until I finally realized how good is to have a VCS, and then I started using one on every project, even the smaller ones.fangorn wrote:Thank you, but for me saved versions work great. If I would have co-developers, I would use something, but for me alone it is just overkill.

Code: Select all
syntax error at /usr/local/bin/avi2mkv line 920, near ") {"
Global symbol "$AUDIOID" requires explicit package name at /usr/local/bin/avi2mkv line 922.
Global symbol "$AUDIOID" requires explicit package name at /usr/local/bin/avi2mkv line 923.
syntax error at /usr/local/bin/avi2mkv line 924, near "}"
Execution of /usr/local/bin/avi2mkv aborted due to compilation errors.
Code: Select all
avi2mkv -p vdhq -c title02_chapters.xml -i -t title02 title02.avi title02_first.dts title02_eng.ac3
syntax error at /usr/local/bin/avi2mkv line 920, near ") {"
syntax error at /usr/local/bin/avi2mkv line 924, near "}"
Execution of /usr/local/bin/avi2mkv aborted due to compilation errors.Code: Select all
riptoh264 -p uhq -n BoltCode: Select all
The aid option must be an integer: -identify
Error parsing option on the command line: -aid
MPlayer SVN-r30554-4.3.4 (C) 2000-2010 MPlayer TeamCode: Select all
/usr/bin/mplayer Bolt.avi -aid -identify -frames 0 -vc null -vo null -ao null -nocache 2>&1