Re: [FFmpeg-user] tried scene extractions, but "Output file is empty, nothing was encoded"

2016-01-07 Thread Takenori Sato
Hi Carl,

Thanks for your answer.

> Your video does not contain a scene change;-(

Ouch!

Perhaps, I misunderstood "scene change".

It is a test surveillance camera.
So mostly no change.
I wanted to get images when people passed by.

> The following does approximately what you want
> but I am not sure if the select filter is
> appropriate at all:
> -vf select='gt(scene\,0.03)'

I see. Then, by lowering the threshold,
I would get, at least, some images.

> You could also test mpdecimate with very high
> custom values, see:
> https://ffmpeg.org/ffmpeg-filters.html#mpdecimate

Thanks. I will try both.

- Takenori

On Thu, Jan 7, 2016 at 6:09 PM, Carl Eugen Hoyos  wrote:
> Takenori Sato  cloudian.com> writes:
>
>> I tried to get scene changes with the following
>> command, but failed to extract any scenes.
>
> Your video does not contain a scene change;-(
>
> The following does approximately what you want
> but I am not sure if the select filter is
> appropriate at all:
> -vf select='gt(scene\,0.03)'
> You could also test mpdecimate with very high
> custom values, see:
> https://ffmpeg.org/ffmpeg-filters.html#mpdecimate
>
> Carl Eugen
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] Feeding SPDIF from ffmpeg (Was: Re: Ingest of SMPTE-377M)

2016-01-07 Thread Carl Eugen Hoyos
Moritz Barsnick  gmx.net> writes:

> By this, I can also confirm that MP3 or MP2 in SPDIF 
> doesn't work for me, which was the whole point of 
> this experiment.

Yes, I could have told you so;-)

Some Sony hardware supports ATRAC and there was a 
receiver that was able to decode WMApro.

Carl Eugen

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] distorted video while uploading mp4 file over RTSP using ffmpeg.exe

2016-01-07 Thread Carl Eugen Hoyos
Lalit Patil  gmail.com> writes:

> ffmpeg.exe -re -i input.mp4 -vcodec libx264 -vprofile high 
> -r 24 -g 48 -vb 15 -strict experimental -acodec aac 
> -ab 96000 -ar 48000 -ac 2 -f rtsp
> rtsp://[server address]:[port]/live/output

Complete, uncut console output missing.

Carl Eugen

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] Can I use FFmpeg in mobile (ios/android) under LGPL2.1 license

2016-01-07 Thread Carl Eugen Hoyos
Sun Xiao Dong  ubisoft.com> writes:

> ?  b) Use a suitable shared library mechanism for 
> linking with the Library.

Since iOS does not support shared libraries, this 
paragraph does not apply, you have to provide the 
object files to allow linking with another version 
of FFmpeg (paragraph 6.a).

Carl Eugen

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


[FFmpeg-user] Invalid data found when processing input

2016-01-07 Thread chovy
I'm getting an "Invalid data found when processing input" when trying to copy 
this stream:


ffmpeg -i 
http://nflioslivesvg2-i.akamaihd.net/hls/live/221521/nflioslive/2015HackerNow_w99d9_g.m3u8
 -user-agent iPad -c:v copy -c:a copy test.m3u8

ffmpeg version 2.8.3 Copyright (c) 2000-2015 the FFmpeg developers
built with Apple LLVM version 7.0.0 (clang-700.1.76)
configuration: --prefix=/usr/local/Cellar/ffmpeg/2.8.3 --enable-shared 
--enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables 
--enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-opencl 
--enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid 
--enable-vda
libavutil 54. 31.100 / 54. 31.100
libavcodec 56. 60.100 / 56. 60.100
libavformat 56. 40.101 / 56. 40.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 40.101 / 5. 40.101
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.101 / 1. 2.101
libpostproc 53. 3.100 / 53. 3.100
http://nflioslivesvg2-i.akamaihd.net/hls/live/221521/nflioslive/2015HackerNow_w99d9_g.m3u8:
 Invalid data found when processing input
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] Ingest of SMPTE-377M

2016-01-07 Thread Mark Nelson
I owe you a ton of answers on this, and they will come, but I will hit the
easy ones right now.

>> Works fine in my configuration, which is: File
>> playing in AJA Control Room, which generates an SDI
>> signal for ingest on a video encoder.
>
>Does "playing" here mean you can hear the sound?

This is a little tricky to answer. The output of AJA ControlRoom is SDI
format. To "listen" to that, I am connecting the output of AJA Control Room
(SDI format) to the SDI input on an AJA Kona4 card, then encoding it with a
Cisco CAL live encoder. The output from that contains correct AC3 or EAC3
audio streams, so yeah, they can be listened to.

In that SDI format, the SMPTE 377M packetized AC3 or EAC3 is encoded in the
horizontal blanking area in a standard format.

I'm pretty sure that the SDI output from AJA Control Room is correct. I can
compare that to SDI output from a Sencore encoder, and the encapsulation of
the AC3/EAC3 is identical.

There is still the possibility that AJA Control Room is broken, and the
file format that I feed it has to be wrong in order to get good output. I
am honestly not sure how to pursue this question. The SMPTE-377M encoded
data packed in a WAV file or embedded as bogus PCM in a MOV file (which I
also use in Control Room) is pretty non-standard and I don't know of
anything that expects to play it. I still need to understand how you are
able to play SPDIF encoded audio using the ALSA drivers. What exactly is
your amplifier?


Does "playing" here mean you can hear the sound?

>> Similarly encoded files from the Dolby test kit in
>> both eac3 and ac3 formats work with AJA Control Room.
>
>Does "similarly" mean thy have the same "wrong" (see
>below) data-type as the file you uploaded?

The answer to this is yes in two ways. A typical 377 WAV file provided by
Dolby in their testing tools contains the following SMPTE 377 header bytes:

72 F8 1F 4E 01 00 00 14 77 0B

That matches the spec in that Pa = 0xF872 (16 bit mode)
Pb = 0x4E1F (16 bit mode)
Pc (burst_info) = 0x0001 (data type 1)
Pd (length_code) = 0x1400 (0x280 bytes)

SMPTE S340 says that an AC3 data burst should have data type 1, and that an
EAC3 data burst should have a data type of 16. That spec applies to AES3
data streams. This matches the data types described in SMPTE 388. And if
that doesn't match up with the data types in IEC 61937-2, it means AES3 and
SPDIF are not quite compatible.

When I say "in two ways", the second way is that the Dolby SDK provides a
tool called SMPTE that reads a raw AC3 or EAC3 file and packs it into a WAV
file with appropriate SMPTE 377M headers. It creates the same header.

I'll continue working on better answers to what is still pretty confusing
to me. Thanks for the help so far!

--

Mark Nelson – ma...@ieee.org - http://marknelson.us
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] Ingest of SMPTE-377M

2016-01-07 Thread Carl Eugen Hoyos
Carl Eugen Hoyos  ag.or.at> writes:

> Mark Nelson  ieee.org> writes:
> 
> > Same file wrappred in SMPTE-377M headers and packaged 
> > in a WAV file as if it were 1536 kbps PCM:
> > 
> > https://www.dropbox.com/s/tec7al5bcmihwey/sample.eac3.337.wav

Isn't SMPTE-377M the MXF specification? How is it 
related to SPDIF / AES3?

Carl Eugen

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] Ingest of SMPTE-377M

2016-01-07 Thread Carl Eugen Hoyos
Mark Nelson  ieee.org> writes:

> I still need to understand how you are able to play 
> SPDIF encoded audio using the ALSA drivers. What 
> exactly is your amplifier?

It is a Kenwood V7300D but that doesn't matter: 
Any Dolby-compatible decoder connected via HDMI is 
expected to work fine.
I didn't know that there is another usage for the 
SPDIF format...

> And if that doesn't match up with the data types 
> in IEC 61937-2, it means AES3 and SPDIF are not 
> quite compatible.

That is really cool given that they use the same 
(32bit!) header.

I start to understand that SMPTE is everything but 
a standardization organisation, see VC-5 (which is 
a standard without specification iiuc).

Can you provide a mov file containing such audio?
Did you test if an AC-3 spdif file produced with 
FFmpeg works in your toolchain? It should be easy 
to also allow this for eac3.

Carl Eugen

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


[FFmpeg-user] ffmpeg %04d.png to test.flash

2016-01-07 Thread Willem Piening
Hello,

I'm a novice in using ffmpeg and i looked around on the net to find some idea's 
about using ffmpeg to convert
a series of png files with alpha channel to a flash movie with the alpha 
channel respected.

I found some msg's about how to do this but in my case they don't work.
ffmpeg -i %04d.png  -convert -?? test.avi

Now i would like to ask how to do this the proper way so it would work. 
Is it possible that i miss a "codec" to transform 1527 png files to a flash 
movie keeping the alpha channel?
The png files are created with powerpoint under a batch proces, using a new 
background that is transparent and with 
editing the png removing the background so i have a object with a transparent 
background.

