View Full Version : Ts to mkv eith mkvmerge. async.
anuswara
19th February 2011, 15:35
Hello.
source file TS (h264 or mpeg2, audio mp2) from dvb-t receiver.
output: MKV file for playback in a bd standalone player.
I dont use BrHdExtractor because I dont have installed the Haali splitter on my system.
my process: demux the source TS file with eac3to. I obtain a 264 (or mp2 file) + ac3.
If I remux this elementary streams with tsmuxergui the output file is in sync (then multiavchd...).
I would like to remux with mkvmergegui to get a file MKV. (my settings: copmpression: none. fps: 50, not 25!).
no warning messages.
but the resulting MKV is async!
1) what to do to get a sync file?
2) if the output file is bigger than 2GB should I burn it into a udf 2.50 data disc and not iso?
thanks a lot i advance.
b regards
anuswara
19th February 2011, 16:49
clarification:
the first seconds are in sync. than beginns async. it gradually go out of sync. at the end the async is of several minutes!
:-(
setarip_old
19th February 2011, 19:00
Hi! I obtain a 264 (or mp2 file) + ac3.Just drop these two streams/files onto MultiAVCHD and select .MKV for output...
anuswara
20th February 2011, 14:57
Thank you setarip_old for your reply,
this were a wonderfull solution.
multiavchd says: unable to detect the actual duration of this title, enter the proper duration in format hh.mm.ss.
then I get none output.
here the entire log. thanks for helping me.
___________________
[14.46.44] multiAVCHD.dat version: [04010767]
[14.47.12] [TRANSCODE]: Title#01 0 kbps, 1920x1080 -> 1920x1080
[14.47.12] [TRANSCODE]: Title#02 0 kbps, 720x480 -> 720x480
[14.47.12] Checking for available space and drive types (FAT32/NTFS)...
[14.47.12] Destination [C:]: NTFS, 553343.34 MiB (540.374 GiB) free space
[14.47.12] Temp folder [C:]: NTFS, 553343.41 MiB (540.374 GiB) free space
[14.47.12] Log started for multiAVCHD v4.1 (build 770)
[14.47.12] Selected output mode: File mode - MKV/AVI/DivX/XviD compatible player
[14.47.12] Processing 2 titles...
[14.47.12] Existing C:\multiAVCHD\AVCHD\ cannot be used as destination folder!
[14.47.12] Output will be written to: C:\multiAVCHD\AVCHD-20110220-144712
[14.47.12] Processing (C:\Users\admin\Desktop\carabinieri - 1 - h264 1080i50.264)...
[14.47.12] This title is marked for reencoding / uncropping...
[14.47.12] Encoding process may take 10 min to 10 hours, so be patient...
[14.47.12] *** Initiating video encoding:
[14.47.12] *** Original : 1920x1080
[14.47.12] *** Crop : 0
[14.47.12] *** Resize : 1920x1080 (No change)
[14.47.12] *** Uncrop to : 1920x1080
[14.47.12] *** Sharpen : 0
[14.47.12] *** Bitrate : 0 kbps
[14.47.12] *** Frame rate: Original (25.000)
[14.47.12] *** Level : 4
[14.47.12] *** B-frames : 3
[14.47.12] *** Ref-frames: 3
[14.47.12] *** GOP size : 50 (keyframe min. each 4 frames)
[14.47.12] *** Quality : One pass (turbo)
[14.47.12] *** SAR : 1:1
[14.47.12] *** DAR : 1920x1080
[14.47.12] *** Re-packing elementary V_MPEG4/ISO/AVC stream...
[14.47.14] *** Profile : File mode (MKV/AVC)
[14.47.14] *** Encoding : One pass - content: [00:00:00]
[14.47.14] *** Encoding : x264 options: --preset veryfast -B 4000 -I 50 --level 4 -i 8 -b 3 -r 3 -m 2 --mvrange 511 -A p8x8,i8x8 --ipratio 1.1 --pbratio 1.1 --vbv-bufsize 25000 --vbv-maxrate 20000 --qcomp 0.5 --threads auto --thread-input --aud --nal-hrd vbr --sar 1:1 --b-pyramid strict --slices 0 --weightp 0 --rc-lookahead 50 -o "C:\multiAVCHD\_TEMP\multiTEMP-20110220\carabinieri - 1 - h264 1080i50.[1920x1080-25.000].264" "C:\multiAVCHD\_TEMP\multiTEMP-20110220\20110220-144712-uncrop-running.avs"
[14.47.14] *** Speed : -201.61 fps (elapsed: 00:00:00 - Realtime x -8.06)
[14.47.14] *** Transcoding failed!
[14.47.14] *** Check ffdshow/avisynth/haali (reinstall)!
[14.47.14] >>> Download links: http://multiforum.deanbg.com/viewtopic.php?f=7&t=17
[14.47.14] *** DEBUG: Try to play [C:\multiAVCHD\_TEMP\multiTEMP-20110220\20110220-144712-uncrop-running.avs] in MPC or other player, which supports AviSynth scripts and report the error to the author!
[14.47.14] Retrying to transcode with FFMS2!
[14.47.14] Stand-by for indexing...
[14.47.14] *** Initiating video encoding:
[14.47.14] *** Original : 1920x1080
[14.47.14] *** Crop : 0
[14.47.14] *** Resize : 1920x1080 (No change)
[14.47.14] *** Uncrop to : 1920x1080
[14.47.14] *** Sharpen : 0
[14.47.14] *** Bitrate : 0 kbps
[14.47.14] *** Frame rate: Original (25.000)
[14.47.14] *** Level : 4
[14.47.14] *** B-frames : 3
[14.47.14] *** Ref-frames: 3
[14.47.14] *** GOP size : 50 (keyframe min. each 4 frames)
[14.47.14] *** Quality : One pass (turbo)
[14.47.14] *** SAR : 1:1
[14.47.14] *** DAR : 1920x1080
[14.47.14] *** Re-packing elementary V_MPEG4/ISO/AVC stream...
[14.47.16] *** Profile : File mode (MKV/AVC)
[14.47.16] *** Stand-by for indexing (ffms2)...
[14.47.16] *** Encoding : One pass - content: [00:00:00]
[14.47.16] *** Encoding : x264 options: --preset veryfast -B 4000 -I 50 --level 4 -i 8 -b 3 -r 3 -m 2 --mvrange 511 -A p8x8,i8x8 --ipratio 1.1 --pbratio 1.1 --vbv-bufsize 25000 --vbv-maxrate 20000 --qcomp 0.5 --threads auto --thread-input --aud --nal-hrd vbr --sar 1:1 --b-pyramid strict --slices 0 --weightp 0 --rc-lookahead 50 -o "C:\multiAVCHD\_TEMP\multiTEMP-20110220\carabinieri - 1 - h264 1080i50.[1920x1080-25.000].264" "C:\multiAVCHD\_TEMP\multiTEMP-20110220\20110220-144714-uncrop-running.avs"
[14.47.16] *** Speed : -543.47 fps (elapsed: 00:00:00 - Realtime x -21.73)
[14.47.16] *** Transcoding failed!
[14.47.16] *** Check ffdshow/avisynth/haali (reinstall)!
[14.47.16] >>> Download links: http://multiforum.deanbg.com/viewtopic.php?f=7&t=17
[14.47.16] *** DEBUG: Try to play [C:\multiAVCHD\_TEMP\multiTEMP-20110220\20110220-144714-uncrop-running.avs] in MPC or other player, which supports AviSynth scripts and report the error to the author!
[14.47.16] Preprocessing audio title (C:\Users\admin\Desktop\carabinieriaudio.ac3).
[14.47.16] Processing audio...
[14.47.16] Output bit depth: 16 bit
[14.47.16] Trying to detect title duration - please wait...
[14.47.18] [carabinieriaudio.ac3]
[14.47.48] Using duration: 59 seconds / [00:00:59]
[14.47.48] Using auto-generated chapter marks!
[14.47.48] Preparing audio title background (PAL).
[14.47.50] Muxing...
[14.47.50] Completed!
[14.47.50] No compatible folders/files processed...
anuswara
22nd February 2011, 00:09
hello.
I tried with VLC player/converter.
source file TS MPEG2: no problem! very fine.
source file TS H264-AVC: now I have found the settings for VLC converter:
profile: video H.264 + aac (mp4)...custom settings needed:
audio mpeg2, but I get audio mp3 only (?!!?)
video 264, 10400Kbps, 25fps.
incapsulation: mkv (or mp4, the same effects). file extension: i forced *.MKV* or mp4 (the same effect).
now the playback is good (even if the sync is not 100% perfect as the source file TS).
but there is a little problem:
some frames appear pixelated, some frames only. see please the snapshots in attach .zip.
can you help me with the settings so that I get a good video?
thanks.
anuswara
22nd February 2011, 15:22
today update:
this is the big problem:
The resulting file uses more than 4 Reference Frames. My player does not support playing back files which exceed 4 Reference Frames!
what to do? what about the settings to get a MKV file (h264 avc) with 4 reference frames only? is it possible?
I hope this were possible. Please let me know. thanks a lot.
anuswara
22nd February 2011, 15:42
here the resulting file
http://rapidshare.com/files/449194871/carabinieri.mkv
thanks.
Sharktooth
22nd February 2011, 21:07
the only possible solution known to me is re-encoding.
anuswara
22nd February 2011, 22:00
thank you Sharktooth for your reply.
this is very good idea (multiavchd).
I tried it succesfully. the encoding settings are correct, very fine!
my process:
demux > process with multiavchd removing the audio stream > (eventually convert mp2 to ac3 with audacity, depending of the content of the source ts container) > remux mpa audio and the "silent movie m2ts" with tsmuxergui [if the content is mpeg2 I need to swet manuallt the audio delay in tsmuxer]> load the output m2ts into multiavchd > select "bluray output" (burn udf 2.50 the bdmv and certificate folders only) or select "avchd strict" (because i dont have installed avisync for building menù) > burn the folders avchdtn and bdmv only.
this works fine on the standalone bd player! :-)
[but if I simpy load the source file ts into multiavchd and process it, I get a very very bad async as m2ts output. so I "need" to follow this long process]. ok.
when the source TS contains errors I use eac3to (not tsmuxergui) successfully, because eac3to can fix the gaps (discrepancities...).ok.
but if the file is damaged (pixelated due to a little bad signal from dvb-t portable antenna) eac3to cannot demux it ("dirthy file..." "source file seems to be damaged"...) and I get tausend warnings messages!
at the moment nothing to do, I think, because ProjectX cannot handle HD content and Ts Doctor handles at the moment audio ac3 only, not TS containers with mpeg2 video and mp2 audio, for fix the streams with errors.
I tried to cut the bad frames, then join the splitted file with TsSplitter&Joiner, but the resultig remux causes a bad bad async (sometime TsRemux can help me, sometime).
but if the source file is perfect I get perfect results with demux/remux/process with multiavchd. super!
but I wrote this post for another reason.
if I record from TV broadcast a concert/opera HD, I burm the avchd folders from multiavchd (or the 2 main folders of the bluray structure) in a AVCHD DVD or (if the size of the m2ts file is too big, i.e. 3H 20M = 17GB) I burn the output in a BD+R disc. ok. :-)
but if I have a very little TS (>m2ts file) or if the source TS contains mpeg2/mp2, I would prefer not to burn in a whole dvd/br disc with avchd content (for 1GB or smaller files only!).
so I think it were wonderfull to create a MKV file (I hope without quality lost/without compression? hmmm), this file should been burned together with mp3 or jpeg files or divx movies or little movies from my fotocamera...
but I dont have installed the Haali media splitter, so I cannot load the demuxed elementary streams into multiavchd to get a MKV output, nor remux those raw streams with mkvmergegui.
so I have found this option in VLC player.
TS mpeg2: ok.
TS H264: pixelated, due to the fact that this VLC Player/converter uses more than 4 Reference Frames as output. hmmm bad thing for my player :-(
I tried to load the VLC output file (MP4) into mkvmergegui for remux it into a MKV, but I get the warning message (see please my first post above).
also this were very usefull for my little files without have to burning them in a whole dvd/br for one little file only.
I wrote to the VLC forum but none replied. so I dont know if I'm wrong with the settings or if it is a limitation of the Vlc player...
setarip_old
23rd February 2011, 06:51
As I am the person who suggested that you load the two streams into MultiAVCHD, I must tell you that I have no idea what you are trying to say in your most recent post (#9) to this thread:
Were you or were you not successful as the result of doing what I suggested regarding MultiAVCHD?
anuswara
23rd February 2011, 13:04
thanks for your reply.
no. multiavchd says: unable to detect the actual duration of this title, enter the proper duration in format hh.mm.ss.
then I get none output.
log:
[14.47.14] *** Initiating video encoding:
[14.47.14] *** Original : 1920x1080
[14.47.14] *** Crop : 0
[14.47.14] *** Resize : 1920x1080 (No change)
[14.47.14] *** Uncrop to : 1920x1080
[14.47.14] *** Sharpen : 0
[14.47.14] *** Bitrate : 0 kbps
[14.47.14] *** Frame rate: Original (25.000)
[14.47.14] *** Level : 4
[14.47.14] *** B-frames : 3
[14.47.14] *** Ref-frames: 3
[14.47.14] *** GOP size : 50 (keyframe min. each 4 frames)
[14.47.14] *** Quality : One pass (turbo)
[14.47.14] *** SAR : 1:1
[14.47.14] *** DAR : 1920x1080
[14.47.14] *** Re-packing elementary V_MPEG4/ISO/AVC stream...
[14.47.16] *** Profile : File mode (MKV/AVC)
[14.47.16] *** Stand-by for indexing (ffms2)...
[14.47.16] *** Encoding : One pass - content: [00:00:00]
[14.47.16] *** Encoding : x264 options: --preset veryfast -B 4000 -I 50 --level 4 -i 8 -b 3 -r 3 -m 2 --mvrange 511 -A p8x8,i8x8 --ipratio 1.1 --pbratio 1.1 --vbv-bufsize 25000 --vbv-maxrate 20000 --qcomp 0.5 --threads auto --thread-input --aud --nal-hrd vbr --sar 1:1 --b-pyramid strict --slices 0 --weightp 0 --rc-lookahead 50 -o "C:\multiAVCHD\_TEMP\multiTEMP-20110220\carabinieri - 1 - h264 1080i50.[1920x1080-25.000].264" "C:\multiAVCHD\_TEMP\multiTEMP-20110220\20110220-144714-uncrop-running.avs"
[14.47.16] *** Speed : -543.47 fps (elapsed: 00:00:00 - Realtime x -21.73)
[14.47.16] *** Transcoding failed!
[14.47.16] *** Check ffdshow/avisynth/haali (reinstall)!
[14.47.16] >>> Download links: http://multiforum.deanbg.com/viewtopic.php?f=7&t=17
[14.47.16] *** DEBUG: Try to play [C:\multiAVCHD\_TEMP\multiTEMP-20110220\20110220-144714-uncrop-running.avs] in MPC or other player, which supports AviSynth scripts and report the error to the author!
[14.47.16] Preprocessing audio title (C:\Users\admin\Desktop\carabinieriaudio.ac3).
[14.47.16] Processing audio...
[14.47.16] Output bit depth: 16 bit
[14.47.16] Trying to detect title duration - please wait...
[14.47.18] [carabinieriaudio.ac3]
[14.47.48] Using duration: 59 seconds / [00:00:59]
[14.47.48] Using auto-generated chapter marks!
[14.47.48] Preparing audio title background (PAL).
[14.47.50] Muxing...
[14.47.50] Completed!
[14.47.50] No compatible folders/files processed...
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.