Re: [FFmpeg-user] MP4 to IFF (ILBM) frames export for Amiga

2020-07-07 Thread dave
On Tuesday, 7 July 2020 00:40:54 BST Benoit Deschenes wrote:
> If someone wants to add the saving feature... for the growing Amiga
> community   ;-O...  I think ppmtoilbm is open source.

Is it not possible to output the ppm files from ffmpeg and pipe them into 
ppmtoilbm on the command line?
___
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] How to download encrypted m3u8 providing the key?

2020-07-07 Thread Moritz Barsnick
On Tue, Jul 07, 2020 at 17:56:57 -0300, Matheus Silva wrote:
> but it is strange that ffmpeg does not provide a easy way to set/replace
> the decryption key on the command line

Perhaps it does, but I couldn't figure out whether, and if so, which of
the many key options might apply.

Moritz
___
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] How to download encrypted m3u8 providing the key?

2020-07-07 Thread Matheus Silva
Thanks, this worked! I replaced the key's URI to point to the local file
key and added the full path to the chunks on the external network. To
download I used the command "ffmpeg -protocol_whitelist
file,http,https,tcp,tls,crypto -allowed_extensions ALL -i gordelicia.m3u8
-c copy gordelicia.mp4". I can make a shell script to automate all of this
but it is strange that ffmpeg does not provide a easy way to set/replace
the decryption key on the command line

Em ter, 7 de jul de 2020 17:21, Moritz Barsnick  escreveu:

> Hi Matheus,
>
> On Tue, Jul 07, 2020 at 14:45:08 -0300, Matheus Silva wrote:
> > Guys, how can I download from an encrypted m3u8 but that the key's URI is
> > no longer available? Obviously I downloaded the key previously, a 16 byte
> > file (that I get the hex string using "xxd -p"), I tried the following
> > using the cryptokey parameter but ffmpeg keeps trying to do the
> decryption
> > using the key URI provided in the m3u8 file.
> https://pastebin.com/SNA0CAJ2
>
> I'm not sure you can override the key URI given by the HLS (m3u8). What
> you should be able to do is to download the m3u8, replace all the
> "URI=" in each "EXT-X-KEY:" line, retaining the "IV=", and expanding
> each segment to a full path, from e.g.
> k0_chunk_1594093207765475768_0_a.ts
> to
>
> https://prod-ec-sa-east-1.video.periscope.tv/Transcoding/v1/hls/TZPcueFo9ipbNHlYV8n1AMloI1ea7i-9j4o5BqRsDYGuuqxctEEZEvDHDZbpcVLgY1V0M9kLLIi5QeOlp3q8qA/non_transcode/sa-east-1/periscope-replay-direct-prod-sa-east-1-private/k0_chunk_1594093207765475768_0_a.ts
>
> Then use the local m3u8 file as ffmpeg's input.
>
> You may need some protocol whitelist or some "safe" flag on the ffmpeg
> command line, in order to be able to load content from file and
> network, but ffmpeg will probably tell you so.
>
> Good luck. I'm too lazy to convert your hex command line key argument
> back to a key file in order to test. ;-)
>
> Cheers,
> Moritz
> ___
> 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] Compiling on an aarch64 machine

2020-07-07 Thread Carl Eugen Hoyos
Am Di., 7. Juli 2020 um 21:34 Uhr schrieb Verachten Bruno :

> CFLAGS='-mfpu=neon'

This is apparently not ignored (I thought it should be) and you are
therefore responsible not to set these variables.

Please find out what top-posting means and avoid it here.

Carl Eugen
___
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] How to download encrypted m3u8 providing the key?

2020-07-07 Thread Moritz Barsnick
Hi Matheus,

On Tue, Jul 07, 2020 at 14:45:08 -0300, Matheus Silva wrote:
> Guys, how can I download from an encrypted m3u8 but that the key's URI is
> no longer available? Obviously I downloaded the key previously, a 16 byte
> file (that I get the hex string using "xxd -p"), I tried the following
> using the cryptokey parameter but ffmpeg keeps trying to do the decryption
> using the key URI provided in the m3u8 file. https://pastebin.com/SNA0CAJ2

I'm not sure you can override the key URI given by the HLS (m3u8). What
you should be able to do is to download the m3u8, replace all the
"URI=" in each "EXT-X-KEY:" line, retaining the "IV=", and expanding
each segment to a full path, from e.g.
k0_chunk_1594093207765475768_0_a.ts
to
https://prod-ec-sa-east-1.video.periscope.tv/Transcoding/v1/hls/TZPcueFo9ipbNHlYV8n1AMloI1ea7i-9j4o5BqRsDYGuuqxctEEZEvDHDZbpcVLgY1V0M9kLLIi5QeOlp3q8qA/non_transcode/sa-east-1/periscope-replay-direct-prod-sa-east-1-private/k0_chunk_1594093207765475768_0_a.ts

