On Sun, 24 May 2026 01:20:48 -0700
William C Bonner via ffmpeg-user <[email protected]> wrote:
> I have a program that runs FFMPEG to stream video files to my TiVo.
> 
> Sometimes a video file will not transfer because no streams get
> selected to copy. The metadata looks like it should work to me. I use
> the same command for each file other than the input file name. Can
> someone explain how I can get it to include the Audio and Video stream
> without hard coding the stream numbers, which obviously can change
> between files?
> 
> Here's example output from a successful conversion and a failing
> conversion:
> 
> C:\Users\Wim>C:\WINDOWS\ffmpeg.exe -hide_banner -i Success.mkv -map
> 0:d? -vcodec copy -bsf:v h264_mp4toannexb -b:v 30000k -maxrate 30000k
> -bufsize 8192k -acodec ac3 -b:a 448k -ar 48000 -f mpegts -y test.mpegts
> Input #0, matroska,webm, from 'Success.mkv':
<snip>

Hello,
It looks like you're map-ing only the data stream, (what's with the
question mark?), into the file. Also, why are you specifying a bitrate
for the video if the video is to be copied instead of re-encoded?

I think you'd have more success like this:
ffmpeg -i success.mkv -map 0:v:0 -map 0:a:0 -bsf:v h264_mp4toannexb
-vcodec copy -acodec ac3 -b:a 448k -ar 48000 -f mpegts -y test.mpegts

David
_______________________________________________
ffmpeg-user mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to