Mailing List Archive

Ticket #2077: transcoding fails with "Deadlock detected. One buffer is full when ..." for some DVB recordings
#2077: transcoding fails with "Deadlock detected. One buffer is full when ..."
for some DVB recordings
--------------------+-------------------------------------------------------
Reporter: seb | Owner: cpinkham
Type: defect | Status: new
Priority: minor | Milestone:
Component: mythtv | Version: head
Severity: medium |
--------------------+-------------------------------------------------------
Since the memory leak fixes (ticket 10507) transcoding works very well for
most of my recordings but fails on a few with "Deadlock detected. One
buffer is full when the other is empty! Aborting". This is lossless
transcoding of DVB-T recordings. If sample mpg files are required I will
need some advice on how (the originals are around 1.4G). I'm currently
running SVN trunk rev 10584.

--
Ticket URL: <http://svn.mythtv.org/trac/ticket/2077>
MythTV <http://www.mythtv.org/>
MythTV
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-commits
Re: Ticket #2077: transcoding fails with "Deadlock detected. One buffer is full when ..." for some DVB recordings [ In reply to ]
#2077: transcoding fails with "Deadlock detected. One buffer is full when ..."
for some DVB recordings
--------------------+-------------------------------------------------------
Reporter: seb | Owner: cpinkham
Type: defect | Status: new
Priority: minor | Milestone:
Component: mythtv | Version: head
Severity: medium | Resolution:
--------------------+-------------------------------------------------------
Comment (by anonymous):

I reverted 10507 to see if it was relevant but it isn't. Memory leak came
back but this problem didn't go away.

--
Ticket URL: <http://svn.mythtv.org/trac/ticket/2077#comment:1>
MythTV <http://www.mythtv.org/>
MythTV
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-commits
Re: Ticket #2077: transcoding fails with "Deadlock detected. One buffer is full when ..." for some DVB recordings [ In reply to ]
#2077: transcoding fails with "Deadlock detected. One buffer is full when ..."
for some DVB recordings
--------------------+-------------------------------------------------------
Reporter: seb | Owner: ghaushe
Type: defect | Status: new
Priority: minor | Milestone:
Component: mythtv | Version: head
Severity: medium | Resolution:
--------------------+-------------------------------------------------------
Changes (by xris):

* owner: cpinkham => ghaushe

--
Ticket URL: <http://svn.mythtv.org/trac/ticket/2077#comment:2>
MythTV <http://www.mythtv.org/>
MythTV
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-commits
Re: Ticket #2077: transcoding fails with "Deadlock detected. One buffer is full when ..." for some DVB recordings [ In reply to ]
#2077: transcoding fails with "Deadlock detected. One buffer is full when ..."
for some DVB recordings
--------------------+-------------------------------------------------------
Reporter: seb | Owner: ghaushe
Type: defect | Status: assigned
Priority: minor | Milestone:
Component: mythtv | Version: head
Severity: medium | Resolution:
--------------------+-------------------------------------------------------
Changes (by ghaushe):

* status: new => assigned

Comment:

I'm not usre this can be fixed, to be honest.
It appears that at 10.5 MB into the file, the audio on stream #3
disappears. The transcoder can not handle this case. About the only
thing I can do is to add a command-line switch which would force the
transcoder to only preserve a specific (in this case the first) audio
stream. I will work on adding such an option in the mean-time.

If you still have this test case, I'd be happy if you could make the 1st
15MB of it available to me.

--
Ticket URL: <http://svn.mythtv.org/trac/ticket/2077#comment:3>
MythTV <http://www.mythtv.org/>
MythTV
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-commits
Re: Ticket #2077: transcoding fails with "Deadlock detected. One buffer is full when ..." for some DVB recordings [ In reply to ]
#2077: transcoding fails with "Deadlock detected. One buffer is full when ..."
for some DVB recordings
--------------------+-------------------------------------------------------
Reporter: seb | Owner: ghaushe
Type: defect | Status: assigned
Priority: minor | Milestone:
Component: mythtv | Version: head
Severity: medium | Resolution:
--------------------+-------------------------------------------------------
Comment (by laurent.devilliers@gmail.com):

Is the feature still being worked on to specify an audio stream? It would
be very usefull on DVB streams that have multiple languages. When doing a
transcode to mpg4 it always selects the first audio stream.