Then use the local m3u8 file as ffmpeg's input.

You may need some protocol whitelist or some "safe" flag on the ffmpeg
command line, in order to be able to load content from file and
network, but ffmpeg will probably tell you so.

Good luck. I'm too lazy to convert your hex command line key argument
back to a key file in order to test. ;-)

Cheers,
Moritz
___
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] How to download encrypted m3u8 providing the key?

2020-07-07 Thread Matheus Silva
Guys, how can I download from an encrypted m3u8 but that the key's URI is
no longer available? Obviously I downloaded the key previously, a 16 byte
file (that I get the hex string using "xxd -p"), I tried the following
using the cryptokey parameter but ffmpeg keeps trying to do the decryption
using the key URI provided in the m3u8 file. https://pastebin.com/SNA0CAJ2
Warning: the media in question is adult content
___
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] Compiling on an aarch64 machine

2020-07-07 Thread Carl Eugen Hoyos
Am Di., 7. Juli 2020 um 16:07 Uhr schrieb Verachten Bruno :

> Include the log file "ffbuild/config.log" produced by configure as this
> will help solve the problem.

 What is unclear about this request?

Carl Eugen
___
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] Compiling on an aarch64 machine

2020-07-07 Thread Verachten Bruno
Hi,

I had already compiled ffmpeg on a 32bits OS for my aarch64 machine without
too much trouble, but now that I have a 64bits OS, I'd like to compile
ffmpeg too.
The issue I have is that gcc is started with bad options (I'm not sure of
that, that's what I think I understood):
mktemp -u XX
ZgAQ9I
test_ld cc
test_cc
BEGIN /tmp/ffconf.efsAigGe/test.c
1   int main(void){ return 0; }
END /tmp/ffconf.efsAigGe/test.c
gcc -mfpu=neon -c -o /tmp/ffconf.efsAigGe/test.o /tmp/ffconf.efsAigGe/test.c
gcc: error: unrecognized command line option '-mfpu=neon'
C compiler test failed.
poddingue@orangepi4-armbian:~/ffmpeg_sources/FFMpeg-orig$  ./configure
If gcc is a cross-compiler, use the --enable-cross-compile option.
Only do this if you know what cross compiling means.
C compiler test failed.

If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "ffbuild/config.log" produced by configure as this
will help
solve the problem.
gcc is unable to create an executable file.
If gcc is a cross-compiler, use the --enable-cross-compile option.
Only do this if you know what cross compiling means.
C compiler test failed.

My gcc version is :
gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/aarch64-linux-gnu/8/lto-wrapper
Target: aarch64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 8.3.0-6'
--with-bugurl=file:///usr/share/doc/gcc-8/README.Bugs
--enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++ --prefix=/usr
--with-gcc-major-version-only --program-suffix=-8
--program-prefix=aarch64-linux-gnu- --enable-shared
--enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap
--enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes
--with-default-libstdcxx-abi=new --enable-gnu-unique-object
--disable-libquadmath --disable-libquadmath-support --enable-plugin
--enable-default-pie --with-system-zlib --disable-libphobos
--enable-multiarch --enable-fix-cortex-a53-843419 --disable-werror
--enable-checking=release --build=aarch64-linux-gnu
--host=aarch64-linux-gnu --target=aarch64-linux-gnu
Thread model: posix
gcc version 8.3.0 (Debian 8.3.0-6)

My machine is running Debian 10 buster with Kernel: aarch64 Linux
5.4.49-rockchip64.

Is there anything I could do with configure so that it uses the right
options?

Thanks.


-- 
Bruno Verachten
___
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] audio drifts when concat

2020-07-07 Thread Ram Shaffir
Hello all,

Our RPI project uses FFmpeg that captures an ongoing video stream and output it 
in one-second files (we pipe the audio instead of using ‘-f alsa’ as a second 
input as it creates problems when running the code as systemd service but not 
in this way):

arecord -c 2 -r 48000 -f S16_LE | ffmpeg -threads auto -y -re -f v4l2 
-video_size 1920x1080 -input_format yuyv422 -fflags +genpts -flags 
+global_header -i /dev/video0 -i - -vcodec h264_omx -s 1280x720 -r 30 
-framerate 30 -g 30 -keyint_min 30 -force_key_frames "expr:gte(t,n_forced*1)" 
-pix_fmt yuv420p -b:v 10M -minrate 10M -maxrate 10M -bufsize 20M -f mp4 -f 
segment -segment_time 1 -reset_timestamps 1 -muxdelay 0 -muxpreload 0 -map 0:v 
-map 1:a -acodec aac /usr/ramDisk/%d.mp4

