[FFmpeg-user] splitting up video with high quality (HDR, 4k, Dolby Atmos+ TrueHd)
Hi I have a question regarding a command in ffmpeg. I have a relatively high quality video as test.mkv which has a 4k quality and hdr. additionally it has a truehd dolby atmos audio. so lossless and uncompressed. i'm trying to cut the video into small snippets of 5 s now. the background is that i can play this video better as video on demand as m3u8. if i use this : ffmpeg -i test.mkv -f segment -segment_time 5 test%d.mkv the desired result does not come out. ffmpeg turns the audio into sound in vorbis. which no longer offers the quality of a pure atmos truehd sound. but if i just copy the sound and the video with: ffmpeg -i test.mkv -c:v copy -c:a copy -f segment -segment_time 5 test%d.mkv or ffmpeg -i test.mkv -c:v copy -c:a truehd -f segment -segment_time 5 test%d.mkv or ffmpeg -i test.mkv -map 0:v -c:v copy -map 0:a -c:a copy -f segment -segment_time 5 test%d.mkv ffmpeg -i test.mkv -map 0:v -c:v copy -map 0:a -c:a truehd -f segment -segment_time 5 test%d.mkv the sound is not played in all segments. The video is always flawless. My question now is if someone can help me to get these segments to work. because theoretically it is just a copy of everything and always cut off after a few seconds. ___ 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] splitting up video with high quality (HDR, 4k, Dolby Atmos+ TrueHd)
On Tue, Nov 21, 2023 at 12:49 AM Sebbi Thueni wrote: > Hi I have a question regarding a command in ffmpeg. I have a relatively > high quality video as test.mkv which has a 4k quality and hdr. additionally > it has a truehd dolby atmos audio. so lossless and uncompressed. i'm trying > to cut the video into small snippets of 5 s now. the background is that i > can play this video better as video on demand as m3u8. if i use this : > ffmpeg -i test.mkv -f segment -segment_time 5 test%d.mkv > the desired result does not come out. ffmpeg turns the audio into sound in > vorbis. which no longer offers the quality of a pure atmos truehd sound. > but if i just copy the sound and the video with: > ffmpeg -i test.mkv -c:v copy -c:a copy -f segment -segment_time 5 > test%d.mkv > or > ffmpeg -i test.mkv -c:v copy -c:a truehd -f segment -segment_time 5 > test%d.mkv > or > ffmpeg -i test.mkv -map 0:v -c:v copy -map 0:a -c:a copy -f segment > -segment_time 5 test%d.mkv > ffmpeg -i test.mkv -map 0:v -c:v copy -map 0:a -c:a truehd -f segment > -segment_time 5 test%d.mkv > the sound is not played in all segments. The video is always flawless. My > question now is if someone can help me to get these segments to work. > because theoretically it is just a copy of everything and always cut off > after a few seconds. > Version of ffmpeg? > ___ > 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".
[FFmpeg-user] does swscale support rgbf32 conversions?
I am trying to add fp32 tiff reading via ffmpeg for cinelerra-gg. we have this routine: convert_ctx = sws_getCachedContext(convert_ctx, ip->width, ip->height, pix_fmt, frame->get_w(), frame->get_h(), ofmt, SWS_POINT, NULL, NULL, NULL); if( !convert_ctx ) { fprintf(stderr, "FFVideoConvert::convert_picture_frame:" " sws_getCachedContext() failed\n"); fprintf(stderr, "pix_fmt %s \n", av_get_pix_fmt_name(pix_fmt)); fprintf(stderr, "output format %s \n", av_get_pix_fmt_name(ofmt)); return -1; } so for rgbaf32 tiff it prints: FFMPEG::open_decoder: some stream have bad times: /data/data/com.termux/files/home/test_color.tif FFMPEG::open_decoder: some stream have bad times: /data/data/com.termux/files/home/test_color.tif FFVideoConvert::convert_picture_frame: sws_getCachedContext() failed pix_fmt rgbf32le output format rgbaf32le FFVideoConvert::convert_picture_frame: sws_getCachedContext() failed pix_fmt rgbf32le output format rgbf32le for rgba-float pipeline, or FFVideoConvert::convert_picture_frame: sws_getCachedContext() failed pix_fmt rgbf32le output format rgba for rgba-8 pipeline. tiff images from https://github.com/imageio/imageio/files/7697625/TestImages_float32_Photoshop.zip our ffmpeg.C http://git.cinelerra-gg.org/git/?p=goodguy/cinelerra.git;a=blob;f=cinelerra-5.1/cinelerra/ffmpeg.C;h=e95cc87e6da6f8c835a199db8ea445d9696a8190;hb=HEAD I just added mappings to case BC_RGBA_FLOAT: return AV_PIX_FMT_RGBAF32LE; and from libavcodec case AV_PIX_FMT_RGBAF32LE: return BC_RGBA_FLOAT; did I miss something in setup parameters for this format? ___ 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] [External] Re: Need to reduce size of ffmpeg.exe
it gave below output -hls_list_size 5 -hls_time 5 -hls_flags delete_segments C:\Users \HLSTest\shared\vids\-514225936\stream.m3u8 ffmpeg version n6.0 Copyright (c) 2000-2023 the FFmpeg developers built with Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27045 for x64 configuration: --prefix=ffmpeg_64/ --enable-shared --disable-everything --enable-protocol=rtsp --enable-protocol=http --enable-demuxer=rtsp --enable-muxer=hls --enable-muxer=segment --enable-muxer=mpegts --enable-encoder=mpeg2video --enable-encoder=aac --enable-decoder=h264 --enable-decoder=aac --enable-parser=h264 --enable-parser=aac --enable-filter=copy --enable-filter=aformat --enable-filter=aresample --enable-bsf=h264_mp4toannexb --enable-bsf=aac_adtstoasc --enable-gpl --enable-version3 --enable-nonfree --enable-small --yasmexe='C:/c99/yasm-1.3.0-win64.exe' --target-os=win64 --arch=x86_64 --toolchain=msvc libavutil 58. 2.100 / 58. 2.100 libavcodec 60. 3.100 / 60. 3.100 libavformat60. 3.100 / 60. 3.100 libavdevice60. 1.100 / 60. 1.100 libavfilter 9. 3.100 / 9. 3.100 libswscale 7. 1.100 / 7. 1.100 libswresample 4. 10.100 / 4. 10.100 libpostproc57. 1.100 / 57. 1.100 Input #0, rtsp, from 'rtsp://:@172.31.67.xxx:554/axis-media/media.amp?videocodec=h264': Metadata: title : Session streamed with GStreamer comment : rtsp-server Duration: N/A, start: 0.03, bitrate: N/A Stream #0:0: Video: h264, yuvj420p(pc, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], 30 fps, 30 tbr, 90k tbn [vost#0:0 @ 0284EC40] Unknown encoder 'libx264' Any idea how can we add 'libx264' in my ffmpeg.exe ? Regards, Rahul -Original Message- From: ffmpeg-user On Behalf Of Carl Zwanzig Sent: Wednesday, November 15, 2023 9:01 AM To: ffmpeg-user@ffmpeg.org Subject: [External] Re: [FFmpeg-user] Need to reduce size of ffmpeg.exe WARNING: This message has originated from an External Source. This may be a phishing email that can result in unauthorized access to Honeywell systems. Please use proper judgment and caution when opening attachments, clicking links, scanning QR codes, or responding. On 11/14/2023 2:26 PM, Kumar, Rahul via ffmpeg-user wrote: > After this I ran "make" and "make install" command which created 1.2 > mb ffmpeg.exe in bin folder. This ffmpeg.exe is not working for me. > Can somebody guide me if I am missing anything here? What does "not working" mean? Where there any build warnings or errors? z! ___ 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".
Re: [FFmpeg-user] splitting up video with high quality (HDR, 4k, Dolby Atmos+ TrueHd)
> On 21 Nov 2023, at 01:06, Paul B Mahol wrote: > > On Tue, Nov 21, 2023 at 12:49 AM Sebbi Thueni > wrote: >> : >> ffmpeg -i test.mkv -c:v copy -c:a copy -f segment -segment_time 5 >> test%d.mkv >> or >> ffmpeg -i test.mkv -c:v copy -c:a truehd -f segment -segment_time 5 >> test%d.mkv >> or >> ffmpeg -i test.mkv -map 0:v -c:v copy -map 0:a -c:a copy -f segment >> -segment_time 5 test%d.mkv >> ffmpeg -i test.mkv -map 0:v -c:v copy -map 0:a -c:a truehd -f segment >> -segment_time 5 test%d.mkv >> the sound is not played in all segments. The video is always flawless. My >> question now is if someone can help me to get these segments to work. >> because theoretically it is just a copy of everything and always cut off >> after a few seconds. >> > > Version of ffmpeg? >> The full uncut console output also helps to trace these unintended outcomes. Def ___ 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".