--
Ticket URL: <http://svn.mythtv.org/trac/ticket/2077#comment:4>
MythTV <http://www.mythtv.org/>
MythTV
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-commits
Re: Ticket #2077: transcoding fails with "Deadlock detected. One buffer is full when ..." for some DVB recordings [ In reply to ]
#2077: transcoding fails with "Deadlock detected. One buffer is full when ..."
for some DVB recordings
--------------------+-------------------------------------------------------
Reporter: seb | Owner: ghaushe
Type: defect | Status: assigned
Priority: minor | Milestone:
Component: mythtv | Version: head
Severity: medium | Resolution:
--------------------+-------------------------------------------------------
Comment (by ylee@pobox.com):

I have recently seen a spate of "deadlock detected"/232 errors when
losslessly transcoding many (*not* all) recordings. I am using 0.20-fixes
with ATrpms-147. I have a EM64T system, and am pretty sure these started
occurring when I moved from a Fedora Core 4-based system running in 32-bit
to Fedora Core 6 on 64-bit (but same hardware otherwise).

--
Ticket URL: <http://svn.mythtv.org/trac/ticket/2077#comment:5>
MythTV <http://www.mythtv.org/>
MythTV
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-commits
Re: Ticket #2077: transcoding fails with "Deadlock detected. One buffer is full when ..." for some DVB recordings [ In reply to ]
#2077: transcoding fails with "Deadlock detected. One buffer is full when ..."
for some DVB recordings
--------------------+-------------------------------------------------------
Reporter: seb | Owner: ghaushe
Type: defect | Status: assigned
Priority: minor | Milestone: 0.20
Component: mythtv | Version: 0.20
Severity: medium | Resolution:
--------------------+-------------------------------------------------------
Changes (by rob@robjones.org):

* version: head => 0.20
* milestone: => 0.20

Comment:

Hi, I'm seeing the same, with 0.20-fixes from the ubuntu archive. As with
the previous comments, I only see this error on a small number of UK-based
DVB-T channels - mainly BBC 3.

Interesting, I also receive this channel on a DVB-C card, and this error
does *not* occur when using this source, so this would appear to be
something particular to the DVB-T broadcast.

Making an educated assumption here - Could it be the hard-of-hearing audio
description stream that is coming and going? This would make sense, as
this would be the only other audio stream this channel ever broadcasts,
and bits on the DVB-T multiplexes are highly contented. If so, I'm not
sure how you could tell which is which, as they are both tagged as
"English".

What about an option to pre-scan the TS and disregard any streams that are
not present throughout?

Attached a log for reference. Can also supply an offending TS file if
needs be.

--
Ticket URL: <http://svn.mythtv.org/trac/ticket/2077#comment:6>
MythTV <http://www.mythtv.org/>
MythTV
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-commits
Re: Ticket #2077: transcoding fails with "Deadlock detected. One buffer is full when ..." for some DVB recordings [ In reply to ]
#2077: transcoding fails with "Deadlock detected. One buffer is full when ..."
for some DVB recordings
--------------------+-------------------------------------------------------
Reporter: seb | Owner: ghaushe
Type: defect | Status: assigned
Priority: minor | Milestone: 0.20
Component: mythtv | Version: 0.20
Severity: medium | Resolution:
--------------------+-------------------------------------------------------

Comment(by anonymous):

Is there any progress with this as I am seeing the same problem with a few
programs on
BBC3?

--
Ticket URL: <http://svn.mythtv.org/trac/ticket/2077#comment:7>
MythTV <http://svn.mythtv.org/trac>
MythTV
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-commits
Re: Ticket #2077: transcoding fails with "Deadlock detected. One buffer is full when ..." for some DVB recordings [ In reply to ]
#2077: transcoding fails with "Deadlock detected. One buffer is full when ..."
for some DVB recordings
--------------------+-------------------------------------------------------
Reporter: seb | Owner: ghaushe
Type: defect | Status: assigned
Priority: minor | Milestone: 0.20
Component: mythtv | Version: 0.20
Severity: medium | Resolution:
--------------------+-------------------------------------------------------

Comment(by adeffs.mythtv@gmail.com):

I'm seeing this too on firewire recordings on InHD and MTVHD.
mplayer's identify feature shows only one audio PID for these files (ac3,
2 channel).

I've attached the log output (-v all) for one of my attempts.

