[SOLVED] ffmpeg -an, transcoding not producing audio
Hello,
Can someone please tell me under what circumstances Serviio would run ffmpeg for a transcode with the -an option? It's kind of a bummer to watch a video with no audio...and I am at a loss on how to debug why this is happening to my video file.
serviio 1.2.1, and I have a SBP390. In an effort to troubleshoot, I created a custom profile entry that currently only inherits from the standard one as my entries seem to have no effect. The rest of the profile.xml is standard.
Any help or guidance is appreciated!
Thanks,
Tim
profile:
ffmpeg version:
mediainfo:
relevant logfile:
mediainfo for transcoded file:
Can someone please tell me under what circumstances Serviio would run ffmpeg for a transcode with the -an option? It's kind of a bummer to watch a video with no audio...and I am at a loss on how to debug why this is happening to my video file.
serviio 1.2.1, and I have a SBP390. In an effort to troubleshoot, I created a custom profile entry that currently only inherits from the standard one as my entries seem to have no effect. The rest of the profile.xml is standard.
Any help or guidance is appreciated!
Thanks,
Tim
profile:
- Code:
<Profile id="bdp2010Tim" name="BDP-S390 - Tim" extendsProfileId="bdp2010us">
<!--
<Transcoding>
<Video targetContainer="mpegts" targetACodec="ac3">
<Matches container="mp4" />
<Matches container="matroska" />
<Matches container="*" vCodec="h264" />
<Matches container="mpegts" />
<Matches container="avi" />
<Matches container="flv" />
</Video>
</Transcoding>
-->
</Profile>
ffmpeg version:
- Code:
ffmpeg version 1.1.1 Copyright (c) 2000-2013 the FFmpeg developers
built on Mar 14 2013 21:49:01 with gcc 4.5.4 (GCC) 20111110 (prerelease)
configuration: --prefix=/ffp --enable-gpl --disable-htmlpages --enable-version3 --enable-nonfree --enable-libx264 --enable-libshine --enable-libfdk_aac --enable-libtwolame --enable-libopus --enable-librtmp
libavutil 52. 13.100 / 52. 13.100
libavcodec 54. 86.100 / 54. 86.100
libavformat 54. 59.106 / 54. 59.106
libavdevice 54. 3.102 / 54. 3.102
libavfilter 3. 32.100 / 3. 32.100
libswscale 2. 1.103 / 2. 1.103
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
Hyper fast Audio and Video encoder
mediainfo:
- Code:
General
Complete name : Test.mp4
Format : MPEG-4
Format profile : Base Media / Version 2
Codec ID : mp42
File size : 695 MiB
Duration : 1h 45mn
Overall bit rate mode : Variable
Overall bit rate : 918 Kbps
Encoded date : UTC 2012-02-01 05:39:15
Tagged date : UTC 2012-02-01 06:50:48
Writing application : HandBrake 0.9.5 2011010300
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Main@L3.0
Format settings, CABAC : Yes
Format settings, ReFrames : 4 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 1h 45mn
Bit rate mode : Variable
Bit rate : 752 Kbps
Width : 720 pixels
Height : 460 pixels
Display aspect ratio : 1.85:1
Frame rate mode : Variable
Frame rate : 23.976 fps
Minimum frame rate : 19.965 fps
Maximum frame rate : 39.964 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.095
Stream size : 569 MiB (82%)
Writing library : x264 core 112
Encoding settings : cabac=1 / ref=2 / deblock=1:0:0 / analyse=0x1:0x111 / me=hex / subme=6 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=0 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=3 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / constrained_intra=0 / bframes=2 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=0 / open_gop=0 / weightp=2 / keyint=240 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=20.0 / qcomp=0.60 / qpmin=3 / qpmax=51 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Encoded date : UTC 2012-02-01 05:39:15
Tagged date : UTC 2012-02-01 06:50:48
Color primaries : BT.601 NTSC
Transfer characteristics : BT.709
Matrix coefficients : BT.601
Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : 40
Duration : 1h 45mn
Bit rate mode : Variable
Bit rate : 160 Kbps
Maximum bit rate : 246 Kbps
Channel count : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz
Compression mode : Lossy
Delay relative to video : 83ms
Stream size : 121 MiB (17%)
Language : English
Encoded date : UTC 2012-02-01 05:39:15
Tagged date : UTC 2012-02-01 06:50:48
Menu
ID : 3
Codec ID : text
Duration : 1h 45mn
Encoded date : UTC 2012-02-01 05:39:15
Tagged date : UTC 2012-02-01 06:50:48
Bit rate mode : VBR
00:00:00.000 : Chapter 1
00:06:37.814 : Chapter 2
00:14:17.640 : Chapter 3
00:20:58.540 : Chapter 4
00:28:35.830 : Chapter 5
00:31:11.819 : Chapter 6
00:35:22.703 : Chapter 7
00:38:59.120 : Chapter 8
00:43:07.034 : Chapter 9
00:51:35.375 : Chapter 10
00:58:33.293 : Chapter 11
01:02:15.014 : Chapter 12
01:07:32.131 : Chapter 13
01:12:00.933 : Chapter 14
01:14:13.532 : Chapter 15
01:19:47.899 : Chapter 16
01:24:11.830 : Chapter 17
01:30:00.645 : Chapter 18
01:35:54.031 : Chapter 19
01:38:54.511 : Chapter 20
relevant logfile:
- Code:
2013-07-25 04:09:31,991 DEBUG [VideoDAOImpl] Reading a Video (id = 37)
2013-07-25 04:09:31,994 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 37, format AVC_TS_MP_SD_AC3_ISO and profile BDP-S390 - Tim
2013-07-25 04:09:31,995 DEBUG [AbstractTranscodingDeliveryEngine] Getting media info for transcoded version of file Temp.mp4
2013-07-25 04:09:31,995 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file Temp.mp4: AVC_TS_MP_SD_AC3_ISO
2013-07-25 04:09:32,015 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 200 OK, headers = [[Content-Type: video/vnd.dlna.mpeg-tts,Date: Thu, 25 Jul 2013 04:09:32 GMT,Server: Linux, UPnP/1.0 DLNADOC/1.50, Serviio/1.2.1,Cache-control: no-cache,contentFeatures.dlna.org: DLNA.ORG_PN=MPEG_TS_SD_NA;DLNA.ORG_OP=10;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=01500000000000000000000000000000,transferMode.dlna.org: Streaming,realTimeInfo.dlna.org: DLNA.ORG_TLAG=*]]
2013-07-25 04:09:32,043 DEBUG [ServiioHttpService] Incoming request from /192.168.1.97:59145: GET /resource/37/MEDIA_ITEM/AVC_TS_MP_SD_AC3_ISO-1/ORIGINAL HTTP/1.1, headers = [User-Agent: UPnP/1.0 DLNADOC/1.50,Host: 192.168.1.96:8895,Accept: */*,TimeSeekRange.dlna.org: npt=0-,X-AV-Physical-Unit-Info: pa="Blu-ray Disc Player",X-AV-Client-Info: av=5.0; cn="Sony Corporation"; mn="Blu-ray Disc Player"; mv="2.0",getcontentFeatures.dlna.org: 1,Pragma: getIfoFileURI.dlna.org,transferMode.dlna.org: Streaming]]
2013-07-25 04:09:32,043 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.97
2013-07-25 04:09:32,045 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.97
2013-07-25 04:09:32,053 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=192.168.1.97, Profile=BDP-S390 - Tim'
2013-07-25 04:09:32,057 DEBUG [ResourceDeliveryProcessor] Request for resource 37 and type 'MEDIA_ITEM' received
2013-07-25 04:09:32,058 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 37 (local)
2013-07-25 04:09:32,058 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 37)
2013-07-25 04:09:32,059 DEBUG [VideoDAOImpl] Reading a Video (id = 37)
2013-07-25 04:09:32,062 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 37, format AVC_TS_MP_SD_AC3_ISO and profile BDP-S390 - Tim
2013-07-25 04:09:32,062 DEBUG [AbstractTranscodingDeliveryEngine] Getting media info for transcoded version of file Temp.mp4
2013-07-25 04:09:32,063 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file Temp.mp4: AVC_TS_MP_SD_AC3_ISO
2013-07-25 04:09:32,065 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 37 (local)
2013-07-25 04:09:32,065 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 37)
2013-07-25 04:09:32,106 DEBUG [VideoDAOImpl] Reading a Video (id = 37)
2013-07-25 04:09:32,109 DEBUG [VideoDeliveryEngine] Delivering item '37' for client 'Identifier=192.168.1.97, Profile=BDP-S390 - Tim'
2013-07-25 04:09:32,110 DEBUG [VideoDeliveryEngine] Delivering file 'Temp.mp4' using transcoding
2013-07-25 04:09:32,111 DEBUG [AbstractTranscodingDeliveryEngine] No suitable transcoding job exists yet, start one for client 'Identifier=192.168.1.97, Profile=BDP-S390 - Tim'
2013-07-25 04:09:32,114 DEBUG [MediaItemDAOImpl] Getting file of media item 37
2013-07-25 04:09:32,117 DEBUG [FFMPEGWrapper] Invoking FFmpeg to transcode video file: /i-data/md0/video/Action/Temp.mp4
2013-07-25 04:09:32,117 DEBUG [ProcessExecutor] Starting ffmpeg -fflags +genpts -threads auto -i /i-data/md0/video/Action/Temp.mp4 -y -c:v copy -bsf:v h264_mp4toannexb -an -map 0:0 -sn -f mpegts /i-data/md0/admin/tmp/Serviio/transcoding-temp-37-bdp2010Tim-ORIGINAL.stf
2013-07-25 04:09:33,144 DEBUG [FileBasedTranscodingDeliveryStrategy] Sending transcoding stream
2013-07-25 04:09:33,147 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file Temp.mp4: AVC_TS_MP_SD_AC3_ISO
2013-07-25 04:09:33,149 DEBUG [MediaItemDAOImpl] Marking MediaItem (id = 37) as read
2013-07-25 04:09:33,369 DEBUG [LocalContentCacheDecorator] Cleared cache (local_resetafterplay)
2013-07-25 04:09:33,370 DEBUG [GETMethodProcessor] Stream entity has length: 50000000000
2013-07-25 04:09:33,372 DEBUG [ResourceTransportRequestHandler] Creating entity with chunked transfer
2013-07-25 04:09:33,372 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 200 OK, headers = [[Content-Type: video/vnd.dlna.mpeg-tts,Date: Thu, 25 Jul 2013 04:09:33 GMT,Server: Linux, UPnP/1.0 DLNADOC/1.50, Serviio/1.2.1,Cache-control: no-cache,TimeSeekRange.dlna.org: npt=0-6352/6352,contentFeatures.dlna.org: DLNA.ORG_PN=MPEG_TS_SD_NA;DLNA.ORG_OP=10;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=01500000000000000000000000000000,transferMode.dlna.org: Streaming,realTimeInfo.dlna.org: DLNA.ORG_TLAG=*]]
mediainfo for transcoded file:
- Code:
General
ID : 1 (0x1)
Complete name : transcoding-temp-37-bdp2010Tim-ORIGINAL.stf
Format : MPEG-TS
File size : 632 MiB
Duration : 1h 45mn
Overall bit rate : 835 Kbps
Video
ID : 256 (0x100)
Menu ID : 1 (0x1)
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Main@L3.0
Format settings, CABAC : Yes
Format settings, ReFrames : 4 frames
Codec ID : 27
Duration : 1h 45mn
Bit rate : 794 Kbps
Width : 720 pixels
Height : 460 pixels
Display aspect ratio : 1.85:1
Frame rate mode : Variable
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Stream size : 601 MiB (95%)
Writing library : x264 core 112
Encoding settings : cabac=1 / ref=2 / deblock=1:0:0 / analyse=0x1:0x111 / me=hex / subme=6 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=0 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=3 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / constrained_intra=0 / bframes=2 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=0 / open_gop=0 / weightp=2 / keyint=240 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=20.0 / qcomp=0.60 / qpmin=3 / qpmax=51 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Color primaries : BT.601 NTSC
Transfer characteristics : BT.709
Matrix coefficients : BT.601
Menu
ID : 4096 (0x1000)
Menu ID : 1 (0x1)
Duration : 1h 45mn
List : 256 (0x100) (AVC)
Service name : Service01
Service provider : FFmpeg
Service type : digital television
