Re: [FFmpeg-user] ffprobe does not render sdes tag field properly
In the end it‘s working for me, but it‘s kinda strange. If I save the JSON output as utf-8 I have no problems at all. Anyways, thanks for you idea and Feedback. Kind regards Von: Nicolas George Gesendet: Freitag, 3. Juni 2022 14:52 An: FFmpeg user questions Betreff: Re: [FFmpeg-user] ffprobe does not render sdes tag field properly Robin van der Linden via ffmpeg-user (12022-06-03): > After stealing the Tesseract in \"Avengers: Endgame,\" Loki lands before the > Time Variance Authority. This looks like escaping of a character that has a meaning in the surrounding language, a completely different issue than the issue of international characters. But you did not tell how exactly you get this output, so I cannot say more. I suspect you are missing a lot of theoretical background necessary to achieve your goals. > Am 2022-06-03 11:36, schrieb Nicolas George: Top-posting is forbidden on this mailing-list; if you do not know what it means look it up. Regards, -- Nicolas George ___ 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] Please increase the number of variables
Am 03.06.2022 um 17:30 schrieb Paul B Mahol: On Fri, Jun 3, 2022 at 5:05 PM Michael Koch wrote: Hello, I'd like to ask if the number of variables in expressions could be increased from 10 to 25 please. I mean the st() and ld() functions. I'm just programming a realtime wormhole simulation and the limitation to 10 variables is becoming nasty. I did already begin to re-use the same variables for different things, but that makes debugging complicated. It would be so much easier to have more variables and use each one only for one thing. What you see below is only a small part of the code. Why you doing that way, this is the most inefficient way to do it. Computing time doesn't care in this case. The code is only generating the mapping files for the remap filter. In the realtime part of the simulation are no complicated functions. I can solve the problem with just 10 variables, but it would be much easier (and better readable code) if more variables were available. Michael -- ** ASTRO ELECTRONIC Dipl.-Ing. Michael Koch Raabestr. 43 37412 Herzberg www.astro-electronic.de Tel. +49 5521 854265 Fax +49 5521 854266 ** ___ 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] Please increase the number of variables
On Fri, Jun 3, 2022 at 5:05 PM Michael Koch wrote: > Hello, > > I'd like to ask if the number of variables in expressions could be > increased from 10 to 25 please. I mean the st() and ld() functions. I'm > just programming a realtime wormhole simulation and the limitation to 10 > variables is becoming nasty. I did already begin to re-use the same > variables for different things, but that makes debugging complicated. It > would be so much easier to have more variables and use each one only for > one thing. > What you see below is only a small part of the code. > Why you doing that way, this is the most inefficient way to do it. > > Thanks, > Michael > > > ffmpeg -f lavfi -i nullsrc=size=%OUT_W%x%OUT_H% -vf > format=pix_fmts=gray16le,geq='^ > st(0,PI/360*%OUT_H_FOV%*((2*X+1)/%OUT_W%-1));^ > st(1,PI/360*%OUT_V_FOV%*((2*Y+1)/%OUT_H%-1));^ > st(4,cos(ld(1))*sin(ld(0)));^ > st(5,sin(ld(1)));^ > st(6,cos(ld(1))*cos(ld(0)));^ > st(7,atan2(ld(5),ld(4)));^ > st(8,acos(ld(6)));^ > st(9,if(lte(ld(8),%RS%/180*PI),%OUT_W%,0));^ > > st(8,if(gt(ld(8),%RS%/180*PI),ld(8)-(2*%RS%/180*PI/(ld(8)-%RS%/180*PI)),0));^ > st(4,sin(ld(8))*cos(ld(7)));^ > st(5,sin(ld(8))*sin(ld(7)));^ > st(6,cos(ld(8)));^ > st(7,atan2(ld(4),ld(6)));^ > st(8,asin(ld(5)));^ > ld(9)+0.5*%IN_W%*(1+ld(7)/%IN_H_FOV%*360/PI)' -frames 1 -y xmap.pgm > ___ > 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] Please increase the number of variables
Hello, I'd like to ask if the number of variables in expressions could be increased from 10 to 25 please. I mean the st() and ld() functions. I'm just programming a realtime wormhole simulation and the limitation to 10 variables is becoming nasty. I did already begin to re-use the same variables for different things, but that makes debugging complicated. It would be so much easier to have more variables and use each one only for one thing. What you see below is only a small part of the code. Thanks, Michael ffmpeg -f lavfi -i nullsrc=size=%OUT_W%x%OUT_H% -vf format=pix_fmts=gray16le,geq='^ st(0,PI/360*%OUT_H_FOV%*((2*X+1)/%OUT_W%-1));^ st(1,PI/360*%OUT_V_FOV%*((2*Y+1)/%OUT_H%-1));^ st(4,cos(ld(1))*sin(ld(0)));^ st(5,sin(ld(1)));^ st(6,cos(ld(1))*cos(ld(0)));^ st(7,atan2(ld(5),ld(4)));^ st(8,acos(ld(6)));^ st(9,if(lte(ld(8),%RS%/180*PI),%OUT_W%,0));^ st(8,if(gt(ld(8),%RS%/180*PI),ld(8)-(2*%RS%/180*PI/(ld(8)-%RS%/180*PI)),0));^ st(4,sin(ld(8))*cos(ld(7)));^ st(5,sin(ld(8))*sin(ld(7)));^ st(6,cos(ld(8)));^ st(7,atan2(ld(4),ld(6)));^ st(8,asin(ld(5)));^ ld(9)+0.5*%IN_W%*(1+ld(7)/%IN_H_FOV%*360/PI)' -frames 1 -y xmap.pgm ___ 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] ffprobe does not render sdes tag field properly
Robin van der Linden via ffmpeg-user (12022-06-03): > After stealing the Tesseract in \"Avengers: Endgame,\" Loki lands before the > Time Variance Authority. This looks like escaping of a character that has a meaning in the surrounding language, a completely different issue than the issue of international characters. But you did not tell how exactly you get this output, so I cannot say more. I suspect you are missing a lot of theoretical background necessary to achieve your goals. > Am 2022-06-03 11:36, schrieb Nicolas George: Top-posting is forbidden on this mailing-list; if you do not know what it means look it up. Regards, -- Nicolas George signature.asc Description: PGP signature ___ 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] Audio transcoding with hardware acceleration
In Thu, 2 Jun 2022 18:51:23 + (UTC) james young via ffmpeg-user wrote: > Hi,I am working on a software which converts the audio to mp3 with 8k > bitrate using ffmpeg. The audio can be of any codec and the output > will be mp3. This conversion takes longer time to finish for codecs > like opus. So I am intending to use the gpu based machines to speed > it up. So far i have tried this guide > https://docs.nvidia.com/video-technologies/video-codec-sdk/ffmpeg-with-nvidia-gpu/ > which tells to build ffmpeg with --enable-cuda-nvcc --enable-libnpp > options. Performing the configuration in this guide will only allow > the video conversion to use the hardware acceleration. Hardware > acceleration is not being used for audio conversion. Is hardware > acceleration supported for audio conversion? Regards,James > ___ 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". Besides nv, there's also family of video opencl plugins, with "program-opencl" among them. If you are using API, you could make verbatic A->V conversion before chain (just by copying audio data into 1-row video) and vice versa. Some depth bits could be moved into size domain (I'm not sure though, which dimention is best to encode depth in opencl, since I never worked with opencl). Could be even so, that opencl doesn't restrict texture size at all, unlike vaapi, vdpau, opengl. Without programmatic approach - the only solution I see is using predefined A->V and V->A conversion plugins, like waveshape generator for input and... well, I see only spectrumsynth for output. Although such power waste could at least compensate opencl performance boost (if not make it worse). ___ 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] ffprobe does not render sdes tag field properly
Well, that would make a lot of sense. But, if I look at other fields, the encoding is again different. For example, in the synopsis field: My input: After stealing the Tesseract in "Avengers: Endgame," Loki lands before the Time Variance Authority. ffprobe output: After stealing the Tesseract in \"Avengers: Endgame,\" Loki lands before the Time Variance Authority. So the conversion of " is again different here. I switched from PowerShell to a Linux bash terminal to see if it makes any difference, and it does! The "sdes" field is now correct, but the "synopsis" field is still as shown above (as it was already before switching to a different terminal.) That would mean in conclusion that my Terminal might not by responsible for the encoding issue, at least not completely ... Thanks in advance, Robin Am 2022-06-03 11:36, schrieb Nicolas George: Robin van der Linden via ffmpeg-user (12022-06-03): It seems that ffprobe does not render special characters the right way for that field. ffprobe does not do any rendering, it writes the text to its standard outputs, the task of rendering falls on whatever program is connected to the outputs. It seems your problem is that your terminal does not work in UTF-8. But you did not say which terminal you use, so I cannot help further. Regards, -- Grüße / Kind regards, Robin van der Linden 0x257F9C8D.asc Description: application/pgp-keys ___ 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] ffprobe does not render sdes tag field properly
Robin van der Linden via ffmpeg-user (12022-06-03): > It seems that ffprobe does not render special characters the right way for > that field. ffprobe does not do any rendering, it writes the text to its standard outputs, the task of rendering falls on whatever program is connected to the outputs. It seems your problem is that your terminal does not work in UTF-8. But you did not say which terminal you use, so I cannot help further. Regards, -- Nicolas George ___ 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] ffprobe does not render sdes tag field properly
Hello, I'm using ffprobe to read various metadata from my video files. One of these fields is called "sdes" and represents a TV-Show description. You will only see this filed if your command contains "-export_all" for example: "ffprobe -print_format json -export_all true -show_programs -show_streams -show_format -loglevel quiet -hide_banner " It seems that ffprobe does not render special characters the right way for that field. If the content of that field contains special chars, these will get rendered wrong. TO give you a better example, please see the following text comparison: This is the content I save to the file: After stealing the Tesseract during the events of “Avengers: Endgame,” an alternate version of Loki is brought to the mysterious Time Variance Authority, a bureaucratic organization that exists outside of time and space and monitors the timeline. They give Loki a choice: face being erased from existence due to being a “time variant” or help fix the timeline and stop a greater threat. @!"§$%&/() This is what the ffprobe command from above outputs: After stealing the Tesseract during the events of ÔÇ£Avengers: Endgame,ÔÇØ an alternate version of Loki is brought to the mysterious Time Variance Authority, a bureaucratic organization that exists outside of time and space and monitors the timeline. They give Loki a choice: face being erased from existence due to being a ÔÇ£time variantÔÇØ or help fix the timeline and stop a greater threat. \r\n@!\"┬º$%&/() Where does this issue come from? To me, it seems like an encoding issue. Can somebody help? -- Kind regards and thanks in advance, Robin Linden 0x257F9C8D.asc Description: application/pgp-keys ___ 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".