[Cin] tsMuxer 2.6.15 - seems to work, but seeking with mplayer still fail?

Andrew Randrianasulu randrianasulu at gmail.com
Sat Nov 9 03:17:14 CET 2019


I used files I initially did with CinGG (compiled with ffmpeg git):

ffmpeg -i 12.m2ts -c:a copy 12.ac3
ffmpeg -i 12.m2ts -c:v copy 12.h264
ffmpeg version 2.8.15 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 5.5.0 (GCC)
  configuration: --arch=i486 --target-os=linux --prefix=/usr --libdir=/usr/lib --mandir=/usr/man --docdir=/usr/doc/ffmpeg-2.8.15 --enable-gpl --enable-version3 --disable-static --enable-shared --enable-runtime-cpudetect --enable-ffmpeg --enable-ffplay --enable-ffprobe --enable-ffserver --enable-doc --enable-avdevice --enable-avcodec --enable-avformat --enable-avutil --enable-swresample --enable-swscale --enable-postproc --enable-avfilter --enable-avresample --enable-pthreads --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-ladspa --enable-libass --enable-libbluray --disable-libbs2b --disable-libcaca --disable-libcelt --enable-libcdio --disable-libdc1394 --disable-libflite --enable-libfreetype --enable-libfribidi --disable-libgme --enable-libgsm --enable-libiec61883 --disable-libilbc --disable-libkvazaar --disable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --disable-libpulse --disable-libquvi --enable-librtmp --enable-libschroedinger --enable-libsmbclient --enable-libsnappy --disable-libsoxr --enable-libspeex --disable-libssh --enable-libtheora --enable-libtwolame --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxvid --enable-libzvbi --enable-lzma --enable-openal --enable-opengl --enable-sdl --enable-x11grab --enable-zlib --disable-debug
  libavutil      54. 31.100 / 54. 31.100
  libavcodec     56. 60.100 / 56. 60.100
  libavformat    56. 40.101 / 56. 40.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 40.101 /  5. 40.101
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
  libpostproc    53.  3.100 / 53.  3.100
Input #0, mpegts, from '12.m2ts':
  Duration: 00:00:15.53, start: 0.074667, bitrate: 19298 kb/s
  Program 1
    Metadata:
      service_name    : 12.m2ts
      service_provider: cin5
    Stream #0:0[0x1011]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x1100](rus): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, stereo, fltp, 192 kb/s
Output #0, h264, to '12.h264':
  Metadata:
    encoder         : Lavf56.40.101
    Stream #0:0: Video: h264 ([27][0][0][0] / 0x001B), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 25 fps, 25 tbr, 25 tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
frame=  388 fps=0.0 q=-1.0 Lsize=   34517kB time=00:00:15.44 bitrate=18313.5kbits/s
video:34517kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000%

as you can see from " service_provider: cin5"

(extracting elementary streams)

guest at slax:/dev/shm$ /home/guest/botva/src/src/tsMuxer/build/tsMuxer/tsmuxer MUXfile BD.iso
tsMuxeR version 2.6.15. github.com/justdan96/tsMuxer
Decoding H264 stream (track 1): Profile: High at 4.1  Resolution: 1920:1080p  Frame rate: 25
Decoding AC3 stream (track 2): Bitrate: 192Kbps Sample Rate: 48KHz Channels: 2
0.0% complete
Processed 389 video frames
100.0% complete
Flushing write buffer
Creating Blu-ray stream info and seek index
Creating Blu-ray playlist
Mux successful complete
Finalize ISO disk
Muxing time: 0 sec

(run just compiled tsMuxer, requires Cmake and ninja)

Unfortunately, resulting file is not exactly seekable:

mplayer br:// -bluray-device BD.iso
MPlayer SVN-r38152-5.5.0 (C) 2000-2019 MPlayer Team
224 audio & 466 video codecs

Playing br://.
libavformat version 58.33.100 (internal)
libavformat file format detected.
[mpegts @ 0x575569e0]start time for stream 0 is not set in estimate_timings_from_pts
[mpegts @ 0x575569e0]PES packet size mismatch
[mpegts @ 0x575569e0]stream 0 : no TS found at start of file, duration not set
[mpegts @ 0x575569e0]stream 1 : no PTS found at end of file, duration not set
bluray.c:256: 00000.m2ts: no timestamp for SPN 0 (got 0). clip 188550000-189698400.
[mpegts @ 0x575569e0]Could not find codec parameters for stream 0 (Video: h264 (HDMV / 0x564D4448), none): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (ac3), -aid 0
LAVF: Program 1
VIDEO:  [H264]  0x0  0bpp  90000.000 fps    0.0 kbps ( 0.0 kbyte/s)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 58.59.102 (internal)
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Forced audio codec: mad
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, floatle, 192.0 kbit/6.25% (ratio: 24000->384000)
Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
==========================================================================
AO: [alsa] 48000Hz 2ch floatle (4 bytes per sample)
Starting playback...
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [vdpau] 1920x1080 => 1920x1080 Planar YV12
A:4191.8 V:4201.8 A-V:-10.000 ct: -0.000   0/  0  9% 27%  0.4% 7 0
[ASPECT] Warning: No suitable new res found!
[ASPECT] Warning: No suitable new res found!
A:4203.8 V:4213.8 A-V:-10.000 ct: -0.000   0/  0  2% 18%  0.4% 7 0
[h264 @ 0x576ae7e0]Cannot use next picture in error concealment
[h264 @ 0x576ae7e0]concealing 5886 DC, 5886 AC, 5886 MV errors in P frame
bluray.c:256: 00000.m2ts: no timestamp for SPN 0 (got 0). clip 188550000-189698400.

Possibly bad interleaving detected.
Use -ni option if this causes playback issues and avoid or fix the program that created the file.
bluray.c:256: 00000.m2ts: no timestamp for SPN 0 (got 0). clip 188550000-189698400.

[mpegts @ 0x575569e0]PES packet size mismatch
[ac3 @ 0x576ae7e0]exponent 25 is out-of-range
[ac3 @ 0x576ae7e0]error decoding the audio block
A:4190.9 V:   0.0 A-V:4190.912 ct: -0.400   0/  0  0%  0%  0.7% 0 0

Exiting... (Quit)

Files should be at https://yadi.sk/d/_LYvNL4N0aSZuA

Not sure if this failure due to libbluray, decoding part of ffmpeg (from oct 14 2019) or encoder part, or
even all remuxing I did ....

 


More information about the Cin mailing list