AVCHD AC3 Audio

Here for general support for B series TVs, request and problem solve area.
Post Reply

Albertux
Posts: 2
Joined: Wed Jan 09, 2013 11:09 pm

AVCHD AC3 Audio

Post by Albertux » Wed Jan 09, 2013 11:32 pm

I've a little problem playing the video recorded by my full hd camcorder (Sony CX130) on my LE32B650 tv (FW T-CHL7DEUC-2005.0): I'm able to watch the video but I'm not able to listen to the audio (I use the tv speakers, I don't have any external system). I've the problem playing the video both from USB and from NFS mount.
The video format produced by the camcorder is AVCHD (H264+AC3 in a TS container) as repoted by ffmpeg on my computer:

Code: Select all

Input #0, mpegts, from 'arrivo-states.ts':
  Duration: 00:00:33.28, start: 1.000033, bitrate: 16561 kb/s
  Program 1 
    Stream #0:0[0x1011]: Video: h264 (High) (HDMV / 0x564D4448), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x1100]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, s16, 256 kb/s
    Stream #0:2[0x1200]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
I've tried to debug the problem via ex-link console. I report below the output during the video playing:

Code: Select all

                ======> CMediaControlMovie: SetMedia  = file:///dtv/usb/sda/nfs/192.168.1.249/_mnt_HD_HD_a2_/arrivo-states.ts 

[GetFileSize] stat failed 
[CopyCaptionFileToRamDisk:3131] Read File Create failed 
[CMovieCore] SetDisplaySize In
[GetMediaTypeInfoUsingFFMpeg] OPEN SUCCESS 
===============[DUMP FORMAT]============== 
 
 * [FFMPEG LIBRARY] Ver. 2008/11/24(^__^)     modified by C.Lucifer (0.4) *
 Input #0, mpegts, from '/dtv/usb/sda/nfs/192.168.1.249/_mnt_HD_HD_a2_/arrivo-states.ts':
  Duration: 00:00:33.24, start: 1.040000, bitrate: 16581 kb/s
  Program 1 
    Stream #0.0[0x1011]: Video: h264, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 25.00 tb(r)
    Stream #0.1[0x1100]: Audio: 0x0000, 48000 Hz, stereo, s16, 256 kb/s
========================================= 
[CMovieCore] AudioFormatToTD In
[CMovieCore] AudioFormatToTD In
[CFileMovieCore] Open In
[CMovieCore] VideoFormatToTD In
[CMovieCore] AudioFormatToTD In
[CMovieCore] ContainerTypeToTD In
[CMovieTDIF Creator] Movie m_Alarm Create !!!!!!!
[MovieTDIF] Open In
[MovieTDIF] Initialize In
Connect Sem Create!!
###########################################################################
Container Format: TD_CONTAINER_TS Vidoe Format: TD_VIDEO_FORMAT_H264, Audio Format: TD_AUDIO_FORMAT_AC3, 
PacketSize: 192, totalSize = 68911104, totalTime = 33000
hResolution: 1920, vResolution 1080, VideoStreamFrame = 25.000000
###########################################################################
[MovieTDIF] Disconnect In
[MovieTDIF] Close In
[MovieTDIF] Close Out
[CFileMovieCore] Play In
[MovieTDIF] Connect In
###########################################################################
VideoStreamId = 0x1011, AudioStreamId = 0x2
###########################################################################
[MovieTDIF] AVDecoderConnect In
[MovieTDIF] AVDecoderDisconnect In

        >>[ERR:TDsChelseaMpeg.cpp] Disconnect():722  - SDAL ERROR [-1] !!!

### SdAVDec_DemuxAllocate, m_bPumping = 0, mContainerType = 4
Source : 4864  Video ID : 0 
[MovieTDIF] InstallUnmuteCallback In
[MovieTDIF] InstallResChangeCallback In

        >>[ERR:TDsChelseaAudioProcessor.cpp] Disconnect():536  - SDAL ERROR [-1] !!!

Source : 4864  Window Type : 0  Back End Decoder Type : 0 
[MovieTDIF] Play In
[line : 542] Play Start
[Play, 559] TDiMpeg::StartAudioDecoding
[MovieTDIF] Play Out
[CMovieCore] CanSeek In

 >>>>>>>> ResChangedCallback >>>>>>>>>> 
@@@@[VideoInfo.hResolution = 1920, VideoInfo.vResolution = 1080, VideoInfo.bProgressScan = 0]

SetVideo_READING = 50!!!

 >>>>>>>> UnmuteCallback >>>>>>>>>> 
@@@@[VideoInfo.hResolution = 1920, VideoInfo.vResolution = 1080, VideoInfo.bProgressScan = 0], VideoInfo.frameRate = 25000

SetVideo_READING = 50!!!
##########################
SEEK = YES 
### avdec trick mode = 1, feeder trick mode = 1
TRICK = YES 
##########################

 >>>>>>>> File End Callback >>>>>>>>>> 
[CFileMovieCore] EndPlay In
[CMovieCore] CanSeek In
[CFileMovieCore] Stop In
[MovieTDIF] InstallResChangeCallback In
[MovieTDIF] Stop In
[MovieTDIF] Stop Out
[MovieTDIF] InstallUnmuteCallback In
[MovieTDIF] Disconnect In
[MovieTDIF] AVDecoderDisconnect In
[CFileMovieCore] Close In
[CMovieCore] Close In
[MovieTDIF] Close In
[MovieTDIF] Close Out
[CMovieCore] CleanParam In
Movie Connectsem Destory!!
Movie m_Alarm Destory!!
As far as i know both H264 and AC3 are supported by my tv and I don't see any relevant error message.
What could cause my audio problem? Is it possible to play AC3 audio usign the tv speakers?