--
Ticket URL: <http://svn.mythtv.org/trac/ticket/2077#comment:8>
MythTV <http://svn.mythtv.org/trac>
MythTV
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-commits
Re: Ticket #2077: transcoding fails with "Deadlock detected. One buffer is full when ..." for some DVB recordings [ In reply to ]
#2077: transcoding fails with "Deadlock detected. One buffer is full when ..."
for some DVB recordings
--------------------+-------------------------------------------------------
Reporter: seb | Owner: ghaushe
Type: defect | Status: assigned
Priority: minor | Milestone: unknown
Component: mythtv | Version: head
Severity: medium | Resolution:
--------------------+-------------------------------------------------------
Changes (by janne):

* version: 0.20 => head
* milestone: 0.20 => unknown


--
Ticket URL: <http://svn.mythtv.org/trac/ticket/2077#comment:9>
MythTV <http://svn.mythtv.org/trac>
MythTV
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-commits
Re: Ticket #2077: transcoding fails with "Deadlock detected. One buffer is full when ..." for some DVB recordings [ In reply to ]
#2077: transcoding fails with "Deadlock detected. One buffer is full when ..."
for some DVB recordings
--------------------+-------------------------------------------------------
Reporter: seb | Owner: ghaushe
Type: defect | Status: assigned
Priority: minor | Milestone: unknown
Component: mythtv | Version: head
Severity: medium | Resolution:
--------------------+-------------------------------------------------------

Comment(by anonymous):

I'm seeing this as well on firewire recordings of MHD.

--
Ticket URL: <http://svn.mythtv.org/trac/ticket/2077#comment:10>
MythTV <http://svn.mythtv.org/trac>
MythTV
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-commits
Re: Ticket #2077: transcoding fails with "Deadlock detected. One buffer is full when ..." for some DVB recordings [ In reply to ]
#2077: transcoding fails with "Deadlock detected. One buffer is full when ..."
for some DVB recordings
--------------------+-------------------------------------------------------
Reporter: seb | Owner: ghaushe
Type: defect | Status: assigned
Priority: minor | Milestone: unknown
Component: mythtv | Version: head
Severity: medium | Resolution:
Mlocked: 0 |
--------------------+-------------------------------------------------------

Comment(by cbrabandt@yahoo.com):

This ticket is over a year old. Does anyone have a fix or workaround yet?
The bug is still present in the current Mythdora 4 distro and every
version of SVN I've ever compiled.

I find that mythtranscode completes successfully, if I don't use the -l
cutlist option:

[mythtv@mythbackend1 recordings]$ mythtranscode -c 1061 -s "2007-06-14
23:34:00" -o test.mpg --showprogress --mpeg2
2007-07-07 11:48:24.117 Using runtime prefix = /usr
2007-07-07 11:48:24.218 New DB connection, total: 1
2007-07-07 11:48:24.253 Enabled verbose msgs: important
2007-07-07 11:48:24.268 New DB connection, total: 2
Mux rate: 20.28 Mbit/s
2007-07-07 11:48:29.368 1.8% complete
...
...
2007-07-07 11:54:44.362 99.7% complete
[mythtv@mythbackend1 recordings]$

However, with a cutlist, it fails:

[mythtv@mythbackend1 recordings]$ mythtranscode -c 1061 -s "2007-06-14
23:34:00" -o test.mpg -l --showprogress --mpeg2
2007-07-07 11:43:46.070 Using runtime prefix = /usr
2007-07-07 11:43:46.114 New DB connection, total: 1
2007-07-07 11:43:46.128 Enabled verbose msgs: important
2007-07-07 11:43:46.197 New DB connection, total: 2
2007-07-07 11:43:51.873 3.1% complete
...
...
...
2007-07-07 11:46:02.206 90.6% complete
2007-07-07 11:46:07.089 Deadlock detected. One buffer is full when
the other is empty! Aborting

The recordings are HD mpeg2 transport streams captured from KWorld 115 and
Dvico Fusion cards, and firewire.

Is there anything I can do to help the devs resolve this bug (video
samples, etc.)?

