Carl Eugen Hoyos <cehoyos <at> ag.or.at> writes:
Bartlomiej Wolowiec <bartek.wolowiec <at> gmail.com> writes:
Here is IEC61937 compatible muxer. It can be used for sending compressed data over S/PDIF link. It's currently not very useful, but can be tested by: ./ffmpeg -y -i test_48khz.dts -acodec copy -f spdif test.spdif && ./ffmpeg -ar 48000 -f s16le -ac 2 -i test.spdif -f alsa plughw:0
Did anybody ever test this (successfully)? With the exact command line (and a dts and an ac3 sample), I get "av_interleaved_write_frame(): Error while opening file" both with latest svn and {2009-08-22}. mplayer -ac hwac3 and -ac hwdts both work fine. (And issue1735 might address the same problem.)
Output has changed now (but seems unaffected by r22814 (which changed the content of test.spdif): ./ffmpeg -ar 48000 -f s16le -ac 2 -i test.spdif -f alsa plughw:0 FFmpeg version SVN-r22852, Copyright (c) 2000-2010 the FFmpeg developers built on Apr 12 2010 16:46:58 with gcc 4.4.3 configuration: --cc=/usr/local/gcc-4.4.3/bin/gcc libavutil 50.14. 0 / 50.14. 0 libavcodec 52.66. 0 / 52.66. 0 libavformat 52.61. 0 / 52.61. 0 libavdevice 52. 2. 0 / 52. 2. 0 libswscale 0.10. 0 / 0.10. 0 [s16le @ 0x1110420]Estimating duration from bitrate, this may be inaccurate Input #0, s16le, from 'test2.spdif': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0.0: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s Output #0, alsa, to 'plughw:0': Metadata: encoder : Lavf52.61.0 Stream #0.0: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s Stream mapping: Stream #0.0 -> #0.0 Press [q] to stop encoding av_interleaved_write_frame(): Resource temporarily unavailable