Selur's Little Message Board
[BUG] m2ts was not created - Printable Version

+- Selur's Little Message Board (https://forum.selur.net)
+-- Forum: Hybrid - Support (https://forum.selur.net/forum-1.html)
+--- Forum: Problems & Questions (https://forum.selur.net/forum-3.html)
+--- Thread: [BUG] m2ts was not created (/thread-2008.html)

Pages: 1 2 3 4 5 6


RE: m2ts was not created - Selur - 15.09.2021

What happens if your call:
/Applications/Hybrid.app/Contents/MacOS/ffmpeg" -y  -r 24000/1001 -i "/Users/Laurent/Movies/Hybrid/_2021-09-14@22_58_02_4210__07.mkv" -i "/Volumes/Racines/cgs/cgs3_0.srt" -i "/Users/Laurent/Movies/Hybrid/iId_1_aid_4352_2021-09-14@22_58_02_4210_04.ac3" -vcodec copy -scodec copy -acodec copy -metadata encoding_tool="Hybrid 2021.09.08.1" -map 0:0 -map 1:0 -map 2:0  -aspect 32:18 -r 24000/1001 -fflags +genpts -f mpegts "/Volumes/Racines/cgs/cgs3.m2ts"

In the debug output I see:
ffmpeg version N-102973-gcdbf2fc3e4-tessus  https://evermeet.cx/ffmpeg/  Copyright (c) 2000-2021 the FFmpeg developers
  built with Apple clang version 11.0.0 (clang-1100.0.33.17)
  configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg --extra-version=tessus --enable-avisynth --enable-fontconfig --enable-gpl --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libmysofa --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvmaf --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-version3 --pkg-config-flags=--static --disable-ffplay
  libavutil      57.  0.100 / 57.  0.100
  libavcodec     59.  3.101 / 59.  3.101
  libavformat    59.  4.100 / 59.  4.100
  libavdevice    59.  0.100 / 59.  0.100
  libavfilter     8.  0.103 /  8.  0.103
  libswscale      6.  0.100 /  6.  0.100
  libswresample   4.  0.100 /  4.  0.100
  libpostproc    56.  0.100 / 56.  0.100

Input #0, matroska,webm, from '/Users/Laurent/Movies/Hybrid/_2021-09-14@22_58_02_4210__07.mkv':
  Metadata:
    encoder         : libebml v1.4.1 + libmatroska v1.6.2
    creation_time   : 2021-09-14T22:03:18.000000Z
  Duration: 01:49:06.96, start: 0.000000, bitrate: 19994 kb/s
Stream #0:0: Video: h264 (High), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn (default) (forced)
    Metadata:
      BPS-eng         : 19993033
      DURATION-eng    : 01:49:06.957000000
      NUMBER_OF_FRAMES-eng: 156970
      NUMBER_OF_BYTES-eng: 16361691408
      _STATISTICS_WRITING_APP-eng: mkvmerge v53.0.0 ('Fool's Gold') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-09-14 22:03:18
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES

Input #1, srt, from '/Volumes/Racines/cgs/cgs3_0.srt':
  Duration: N/A, bitrate: N/A
  Stream #1:0: Subtitle: subrip
[ac3 @ 0x7fa41a424880] Format ac3 detected only with low score of 1, misdetection possible!
[ac3 @ 0x7fa41a424880] Estimating duration from bitrate, this may be inaccurate

Input #2, ac3, from '/Users/Laurent/Movies/Hybrid/iId_1_aid_4352_2021-09-14@22_58_02_4210_04.ac3':
  Duration: 08:36:45.16, start: 0.000000, bitrate: 640 kb/s
  Stream #2:0: Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s
Overriding aspect ratio with stream copy may produce invalid files
[mpegts @ 0x7fa41a62e540] Cannot automatically assign PID for stream 1
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
Error initializing output stream 0:2 --
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #1:0 -> #0:1 (copy)
  Stream #2:0 -> #0:2 (copy)
Last message repeated 1 times
Do you see more info if you call the call inside a terminal?

I don't really see a reason why ffmpeg should have problems with the ac3 audio stream...

-> Sill to some testing tomorrow when I'm back home.

Cu Selur


RE: m2ts was not created - Selur - 15.09.2021

Read the debug output some more and my guess the problem might be the srt line in the .meta file.
-> does the remuxing work if you don't passhtrought he subtitles?
(found a problem with srt subtitle in recent tsMuxeR versions, see: https://github.com/justdan96/tsMuxer/issues/457)

Cu Selur


RE: m2ts was not created - Selur - 15.09.2021

Send you a link to a new dev version for testing, if it still fails, please create and share a new debug output.
(jobs need to be recreated)

Cu Selur


RE: m2ts was not created - LaurentS - 15.09.2021

(15.09.2021, 21:44)Selur Wrote: Send you a link to a new dev version for testing, if it still fails, please create and share a new debug output.
(jobs need to be recreated)

Cu Selur

Ok, I just read all your posts.
I'll test with your new version.
If it fails, I'll also test without subtitles to check if it's the responsible.

(I always create a new job for every test Wink )


RE: m2ts was not created - LaurentS - 15.09.2021

same unsuccessful result with the new version
I join the debug


RE: m2ts was not created - shijan - 15.09.2021

LaurentS, are you on Mojave? Seems there is a global problem with that tsMuxer branch. Check my post here https://forum.selur.net/thread-1495-post-13372.html#pid13372


RE: m2ts was not created - LaurentS - 15.09.2021

I tried without subtitles and obtained which seems the same crash.
I join the debug but it contains also the previous encoding (forgot to trash it).

(15.09.2021, 23:20)shijan Wrote: LaurentS, are you on Mojave? Seems there is a global problem with that tsMuxer branch. Check my post here https://forum.selur.net/thread-1495-post-13372.html#pid13372

Yes on Mojave. I use this tsmuxer version: mac-2021-06-05-patch and have no problem with it. I usually use it to create iso for bluray toasting.


RE: m2ts was not created - Selur - 16.09.2021

Will send you a link to a new dev verison where I patched the tsMuxeR bianry and it's dependencies a bit.

Cu Selur


RE: m2ts was not created - LaurentS - 16.09.2021

(16.09.2021, 10:36)Selur Wrote: Will send you a link to a new dev verison where I patched the tsMuxeR bianry and it's dependencies a bit.

Cu Selur

Hi Selur,

Thanks. I tried with your latest version but same bug I think.

Is it possible that I'm doing something wrong?

I use a m2ts file.
Video: passthrough from the m2ts
Audio tab : adding only the first track (DD TrueHD) from the m2ts, no modification
Subtitle tab : adding one subtitle (.srt), no modification
-> I don't use the Muxing tab. Do I have to do something there?
I never did but as I said, it's my first m2ts experience.


RE: m2ts was not created - Selur - 16.09.2021

No the way you use it should be fine.
"/Applications/Hybrid.app/Contents/MacOS/tsMuxeR" "/Users/Laurent/Movies/Hybrid/tsMuxerMeta_2021-09-16@13_44_19_8210__06.meta" "/Volumes/Racines/cgs/cgs3.m2ts"
is fine, but for some reason the fps in the meta file, for the subtitle, is wrong (should be 23.976)
MUXOPT --no-pcr-on-video-pid --new-audio-pes --vbr --vbv-len=500

V_MPEG4/ISO/AVC, "/Users/Laurent/Movies/Hybrid/cgs3_2021-09-16@13_44_19_8210_05.264", fps=23.976, insertSEI, contSPS, ar=1:1 (Square)

A_AC3, "/Users/Laurent/Movies/Hybrid/iId_1_aid_4352_2021-09-16@13_44_19_8210_04.ac3"
S_TEXT/UTF8, "/Volumes/Racines/cgs/Chinese.Ghost.Story.III.BD.srt",font-name=Arial,font-size=60,font-color=0x00FFFFFF,font-charset=1,bottom-offset=16,font-border=1,text-align=center,video-width=1920,video-height=1080,fps=0
Will look at the code no clue why that didn't happen here.

Cu Selur