9/7/2023 0 Comments Ffmpeg map bdpg![]() This is what I have so far (just a command fragment to leave off the output url): ffmpeg -protocol_whitelist file,udp,rtp -threads 4 -loglevel info -i /tmp/sdp -filter_complex 'join=inputs=8:channel_layout=7. Stream #0:4: Audio: aac (LC), 48000 Hz, stereo, fltpĪnd what I want to do is output a single RTMP stream with 7.1 audio. It picks the 'best' of each based upon the following criteria: for video, it is the stream with the highest resolution, for audio, it is the stream with the most channels, for subtitles, it. Stream #0:3: Audio: aac (LC), 48000 Hz, stereo, fltp By default, ffmpeg includes only one stream of each type (video, audio, subtitle) present in the input files and adds them to each output file. Stream #0:2: Audio: aac (LC), 48000 Hz, stereo, fltp Stream #0:1: Audio: aac (LC), 48000 Hz, stereo, fltp I have a source that has 4 stereo pairs in it (RTSP), so the source looks like this in ffmpeg: Input #0, sdp, from '/tmp/sdp':ĭuration: N/A, start: 0.000000, bitrate: N/A I assumed that -map_chapters 3 would take the 4th input (the chapters file) and just copy it over to both outputs, but when I inspect the encoded files there is no metadata stream for the chapter marks.I am trying to get this ffmpeg command right, and think I am close but not quite there. ![]() ![]() f tee "output_stereo.mkv|output_5.1.mkv" map 0:v -map 1:a -c:a copy -map 2:a -c:a copy -map_chapters 3 \ Here is what I am trying to map: video.mov -> output_stereo.mkvĪnd here's my FFMPEG command: -i video.mov -i stereo.wav -i 5.1.wav -i chapters.txt \ Because the video file only needs to be encoded once I am using tee muxing for efficiency, however this means I need to explicitly map my streams and for some reason the chapters stream seems to be getting lost. I am trying to encode 2 video files from: 1 source video, 2 source audio files, and 1 source chapter marks file.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |