No Audio when "Repack audio and video without reencoding" is selected
I've managed to trace down where the issue is with the call to ffmpeg
when the option "Repack audio and video without reencoding" is selected. The generated FFmpeg call is missing a map to the audio stream and is only generating a map to the video stream. However, in the UI, this option is selected, you are unable to choose any options in the Audio tab.
Generated ffmpeg call
Version: 4.17.0
Opening in existing browser session.
Original width 352x240; ratio original: 1.333; ratio nuevo: 1.3333333333333333
Original width 352x240; ratio original: 1.333; ratio nuevo: 1.3333333333333333
['ffmpeg', '-i', "/mnt/lun0/media/Home Movies/output/Bobby's Birthday.mp4", '-i', "/mnt/lun0/media/Home Movies/output/Bobby's Birthday.mp4", '-map', '1:0', '-vf', 'scale=352:480', '-y', '-c:v', 'mpeg2video', '-f', 'dvd', '-r', '30000/1001', '-pix_fmt', 'yuv420p', '-maxrate:v', '7500000', '-minrate:v', '3333300', '-bufsize', '1835008', '-packetsize', '2048', '-muxrate', '10080000', '-ar', '48000', '-sn', '-c:a', 'copy', '-g', '12', '-bf', '2', '-strict', '1', '-t', '60', '-ac', '6', '-aspect', '1.3333333333333333', '-s', '352x480', '-trellis', '1', '-mbd', '2', '-b:a', '256000', '-b:v', '5000000', '/var/tmp/movie_preview.mpg']
The resulting output includes only the video stream
[mpeg2video @ 0x5613ad3b6980] Warning min_rate > 0 but min_rate != max_rate isn't recommended!
Output #0, dvd, to '/var/tmp/movie_preview.mpg':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomdby1iso2mp41
encoder : Lavf60.3.100
Stream #0:0(und): Video: mpeg2video (Main), yuv420p(tv, smpte170m, progressive), 352x480 [SAR 20:11 DAR 4:3], q=2-31, 5000 kb/s, 29.97 fps, 90k tbn (default)
Metadata:
handler_name : VideoHandler
vendor_id : [0][0][0][0]
encoder : Lavc60.3.100 mpeg2video
Side data:
cpb: bitrate max/min/avg: 7500000/3333300/5000000 buffer size: 1835008 vbv_delay: N/A
frame= 15 fps=0.0 q=2.5 size= 190kB time=00:00:00.46 bitrate=3332.0kbits/s dup=17 drop=0 speed= frame= 111 fps=0.0 q=2.5 size= 1536kB time=00:00:03.67 bitrate=3428.3kbits/s dup=17 drop=0 speed= frame= 205 fps=204 q=2.0 size= 3072kB time=00:00:06.80 bitrate=3697.2kbits/s dup=17 drop=0 speed=6frame= 315 fps=209 q=2.5 size= 4608kB time=00:00:10.47 bitrate=3603.0kbits/s dup=17 drop=0 speed=6frame= 421 fps=210 q=2.0 size= 6144kB time=00:00:14.01 bitrate=3591.5kbits/s dup=17 drop=0 speed=6frame= 520 fps=207 q=2.5 size= 7936kB time=00:00:17.28 bitrate=3761.4kbits/s dup=17 drop=0 speed=6frame= 581 fps=193 q=2.5 size= 8960kB time=00:00:19.35 bitrate=3792.8kbits/s dup=17 drop=0 speed=6frame= 670 fps=190 q=1.6 size= 10240kB time=00:00:22.32 bitrate=3757.9kbits/s dup=17 drop=0 speed=6frame= 760 fps=189 q=2.0 size= 11776kB time=00:00:25.32 bitrate=3809.2kbits/s dup=17 drop=0 speed= frame= 847 fps=187 q=2.0 size= 13056kB time=00:00:28.22 bitrate=3788.9kbits/s dup=17 drop=0 speed=6frame= 942 fps=187 q=2.5 size= 14592kB time=00:00:31.39 bitrate=3807.2kbits/s dup=17 drop=0 speed=6frame= 1030 fps=186 q=1.6 size= 16128kB time=00:00:34.33 bitrate=3848.1kbits/s dup=17 drop=0 speed=6frame= 1111 fps=184 q=2.0 size= 17408kB time=00:00:37.03 bitrate=3850.4kbits/s dup=17 drop=0 speed=6frame= 1200 fps=184 q=2.5 size= 18944kB time=00:00:40.00 bitrate=3879.1kbits/s dup=17 drop=0 speed=6frame= 1294 fps=184 q=1.6 size= 20480kB time=00:00:43.14 bitrate=3888.7kbits/s dup=17 drop=0 speed=6frame= 1381 fps=183 q=2.0 size= 21760kB time=00:00:46.04 bitrate=3871.3kbits/s dup=17 drop=0 speed=6frame= 1476 fps=184 q=2.5 size= 23296kB time=00:00:49.21 bitrate=3877.6kbits/s dup=17 drop=0 speed=6frame= 1564 fps=183 q=2.0 size= 24832kB time=00:00:52.15 bitrate=3900.6kbits/s dup=17 drop=0 speed=6frame= 1637 fps=181 q=2.5 size= 25856kB time=00:00:54.58 bitrate=3880.2kbits/s dup=17 drop=0 speed=6frame= 1723 fps=181 q=2.0 size= 27136kB time=00:00:57.45 bitrate=3868.9kbits/s dup=17 drop=0 speed=6frame= 1799 fps=179 q=1.6 Lsize= 28616kB time=00:00:59.95 bitrate=3909.7kbits/s dup=17 drop=0 speed=5.98x
video:27813kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 2.885423%
However, if I modify the call to include -map 1:v:0 -map 1:a:0
then the output includes both the video and audio streams.
[mpeg2video @ 0x56068e157680] Warning min_rate > 0 but min_rate != max_rate isn't recommended!
Output #0, dvd, to '/var/tmp/movie_preview.mpg':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomdby1iso2mp41
encoder : Lavf60.3.100
Stream #0:0(und): Video: mpeg2video (Main), yuv420p(tv, smpte170m, progressive), 352x480 [SAR 20:11 DAR 4:3], q=2-31, 5000 kb/s, 29.97 fps, 90k tbn (default)
Metadata:
handler_name : VideoHandler
vendor_id : [0][0][0][0]
encoder : Lavc60.3.100 mpeg2video
Side data:
cpb: bitrate max/min/avg: 7500000/3333300/5000000 buffer size: 1835008 vbv_delay: N/A
Stream #0:1(und): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, stereo, fltp, 256 kb/s (default)
Metadata:
handler_name : SoundHandler
vendor_id : [0][0][0][0]
Side data:
audio service type: main
frame= 1799 fps=171 q=1.6 Lsize= 30522kB time=00:00:59.96 bitrate=4169.5kbits/s dup=17 drop=0 speed=5.71x
video:27813kB audio:1875kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 2.807610%
Edited by Nicholas Moore