--
Ticket URL: <http://svn.mythtv.org/trac/ticket/2077#comment:11>
MythTV <http://svn.mythtv.org/trac>
MythTV
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-commits
Re: Ticket #2077: transcoding fails with "Deadlock detected. One buffer is full when ..." for some DVB recordings [ In reply to ]
#2077: transcoding fails with "Deadlock detected. One buffer is full when ..."
for some DVB recordings
---------------------------+------------------------------------------------
Reporter: seb | Owner: ghaushe
Type: defect | Status: assigned
Priority: minor | Milestone: unknown
Component: mythtranscode | Version: head
Severity: medium | Resolution:
Mlocked: 0 |
---------------------------+------------------------------------------------
Changes (by paulh):

* component: mythtv => mythtranscode


--
Ticket URL: <http://svn.mythtv.org/trac/ticket/2077#comment:12>
MythTV <http://svn.mythtv.org/trac>
MythTV
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-commits
Re: Ticket #2077: transcoding fails with "Deadlock detected. One buffer is full when ..." for some DVB recordings [ In reply to ]
#2077: transcoding fails with "Deadlock detected. One buffer is full when ..."
for some DVB recordings
---------------------------+------------------------------------------------
Reporter: seb | Owner: ghaushe
Type: defect | Status: accepted
Priority: minor | Milestone: unknown
Component: mythtranscode | Version: head
Severity: medium | Resolution:
Mlocked: 0 |
---------------------------+------------------------------------------------

Comment(by anonymous):

This is the same bug as 3274. I run into this bug on *all* transcodes on
material captured via firewire. I have added a message to ticket 3274,
and provided two short mpeg excerpts that cause this crash, at:

http://idisk.mac.com/r.mcnamara-Public/?view=web

This bug has been around for over a year? Can we get an update?

--
Ticket URL: <http://svn.mythtv.org/trac/ticket/2077#comment:13>
MythTV <http://svn.mythtv.org/trac>
MythTV
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-commits
Re: Ticket #2077: transcoding fails with "Deadlock detected. One buffer is full when ..." for some DVB recordings [ In reply to ]
#2077: transcoding fails with "Deadlock detected. One buffer is full when ..."
for some DVB recordings
---------------------------+------------------------------------------------
Reporter: seb | Owner: ghaushe
Type: defect | Status: accepted
Priority: minor | Milestone: unknown
Component: mythtranscode | Version: head
Severity: medium | Resolution:
Mlocked: 0 |
---------------------------+------------------------------------------------

Comment(by anonymous):

yeah--way over a year! It was a year when I bumped into it. I've given
up on mythtranscode. I use mythweb to save the thumbnail--except I don't
save it but rather just copy the filename text from the save dialog box so
I may paste the .mpg filename into HDTVtoMPEG2.exe. It runs under wine
but I needed to get a special version from the developer on
www.avsforum.com that would recognize transport stream files with .mpg
extensions.

Well--that's my workaround anyway. Not too convenient and no batch mode--
though you could probably use avidemux or some other ap too but avidemux
doesn't handle transport streams very well and tends to lose A/V sync.

-Cal (c b r a b a n d t AT y a h o o PERIOD c o m)

--
Ticket URL: <http://svn.mythtv.org/trac/ticket/2077#comment:14>
MythTV <http://svn.mythtv.org/trac>
MythTV
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-commits
Re: Ticket #2077: transcoding fails with "Deadlock detected. One buffer is full when ..." for some DVB recordings [ In reply to ]
#2077: transcoding fails with "Deadlock detected. One buffer is full when ..."
for some DVB recordings
---------------------------+------------------------------------------------
Reporter: seb | Owner: ghaushe
Type: defect | Status: accepted
Priority: minor | Milestone: unknown
Component: mythtranscode | Version: head
Severity: medium | Resolution:
Mlocked: 0 |
---------------------------+------------------------------------------------

Comment(by anonymous):

I'm very sorry that you've been having problems with mythtranscode. If you
contact customer services we can arrange a refund.

--
Ticket URL: <http://svn.mythtv.org/trac/ticket/2077#comment:15>
MythTV <http://svn.mythtv.org/trac>
MythTV
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-commits
Re: Ticket #2077: transcoding fails with "Deadlock detected. One buffer is full when ..." for some DVB recordings [ In reply to ]
#2077: transcoding fails with "Deadlock detected. One buffer is full when ..."
for some DVB recordings
---------------------------+------------------------------------------------
Reporter: seb | Owner: ghaushe
Type: defect | Status: accepted
Priority: minor | Milestone: unknown
Component: mythtranscode | Version: head
Severity: medium | Resolution:
Mlocked: 0 |
---------------------------+------------------------------------------------