Based on an external event, another FFmpeg fired up and concat some of the 
one-second files:

ffmpeg -y -f concat -safe 0 -copyts -i /usr/ramDisk/video.txt -vcodec copy 
-muxpreload 0 -muxdelay 0 -movflags +dash /usr/ramDisk/merged_video.mp4

The ‘merged_video.mp4’  audio isn’t in sync with the video so we tried to move 
one of the channels:

ffmpeg -y -i /usr/ramDisk/merged_video.mp4 -ss 00:00:03.100 -i 
/usr/ramDisk/merged_video.mp4 -map 1:v -map 0:a -c:v copy -c:a copy -f mp4 
/usr/ramDisk/merged_final.mp4

Although the audio synced at the beginning of ‘merged_final.mp4’, however, it 
drifts away as the video progresses.

Below are outputs for all three FFmpegs outputs:

pi@raspberrypi:~ $ sudo arecord -c 2 -r 48000 -f S16_LE | ffmpeg -threads auto 
-y -re -f v4l2 -video_size 1920x1080 -input_format yuyv422 -fflags +genpts 
-flags +global_header -i /dev/video0 -i - -vcodec h264_omx -s 1280x720 -r 30 
-framerate 30 -g 30 -keyint_min 30 -force_key_frames "expr:gte(t,n_forced*1)" 
-pix_fmt yuv420p -b:v 10M -minrate 10M -maxrate 10M -bufsize 20M -f mp4 -f 
segment -segment_time 1 -reset_timestamps 1 -muxdelay 0 -muxpreload 0 -map 0:v 
-map 1:a -acodec aac /usr/ramDisk/%d.mp4^C
pi@raspberrypi:~ $ sudo arecord -c 2 -r 48000 -f S16_LE | ffmpeg -threads auto 
-y -re -f v4l2 -video_size 1920x1080 -input_format yuyv422 -fflags +genpts 
-flags +global_header -i /dev/video0 -i - -vcodec h264_omx -s 1280x720 -r 30 
-framerate 30 -g 30 -keyint_min 30 -force_key_frames "expr:gte(t,n_forced*1)" 
-pix_fmt yuv420p -b:v 10M -minrate 10M -maxrate 10M -bufsize 20M -f mp4 -f 
segment -segment_time 1 -reset_timestamps 1 -muxdelay 0 -muxpreload 0 -map 0:v 
-map 1:a -acodec aac /usr/ramDisk/%d.mp4^C
pi@raspberrypi:~ $ arecord -c 2 -r 48000 -f S16_LE | ffmpeg -threads auto -y 
-re -f v4l2 -video_size 1920x1080 -input_format yuyv422 -fflags +genpts -flags 
+global_header -i /dev/video0 -i - -vcodec h264_omx -s 1280x720 -r 30 
-framerate 30 -g 30 -keyint_min 30 -force_key_frames "expr:gte(t,n_forced*1)" 
-pix_fmt yuv420p -b:v 10M -minrate 10M -maxrate 10M -bufsize 20M -f mp4 -f 
segment -segment_time 1 -reset_timestamps 1 -muxdelay 0 -muxpreload 0 -map 0:v 
-map 1:a -acodec aac /usr/ramDisk/%d.mp4
ffmpeg version 4.1.4-1+rpt7~deb10u1 Copyright (c) 2000-2019 the FFmpeg 
developers
  built with gcc 8 (Raspbian 8.3.0-6+rpi1)
  configuration: --prefix=/usr --extra-version='1+rpt7~deb10u1' 
--toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl 
--disable-stripping --enable-avresample --disable-filter=resample 
--enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom 
--enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca 
--enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig 
--enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm 
--enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg 
--enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg 
--enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr 
--enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame 
--enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack 
--enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid 
--enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal 
--enable-opengl --enable-sdl2 --enable-omx-rpi --enable-mmal --enable-neon 
--enable-rpi --enable-libdc1394 --enable-libdrm --enable-libiec61883 
--enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared 
--libdir=/usr/lib/arm-linux-gnueabihf --cpu=arm1176jzf-s --arch=arm
  WARNING: library configuration mismatch
  avutil  configuration: --prefix=/usr --extra-version='1+rpt7~deb10u1' 
--toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl 
--disable-stripping --enable-avresample --disable-filter=resample 
--enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom 
--enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca 
--enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig 
--enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm 
--enable-libjack --enable-libmp3lame