Hi,
First, this is a great community here. Looking forward to joining and contributing when I can!
A bit of background on what I've been attempting to do. I have a number mpg files that contain what appear to be DTS or PCM_Bluray audio streams. While these files used to work fine when playing through an AVR to decode the audio, the files are now being accessed through Plex and played on Rokus, TVs, Xbox, PCs or any other device that runs Plex. Even on the local PC, these files play well as-is with both video and audio through MPC, but give the "buzz/static" unsupported output through any other media player include WMP, VLC. (If it helps, it looks like ffdShow is in use through MPC, but that's where my knowledge of codecs and codec configuration starts to get a bit stretched).
I want to convert the audio stream to something usable for these other Plex based platforms. Focusing on only one example for now, here is the mediaInfo on the file:
I've tried the following to attempt convertingGeneral
ID : 1 (0x1)
Complete name : K:\m.mpg
Format : MPEG-TS
File size : 7.04 GiB
Duration : 2h 32mn
Overall bit rate mode : Variable
Overall bit rate : 6 588 Kbps
Maximum Overall bit rate : 35.5 Mbps
Video
ID : 4113 (0x1011)
Menu ID : 1 (0x1)
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings, CABAC : Yes
Format settings, ReFrames : 5 frames
Codec ID : 27
Duration : 2h 32mn
Bit rate mode : Variable
Bit rate : 4 625 Kbps
Maximum bit rate : 40.0 Mbps
Width : 1 280 pixels
Height : 536 pixels
Display aspect ratio : 2.40:1
Frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.281
Stream size : 5.03 GiB (72%)
Writing library : x264 core 79 r1332 70f8869
Encoding settings : cabac=1 / ref=5 / deblock=1:0:0 / analyse=0x3:0x133 / me=umh / subme=7 / psy=1 / psy_rd=1.0:0.0 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / chroma_qp_offset=-2 / threads=12 / nr=0 / decimate=1 / mbaff=0 / constrained_intra=0 / bframes=3 / b_pyramid=0 / b_adapt=1 / b_bias=0 / direct=1 / wpredb=1 / wpredp=2 / keyint=250 / keyint_min=25 / scenecut=40 / rc=2pass / mbtree=0 / bitrate=4625 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / pb_ratio=1.30 / aq=1:1.0
Audio
ID : 4352 (0x1100)
Menu ID : 1 (0x1)
Format : PCM
Format settings, Endianness : Big
Format settings, Sign : Signed
Muxing mode : Blu-ray
Codec ID : 128
Duration : 2h 32mn
Bit rate mode : Constant
Bit rate : 1 536 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Stream size : 1.64 GiB (23%)
- Xmedia Recode (video copy, audio -> ac3)
- ffmpeg (video copy, audio -> ac3, PCM, flac)
- eac3to (audio -> ac3, wav, flac)
- mkvmerge (repacked with various outputs from eac3to)
My resulting attempts end up with the same level of playback success as the original file (work with MPC, audio fail everywhere else). I've been successful in getting the 2-chan PCM from this specific file converted to a wav that will play through the Plex music player, but even when repacking that into the mkv with the video stream - and removing the original audio stream - it fails again.
I very well may be missing something very straight forward, like not using the right codec when converting, or that the original file can't be converted for some reason or another. Open to suggestions. If any would like to see mediaInfo on my resulted conversion attempts let me know.
+ Reply to Thread
Results 1 to 7 of 7
-
-
Is it possible for you to provide a sample of one of the mpg's? You can make a one minute sample with ffmpeg like this:
Code:ffmpeg -i "video.mpg" -c:a copy -c:v copy -t 00:00:01 "video_sample.mpg"
P.S: Make sure the issue is reproducable with the sample..I'm the developer behind FFQueue. My posts might reflect this! ;-) -
Interesting; I tried the straight through copy with a few videos and the resulting files have no audio at all. I even tried the entire file copy, and not just a clip, and the same result.
and after a try through plex, the video_sample actually crashes the plex transcoder -
Sometimes it is possible to fix muxing issues with a remux to MKV:
Code:ffmpeg -i "video.mpg" -c:a copy -c:v copy "remuxed.mkv"
Please note that I made an error with the time stamp. My first suggestion (-t 00:00:01) will only give a 1 second sampleI'm the developer behind FFQueue. My posts might reflect this! ;-)