Opened 5 years ago

Closed 5 years ago

#12147 closed Bug Report - General (Duplicate)

0.27/fixes mythtranscode mpeg lossless transcode fails on certain files

Reported by: tobias.powalowski@… Owned by:
Priority: minor Milestone: unknown
Component: MythTV - Mythtranscode Version: 0.27-fixes
Severity: medium Keywords:
Cc: Ticket locked: no

Description

Hi, some recordings are not lossless convertable. 0.25/fixes removed audio completely 0.27/fixes stops conversion with this log:

2014-05-22 09:26:44.288020 I [375/386] SendMessage mythcorecontext.cpp:423 (ConnectCommandSocket) - MythCoreContext: Connecting to backend server: 10.89.64.70:6543 (try 1 of 1)
2014-05-22 09:26:44.289449 I [375/386] SendMessage mythcorecontext.cpp:1241 (CheckProtoVersion) - Using protocol version 77
2014-05-22 09:26:44.299195 I [375/375] CoreContext avformatdecoder.cpp:1898 (ScanStreams) - AFD: codec MP3 has 0 channels
2014-05-22 09:26:44.299264 I [375/375] CoreContext avformatdecoder.cpp:2378 (OpenAVCodec) - AFD: Opened codec 0xa3c060, id(MP3) type(Audio)
2014-05-22 09:26:44.300699 I [375/375] CoreContext avformatdecoder.cpp:2378 (OpenAVCodec) - AFD: Opened codec 0xa3b600, id(MPEG2VIDEO) type(Video)
2014-05-22 09:26:44.300838 N [375/375] CoreContext audioplayer.cpp:164 (ReinitAudio) - AudioPlayer: Enabling Audio
2014-05-22 09:26:44.351882 N [375/375] CoreContext audioplayer.cpp:164 (ReinitAudio) - AudioPlayer: Enabling Audio
2014-05-22 09:26:44.351906 N [375/375] CoreContext transcode.cpp:111 (GetProfile) - Transcode: Looking for autodetect profile: Automatisch erkennen aus 480i
2014-05-22 09:26:44.356115 E [375/375] CoreContext recordingprofile.cpp:164 (addSelection) - SampleRate: Attempted to add a rate 32000 Hz, which is not in the list of allowed rates.
2014-05-22 09:26:44.356801 N [375/375] CoreContext transcode.cpp:136 (GetProfile) - Transcode: Using autodetect profile: MPEG2
2014-05-22 09:26:44.356821 N [375/375] CoreContext transcode.cpp:648 (TranscodeFile) - Switching to MPEG-2 transcoder.
2014-05-22 09:26:44.362875 I [375/375] CoreContext mpeg2fix.cpp:738 (InitAV) - Opening /home/mythtv/1217_20140521215000.mpg
2014-05-22 09:26:44.375035 I [375/375] CoreContext mpeg2fix.cpp:77 (my_av_print) - max_analyze_duration 5000000 reached at 5000000 microseconds
2014-05-22 09:26:44.375278 I [375/375] CoreContext mpeg2fix.cpp:77 (my_av_print) - start time is not set in estimate_timings_from_pts
2014-05-22 09:26:44.376374 I [375/375] CoreContext mpeg2fix.cpp:77 (my_av_print) - PES packet size mismatch
2014-05-22 09:26:44.378329 I [375/375] CoreContext mpeg2fix.cpp:77 (my_av_print) - Input #0, mpegts, from '/home/mythtv/1217_20140521215000.mpg':
2014-05-22 09:26:44.378336 I [375/375] CoreContext mpeg2fix.cpp:77 (my_av_print) -   Duration: N/A, bitrate: N/A
2014-05-22 09:26:44.378345 I [375/375] CoreContext mpeg2fix.cpp:77 (my_av_print) -     Stream #0:0[0x20](deu): Subtitle: dvb_teletext
2014-05-22 09:26:44.378359 I [375/375] CoreContext mpeg2fix.cpp:77 (my_av_print) -     Stream #0:1[0x8ff]: Video: mpeg2video, 90k tbn
2014-05-22 09:26:44.378365 I [375/375] CoreContext mpeg2fix.cpp:77 (my_av_print) -     Stream #0:2[0x900](deu): Audio: mp3, 0 channels
2014-05-22 09:26:44.378373 E [375/375] CoreContext mpeg2fix.cpp:801 (InitAV) - Skipping unsupported codec 3 on stream 0
2014-05-22 09:26:44.378376 E [375/375] CoreContext mpeg2fix.cpp:783 (InitAV) - Skipping invalid audio stream: 2
2014-05-22 09:26:44.380260 I [375/375] CoreContext mpeg2fix.cpp:1946 (Start) - #1 PTS:21:50:00.017 Delta: 0.0ms queue: 1
2014-05-22 09:26:44.393445 I [375/393] MPEG2Replex replex/multiplex.c:828 (init_multiplex) - Mux rate: 15,25 Mbit/s
2014-05-22 09:26:44.424119 I [375/376] Logger logging.cpp:474 (initialTimeout) - Added logging to mythlogserver at TCP:35327
2014-05-22 09:27:02.180574 N [375/375] CoreContext mpeg2fix.cpp:1649 (DecodeToFrame) - Frame 3 > 2.  Corruption likely at pos: 3567179492
2014-05-22 09:27:02.188391 I [375/375] CoreContext mpeg2fix.cpp:1742 (InsertFrame) - Inserting 4 I-Frames after #2 
2014-05-22 09:27:02.188520 E [375/375] CoreContext replex/ringbuffer.c:103 (ring_write) - ringbuffer overflow -1<6859 0
2014-05-22 09:27:02.188528 E [375/375] CoreContext mpeg2fix.cpp:711 (AddFrame) - Ring buffer overflow 0
2014-05-22 09:27:02.189306 E [375/375] CoreContext main.cpp:711 (main) - Transcoding /home/mythtv/1217_20140521215000.mpg failed
2014-05-22 09:27:02.190196 N [375/375] CoreContext main.cpp:1077 (CompleteJob) - Deleting /home/mythtv/1217_20140521215000.mpg.tmp
2014-05-22 09:27:02.192813 N [375/375] CoreContext main.cpp:736 (transUnlink) - Requesting delete for file 'myth://Default@10.89.64.70:6543/1217_20140521215000.mpg.tmp'.
2014-05-22 09:27:02.194192 I [375/375] CoreContext mythcontext.cpp:1194 (~MythContext) - Waiting for threads to exit.

