Re: [FFmpeg-user] How to Transcode ALL Audio streams from input to output using ffmpeg?
Le 24/11/2022 à 14:29, Mahesh Velankar a écrit : I have an input MPEG TS file 'unit_test.ts'. This file has following content (shown by ffprobe): Input #0, mpegts, from 'unit_test.ts': Duration: 00:00:57.23, start: 73674.049844, bitrate: 2401 kb/s Program 1 Metadata: service_name: Service01 service_provider: FFmpeg Stream #0:0[0x31]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(progressive), 852x480 [SAR 640:639 DAR 16:9], Closed Captions, 59.94 fps, 59.94 tbr, 90k tbn, 119.88 tbc Stream #0:1[0x34](eng): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, 5.1(side), fltp, 448 kb/s Stream #0:2[0x35](spa): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, stereo, fltp, 192 kb/s I want to convert it into another MPEG TS file. Requirement is that the Video stream of the input should be directly copied to the output whereas *ALL* the audio streams should be transcoded "aac" format. I tried this command: ffmpeg -i unit_test.ts -map 0 -c copy -c:a aac maud_test.ts Try this (and show the ffprobe of the output file) : ffmpeg -i unit_test.ts -map 0 -c:v copy -c:a aac -ac:a:0 6 -ac:a:1 2 maud_test.ts ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Sending 2 camera outputs side by side to loopback device
Thanks for the reply. I just rebooted my computer and tried again. There must have been some locked up process that wasn't allowing me to see the loopback device as it now works. On Fri, Nov 25, 2022 at 2:56 AM Michael Koch wrote: > Am 25.11.2022 um 08:02 schrieb Jim Ruxton: > > I am on Ubuntu 22.04 and trying to combine 2 cameras into one stream that > > is being sent to a loopback device. The command appears to work but I > can't > > see the stream in any way. I've tried VLC Cheese ffplay guvcview and none > > of them work. The command I am using is > > : > > *ffmpeg -f v4l2 -vcodec rawvideo -i /dev/video0 -f v4l2 -vcodec rawvideo > -i > > /dev/video2 -filter_complex hstack,"scale=iw*.5:ih*1" -f v4l2 -vcodec > mjpeg > > /dev/video4 * > > It seems you forgot to specify an output file or pipe at the end of the > command line. > > Michael > > ___ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > https://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". > ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".