[bash] autsmuxer - mkv2vob for *nix.

Come up with a useful post-processing script? Share it here!
sweetie
Full Member
Full Member
Posts: 117
Joined: May 10th, 2009, 10:47 am

Re: [LiNUX/OSX/BSD - bash] autsmuxer [v4 - MKV2VOB for *NiX]

Post by sweetie »

Haven't encountered that one before.

Did some searching, is there a 'cmakecache.txt' file anywhere? Try deleting that.


Can run:

Code: Select all

find / -type f -name "cmakecache.txt" -exec rm -v {} \;
to search entire filesystem.
dashy
Newbie
Newbie
Posts: 13
Joined: August 16th, 2011, 10:46 am

Re: [LiNUX/OSX/BSD - bash] autsmuxer [v4 - MKV2VOB for *NiX]

Post by dashy »

installed a few other packages, now got this after running cmake:

Code: Select all

CMake Warning (dev) at CMakeLists.txt:274 (ADD_EXECUTABLE):
  Policy CMP0003 should be set before this line.  Add code such as

    if(COMMAND cmake_policy)
      cmake_policy(SET CMP0003 NEW)
    endif(COMMAND cmake_policy)

  as early as possible but after the most recent call to
  cmake_minimum_required or cmake_policy(VERSION).  This warning appears
  because target "aften_exe" links to some libraries for which the linker
  must search:

    m, -lpthread

  and other libraries with known full path:

    /root/__aften/aften-0.0.8/__default/libaften_pcm.a

  CMake is adding directories in the second list to the linker search path in
  case they are needed to find libraries from the first list (for backwards
  compatibility with CMake 2.4).  Set policy CMP0003 to OLD or NEW to enable
  or disable this behavior explicitly.  Run "cmake --help-policy CMP0003" for
  more information.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Generating done
-- Build files have been written to: /root/__aften/aften-0.0.8/__default
Then make:

Code: Select all

