View Full Version : h.264 decoding problems
Hironimo
13th April 2007, 14:26
Hi.
I've captured several .ts (transport stream) files from digital sattelite containing h.264 video, and now I'm struggling to edit them - cutting out advertisements and maybe recoding from 1920x1088 to 1280x720.
I cannot cut with TS Packet Editor in any satisfying way - the cut points are way off of the points I selected (even taking i-frames into account).
So I tried to convert to avi before as described here (http://forum.doom9.org/showthread.php?t=114361). The problem here is that I can only use the ffdshow filter to decode the video in VirtualDub(Mod).
In the latest version (here (http://www.free-codecs.com/download/FFDShow.htm)) improves decoding but there are still issues with some frames, as seen in the below images:
Frame with glitches (full version (http://www.morkeleb.net/images/Die_Reise_der_Pinguine-errorframe.JPG)):
http://www.morkeleb.net/images/Die_Reise_der_Pinguine-errorframe-small.JPG
Correct frame (full version (http://www.morkeleb.net/images/Die_Reise_der_Pinguine-okframe.JPG)):
http://www.morkeleb.net/images/Die_Reise_der_Pinguine-okframe-small.JPG
These decoding issues do not appear when using the CoreAvc or Cyberlink decoder (Cyberlink seemes to be
the best one when it comes to decoding unusual or partially corrupted h.264 video - I often had problems with
CoreAvc where Cyberlink would display it flawlessly. Maybe the upcoming enterprise edition will improve on this,
though I have no idea when it will be available).
The other problem is that I got an access violation in the libavcodec at some point within the video,
so I cannot properly work with it as VirtualDubMod crashes.
Can you help? Is there a (good) way to still work with the video and not having these glitches?
Maybe someone knows how to contact the developer(s) of the decoder (libavcodec) used in ffdshow?
Kandor
14th April 2007, 17:04
Hi
Have you tried the Directshowsource in avisynth?
I would guess that it would be able to decode this and the sound as well.
you need the directshowsource plugin that you can find on this forum.
Then you need apropriate directshow codecs that can handle this.
FFDshow tryout would be my best guess for this.
Best regards
Kandor
Hi.
I've captured several .ts (transport stream) files from digital sattelite containing h.264 video, and now I'm struggling to edit them - cutting out advertisements and maybe recoding from 1920x1088 to 1280x720.
I cannot cut with TS Packet Editor in any satisfying way - the cut points are way off of the points I selected (even taking i-frames into account).
So I tried to convert to avi before as described here (http://forum.doom9.org/showthread.php?t=114361). The problem here is that I can only use the ffdshow filter to decode the video in VirtualDub(Mod).
In the latest version (here (http://www.free-codecs.com/download/FFDShow.htm)) improves decoding but there are still issues with some frames, as seen in the below images:
Frame with glitches (full version (http://www.morkeleb.net/images/Die_Reise_der_Pinguine-errorframe.JPG)):
http://www.morkeleb.net/images/Die_Reise_der_Pinguine-errorframe-small.JPG
Correct frame (full version (http://www.morkeleb.net/images/Die_Reise_der_Pinguine-okframe.JPG)):
http://www.morkeleb.net/images/Die_Reise_der_Pinguine-okframe-small.JPG
These decoding issues do not appear when using the CoreAvc or Cyberlink decoder (Cyberlink seemes to be
the best one when it comes to decoding unusual or partially corrupted h.264 video - I often had problems with
CoreAvc where Cyberlink would display it flawlessly. Maybe the upcoming enterprise edition will improve on this,
though I have no idea when it will be available).
The other problem is that I got an access violation in the libavcodec at some point within the video,
so I cannot properly work with it as VirtualDubMod crashes.
Can you help? Is there a (good) way to still work with the video and not having these glitches?
Maybe someone knows how to contact the developer(s) of the decoder (libavcodec) used in ffdshow?
Kandor
14th April 2007, 17:07
Sorry did not read your message good enough.
You allready have tried the ffdshow
But anyway, try the directshowsource plugin for avisynth and see what you can do there.
Best regards
Kandor
Eeknay
14th April 2007, 18:50
I cannot cut with TS Packet Editor in any satisfying way - the cut points are way off of the points I selected (even taking i-frames into account).
TSPE is set up for BBC HD bitrates by default, you need to manually input bitrate for each stream for more accurate editing, or frequently abuse the "Test" and +F/+IF buttons until you're satisfied.
Hironimo
15th April 2007, 18:37
Sorry did not read your message good enough.
You allready have tried the ffdshow
But anyway, try the directshowsource plugin for avisynth and see what you can do there.
Best regards
Kandor
I tried directshowsource at earlier dates. There I would be able to decode the video properly (no problems as described above) but when you try to work with the stream and search across it to mark frames (manually code a script) for cutting, the cutpoints will not be the same when actually doing converting/encoding. I also think that audio sync is an issue here.
ronnylov
20th April 2007, 12:56
I create a good working directshow graph with graphedit and then remove the video renderer and directsound output in the graph. Now I can open the graph file with avisynth directshowsource. However I can not get the audio this way (probably some error in my graph).
So what I do is first edit the .ts file with TS Packet editor. Then I demux the audio by using projextX with disabled video PID (because projectX does not like h.264). Then I load the audio in the avisynth script with an audio decoder plugin (don't remember the plugin name, but it can decode mp2). The graph is actually opening the edited .ts file. I am not sure if I get completely synched audio (I have not noticed any unsync but I have only tried BBC planet earth and the speaker is never shown in the picture and the animals are not easy to spot lipsync on).
bob0r
21st April 2007, 08:03
- Demux the .ts
- DGAVCDec 1.0.0 Alpha 4 http://forum.doom9.org/showthread.php?t=122598
1248
27th April 2007, 22:56
Did you try this ( http://x264.nl/ ) version of FFDShow ? For me it works fine.
With it I can even use the smart rendering option for avi files in virtual dub (cutting on non-keyframes without reencoding, only reencoding the part between cut and next keyframe). You may also want to have a look at Cut Assistant (a front end for VirtualDub and other cut applications, with a special focus on cutting operations).
Hironimo
10th May 2007, 18:29
The version you posted did not work for me, but the latest version at free-codecs.com does a much better job compared to my last tries I documented here.
I still get some crashes however when jumping around the file using VirtualDubMod.
If you are having problems with ac3 sound (with multiple channel types such as 5.1 and stereo) give the latest beta of besweet a try - it will upsample the stereo sound to 5.1 so you have an ac3 with the same encoding type.
This might cause the audio not to be in sync with the video however, but will be better then taking and muxing the original.
One strange thing i found however is that when I open the ts file normally with wmp (6.4) the playtime reports as 3 hours 50, but when extract the streams and put the video into an avi container it reports 1 hour 54 minutes. The ac3 will report as 1 hour 50 minutes after re-encoding with besweet.
So a total mess!
Is there another way to mux the ac3 to the avi (that can cope with different channel types hopefully) other then using VirtualDubMod?
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.