Comment(by TugBoat):

Besides affecting MythArchive, I've bumped into this problem with attempts
at lossless transcoding to get rid of ads and save space. This bug makes
MythArchive useless with DVB (MPEG-2 TS) recordings, which represent the
majority on our HD system, because MythArchive can't take the cuts out and
nor fix a/v sync before it tries encoding.

It happens on both our FC6 and FC7 slave backends. If mythtranscode uses
the other encoders, it works fine.

It is a serious bug.

--
Ticket URL: <http://svn.mythtv.org/trac/ticket/2077#comment:16>
MythTV <http://svn.mythtv.org/trac>
MythTV
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-commits
Re: Ticket #2077: transcoding fails with "Deadlock detected. One buffer is full when ..." for some DVB recordings [ In reply to ]
#2077: transcoding fails with "Deadlock detected. One buffer is full when ..."
for some DVB recordings
---------------------------+------------------------------------------------
Reporter: seb | Owner: ghaushe
Type: defect | Status: accepted
Priority: minor | Milestone: unknown
Component: mythtranscode | Version: head
Severity: medium | Resolution:
Mlocked: 0 |
---------------------------+------------------------------------------------

Comment(by robert.mcnamara@gmail.com):

While we (hopefully) work towards a more permanent solution, I have found
a workaround that basically works. I have written a script that demuxes
and remuxes the broken recordings, resulting in a file that does, finally,
work with myth's lossless transcode. I've put it on my talk page at the
mythtv wiki:

http://www.mythtv.org/wiki/index.php/User_talk:Iamlindoro

This is the first solution that I know of that doesn't use a Windows
program through Wine. ProjectX has never worked for me, but this appears
to work consistently. Read the comments on the script carefully. You
will need to compile one tiny prerequisite, and will also need ffmpeg.
The script should be set up as a user job, and I personally run in on all
recordings from my Firewire source. There is no quality loss involved as
there is no real transcoding, just demux/remux. I use mythtranscode to
rebuild the index of the file (mythcommflag --rebuild doesn't work
properly) but no quality is lost there. The resultant file can be marked
and losslessly transcoded successfully. Obviously the elegant solution is
to get mythtranscode fixed, but this is working for me in the meantime.

Geoff-- Any chance you might be able to look at this soon?

--
Ticket URL: <http://svn.mythtv.org/trac/ticket/2077#comment:17>
MythTV <http://svn.mythtv.org/trac>
MythTV
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-commits
Re: Ticket #2077: transcoding fails with "Deadlock detected. One buffer is full when ..." for some DVB recordings [ In reply to ]
#2077: transcoding fails with "Deadlock detected. One buffer is full when ..."
for some DVB recordings
---------------------------+------------------------------------------------
Reporter: seb | Owner: ghaushe
Type: defect | Status: accepted
Priority: minor | Milestone: unknown
Component: mythtranscode | Version: head
Severity: medium | Resolution:
Mlocked: 0 |
---------------------------+------------------------------------------------

Comment(by J.Pilk@tesco.net):

See also my post on Myth-users; it includes a less-polished script for
stripping off all but one audio channel that I have used to pre-process
recordings before creating the cutlist. It may be quicker than the one
above. http://www.gossamer-threads.com/lists/mythtv/users/320076

--
Ticket URL: <http://svn.mythtv.org/trac/ticket/2077#comment:18>
MythTV <http://svn.mythtv.org/trac>
MythTV
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-commits
Re: Ticket #2077: transcoding fails with "Deadlock detected. One buffer is full when ..." for some DVB recordings [ In reply to ]
#2077: transcoding fails with "Deadlock detected. One buffer is full when ..."
for some DVB recordings
---------------------------+------------------------------------------------
Reporter: seb | Owner: ghaushe
Type: defect | Status: accepted
Priority: minor | Milestone: unknown
Component: mythtranscode | Version: head
Severity: medium | Resolution:
Mlocked: 0 |
---------------------------+------------------------------------------------

Comment(by jarb1@uk2.net):

I ran into this problem recently with some DVB recordings from BBC
multiplex on freeview.

Rather than run scripts separately, I wanted mytharchive just to work and
found that projectX when installed and enabled in mytharchive settings
worked a treat.