Albertux
Posts: 2
Joined: Wed Jan 09, 2013 11:09 pm

Re: AVCHD AC3 Audio

Post by Albertux » Fri Jan 11, 2013 12:38 am

I've decide to try a different way, change the container from M2TS to MKV with the command below:

Code: Select all

ffmpeg -i 00132.MTS -scodec copy -acodec copy -vcodec copy -f matroska 00132.MKV
Now the tv are able to play both the audio and the video streams.
But I don't understand why it plays. The audio stream is the same... I've used the "copy codec"!

After remuxing, a new problem is raised: the tv doesn't show the subtitles from the MKV file.
Have I missed any ffmpeg options?

Here is the MVK info:

Code: Select all

+ EBML head
|+ EBML version: 1
|+ EBML read version: 1
|+ EBML maximum ID length: 4
|+ EBML maximum size length: 8
|+ Doc type: matroska
|+ Doc type version: 2
|+ Doc type read version: 2
+ Segment, size 9000952
|+ Seek head (subentries will be skipped)
|+ EbmlVoid (size: 148)
|+ Segment information
| + Timecode scale: 1000000
| + Muxing application: Lavf53.32.100
| + Writing application: Lavf53.32.100
| + Segment UID: 0x0e 0xb1 0x01 0xae 0xf2 0xea 0x31 0xaa 0x9f 0xec 0xcb 0x7a 0xb7 0xfc 0x47 0x01
| + Duration: 4.744s (00:00:04.744)
|+ Segment tracks
| + A track
|  + Track number: 1 (track ID for mkvmerge & mkvextract: 0)
|  + Track UID: 1
|  + Lacing flag: 0
|  + Language: und
|  + Codec ID: V_MPEG4/ISO/AVC
|  + Track type: video
|  + Default duration: 20.000ms (50.000 frames/fields per second for a video track)
|  + Video track
|   + Pixel width: 1920
|   + Pixel height: 1080
|   + Display width: 1920
|   + Display height: 1080
|   + Display unit: 3
|  + CodecPrivate, length 114 (h.264 profile: High @L4.0)
| + A track
|  + Track number: 2 (track ID for mkvmerge & mkvextract: 1)
|  + Track UID: 2
|  + Lacing flag: 0
|  + Language: und
|  + Codec ID: A_AC3
|  + Track type: audio
|  + Audio track
|   + Channels: 2
|   + Sampling frequency: 48000
| + A track
|  + Track number: 3 (track ID for mkvmerge & mkvextract: 2)
|  + Track UID: 3
|  + Lacing flag: 0
|  + Language: und
|  + Codec ID: S_HDMV/PGS
|  + Track type: subtitles
|+ Tags
| + Tag
|  + Targets
|  + Simple
|   + Name: ENCODER
|   + String: Lavf53.32.100
|+ Cluster
Thanks,
Albertux.

User avatar
juusso
SamyGO Moderator
Posts: 10098
Joined: Sun Mar 07, 2010 6:20 pm

Re: AVCHD AC3 Audio

Post by juusso » Fri Jan 11, 2013 8:37 am

Yes, you`re on the right way. This is because of audio identifiers. TV selects to play first audio ID and if here is just ID witout audio, then no sound. This is known since B series PVR recordings.
LE40B653T5W,UE40D6750,UE65Q8C
Have questions? Read SamyGO Wiki, Search on forum first!
FFB (v0.8), FFB for CI+ . Get root on: C series, D series, E series, F series, H series. rooting K series, exeDSP/exeTV patches[C/D/E/F/H]

DO NOT EVER INSTALL FIRMWARE UPGRADE

baco81
Posts: 69
Joined: Fri Apr 30, 2010 8:24 am

Re: AVCHD AC3 Audio

Post by baco81 » Mon Jan 14, 2013 12:09 am

Try to load DCA module first. It solved my problem with audio from TS files not being played.

Good luck!
T-CHL7DEUC-2005.0-v0.24-GMT2-ArFIX2-ADFIX-fwver-ENGFIX

User avatar
geo650
Official SamyGO Developer
Posts: 301
Joined: Wed Oct 07, 2009 12:03 pm

Re: AVCHD AC3 Audio

Post by geo650 » Tue Jan 15, 2013 12:22 am

juuso wrote:Yes, you`re on the right way. This is because of audio identifiers. TV selects to play first audio ID and if here is just ID witout audio, then no sound. This is known since B series PVR recordings.
First audio ID without audio? I can see no big differences:

Code: Select all

TS file                        | MKV file
-------------------------------+------------------------------
Stream #0:0[0x1011]: video     | Track UID: 1 - video
Stream #0:1[0x1100]: audio     | Track UID: 2 - audio
Stream #0:2[0x1200]: subtitles | Track UID: 3 - subtitles
There is only one audio track in both files and audio is the second track after video track.
You mean stream ID is wrong? TS has ID 1 (or 0x1100) and MKV has ID 2. Is this the clue?
I am asking because maybe there is a way to fix somehow PVR recordings made by PVR+.

Post Reply

Return to “[B] Support”