I have a Movie that is a MUXED Mpeg2 transport stream with AC3.
I selected to encode AC3
.AC3
Encode Audio
Audio bitrate 128kbit/s
Sampling 48000Hz
Channels: 5:1
Mode CBR
End with no audio. It appears that the issue is ffmpegX is selecting the wrong PID for the audio. The log shows;
Note that the AUDIO A52(pid=0) and the VIDEO MPEG2(pid=2176)Code:=================================================== Encoding started on Mon Feb 12 08:27:26 EST 2007 MEncoder dev-CVS-060307-04:23-4.0.1 (C) 2000-2006 MPlayer Team Mac OSX static build for ffmpegX FIXME:Hardenabling SSE and SSE2 without detection CPU: Intel (Family: 6, Stepping: 6) CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2 success: format: 0 data: 0x0 - 0x3ae48678 TS file format detected. DEMUX OPEN, AUDIO_ID: 0, VIDEO_ID: -1, SUBTITLE_ID: -2, PROBING UP TO 2000000, PROG: 0 VIDEO MPEG2(pid=2176)AUDIO A52(pid=0) NO SUBS (yet)! PROGRAM N. 0 Opened TS demuxer, audio: 2000(pid 0), video: 10000002(pid 2176)...POS=0, PROBE=2000000 VIDEO: MPEG2 1920x1080 (aspect 3) 29.970 fps 38810.4 kbps (4851.3 kbyte/s) [V] filefmt:29 fourcc:0x10000002 size:1920x1080 fps:29.97 ftime:=0.0334 ==================================================
I open the file in Streamclip and see that the Video PID is 2176, but the Audio AC3 PID is 2177
More of the log;
Code:========================================================================== Opening audio decoder: [liba52] AC3 decoding with liba52 Using SSE optimized IMDCT transform Maybe you are playing a non-interleaved stream/file or the codec failed? For AVI files, try to force non-interleaved mode with the -ni option. Too many video packets in the buffer: (639 in 8411305 bytes). ADecoder init failed :( Opening audio decoder: [hwac3] AC3/DTS pass-through S/PDIF Maybe you are playing a non-interleaved stream/file or the codec failed? For AVI files, try to force non-interleaved mode with the -ni option. ADecoder init failed :( Read DOCS/HTML/en/codecs.html! ========================================================================== A52 sync failed ADecoder init failed :( Requested audio codec family [ac3] (afm=libac3) not available. Enable it at compilation. No accelerated IMDCT transform found Too many video packets in the buffer: (639 in 8411305 bytes). AC3/DTS sync failed ADecoder init failed :( Cannot find codec for audio format 0x2000. Opening video filter: [expand osd=1] Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1 Opening video filter: [scale w=1280 h=720] ==========================================================================
Is there a way to select a PID for the Audio of 2177?
Results 1 to 2 of 2
-
-
More information. mplayer does pickup the correct PID;
Code:TS file format detected. DEMUX OPEN, AUDIO_ID: -1, VIDEO_ID: -1, SUBTITLE_ID: -2, PROBING UP TO 2000000, PROG: 0 VIDEO MPEG2(pid=2176)AUDIO A52(pid=2177) NO SUBS (yet)! PROGRAM N. 1 Opened TS demuxer, audio: 2000(pid 2177), video: 10000002(pid 2176)...POS=188, PROBE=2000000 VIDEO: MPEG2 1920x1080 (aspect 3) 29.970 fps 38810.4 kbps (4851.3 kbyte/s) ========================================================================== Opening audio decoder: [liba52] AC3 decoding with liba52 Using SSE optimized IMDCT transform AC3: 5.1 (3f+2r+lfe) 48000 Hz 384.0 kbit/s Using MMX optimized resampler AUDIO: 48000 Hz, 2 ch, s16le, 384.0 kbit/25.00% (ratio: 48000->192000) Selected audio codec: [a52] afm: liba52 (AC3-liba52) ==========================================================================
./mencoder -ovc xvid -oac copy -xvidencopts bitrate=687 -o test-ac3-480 input.ts
Code:kevin-cossaboons-computer:~/video-encode-cmd-lline kcossabo$ ./mencoder -ovc xvid -oac copy -xvidencopts bitrate=687 -o test-ac3-480 input.ts MEncoder dev-CVS-060307-04:23-4.0.1 (C) 2000-2006 MPlayer Team Mac OSX static build for ffmpegX CPU: Intel (Family: 6, Stepping: 6) FIXME:Hardenabling SSE and SSE2 without detection CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2 success: format: 0 data: 0x0 - 0x3ae48678 TS file format detected. DEMUX OPEN, AUDIO_ID: -1, VIDEO_ID: -1, SUBTITLE_ID: -2, PROBING UP TO 2000000, PROG: 0 VIDEO MPEG2(pid=2176)AUDIO A52(pid=2177) NO SUBS (yet)! PROGRAM N. 1 Opened TS demuxer, audio: 2000(pid 2177), video: 10000002(pid 2176)...POS=188, PROBE=2000000 VIDEO: MPEG2 1920x1080 (aspect 3) 29.970 fps 38810.4 kbps (4851.3 kbyte/s) [V] filefmt:29 fourcc:0x10000002 size:1920x1080 fps:29.97 ftime:=0.0334 ========================================================================== Opening audio decoder: [liba52] AC3 decoding with liba52 Using SSE optimized IMDCT transform AC3: 5.1 (3f+2r+lfe) 48000 Hz 384.0 kbit/s Using MMX optimized resampler AUDIO: 48000 Hz, 2 ch, s16le, 384.0 kbit/25.00% (ratio: 48000->192000) Selected audio codec: [a52] afm: liba52 (AC3-liba52) ========================================================================== xvid: using library version 1.2.-127 (build xvid-1.2.0-dev) Opening video filter: [expand osd=1] Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1 ========================================================================== Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough VDec: vo config request - 1920 x 1080 (preferred colorspace: Mpeg PES) Could not find matching colorspace - retrying with -vf scale... Opening video filter: [scale] The selected video_out device is incompatible with this codec. Try adding the scale filter, e.g. -vf spp,scale instead of -vf spp. VDecoder init failed :( Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2)) ==========================================================================
Similar Threads
-
cannot playback .ts file (seems to be no video pid on it at all)
By perfection in forum Newbie / General discussionsReplies: 6Last Post: 10th Nov 2011, 09:59 -
How to select which PID to play in Mpeg2 TS
By deepp in forum ProgrammingReplies: 0Last Post: 9th Jun 2010, 17:52 -
Just want to change Video PID?
By bits_to_led in forum Video ConversionReplies: 1Last Post: 21st Apr 2010, 19:11 -
Staxrip - says it can't find audio, chek my PID error - how do I correct it
By Emanef in forum DVD RippingReplies: 4Last Post: 24th Aug 2008, 12:21