root@dlink-4C13E6:~/__aften/aften-0.0.8/__default# make
Scanning dependencies of target aften_pcm
[  4%] Building C object CMakeFiles/aften_pcm.dir/pcm/byteio.o
[  9%] Building C object CMakeFiles/aften_pcm.dir/pcm/convert.o
[ 14%] Building C object CMakeFiles/aften_pcm.dir/pcm/pcm.o
[ 19%] Building C object CMakeFiles/aften_pcm.dir/pcm/raw.o
[ 23%] Building C object CMakeFiles/aften_pcm.dir/pcm/wav.o
Linking C static library libaften_pcm.a
[ 23%] Built target aften_pcm
Scanning dependencies of target aften_static
[ 28%] Building C object CMakeFiles/aften_static.dir/libaften/a52enc.o
/root/__aften/aften-0.0.8/libaften/a52enc.c: In function 'aften_encode_init':
/root/__aften/aften-0.0.8/libaften/a52enc.c:373: warning: implicit declaration of function 'apply_simd_restrictions'
[ 33%] Building C object CMakeFiles/aften_static.dir/libaften/bitalloc.o
[ 38%] Building C object CMakeFiles/aften_static.dir/libaften/bitio.o
[ 42%] Building C object CMakeFiles/aften_static.dir/libaften/crc.o
[ 47%] Building C object CMakeFiles/aften_static.dir/libaften/dynrng.o
[ 52%] Building C object CMakeFiles/aften_static.dir/libaften/window.o
[ 57%] Building C object CMakeFiles/aften_static.dir/libaften/mdct.o
[ 61%] Building C object CMakeFiles/aften_static.dir/libaften/exponent.o
/root/__aften/aften-0.0.8/libaften/exponent.c: In function 'encode_exp_blk_ch':
/root/__aften/aften-0.0.8/libaften/exponent.c:145: warning: 'exp1' may be used uninitialized in this function
[ 66%] Building C object CMakeFiles/aften_static.dir/libaften/filter.o
[ 71%] Building C object CMakeFiles/aften_static.dir/libaften/util.o
Linking C static library libaften_static.a
[ 71%] Built target aften_static
Scanning dependencies of target aften_exe
[ 76%] Building C object CMakeFiles/aften_exe.dir/aften/aften.o
/root/__aften/aften-0.0.8/aften/aften.c: In function 'main':
/root/__aften/aften-0.0.8/aften/aften.c:129: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/aften.c:232: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/aften.c:129: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/aften.c:232: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
[ 80%] Building C object CMakeFiles/aften_exe.dir/aften/opts.o
/root/__aften/aften-0.0.8/aften/opts.c: In function 'deactivate_simd':
/root/__aften/aften-0.0.8/aften/opts.c:87: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:87: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:87: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:89: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:89: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:89: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c: In function 'parse_commandline':
/root/__aften/aften-0.0.8/aften/opts.c:189: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:189: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:189: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:316: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:316: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:316: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:325: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:325: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:325: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:349: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:349: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:349: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:400: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:400: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:405: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:405: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:407: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:407: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:415: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:415: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:417: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:417: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:425: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:425: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:427: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:427: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:435: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:435: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:437: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:437: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:445: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:445: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:447: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:447: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:455: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:455: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:457: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:457: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:567: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:567: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:189: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:189: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:189: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:316: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:316: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:316: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:325: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:325: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:87: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:87: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:87: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:89: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:89: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:89: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:349: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:349: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:349: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:400: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:400: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:405: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:405: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:407: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:407: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:415: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:415: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:417: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:417: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:425: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:425: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:427: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:427: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:435: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:435: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:437: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:437: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:445: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:445: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:447: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:447: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:455: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:455: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:457: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:457: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:567: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
/root/__aften/aften-0.0.8/aften/opts.c:567: warning: assuming signed overflow does not occur when changing X +- C1 cmp C2 to X cmp C1 +- C2
Linking C executable aften
libaften_static.a(a52enc.o): In function `aften_encode_init':
a52enc.c:(.text+0x3924): undefined reference to `apply_simd_restrictions'
collect2: ld returned 1 exit status
make[2]: *** [aften] Error 1
make[1]: *** [CMakeFiles/aften_exe.dir/all] Error 2
make: *** [all] Error 2
Unsurprisingly, make install fails:

Code: Select all

root@dlink-4C13E6:~/__aften/aften-0.0.8/__default# make install
[ 23%] Built target aften_pcm
[ 71%] Built target aften_static
Linking C executable aften
libaften_static.a(a52enc.o): In function `aften_encode_init':
a52enc.c:(.text+0x3924): undefined reference to `apply_simd_restrictions'
collect2: ld returned 1 exit status
make[2]: *** [aften] Error 1
make[1]: *** [CMakeFiles/aften_exe.dir/all] Error 2
make: *** [all] Error 2
Since Aften is simply the audio encoder (and AC3 audio doesn't need to be encoded) will this work without compiling aften?
sweetie
Full Member
Full Member
Posts: 117
Joined: May 10th, 2009, 10:47 am

Re: [LiNUX/OSX/BSD - bash] autsmuxer [v4 - MKV2VOB for *NiX]

Post by sweetie »

Hm. Maybe try one of the pre-built binary packages:

http://pkgs.org/debian-lenny/multimedia ... 6.deb.html
sweetie
Full Member
Full Member
Posts: 117
Joined: May 10th, 2009, 10:47 am

Re: [LiNUX/OSX/BSD - bash] autsmuxer [v4 - MKV2VOB for *NiX]

Post by sweetie »

It will, you'll only need to edit the file, browse down to the line that reads:

Code: Select all

type_allpkgreq "mkvinfo" "mkvextract" "dcadec" "aften" "mencoder" "tsMuxeR" "${spdifconvert}"
and remove 'aften', of course.


Could run:

Code: Select all

sed -i 's/ "aften" //' autsmuxer.sh
as well.
dashy
Newbie
Newbie
Posts: 13
Joined: August 16th, 2011, 10:46 am

Re: [LiNUX/OSX/BSD - bash] autsmuxer [v4 - MKV2VOB for *NiX]

Post by dashy »

I modified autsmuxer.sh simply removing the "aften" (including quotes) from that line. This is the exact file I used.
First, I ran mkvinfo so you have a reference for the video file:

Code: Select all

root@dlink-4C13E6:/mnt/HD/HD_a2/Videos# mkvinfo hi.mkv
+ EBML head
|+ EBML version: 1
|+ EBML read version: 1
|+ EBML maximum ID length: 4
|+ (Unknown element: EBMLMaxSizeLength; ID: 0x42f3 size: 4)
|+ Doc type: matroska
|+ Doc type version: 2
|+ Doc type read version: 2
+ Segment, size 600945839
|+ Seek head (subentries will be skipped)
|+ EbmlVoid (size: 4044)
|+ Segment information
| + Timecode scale: 1000000
| + Muxing application: libebml v1.2.0 + libmatroska v1.1.0
| + Writing application: mkvmerge v4.8.0 ('I Got The...') built on Jun 13 2011 20:36:23
| + Duration: 1290.857s (00:21:30.857)
| + Date: Tue Aug 16 08:35:10 2011 UTC
| + Segment UID: 0xdc 0x11 0x6c 0x82 0x47 0x45 0x94 0x94 0x3e 0x14 0x94 0xfe 0x28 0x49 0x3c 0x24
|+ Segment tracks
| + A track
|  + Track number: 1
|  + Track UID: 1
|  + Track type: video
|  + Lacing flag: 0
|  + MinCache: 1
|  + Codec ID: V_MPEG4/ISO/AVC
|  + CodecPrivate, length 41
|  + Default duration: 16.683ms (59.940 fps for a video track)
|  + Video track
|   + Pixel width: 1278
|   + Pixel height: 720
|   + Display width: 1278
|   + Display height: 720
|  + Content encodings
|   + Content encoding
|    + Content compression
|     + Algorithm: 3 (header removal)
|     + Settings: length 1, data:  0x00 0x00 0x00 0x00 0xa8 0xfd 0x07 0x00 0x10 0x00
| + A track
|  + Track number: 2
|  + Track UID: 985747143
|  + Track type: audio
|  + Codec ID: A_AC3
|  + Default duration: 32.000ms (31.250 fps for a video track)
|  + Language: und
|  + Audio track
|   + Sampling frequency: 48000
|   + Channels: 2
|  + Content encodings
|   + Content encoding
|    + Content compression
|     + Algorithm: 3 (header removal)
|     + Settings: length 2, data:  0x0b 0x77 0x00 0x00 0x7c 0xd2 0x51 0x40 0x44 0x61
|+ EbmlVoid (size: 1116)
|+ Cluster
When I run the script I get the following output:

Code: Select all

root@dlink-4C13E6:/mnt/HD/HD_a2/Videos# bash autsmuxer.sh hi.mkv
: command not found18:
: command not found19:
: command not found33:
: command not found34:
: command not found36:
: command not found37:
: command not found40:
: command not found42:
: command not found43:
: command not found45:
: command not found46:
'utsmuxer.sh: line 47: syntax error near unexpected token `{
'utsmuxer.sh: line 47: `type_allpkgreq () {
Interestingly, in spite of the fact that I have chmod +x tsMuxeR...

Code: Select all

root@dlink-4C13E6:/mnt/HD/HD_a2/Videos# tsMuxeR
-bash: /usr/bin/tsMuxeR: cannot execute binary file

Code: Select all

root@dlink-4C13E6:/mnt/HD/HD_a2/Videos# file /usr/bin/tsMuxeR
/usr/bin/tsMuxeR: Mach-O executable i386
I am guessing this is the problem - it's a compiled binary for i386. This device has an ARM Processor so is there any way to make an debian armel executable?

EDIT: Since the source code has not been made available, I have emailed smartlabs to see if it is possible to either release the source or compile it for ARM. I'm guessing that until this happens it will not be possible to use this script.
sweetie
Full Member
Full Member
Posts: 117
Joined: May 10th, 2009, 10:47 am

Re: [LiNUX/OSX/BSD - bash] autsmuxer [v4 - MKV2VOB for *NiX]

Post by sweetie »

The autsmuxer.sh errors are caused by the file having carriage returns as EOL. There's a tool called 'dos2unix' to sort this, it can happen if you transfer a script from a Windows machine, and even under some Linux editors.

Regarding tsMuxeR source, you're probably right. I believe the source for an earlier revision is floating around somewhere, most likely from the SmartLabs blog section of their site if it still exists.

Let me know how it goes, that is if you don't mind spending even more time on this.
dashy
Newbie
Newbie
Posts: 13
Joined: August 16th, 2011, 10:46 am

Re: [LiNUX/OSX/BSD - bash] autsmuxer [v4 - MKV2VOB for *NiX]

Post by dashy »

sweetie wrote:The autsmuxer.sh errors are caused by the file having carriage returns as EOL. There's a tool called 'dos2unix' to sort this, it can happen if you transfer a script from a Windows machine, and even under some Linux editors.

Regarding tsMuxeR source, you're probably right. I believe the source for an earlier revision is floating around somewhere, most likely from the SmartLabs blog section of their site if it still exists.

Let me know how it goes, that is if you don't mind spending even more time on this.
I appreciate your help; I'd definitely like to get this going so I can at least see how it performs! Anyways I installed dos2unix and then ran it, and the output changed...

Code: Select all

root@dlink-4C13E6:/mnt/HD/HD_a2/Videos# dos2unix autsmuxer.sh
dos2unix: converting file autsmuxer.sh to UNIX format ...
root@dlink-4C13E6:/mnt/HD/HD_a2/Videos# bash autsmuxer.sh hi.mkv
 Processng: hi.mkv..


 Incompatible video codec found.
I'm guessing this is because tsMuxeR is not actually executing? I pasted the mkvinfo output above - it is a proper .mkv file that should work, correct? Anyways regarding the source I did see a "tsMuxerGUI_1.9.9.src.zip" in my Google searches but it's no longer hosted where it was, and I can't find it anywhere else. Apart from that, no source information. I may have to wait for a response from SmartLabs - seems like everything else worked.
dashy
Newbie
Newbie
Posts: 13
Joined: August 16th, 2011, 10:46 am

Re: [LiNUX/OSX/BSD - bash] autsmuxer [v4 - MKV2VOB for *NiX]

Post by dashy »

I think I may have found a workaround, but not using tsMuxeR. I'm not sure it will work because I haven't tested streaming to PS3 yet, but basically I extracted audio and video streams using mkvextract, so I figure why not just remux them into an MP4. Thankfully gpac (mp4box) is open source so I compiled it for the NAS - took about 45 minutes lol.

Anyways I was able to demux, and then remux, the h264 and AC3 streams into an MP4 container, will let you know in a couple hours when I get home if it will stream to the PS3 and play properly. Took like 1 minute with the test mkv file I referred to earlier.

Specifically I ran the following command:
mkvextract tracks hi.mkv 1:v.h264 2:a.ac3 && MP4Box -add v.h264 -add a.ac3 test.mp4 && rm -rf v.h264 && rm -rf a.ac3
Entire process took 3 minutes 14 seconds.

Compare that to 31 seconds on my i3-370m laptop - pretty good IMO. Crossing my finger that it will work for any mkv h264/ac3 video file.
sweetie
Full Member
Full Member
Posts: 117
Joined: May 10th, 2009, 10:47 am

Re: [LiNUX/OSX/BSD - bash] autsmuxer [v4 - MKV2VOB for *NiX]

Post by sweetie »

That certainly seems promising. Good to know you've got everything set up (most probably).


Only thing now is to switch from torrents - you'll never go back!
dashy
Newbie
Newbie
Posts: 13
Joined: August 16th, 2011, 10:46 am

Re: [LiNUX/OSX/BSD - bash] autsmuxer [v4 - MKV2VOB for *NiX]

Post by dashy »

sweetie wrote:That certainly seems promising. Good to know you've got everything set up (most probably).

Only thing now is to switch from torrents - you'll never go back!
Well, a couple problems still exist. For one, mkv2vob on my laptop is significantly faster than mkvextract --> mp4box, so I'm thinking tsMuxeR may be faster on my NAS if I can get the devs to release it for that platform. Also, while mp4box under windows seems to remux at the right fps, mp4box on linux seems to default to 25 FPS. And since FPS varies quite a lot, I'd need some way to extract the FPS first.

What's wrong with torrents? The site I'm on gets everything faster than pretty much any source you can think of. And full download speed (25 Mbps for me) immediately. :P
SDplinker
Newbie
Newbie
Posts: 4
Joined: August 19th, 2011, 12:26 am

Re: [LiNUX/OSX/BSD - bash] autsmuxer [v4 - MKV2VOB for *NiX]

Post by SDplinker »

Great guide. I'm a Linux noob so please bear with me. Followed all instructions but when running the script I get the following error:


Extracting track 1 with the CodecID 'V_MPEG4/ISO/AVC' to the file '/home/casey/.autsmuxer/autsmuxer-tmp-6879/6879.264'. Container format: AVC/h.264 elementary stream
Progress: 100%
Extracting track 2 with the CodecID 'A_AC3' to the file '/home/casey/.autsmuxer/autsmuxer-tmp-6879/6879.ac3'. Container format: Dolby Digital (AC3)
Progress: 100%
./autsmuxer.sh: line 173: /usr/bin/tsMuxeR: cannot execute binary file
./autsmuxer.sh: line 231: /usr/bin/tsMuxeR: cannot execute binary file

Error remuxing: The Millionaire Matchmaker - 4x01 - Welcome to the Big Apple - HD TV.mkv.


Running LinuxMint on a Dell D420 laptop. Let me know what I should check. Thanks!

-Casey
dashy
Newbie
Newbie
Posts: 13
Joined: August 16th, 2011, 10:46 am

Re: [LiNUX/OSX/BSD - bash] autsmuxer [v4 - MKV2VOB for *NiX]

Post by dashy »

SDplinker: what processor does that laptop have, and also what distribution of linux is that based on? Also you might try chmod 777 tsMuxeR
sweetie
Full Member
Full Member
Posts: 117
Joined: May 10th, 2009, 10:47 am

Re: [LiNUX/OSX/BSD - bash] autsmuxer [v4 - MKV2VOB for *NiX]

Post by sweetie »

If your install is x64 you may need to:

Code: Select all

apt-get install ia32-libs
too.

(Mint is Debian/Ubuntu based.)
SDplinker
Newbie
Newbie
Posts: 4
Joined: August 19th, 2011, 12:26 am

Re: [LiNUX/OSX/BSD - bash] autsmuxer [v4 - MKV2VOB for *NiX]

Post by SDplinker »

dashy wrote:SDplinker: what processor does that laptop have, and also what distribution of linux is that based on? Also you might try chmod 777 tsMuxeR
I will check it out tonight. It's at home - I think it's a 1.2Ghz Core Duo. The system is running a recent (within last 9 months) version of Linux Mint. I'll try the chmod 777 as well. This wouldn't be my final build by any means (would use newer hardware), more a proof of concept before I decide to re-architect my home media setup. Thanks for the help.

-Casey
SDplinker
Newbie
Newbie
Posts: 4
Joined: August 19th, 2011, 12:26 am

Re: [LiNUX/OSX/BSD - bash] autsmuxer [v4 - MKV2VOB for *NiX]

Post by SDplinker »

sweetie wrote:If your install is x64 you may need to:

Code: Select all

apt-get install ia32-libs
too.

(Mint is Debian/Ubuntu based.)
Install is x86 - this CPU/platform is not 64-bit capable.

-Casey
Post Reply