Could someone help me on this so i can understand ffmpeg better, many options 
and possibilities but with trial and error i 
go nowhere. 

Many thanks for the given assistance upfront.
Regards
Willem.







Dit e-mailbericht is verzonden vanaf een virusvrije computer 
die wordt beschermd door Avast. www.avast.com  


  
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


[FFmpeg-user] I got the error when I execute ./compile-ffmpeg.sh all

2016-01-07 Thread zhangxiaow
wangruideMac-mini:ios heguoping$ ./compile-ffmpeg.sh all

[*] check xcode version

FF_ALL_ARCHS = armv7 arm64 i386 x86_64

[*] check host

build_root: /Users/heguoping/Documents/GitHub_Project/ijkplayer-ios/ios

[*] check gas-preprocessor

gasp: 
/Users/heguoping/Documents/GitHub_Project/ijkplayer-ios/ios/../extra/gas-preprocessor/gas-preprocessor.pl

[*] config arch armv7

build_name: ffmpeg-armv7
platform:  iPhoneOS
osversion: -miphoneos-version-min=6.0

[*] make ios toolchain ffmpeg-armv7

build_source: 
/Users/heguoping/Documents/GitHub_Project/ijkplayer-ios/ios/ffmpeg-armv7
build_prefix: 
/Users/heguoping/Documents/GitHub_Project/ijkplayer-ios/ios/build/ffmpeg-armv7/output



[*] configurate ffmpeg




[*] check OpenSSL
--



[*] configure
--
config:  --disable-gpl --disable-nonfree --enable-runtime-cpudetect 
--disable-gray --disable-swscale-alpha --disable-programs --disable-ffmpeg 
--disable-ffplay --disable-ffprobe --disable-ffserver --disable-doc 
--disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages 
--disable-avdevice --enable-avcodec --enable-avformat --enable-avutil 
--enable-swresample --enable-swscale --disable-postproc --enable-avfilter 
--disable-avresample --enable-network --disable-dxva2 --disable-vaapi 
--disable-vda --disable-vdpau --disable-encoders --disable-decoders 
--enable-decoder=aac --enable-decoder=aac_latm --enable-decoder=flv 
--enable-decoder=h263 --enable-decoder=h263i --enable-decoder=h263p 
--enable-decoder=h264 --enable-decoder=mp3* --enable-decoder=vp6 
--enable-decoder=vp6a --enable-decoder=vp6f --disable-hwaccels --disable-muxers 
--enable-muxer=mpegts --enable-muxer=mp4 --disable-demuxers 
--enable-demuxer=aac --enable-demuxer=concat --enable-demuxer=data 
--enable-demuxer=flv --enable-demuxer=hls --enable-demuxer=latm 
--enable-demuxer=live_flv --enable-demuxer=loas --enable-demuxer=m4v 
--enable-demuxer=mov --enable-demuxer=mp3 --enable-demuxer=mpegps 
--enable-demuxer=mpegts --enable-demuxer=mpegvideo --disable-parsers 
--enable-parser=aac --enable-parser=aac_latm --enable-parser=h263 
--enable-parser=h264 --enable-bsfs --disable-bsf=mjpeg2jpeg 
--disable-bsf=mjpeg2jpeg --disable-bsf=mjpega_dump_header 
--disable-bsf=mov2textsub --disable-bsf=text2movsub --enable-protocols 
--disable-protocol=async --disable-protocol=bluray 
--disable-protocol=ffrtmpcrypt --enable-protocol=ffrtmphttp 
--disable-protocol=gopher --disable-protocol=librtmp* --disable-protocol=libssh 
--disable-protocol=mmsh --disable-protocol=mmst --disable-protocol=rtmp* 
--enable-protocol=rtmp --enable-protocol=rtmpt --disable-protocol=rtp 
--disable-protocol=sctp --disable-protocol=srtp --disable-protocol=unix 
--disable-devices --enable-filters --disable-iconv --enable-cross-compile 
--disable-stripping --arch=armv7 --target-os=darwin --enable-static 
--disable-shared --enable-pic --enable-neon --enable-optimizations 
--enable-debug --enable-small 
--prefix=/Users/heguoping/Documents/GitHub_Project/ijkplayer-ios/ios/build/ffmpeg-armv7/output
 xcrun -sdk iphoneos clang
xcrun -sdk iphoneos clang is unable to create an executable file.
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 "config.log" produced by configure as this will help
solve the problem.


