FAQ  •  Register  •  Login

Need to transcode, but all I get is muxing

<<

galmok

Serviio lover

Posts: 69

Joined: Thu Jul 28, 2011 9:35 pm

Post Thu Apr 20, 2017 2:11 pm

Need to transcode, but all I get is muxing

I need to transcode as my TV spontaneously reboots during playback (too high bitrate will do that I think) if this video, but I can't seem to create a filter that will perform transcoding on this video.

From the serviio log file (debug), I captured this command:

2017-04-20 15:54:33,289 DEBUG [ProcessExecutor] Starting C:\Tools\FFMPEGWrapper\ffmpegwrap.bat -fflags +genpts -threads 4 -i V:\SomeVideo.mkv -y -threads 4 -c:v copy -bsf:v h264_mp4toannexb -c:a:0 copy -map 0:0 -map 0:1 -sn -f mpegts I:\TEMP\Serviio\transcoding-temp-9e24dbd2af0e0ec5e02ed5df496ff2cd.stf

ffmpegwrapp.bat passes the options unmodified on to ffmpeg.exe in this case (verified).

It looks to me as it is just copying the video stream. There is sound, even though my TV doesn't know about EAC3 but there is audio. I guess the TV somehow knows about EAC3, but it is from 2010 so I dont see how. The transcoded file still uses EAC3 (which ffmpeg arguments ask for (copy)). The transcoded video stream is MPEG-TS with video as AVC and audio as EAC3. Bitrate is 17.6Mbps and this is what is killing my TV.

I have shown my profile and the source video information below. What kind of profile (or matches) do I need to make to ensure video transcoding (and optionally, audio transcoding)? Please. :)

The video is this:

General
Unique ID : 224315954093558960146409354140626590148 (0xA8C1AE69A0CEEFBA97783C3A106A19C4)
Complete name : V:\SomeVideo.mkv
Format : Matroska
Format version : Version 4 / Version 2
File size : 4.82 GiB
Duration : 42 min 22 s
Overall bit rate : 16.3 Mb/s
Encoded date : UTC 2017-03-31 09:16:22
Writing application : mkvmerge v10.0.0 ('To Drown In You') 64bit
Writing library : libebml v1.3.4 + libmatroska v1.4.5

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings, CABAC : Yes
Format settings, ReFrames : 4 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 42 min 22 s
Bit rate : 15.3 Mb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.308
Stream size : 4.53 GiB (94%)
Writing library : x264 core 148 r2638 7599210
Encoding settings : cabac=1 / ref=4 / deblock=1:-3:-3 / analyse=0x3:0x133 / me=umh / subme=10 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=48 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-2 / threads=10 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=0 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=8 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=60 / rc=crf / mbtree=0 / crf=18.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / vbv_maxrate=62500 / vbv_bufsize=78125 / crf_max=0.0 / nal_hrd=none / filler=0 / ip_ratio=1.30 / pb_ratio=1.20 / aq=3:0.80
Language : English
Default : Yes
Forced : No

Audio
ID : 2
Format : E-AC-3
Format/Info : Enhanced Audio Coding 3
Format settings, Endianness : Big
Codec ID : A_EAC3
Duration : 42 min 22 s
Bit rate mode : Constant
Bit rate : 640 kb/s
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 kHz
Frame rate : 187.500 FPS (256 spf)
Compression mode : Lossy
Stream size : 194 MiB (4%)
Language : English
Service kind : Complete Main
Default : Yes
Forced : No

Text
ID : 3
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Language : English
Default : No
Forced : No



This is the profile I have specified. It is kind of messy right now as I can't figure out why it wont recode the video.

<Profile id="sony2010test" name="Sony Bravia TV (2010) TEST" extendsProfileId="sony2011">
<!-- 2010 models
- Still images: JPEG
- Music: MP3, linear PCM
- Video: AVCHD, MPEG2 (not playable in some cases) -->
<Detection>
<UPnPSearch>
<FriendlyName>BRAVIA KDL-\d{2}[EHLNPB]X\d[01]\d.*</FriendlyName>
</UPnPSearch>
</Detection>
<Transcoding>
<!-- Transcode all h264 video with HIGH/MAIN > Level 4.1 on MPEG-TS stream with MPEG2VIDEO and ac3 audio transcoding -->
<!-- expected profile MPEG_TS_SD_EU/MPEG_TS_SD_NA/MPEG_TS_SD_KO -->
<Video targetContainer="mpegts" targetVCodec="mpeg2video" maxVBitrate="15000" targetACodec="ac3" aBitrate="384" DAR="16:9" forceInheritance="true">
<Matches container="*" vCodec="h264" profile="high_10" />
<Matches container="*" vCodec="h264" profile="high_422" />
<Matches container="*" vCodec="h264" profile="high_444" />
<Matches container="*" vCodec="h264" profile="high" levelGreaterThan="4.1" />
<Matches container="*" vCodec="h264" profile="main" levelGreaterThan="4.1" />
</Video>
<!-- Remux h264 video + AC3 audio to MPEG-TS stream without transcoding -->
<Video targetContainer="mpegts" targetVCodec="mpeg2video" maxVBitrate="15000" targetACodec="ac3" aBitrate="384" forceInheritance="true">
<Matches container="mp4" vCodec="h264" aCodec="ac3" />
<Matches container="3gp" vCodec="h264" aCodec="ac3" />
<Matches container="mp4" vCodec="h264" aCodec="eac3" />
<Matches container="3gp" vCodec="h264" aCodec="eac3" />
</Video>
<!-- Remux h264 video + AAC audio to MPEG-TS stream with ac3 audio transcoding -->
<Video targetContainer="mpegts" targetVCodec="mpeg2video" maxVBitrate="15000" targetACodec="ac3" aBitrate="384" forceInheritance="true">
<Matches container="mp4" vCodec="h264" aCodec="aac" />
<Matches container="3gp" vCodec="h264" aCodec="aac" />
</Video>
<!-- Transcode MPEG1, VC-1, DivX, AVI, MP4, WMV -->
<Video targetContainer="mpegts" targetVCodec="mpeg2video" maxVBitrate="15000" targetACodec="ac3" aBitrate="384" DAR="16:9" forceInheritance="true">
<Matches container="mpegvideo" />
<Matches container="avi" vCodec="mpeg4" />
<Matches container="avi" vCodec="msmpeg4" />
<Matches container="mp4" />
<Matches container="3gp" />
<Matches container="asf" />
</Video>
<Video targetContainer="mpegts" targetVCodec="mpeg2video" maxVBitrate="15000" targetACodec="ac3" aBitrate="384" DAR="16:9" >
<Matches container="*" vCodec="h265" />
</Video>
<!-- Transcode WMA -->
<Audio targetContainer="lpcm" forceInheritance="true">
<!-- To allow "pause" then "resume" functions and album art for TVs that support it - transcode to mp3 instead -->
<Matches container="asf" />
</Audio>
</Transcoding>
</Profile>
<<

atc98092

User avatar

DLNA master

Posts: 5205

Joined: Fri Aug 17, 2012 10:22 pm

Location: Washington (the state)

Post Thu Apr 20, 2017 9:25 pm

Re: Need to transcode, but all I get is muxing

The only piece of your profile that would capture that particular video is this one:
  Code:
<Video targetContainer="mpegts" targetVCodec="mpeg2video" maxVBitrate="15000" targetACodec="ac3" aBitrate="384" DAR="16:9" forceInheritance="true">
<Matches container="*" vCodec="h264" profile="high_10" />
<Matches container="*" vCodec="h264" profile="high_422" />
<Matches container="*" vCodec="h264" profile="high_444" />
<Matches container="*" vCodec="h264" profile="high" levelGreaterThan="4.1" />
<Matches container="*" vCodec="h264" profile="main" levelGreaterThan="4.1" />
</Video>


<Matches container="*" vCodec="h264" profile="high" levelGreaterThan="4.1" />

Every other line states a container that doesn't match yours (MKV). But, your format profile is High@L4.1, which the highlighted line above is causing it to be excluded from the profile section. If you want to transcode this file, change the levelGreaterThan to "4.0". Alternately, just remove the profile portion of the line and you will transcode every H.264 video.
Dan

LG NANO85 4K TV, Samsung JU7100 4K TV, Sony BDP-S3500, Sharp 4K Roku TV, Insignia Roku TV, Roku Ultra, Premiere and Stick, Nvidia Shield, Yamaha RX-V583 AVR.
Primary server: Intel i5-6400, 16 gig ram, Windows 10 Pro, 22 TB hard drive space | Test server Windows 10 Pro, AMD Phenom II X4 965, 8 gig ram

HOWTO: Enable debug logging HOWTO: Identify media file contents
<<

galmok

Serviio lover

Posts: 69

Joined: Thu Jul 28, 2011 9:35 pm

Post Fri Apr 21, 2017 6:55 am

Re: Need to transcode, but all I get is muxing

Thank you very much for taking you time to help. :)

Return to Transcoding

Who is online

Users browsing this forum: No registered users and 24 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.