VRD won't open a file "No audio stream found"

#1
Hello. It seems that the latest beta of VRD has a bug in that it won't open some files.
A few times recently TVS (latest beta) doesn't seem to want to open h264/aac files. VRD has been extremely reliable until now.

I have a very old long-working batch process to QSF and then convert(with ffmpeg) .TS material into a standard h264/aac format and normalize the audio and finally do an adscan.

The conversions and adscans of files before this particular one in the set work flawlessly.

In this case, after using ffmpeg/mp4box to create the converted h.264/aac file, the VRD adscan fails to open the converted file with "<No audio stream found.>".
VRD won't open the converted file "normally" either.
Other files converted with the same process all work fine.
This only happens sometimes, although consistently with the same TS file.

MPC-HC opens and plays the converted file OK (a dump of what mpc-hc finds using it's internal mediainfo is outlined at bottom).
Windows Media Player opens and plays the converted file OK.

Steps:
1. QSF the original .TS file into a .mp4 file (this works)
START "cscript-2018.10.26.03.10.00.32-I4670-WIN10" /B /WAIT /ABOVENORMAL cscript //Nologo "G:\HDTV\vp-qsf-v10.vbs" "G:\HDTV\test-h264-ac3.ts" "D:\temp\SCRATCH\test-h264-ac3.mp4" /qsf /p zzz-H.264-MP4-general /q /na
2. use ffmpeg to convert to h.264/aac (in this case the input is h.264 so copy the video, the audio is ac3 so normalize and convert to aac)
3. use mp4box to mux the audio and video into a converted file
Steps 2 and 3 avoid desync problems in occasional files with large audio/video delays (there's an old thread on that issue, this process avoids it)
4. run adscan over the converted file (this fails)

The file is circa 3.5 Gb which is a bit too large to upload.

Suggestions on what to next would be appreciated.

The short VRD log shows
Code:
2018-10-26 06:56:10 Image   support lib: 8.0.1 (r40318), ippIP AVX2 (h9)
2018-10-26 06:56:10 Decoder support lib: 8.0.1 (r40318), ippIP AVX2 (h9)
2018-10-26 06:56:10 VideoReDo TVSuite started. Licensed to: DA-KEAVJY-5CRR02, Version: 5.4.84.771 - Sep 24 2018, AVP On (00cf004d-1074}   Windows 10 Enterprise
2018-10-26 06:56:10 Starting up with silent and batch: 1  0
2018-10-26 06:56:11 Creating DVR-MS reader.
2018-10-26 06:56:11 Open DVR-MS file.
2018-10-26 06:56:11 WTV file signature not found.
2018-10-26 06:56:11 WTV file signature not found.
2018-10-26 06:56:11 Creating MP4 reader.
2018-10-26 06:56:11
           ***** Loading: T:\HDTV\autoTVS-mpg\Converted\test-h264-ac3.aac.mp4
2018-10-26 06:56:11 H.264, Starting stream open for: T:\HDTV\autoTVS-mpg\Converted\test-h264-ac3.aac.mp4
2018-10-26 06:56:11 Creating MP4 reader.
2018-10-26 06:56:11 H.264, Opening file: T:\HDTV\autoTVS-mpg\Converted\test-h264-ac3.aac.mp4, filetype is: H264  PIDs: x201 / x202
2018-10-26 06:56:18 Unable to open file: T:\HDTV\autoTVS-mpg\Converted\test-h264-ac3.aac.mp4, <No audio stream found.>
2018-10-26 06:56:18 Destruct CVideoReDoDlgAutoProxy
An advanced VRD log trying to open the file manually shows
Code:
2018-10-26 10:01:00 Image   support lib: 8.0.1 (r40318), ippIP AVX2 (h9)
2018-10-26 10:01:00 Decoder support lib: 8.0.1 (r40318), ippIP AVX2 (h9)
2018-10-26 10:01:00 VideoReDo TVSuite started. Licensed to: DA-KEAVJY-5CRR02, Version: 5.4.84.771 - Sep 24 2018, AVP On (00cf004d-1074}   Windows 10 Enterprise
2018-10-26 10:01:00 Checking reg: 120
2018-10-26 10:01:38 Creating DVR-MS reader.
2018-10-26 10:01:38 Open DVR-MS file.
2018-10-26 10:01:38 WTV file signature not found.
2018-10-26 10:01:38 WTV file signature not found.
2018-10-26 10:01:38 Creating MP4 reader.
2018-10-26 10:01:38 FFmpeg - ISO: File Type Major Brand: mp42
2018-10-26 10:01:38 FFmpeg - Before avformat_find_stream_info() pos: 3484229390 bytes read:2737901 seeks:1
2018-10-26 10:01:38 FFmpeg - Frame num gap 2997 2992
2018-10-26 10:01:38 FFmpeg - Frame num gap 2997 2993
2018-10-26 10:01:38 FFmpeg - Frame num gap 2997 2994
2018-10-26 10:01:38 FFmpeg - Frame num gap 2997 2995
2018-10-26 10:01:38 FFmpeg - Frame num gap 3003 2998
2018-10-26 10:01:38 FFmpeg - Frame num gap 3003 2999
2018-10-26 10:01:38 FFmpeg - Frame num gap 3003 3000
2018-10-26 10:01:38 FFmpeg - Frame num gap 3003 3001
2018-10-26 10:01:38 FFmpeg - Increasing reorder buffer to 1
2018-10-26 10:01:38 FFmpeg - no picture ooo
2018-10-26 10:01:38 FFmpeg - Increasing reorder buffer to 2
2018-10-26 10:01:38 FFmpeg - no picture ooo
2018-10-26 10:01:38 FFmpeg - no picture ooo
2018-10-26 10:01:38 FFmpeg - no picture 
2018-10-26 10:01:38 FFmpeg - no picture 
2018-10-26 10:01:38 FFmpeg - All info found
2018-10-26 10:01:38 FFmpeg - After avformat_find_stream_info() pos: 2810384 bytes read:2836205 seeks:2 frames:14
2018-10-26 10:01:38 FFmpeg - Statistics: 6966246 bytes read, 2 seeks
2018-10-26 10:01:38 
           ***** Loading: T:\HDTV\autoTVS-mpg\Converted\test-h264-ac3D.aac.mp4
2018-10-26 10:01:38 H.264, Starting stream open for: T:\HDTV\autoTVS-mpg\Converted\test-h264-ac3D.aac.mp4
2018-10-26 10:01:38 Creating MP4 reader.
2018-10-26 10:01:38 FFmpeg - ISO: File Type Major Brand: mp42
2018-10-26 10:01:38 FFmpeg - Before avformat_find_stream_info() pos: 3484229390 bytes read:2737901 seeks:1
2018-10-26 10:01:38 FFmpeg - Frame num gap 2997 2992
2018-10-26 10:01:38 FFmpeg - Frame num gap 2997 2993
2018-10-26 10:01:38 FFmpeg - Frame num gap 2997 2994
2018-10-26 10:01:38 FFmpeg - Frame num gap 2997 2995
2018-10-26 10:01:38 FFmpeg - Frame num gap 3003 2998
2018-10-26 10:01:38 FFmpeg - Frame num gap 3003 2999
2018-10-26 10:01:38 FFmpeg - Frame num gap 3003 3000
2018-10-26 10:01:38 FFmpeg - Frame num gap 3003 3001
2018-10-26 10:01:38 FFmpeg - Increasing reorder buffer to 1
2018-10-26 10:01:38 FFmpeg - no picture ooo
2018-10-26 10:01:38 FFmpeg - Increasing reorder buffer to 2
2018-10-26 10:01:38 FFmpeg - no picture ooo
2018-10-26 10:01:38 FFmpeg - no picture ooo
2018-10-26 10:01:38 FFmpeg - no picture 
2018-10-26 10:01:38 FFmpeg - no picture 
2018-10-26 10:01:38 FFmpeg - All info found
2018-10-26 10:01:38 FFmpeg - After avformat_find_stream_info() pos: 2810384 bytes read:2836205 seeks:2 frames:14
2018-10-26 10:01:38 H.264, Opening file: T:\HDTV\autoTVS-mpg\Converted\test-h264-ac3D.aac.mp4, filetype is: H264  PIDs: x201 / x202
2018-10-26 10:01:45 FFmpeg - Statistics: 42458626 bytes read, 3 seeks
2018-10-26 10:01:45 Unable to open file: T:\HDTV\autoTVS-mpg\Converted\test-h264-ac3D.aac.mp4, <No audio stream found.>
Standard batch output shows
Code:
Fri 26/10/2018  6:56:09.80 START "cscript-2018.10.26.03.10.00.32-I4670-WIN10" /B /WAIT /ABOVENORMAL cscript //Nologo "C:\Program Files (x86)\VideoReDoTVSuite5\adscan.vbs" "T:\HDTV\autoTVS-mpg\Converted\test-h264-ac3.aac.mp4" "T:\HDTV\autoTVS-mpg\Converted\test-h264-ac3.aac.BPRJ" /q
Running in quiet mode.
? Unable to open file/project: T:\HDTV\autoTVS-mpg\Converted\test-h264-ac3.aac.mp4
MPC_HC mediainfo says the converted file is:
Code:
General
Complete name                  : T:\HDTV\autoTVS-mpg\Converted\zzztest-h264-ac3.aac.mp4
Format                         : MPEG-4
Format profile                 : Base Media / Version 2
Codec ID                       : mp42 (isom/mp42/3gp5)
File size                      : 3.24 GiB
Duration                       : 1 h 24 min
Overall bit rate mode          : Variable
Overall bit rate               : 5 484 kb/s
Encoded date                   : UTC 2018-10-25 20:24:31
Tagged date                    : UTC 2018-10-25 20:24:31

Video
ID                             : 201
Format                         : AVC
Format/Info                    : Advanced Video Codec
Format profile                 : High@L4
Format settings                : CABAC / 4 Ref Frames
Format settings, CABAC         : Yes
Format settings, ReFrames      : 4 frames
Codec ID                       : avc1
Codec ID/Info                  : Advanced Video Coding
Duration                       : 1 h 24 min
Bit rate                       : 5 098 kb/s
Width                          : 1 920 pixels
Height                         : 1 080 pixels
Display aspect ratio           : 16:9
Frame rate mode                : Constant
Frame rate                     : 25.000 FPS
Color space                    : YUV
Chroma subsampling             : 4:2:0
Bit depth                      : 8 bits
Scan type                      : Interlaced
Scan type, store method        : Separated fields
Scan order                     : Top Field First
Bits/(Pixel*Frame)             : 0.098
Stream size                    : 3.02 GiB (93%)
Language                       : English
Tagged date                    : UTC 2018-10-25 20:24:58
Color range                    : Limited
Color primaries                : BT.709
Transfer characteristics       : BT.709
Matrix coefficients            : BT.709
Codec configuration box        : avcC

Audio
ID                             : 101
Format                         : AAC LC
Format/Info                    : Advanced Audio Codec Low Complexity
Codec ID                       : mp4a-40-2
Duration                       : 1 h 24 min
Source duration                : 1 h 24 min
Bit rate mode                  : Variable
Bit rate                       : 384 kb/s
Maximum bit rate               : 398 kb/s
Channel(s)                     : 6 channels
Channel layout                 : C L R Ls Rs LFE
Sampling rate                  : 48.0 kHz
Frame rate                     : 46.875 FPS (1024 SPF)
Compression mode               : Lossy
Stream size                    : 231 MiB (7%)
Source stream size             : 231 MiB (7%)
Title                          : aac:lang=eng:delay=010@GPAC0.7.2-DEV-rev899-g553ea0d39-master
Language                       : English
Encoded date                   : UTC 2018-10-25 20:24:52
Tagged date                    : UTC 2018-10-25 20:24:58

Other #1
ID                             : 2
Type                           : Object description
Format                         : System
Codec ID                       : mp4s-01
Duration                       : 1 s 0 ms
Encoded date                   : UTC 2018-10-25 20:24:58
Tagged date                    : UTC 2018-10-25 20:24:58

Other #2
ID                             : 1
Type                           : Scene description
Format                         : System Core
Codec ID                       : mp4s-02
Duration                       : 1 s 0 ms
Encoded date                   : UTC 2018-10-25 20:24:58
Tagged date                    : UTC 2018-10-25 20:24:58
 

Dan203

Senior Developer
Staff member
#2
Use trim and copy to grab the first 100MB of the original TS file. Then complete your steps on that file. If the resulting file still fails upload both the TS and the MP4 file to us so we can try to figure out what's wrong
 

Danr

Administrator
Staff member
#6
For the transport stream file, go to Tools>Options>Stream parameters and see if "Ignore transport stream maps" is checked.
 
#7
OK.

Please note that the .TS file is OK and gets processed fine by QSF into another intermediate .mp4 container (which is not the .mp4 file which was submitted)

It is just the after-processed different .mp4 file (submitted) which won’t open (strangely, other files processed in the same manner are OK).
 

Danr

Administrator
Staff member
#8
VLC doesn't see the audio in the MP4 file you sent us, and MediaInfo looks strange too. MediaInfo sees an audio stream, but doesn't show the codec. Can't recall seeing that. Does the QSF'd intermediate MP4 file open OK? Also, what is the purpose of the final intermediate MP4 to final MP4 step?

MPC-HC and WMP do play the file with audio.
 
Last edited:
#9
It's to do with source files with audio/video delays (eg of the order of 3 seconds or more).
There's a thread about it somewhere.

VRD did not process files with larger delays properly and a resulting .mp4 exhibited audio desync.
The only thing I empirically found to work worked was to
a) QSF the .TS into a new file with the same streams untouched (sometimes an .mp4 if the input .TS contained avc)
b) use ffmpeg to produce a loudness levelled .mp4 containing just converted AAC audio
c) use ffmpeg to produce a video .mp4 containing just the .avc video
something in (b) and/or (c) using .mp4 containers managed to maintain delays correctly
d) use mp4box to mux the .mp4 of aac audio with the .mp4 of video into a final .mp4 ... this again maintained the delay

I'm currently trialing (b) and (c) in one ffmpeg commandline and one output .mp4, rather that separate steps and an mp4box mux.
 
#10
OK, I suppose I could consider changing the process to just use VRD ...

The current process:
Ffmpeg converts audio to aac in an mp4 container (to maintain the delay as mentioned before).
Ffmpeg converts video via nvenc (if the source is mpeg2) which is very very fast (or just copies it if it is avc) into a separate mp4 container.
Mp4box muxes these into one mp4 container.
Ffmpeg is rebuilt every few days from source.
Mp4box is rebuilt every few days from source.

It appears as if ffmpeg (or more likely mp4box) has suddenly become unreliable in the last week or two ☹ and is producing something invalid in the final .mp4 container (even though MPC-HC plays it).

So,
1. The VRD "audio delay and desync" issue in an old thread applied back then - not sure if it still applies now.
2. I could try to use VRD to convert the audio into aac - I'll have to look up how to do audio maximizing in VRD, since I currently use the loudnorm filter in ffmpeg.
3. If I use VRD for video encoding then I lose the huge advantage of the very high speed of nvidia hardware video encoding.

I wonder if VRD v6 does nvidia nvenc hardware transcoding of video into h264 ?

Cheers

Edit: changed the process slightly to transcode video/audio and mux into mp4 container as one ffmpeg commandline, so as to bypass mp4box, and the process no longer "crashes". This kinda points the finger at mp4box as being unreliable (it had been reliable for some years).
 
Top