I got the error log information,how to resolve the problem? thx!
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


[FFmpeg-user] jpeg2000?

2016-01-07 Thread G Alexander
Is this fixed yet?

usually you have enable openjpeg, you need to disable jpeg2000, the wiki is 
full of open/closed, etc

'--enable-libopenjpeg ‘
'--disable-decoder=jpeg2000 '
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] tried scene extractions, but "Output file is empty, nothing was encoded"

2016-01-07 Thread Takenori Sato
>> You could also test mpdecimate with very high
>> custom values, see:
>> https://ffmpeg.org/ffmpeg-filters.html#mpdecimate
>
> Thanks. I will try both.

mpdecimate=hi=4096:lo=2048

This gave me what I wanted.

Thanks!

On Fri, Jan 8, 2016 at 9:25 AM, Takenori Sato  wrote:
> Hi Carl,
>
> Thanks for your answer.
>
>> Your video does not contain a scene change;-(
>
> Ouch!
>
> Perhaps, I misunderstood "scene change".
>
> It is a test surveillance camera.
> So mostly no change.
> I wanted to get images when people passed by.
>
>> The following does approximately what you want
>> but I am not sure if the select filter is
>> appropriate at all:
>> -vf select='gt(scene\,0.03)'
>
> I see. Then, by lowering the threshold,
> I would get, at least, some images.
>
>> You could also test mpdecimate with very high
>> custom values, see:
>> https://ffmpeg.org/ffmpeg-filters.html#mpdecimate
>
> Thanks. I will try both.
>
> - Takenori
>
> On Thu, Jan 7, 2016 at 6:09 PM, Carl Eugen Hoyos  wrote:
>> Takenori Sato  cloudian.com> writes:
>>
>>> I tried to get scene changes with the following
>>> command, but failed to extract any scenes.
>>
>> Your video does not contain a scene change;-(
>>
>> The following does approximately what you want
>> but I am not sure if the select filter is
>> appropriate at all:
>> -vf select='gt(scene\,0.03)'
>> You could also test mpdecimate with very high
>> custom values, see:
>> https://ffmpeg.org/ffmpeg-filters.html#mpdecimate
>>
>> Carl Eugen
>>
>> ___
>> ffmpeg-user mailing list
>> ffmpeg-user@ffmpeg.org
>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


[FFmpeg-user] Syphon Ffmpeg bridge

2016-01-07 Thread Kenneth Fields
Dear all,
Is there any news of late regarding a syphon bridge to/from ffmpeg?
I found a couple old posting on v002:
http://v002.info/forums/topic/syphon-piped-to-ffmpeg/ 


Thanks in advance,
Ken


___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


[FFmpeg-user] yuv420p format

2016-01-07 Thread Ran Shalit
Hello,

I would like to ask what is the actual color format of yuv420p as used
with ffmpeg in pixel_format option.

I have captured video with V4L2_PIX_FMT_YUV420  format (described in
https://linuxtv.org/downloads/v4l-dvb-apis/re25.html )
But the captured video is not played correctly with
ffplay -f rawvideo -pixel_format yuv420p -video_size 1920x1080 -i
cap_yuv420p.yuv

Is V4L2_PIX_FMT_YUV420 (v4l2)  and yuv420p (ffmpeg) the same ?

Thank you,
Ran
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] Mpeg PID vs. program id?

2016-01-07 Thread Andy Furniss

Roger Pack wrote:

Hello.  I'm trying to understand how MPEG mapping terminology works.

Given this type of input:
$ ffmpeg -i INPUT
...
Input #0, mpegts, from 'INPUT':
   Duration: N/A, start: 22159.226833, bitrate: N/A
   Program 1346
 Metadata:
   service_name: 7TWO
   service_provider: Seven Network
 Stream #0:3[0x406]: Unknown: none ([5][0][0][0] / 0x0005)
 Stream #0:6[0x421]: Video: mpeg2video (Main) ([2][0][0][0] /
0x0002), yuv420p(tv), 720x576 [SAR 64:45 DAR 16:9], max. 14950 kb/s,
25 fps, 25 tbr, 90k tbn, 50 tbc
 Stream #0:7[0x422](eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000
Hz, stereo, s16p, 192 kb/s
 Stream #0:8[0x424](eng): Subtitle: dvb_teletext ([6][0][0][0] /
0x0006), 492x250
 Stream #0:4[0x499]: Unknown: none ([11][0][0][0] / 0x000B)