ffmpeg -i reports this:

[mpegts @ 0x220d260] PES packet size mismatch
Input #0, mpegts, from '1217_20140521215000.mpg':
  Duration: 01:44:58.47, start: 78599.383578, bitrate: 4661 kb/s
  Program 1 
    Stream #0:0[0x20](deu): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
    Stream #0:1[0x8ff]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv), 720x576 [SAR 64:45 DAR 16:9], max. 15000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:2[0x900](deu): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 185 kb/s (clean effects)
  No Program
    Stream #0:3[0x901](eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 185 kb/s (clean effects)
    Stream #0:4[0x903](deu): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, 5.1(side), fltp, 384 kb/s (clean effects)

This error happens if cutlists are used and also if not.

Anything else you need? Thanks for your help.

Attachments (3)

record2-0x0000,0x0020,0x0065,0x0200,0x0201,0x0203,0x1fff.txt (32.7 KB) - added by tobias.powalowski@… 5 years ago.
pidprint of broken second recording
record2-0x0000,0x0020,0x0065,0x0200,0x0201,0x0203,0x1fff.2.txt (32.7 KB) - added by tobias.powalowski@… 5 years ago.
pidprint of broken second recording
record1-0x0000,0x0020,0x006d,0x0900,0x0901,0x0903,0x1fff.txt (3.1 KB) - added by tobias.powalowski@… 5 years ago.
pidprint of broken first recording

Download all attachments as: .zip

Change History (9)

comment:2 Changed 5 years ago by Raymond Wagner

Milestone: 0.27.1unknown
Priority: majorminor

Resetting defaults. It looks like the audio is being misidentified as MP3.

comment:6 Changed 5 years ago by tobias.powalowski@…

Changed 5 years ago by tobias.powalowski@…

pidprint of broken second recording

Changed 5 years ago by tobias.powalowski@…

pidprint of broken second recording

Changed 5 years ago by tobias.powalowski@…

pidprint of broken first recording

comment:7 Changed 5 years ago by JYA

Status: newinfoneeded_new

can you try calling mythtranscode with -O FFMPEGTS=1 and report if it fixes your problem?

comment:8 Changed 5 years ago by tobias.powalowski@…

This does not fix the issue. Still the same. Already tried this with dekarl.

comment:9 Changed 5 years ago by JYA

Status: infoneeded_newnew

comment:10 Changed 5 years ago by JYA

Resolution: Duplicate
Status: newclosed

Same resolution as #12153

-O FFMPEGTS=1 wasn't actually used by mythtranscode.. now it is

Note: See TracTickets for help on using tickets.