|
|
| exley |
| Posted: Sep 17 2013, 08:54 PM |
 |
|
Newbie

Group: Members
Posts: 5
Member No.: 37147
Joined: 17-September 13

|
hello, I have problem with a .TS file these are info from MediaInfo:
Format: MPEG-TS Format: AVC Format/Info: Advanced Video Codec
problem is, that I want to encode it to h264 using x264vfw (avi) but for some reason the file skips frames (like it chokes)
and I don't want to use any other inferior codec (xvid, divx)
I tried to convert this .ts with avidemux to mpeg4 (avc), but again same problem arises I am using vdub 1.9.10
any help would be apreciated or even to recommend any other quality converter ? |
 |
| DarrellS |
| Posted: Sep 17 2013, 09:45 PM |
 |
|
Advanced Member
  
Group: Members
Posts: 567
Member No.: 1061
Joined: 28-November 02

|
It's already H264 and you don't want to put it in an AVI container. I'd either leave it as it is or you can use GDSMUX which comes with Haali media splitter and save as mkv. If you don't want mkv then you can open the mkv in MyMP4Box and save as mp4. |
 |
| DarrellS |
| Posted: Sep 17 2013, 09:48 PM |
 |
|
Advanced Member
  
Group: Members
Posts: 567
Member No.: 1061
Joined: 28-November 02

|
If you need to edit the file then spend the money and buy VideoReDo TV Suite since it is the only program that I know of that can reliably do frame accurate editing of TS files. |
 |
| exley |
| Posted: Sep 18 2013, 12:40 AM |
 |
|
Newbie

Group: Members
Posts: 5
Member No.: 37147
Joined: 17-September 13

|
| QUOTE (DarrellS @ Sep 17 2013, 09:45 PM) | It's already H264 and you don't want to put it in an AVI container.
|
problem isn't in container, I have many h264 encodes in avi, all works well problem is in these avc/h264 that are identified as mpeg/ts
the original clip (as info in 1st post) chokes even in media player classic home cinema, and only this types of clips thats why I simply CAN'T leave it as it is
another interesting thing, any h264 encoded videos that I have, have via MediaInfo
Codec ID: H264
but these mpeg/ts have Codec ID: 27
even if they are avc/h264
so yeah I need to totaly re-encode this crap, I usually did most easy way: open it in vdub and save as uncompressed video (then open again via vdub the uncompressed one and encode via vfwx264) but any longer clip than 10sec takes over 7 GB and this one is... longer than 5 mins :/ |
 |
| Abrazo |
| Posted: Sep 18 2013, 07:40 PM |
 |
|
Advanced Member
  
Group: Members
Posts: 775
Member No.: 28995
Joined: 5-November 10

|
Maybe you should first try to play the original video fluently in VirtualDub, by trying out different decoders for opening this original file.
Experiment with the DirectShow inputdriver plugin (v 0.93) in combination with ffdshow decoders (Video decoder configuration): > http://forums.virtualdub.org/index.php?act...=ST&f=7&t=15093 > http://sourceforge.net/projects/ffdshow-tr...ial%20releases/
Experiment with the Windows 7 DirectShow Filter Tweaker (Win7DSFilterTweaker_5.9.exe) were you can set your preferred DirectShow decoder for H264: > http://www.digital-digest.com/software/Pre..._Windows_7.html
In VirtualDub verify to have nothing checked (actif) in the Options menu. (Sync to audio, Drop frames when behind, Allow video overlays, should not be checked).
Why not immediatly re-encode into H264 instead of first converting to uncompressed AVI ? Do you have a particular reason for that ? |
 |
| exley |
| Posted: Sep 18 2013, 11:23 PM |
 |
|
Newbie

Group: Members
Posts: 5
Member No.: 37147
Joined: 17-September 13

|
| QUOTE (Abrazo @ Sep 18 2013, 07:40 PM) | Why not immediatly re-encode into H264 instead of first converting to uncompressed AVI ? Do you have a particular reason for that ? | because result is same as with original file frame skips/chokes :/ |
 |
| -vdub- |
| Posted: Sep 19 2013, 04:31 AM |
 |
|
Advanced Member
  
Group: Members
Posts: 613
Member No.: 27087
Joined: 24-February 10

|
1. Download FFInput Driver http://code.google.com/p/ffinputdriver/downloads/list (choose a build for your os that also equals the virtualdub version you are using 32bit os virtualdub works best with most virtualdub video filters) 2. Close virtualdub 3. Unpack FFInput Driver archive into the the ./virtualdub/plugins/ folder 4. Open virtualdub 5. Try drag and drop your video check if it has loaded ok 6. If not... File > Open Video File (UI) > Navigate Files Of type: FFMpeg Supported Files > Then navigate and select your video to load it
7. If that doesn't work see DarrellS second suggestion above to verify and fix the source video |
 |
| exley |
| Posted: Oct 16 2013, 06:26 PM |
 |
|
Newbie

Group: Members
Posts: 5
Member No.: 37147
Joined: 17-September 13

|
ok problem is solved I used AutoMKV which loads those mpeg/ts crap clips normaly and converted back to mkv (tho re-encode was also necessary)
now no more choke/skips |
 |
| -vdub- |
| Posted: Oct 16 2013, 07:49 PM |
 |
|
Advanced Member
  
Group: Members
Posts: 613
Member No.: 27087
Joined: 24-February 10

|
Multiplex, mux or muxer) and demultiplex, demux or demuxer is all you needed to copy video and audio from one container into another. In doing so no encode is needed. For video AVC1 (x264, h264 etc), For any audio (AAC, AC3 etc) suggest using MP4 as the container. Not to use MKV is unreliable the bugs are always PTS problems and not all tools can fix them. Until MKV PTS bugs are fixed MKV should not be relied upon for video, use MP4 container instead
To mux from MPEG-2/TS AVC1 and AAC or AC3 for example is as fast as you hard drive can copy. No encode should be needed to play MPEG-2/TS videos when find you cannot play them
Or use AVI container do as I suggested above so can view, play and edit the MPEG-2, TS and M2TS files with Virtualdub. To put the video and audio into AVI container. Using Virtualdub Menus.. Video > Direct Stream Copy ..the same for.. Audio > Direct Stream Copy ..next... File > Save As AVI Virtualdub has just muxed the video and audio streams from your TS video into a playable AVI container
Suggest LAVFilters if your os has not got them installed
Video Containers http://en.wikipedia.org/wiki/Comparison_of...ntainer_formats |
 |
| DarrellS |
| Posted: Oct 16 2013, 08:07 PM |
 |
|
Advanced Member
  
Group: Members
Posts: 567
Member No.: 1061
Joined: 28-November 02

|
I don't understand why a re-encode was necessary. You should've just been able to change the container from TS to MKV. It's been a while since I've worked with TS files from my Hauppauge HD PVR from if I remember correctly, using mkvmerge gave me out of sync files but using GDSmux kept the files in sync. I had to re-encode because I was cutting out all the commercials.
Long story short, working with TS files was a nightmare. I tried freeware editors but none of them gave me frame accurate editing and one cheaper payware that did frame accurate editing left corruption at every cut I made so I broke down and got VideoReDo which had no problems at all and I was able to save all my files without having to re-encode. If you have a lot of TS files to edit then that would be my suggestion. It will save you a lot of time and trouble. At $100 it's kinda expensive but worth every penny if you have a lot of files to work with. |
 |
| dloneranger |
| Posted: Oct 16 2013, 08:25 PM |
 |
|
Moderator
  
Group: Moderators
Posts: 2366
Member No.: 22158
Joined: 26-September 07

|
@Vdub
| QUOTE | | Until MKV PTS bugs are fixed MKV should not be relied upon for video |
MKV's a file format, bugs are in programs ;-)
-------------------- MultiAdjust JoinWav WavNormalize FFMPeg Input Plugin v1827 UnSharpMask Windows7/8 Codec Chooser All FccHandlers Stuff inc. Installers for acm codecs AAC, AC3, LameMp3 |
 |
| exley |
| Posted: Oct 17 2013, 09:48 PM |
 |
|
Newbie

Group: Members
Posts: 5
Member No.: 37147
Joined: 17-September 13

|
well maybe re-encode wasn't necessary but automkv doesn't offer "just replace container" but since I have set quality to 1 (best) I don't think that human eye can notice any little change that might happen with reencode
but for some reason people who rip from hdtv always force stupid MPEG/TS which never plays well for me |
 |
| -vdub- |
| Posted: Oct 17 2013, 10:00 PM |
 |
|
Advanced Member
  
Group: Members
Posts: 613
Member No.: 27087
Joined: 24-February 10

|
| QUOTE (dloneranger @ Oct 16 2013, 08:25 PM) | @Vdub
| QUOTE | | Until MKV PTS bugs are fixed MKV should not be relied upon for video |
MKV's a file format, bugs are in programs ;-) | http://en.wikipedia.org/wiki/.mkv The Matroska Multimedia Container is an open standard free container format, a file format that can hold an unlimited number of video, audio, picture, or subtitle tracks in one file
also http://en.wikipedia.org/wiki/Comparison_of...ntainer_formats
Would be nice for those programs to have their bugs fixed after all these years. Moreover as MKV supported by (some) hardware players or the hardware players have better software programs than pc users have ! |
 |