I know I can "map out" streams by using

ffmpeg -i INPUT -map 0:p:1346 #  both inputs from program 1344

or to select a single stream

ffmpeg -i INPUT -map i:0x40

Question:
in this documentation:

https://ffmpeg.org/ffmpeg.html#Stream-specifiers-1

It refers to the first example as selecting by "program id"
and the second example as selecting
"by stream id (e.g. PID in MPEG-TS container)."

What is the difference between "program id" and "PID" in this
verbiage? Does PID stand for program id here?


https://en.wikipedia.org/wiki/MPEG_transport_stream

PID = Packet Identifier



It works, just wondering.
Also as a follow up, is it possible to select by service_name (7TWO in
this instance)?
Thanks!
-roger-
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user



___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] Invalid data found when processing input

2016-01-07 Thread a...@fumatic.org


- Reply message -
From: "chovy" 
To: "ffmpeg-user@ffmpeg.org" 
Subject: [FFmpeg-user] Invalid data found when processing input
Date: Thu, Jan 7, 2016 4:37 AM

I'm getting an "Invalid data found when processing input" when trying to copy 
this stream:


ffmpeg -i 
http://nflioslivesvg2-i.akamaihd.net/hls/live/221521/nflioslive/2015HackerNow_w99d9_g.m3u8
 -user-agent iPad -c:v copy -c:a copy test.m3u8

ffmpeg version 2.8.3 Copyright (c) 2000-2015 the FFmpeg developers
built with Apple LLVM version 7.0.0 (clang-700.1.76)
configuration: --prefix=/usr/local/Cellar/ffmpeg/2.8.3 --enable-shared 
--enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables 
--enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-opencl 
--enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid 
--enable-vda
libavutil 54. 31.100 / 54. 31.100
libavcodec 56. 60.100 / 56. 60.100
libavformat 56. 40.101 / 56. 40.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 40.101 / 5. 40.101
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.101 / 1. 2.101
libpostproc 53. 3.100 / 53. 3.100
http://nflioslivesvg2-i.akamaihd.net/hls/live/221521/nflioslive/2015HackerNow_w99d9_g.m3u8:
 Invalid data found when processing input
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
I believe the issue may be server side.I got a 500 error off akamai.that link 
is all over the Internet.I often pull my m3u8 files off akamai with: ffmpeg -i 
https://akamai.net/this.m3u8 -c copy that.m3u8If the master m3u8 contains 
multiple bitrate m3u8 files you may want to use one of those instead.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


[FFmpeg-user] Feeding SPDIF from ffmpeg (Was: Re: Ingest of SMPTE-377M)

2016-01-07 Thread Moritz Barsnick
On Thu, Jan 07, 2016 at 14:28:29 +, Carl Eugen Hoyos wrote:
> Moritz Barsnick  gmx.net> writes:
> EAC3, TrueHD and DTS-HD are only supported via HDMI, 
> AC3 and DTS (without HD) work both via HDMI and TOSLINK.

Interesting!

> > Now I need to know how to output raw DTS or raw SPDIF 
> > to my PC's SPDIF dongle. 
> 
> See my earlier email in this thread, replace eac3 
> with ac3 and 192k with 48k and choose the correct 
> alsa device, could be hw=0.1.

I got it to work as such (generator and encoder piped to an extra
command for feeding alsa):

$ ffmpeg -f lavfi -i sine=200 -f lavfi -i sine=390 -filter_complex amerge -map 
"[a]" -c:a dca -strict experimental -ac 2 -ar 48k -f spdif - \
  | ffmpeg -f s16le -ac 2 -ar 48k -i - -c:a copy -f alsa hw:2,0

SPDIF over TOSLINK only supports up to 48k sample rate? I thought I had
read differently, but my memory is really bad (see below).

My audio player recognizes this as "dts". Funnily, if I use "ac3" as
ffmpeg's codec in the first command, it also plays fine, but *doesn't*
say "Dolby Digital" as it usually would. (Neither if I use six channels
via amerge=inputs=6.) *sigh* Whatever, should be fine all the same. It
*must* be Dolby. If I feed the "ffmpeg SPDIF to ALSA feeder" with:
$ ffmpeg -i Test\ AC3\ v2.0.avi -map 0:a -c:a copy -f spdif -
it does say "DD Digital" on the display. Must be something in the
stream AC3 perhaps?

Thanks so much!

By this, I can also confirm that MP3 or MP2 in SPDIF doesn't work for
me, which was the whole point of this experiment.

Moritz
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user