Use the guide for Mythburn
http://www.mythtv.org/wiki/index.php/MythBurnInstallation#Java

I could see no other way in Myth0.21 to run additional commands such as
mencoder to "clean" the mpeg file before it hit mythtranscode.

--
Ticket URL: <http://svn.mythtv.org/trac/ticket/2077#comment:19>
MythTV <http://www.mythtv.org/>
MythTV
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-commits
Re: Ticket #2077: transcoding fails with "Deadlock detected. One buffer is full when ..." for some DVB recordings [ In reply to ]
#2077: transcoding fails with "Deadlock detected. One buffer is full when ..."
for some DVB recordings
---------------------------+------------------------------------------------
Reporter: seb | Owner: ghaushe
Type: defect | Status: accepted
Priority: minor | Milestone: unknown
Component: mythtranscode | Version: head
Severity: medium | Resolution:
Mlocked: 0 |
---------------------------+------------------------------------------------

Comment(by robert.mcnamara@gmail.com):

Here is a long (3 Minute, 235 MB) sample of a channel that exhibits this
problem. In living with this bug over the past year or so, I've learned
some things anecdotally. For me, this problem manifests on certain
channels without fail. For example, Universal HD, Discovery HD, HBO HD,
etc. *always* fails lossless transcode. Further, this problem seems to be
most evident on HD channels.

Sample:
http://www.fecitfacta.com/1739_20080928094700.mpg

There is a Windows Tool called MPEG2Cut2 that lossless cuts affected files
properly. It's GPL and runs well in WINE, so it's a workaround for now.
Unfortunately, it only cuts at GOP borders and not frame-level, but it's
close enough in most cases. There are occasional issues with audio sync,
but it's the best option I've found thus far. I wonder whether any of the
stream correction code could be leveraged in mythtranscode to overcome
this.

The executable is here:
http://download.videohelp.com/download/mpg2cut2_7701_libmmd_mpalib.zip

and the source is here:
http://www.dvbsupport.net/download/index.php?act=download&id=98

The source is fairly nicely commented, and the file
"__Fault_Tolerance_SUBALLOC.txt" may be of some use/inspiration here.

--
Ticket URL: <http://svn.mythtv.org/trac/ticket/2077#comment:20>
MythTV <http://www.mythtv.org/>
MythTV
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-commits
Re: Ticket #2077: transcoding fails with "Deadlock detected. One buffer is full when ..." for some DVB recordings [ In reply to ]
#2077: transcoding fails with "Deadlock detected. One buffer is full when ..."
for some DVB recordings
---------------------------+------------------------------------------------
Reporter: seb | Owner: ghaushe
Type: defect | Status: accepted
Priority: minor | Milestone: unknown
Component: mythtranscode | Version: head
Severity: medium | Resolution:
Mlocked: 0 |
---------------------------+------------------------------------------------

Comment(by robert.mcnamara@gmail.com):

I have added a diff that brings the version of replex included in
mythtranscode up to the newest version. This bug appears to spring from a
problem with the current version in trunk. This updates mythreplex to the
newest version and makes some of the changes necessary for mythtranscode
to hook into it. Someone with better knowledge of the way that
mpeg2fix.cpp and replex interact will have to finish the work, though.
This patch WILL break trunk compiling as the work is not finished, so
don't go compiling it if you don't intend to help finish the work.
Specifically, mpeg2fix.cpp will not compile because the arguments for the
remuxing stuff have changed.

--
Ticket URL: <http://svn.mythtv.org/trac/ticket/2077#comment:21>
MythTV <http://www.mythtv.org/>
MythTV
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-commits
Re: Ticket #2077: transcoding fails with "Deadlock detected. One buffer is full when ..." for some DVB recordings [ In reply to ]
#2077: transcoding fails with "Deadlock detected. One buffer is full when ..."
for some DVB recordings
---------------------------+------------------------------------------------
Reporter: seb | Owner: ghaushe
Type: defect | Status: accepted
Priority: minor | Milestone: unknown
Component: mythtranscode | Version: head
Severity: medium | Resolution:
Mlocked: 0 |
---------------------------+------------------------------------------------

Comment(by robert.mcnamara@gmail.com):

Thanks to some big help from Gnome42 in #mythtv, this syncs Myth's version
of replex to the latest available. It unfortunately does *not* solve this
bug (although it does appear to introduce some AC3 fixing routines which
is kind of nice). For anyone looking seriously to fix this bug, the
primary issue appears to be broken (negative) PTS's in the stream. I have
found some references in ancient discussions about a possibly implementing
a "big hammer" solution to this kind of problem where, after a certain
number of PTS discrepancies, mythtranscode would give up and keep a
running count instead. As it stands, mythtranscode simply gives up after
20 unfixable PTS discrepancies.

Geoff, any chance of your coming out of retirement and taking a quick look
at this one? If you've moved on from myth, no worries, but any chance of
touching base so we can see if someone else can take ownership of this
bug?

--
Ticket URL: <http://svn.mythtv.org/trac/ticket/2077#comment:22>
MythTV <http://www.mythtv.org/>
MythTV
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-commits
Re: Ticket #2077: transcoding fails with "Deadlock detected. One buffer is full when ..." for some DVB recordings [ In reply to ]
#2077: transcoding fails with "Deadlock detected. One buffer is full when ..."
for some DVB recordings
---------------------------+------------------------------------------------
Reporter: seb | Owner: ghaushe
Type: defect | Status: accepted
Priority: minor | Milestone: unknown
Component: mythtranscode | Version: head
Severity: medium | Resolution:
Mlocked: 0 |
---------------------------+------------------------------------------------

Comment(by wesattexas):

mythtranscode causes mytharchive to fail with result:232[[BR]]
( mythtranscode also fails from command line )

ubuntu 8.04 Hardy Heron[[BR]]
Linux J8 2.6.24-23-generic #1 SMP Thu Nov 27 18:13:46 UTC 2008 x86_64
GNU/Linux[[BR]]
Silicon Dust HDTV capture device.[[BR]]
All My recordings are from HDTV.[[BR]]
Most all have the same problem as this one.[[BR]]

Saved one hour program from PBS[[BR]]
1131_20090108215900.mpg 5.9 GB MPEG video Thu 08 Jan 2009 11:00:01 PM
CST[[BR]]

wes@J8:/video/longterm$ mythtranscode -m -c 1131 -s 2009-01-08T21:59:00 -o
/video/mytharchivetemp/work/1/newfile.mpg[[BR]]
2009-01-30 02:18:50.752 Using runtime prefix = /usr, libdir =
/usr/lib[[BR]]
2009-01-30 02:18:50.811 Empty LocalHostName.[[BR]]
2009-01-30 02:18:51.040 New DB connection, total: 1[[BR]]
2009-01-30 02:18:51.105 Closing DB connection named 'DBManager0'[[BR]]
2009-01-30 02:18:51.105 Enabled verbose msgs: important[[BR]]
2009-01-30 02:18:51.122 New DB connection, total: 2[[BR]]
2009-01-30 02:18:51.716 Deadlock detected. One buffer is full when
the other is empty! Aborting[[BR]]

on sudo apt-get install mythtv mytharchive,[[BR]]
mythtv and mytharchive both claim to be already the newest version.[[BR]]

I will need some help if any one needs mythtv and mythtranscode [[BR]]
version info or log info, but this doesn't look version specific.[[BR]]
I found only a few references and no info on a solution for this
error,[[BR]]
but the errors seem go back over several years (2006) [[BR]]
and several flavors of MythTV/mythtranscode.[[BR]]
__________________
regards, Wes

--
Ticket URL: <http://svn.mythtv.org/trac/ticket/2077#comment:23>
MythTV <http://www.mythtv.org/>
MythTV
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-commits
Re: Ticket #2077: transcoding fails with "Deadlock detected. One buffer is full when ..." for some DVB recordings [ In reply to ]
#2077: transcoding fails with "Deadlock detected. One buffer is full when ..."
for some DVB recordings
---------------------------+------------------------------------------------
Reporter: seb | Owner:
Type: defect | Status: new
Priority: minor | Milestone: unknown
Component: mythtranscode | Version: head
Severity: medium | Resolution:
Mlocked: 0 |
---------------------------+------------------------------------------------
Changes (by stuartm):

* owner: ghaushe =>
* status: accepted => new


--
Ticket URL: <http://svn.mythtv.org/trac/ticket/2077#comment:24>
MythTV <http://www.mythtv.org/>
MythTV
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-commits

1 2 3  View All