View previous topic :: View next topic |
Author |
Message |
samo Guru
Joined: 13 Mar 2004 Posts: 489
|
Posted: Sat Feb 08, 2014 12:12 pm Post subject: ffmpeg: m2ts: Invalid data found when processing input |
|
|
Hello,
ffplay reports the following error when I try to play a m2ts file: Code: | $ ffplay 00000002.m2ts
ffplay version 1.0.8 Copyright (c) 2003-2013 the FFmpeg developers
built on Feb 8 2014 12:38:02 with gcc 4.7.3 (Gentoo 4.7.3-r1 p1.4, pie-0.5.5)
configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-march=core2 -O2 -pipe' --extra-cflags='-march=core2 -O2 -pipe' --extra-cxxflags='-march=core2 -O2 -pipe' --disable-static --enable-gpl --enable-version3 --enable-postproc --enable-avfilter --enable-avresample --disable-stripping --disable-debug --disable-doc --disable-vaapi --disable-vdpau --disable-runtime-cpudetect --enable-gnutls --enable-libmp3lame --enable-libvo-aacenc --enable-libtheora --enable-libtwolame --enable-libx264 --enable-libxvid --disable-indev=oss --disable-indev=jack --enable-x11grab --disable-outdev=oss --enable-fontconfig --enable-libfreetype --enable-pthreads --enable-libbluray --enable-libvorbis --disable-amd3dnow --disable-amd3dnowext --disable-altivec --disable-avx --disable-mmxext --disable-ssse3 --disable-vis --disable-neon --cpu=core2 --enable-hardcoded-tables
libavutil 51. 73.101 / 51. 73.101
libavcodec 54. 59.100 / 54. 59.100
libavformat 54. 29.104 / 54. 29.104
libavdevice 54. 2.101 / 54. 2.101
libavfilter 3. 17.100 / 3. 17.100
libswscale 2. 1.101 / 2. 1.101
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
00000002.m2ts: Invalid data found when processing input |
ffmpeg is build with the following USE flags: Code: | $ equery u ffmpeg
[ Legend : U - final flag setting for installation]
[ : I - package is installed with flag ]
[ Colors : set, unset ]
* Found these USE flags for media-video/ffmpeg-1.0.8:
U I
- - 3dnow : Use the 3DNow! instruction set
- - 3dnowext : Enable manually-optimised routines using the AMD 3DNow!Ex SIMD instruction set, present in modern AMD CPUs. (Check for 3dnowext in /proc/cpuinfo to
know whether your CPU supports it).
+ + X : Add support for X11
+ + aac : Enable support for MPEG-4 AAC Audio
- - aacplus : AAC+ encoding via media-libs/libaacplus.
+ + alsa : Add support for media-libs/alsa-lib (Advanced Linux Sound Architecture)
- - amr : Enables Adaptive Multi-Rate Audio support
- - avx : Adds support for Advanced Vector Extensions instructions (Intel Sandy Bridge, AMD Bulldozer and later chips)
+ + bindist : Enforces license compatibility constraints via REQUIRED_USE.
+ + bluray : Enable playback of Blu-ray filesystems
+ + bzip2 : Use the bzlib compression library
- - cdio : Enables audio CD grabbing with dev-libs/libcdio.
- - cpudetection : Enables runtime CPU detection (useful for bindist, compatibility on other CPUs)
- - debug : Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful backtraces see
http://www.gentoo.org/proj/en/qa/backtraces.xml
- - doc : Add extra documentation (API, Javadoc, etc). It is recommended to enable per package instead of globally
+ + encode : Add support for encoding of audio or video files
- - examples : Install examples, usually source code
- - faac : Use external faac library for AAC encoding
- - fdk : Use external fdk-aac library for AAC encoding
+ + fftools_aviocat : cat's a URL to another one, useful for dumping streams.
+ + fftools_cws2fws : converts cws files (Macromedia Flash, compressed) to fws ones (Macromedia Flash, uncompressed).
+ + fftools_ffeval : A simple expression evalutor.
+ + fftools_fourcc2pixfmt : Shows the relationships between rawvideo pixel formats and FourCC tags.
+ + fftools_graph2dot : A tool to convert a libavfilter graph to a dot file.
+ + fftools_ismindex : A tool for creating smooth streaming manifests.
+ + fftools_pktdumper : Dumps packets as demuxed by libavformat.
+ + fftools_qt-faststart : Rearranges a Quicktime file to facilitate network streaming.
+ + fftools_trasher : Writes burts of random data into a file. Great for testing error robustness/resilience/concealment.
- - flite : Adds a text-to-speech filter based on app-accessibility/flite.
+ + fontconfig : Support for configuring and customizing font access via media-libs/fontconfig
- - frei0r : Enable frei0r wrapping in libavfilter
+ + gnutls : Add support for net-libs/gnutls (TLS 1.0 and SSL 3.0 support)
- - gsm : Add support for the gsm lossy speech compression codec
+ + hardcoded-tables : Use pre-calculated tables rather than calculating them on the fly.
- - iec61883 : Support for FireWire DV/HDV input device using media-libs/libiec61883.
- - ieee1394 : Enable FireWire/iLink IEEE1394 support (dv, camera, ...)
- - jack : Add support for the JACK Audio Connection Kit
- - jpeg2k : Support for JPEG 2000, a wavelet-based image compression format
- - libass : SRT/SSA/ASS (SubRip / SubStation Alpha) subtitle support
- - libcaca : Add support for colored ASCII-art graphics
- - libv4l : Uses media-libs/libv4l for video4linux instead of direct calls. Adds support for more devices via the userspace library.
+ + mmx : Use the MMX instruction set
- - mmxext : Enables mmx2 support
- - modplug : Add libmodplug support for playing SoundTracker-style music files
+ + mp3 : Add support for reading mp3 files
+ + network : Enables network streaming support
- - openal : Add support for the Open Audio Library
- - openssl : Enables dev-libs/openssl support. Adds support for encrypted network protocols (TLS/HTTPS).
- - opus : Adds (decoding) support for the Opus codec via media-libs/opus.
- - oss : Add support for OSS (Open Sound System)
- - pic : Force shared libraries to be built as PIC (this is slower)
- - pulseaudio : Add support for PulseAudio sound server
- - rtmp : Enable Real Time Messaging Protocol using librtmp
- - schroedinger : Enable Dirac video support (an advanced royalty-free video compression format) via libschroedinger (high-speed implementation in C of the Dirac
codec).
+ + sdl : Add support for Simple Direct Layer (media library)
- - speex : Add support for the speex audio codec (used for speech)
- - ssse3 : Faster floating point optimization for SSSE3 capable chips (Intel Core 2 and later chips)
- - static-libs : Build static versions of dynamic libraries as well
- - test : Workaround to pull in packages needed to run with FEATURES=test. Portage-2.1.2 handles this internally, so don't set it in make.conf/package.use
anymore
+ + theora : Add support for the Theora Video Compression Codec
+ + threads : Add threads support for various packages. Usually pthreads
+ + truetype : Add support for FreeType and/or FreeType2 fonts
+ + twolame : Enables MP2 encoding via media-sound/twolame as an alternative to the internal encoder.
+ + v4l : Enable support for video4linux (using linux-headers or userspace libv4l libraries)
- - vaapi : Enables VAAPI (Video Acceleration API) for hardware decoding
- - vdpau : Enable the Video Decode and Presentation API for Unix acceleration interface
+ + vorbis : Add support for the OggVorbis audio codec
- - vpx : Enables vp8 codec support using libvpx: Decoding vp8 does not require this to be enabled but libvpx can also be used for decoding; encoding vp8
requires this useflag to be enabled though.
+ + x264 : Enable h264 encoding using x264
+ + xvid : Add support for xvid.org's open-source mpeg-4 codec
+ + zlib : Add support for zlib (de)compression |
And the list of supported formats looks like this: Code: | $ ffmpeg -formats
ffmpeg version 1.0.8 Copyright (c) 2000-2013 the FFmpeg developers
built on Feb 8 2014 12:38:02 with gcc 4.7.3 (Gentoo 4.7.3-r1 p1.4, pie-0.5.5)
configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-march=core2 -O2 -pipe' --extra-cflags='-march=core2 -O2 -pipe' --extra-cxxflags='-march=core2 -O2 -pipe' --disable-static --enable-gpl --enable-version3 --enable-postproc --enable-avfilter --enable-avresample --disable-stripping --disable-debug --disable-doc --disable-vaapi --disable-vdpau --disable-runtime-cpudetect --enable-gnutls --enable-libmp3lame --enable-libvo-aacenc --enable-libtheora --enable-libtwolame --enable-libx264 --enable-libxvid --disable-indev=oss --disable-indev=jack --enable-x11grab --disable-outdev=oss --enable-fontconfig --enable-libfreetype --enable-pthreads --enable-libbluray --enable-libvorbis --disable-amd3dnow --disable-amd3dnowext --disable-altivec --disable-avx --disable-mmxext --disable-ssse3 --disable-vis --disable-neon --cpu=core2 --enable-hardcoded-tables
libavutil 51. 73.101 / 51. 73.101
libavcodec 54. 59.100 / 54. 59.100
libavformat 54. 29.104 / 54. 29.104
libavdevice 54. 2.101 / 54. 2.101
libavfilter 3. 17.100 / 3. 17.100
libswscale 2. 1.101 / 2. 1.101
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
File formats:
D. = Demuxing supported
.E = Muxing supported
--
E 3g2 3GP2 (3GPP2 file format)
E 3gp 3GP (3GPP file format)
D 4xm 4X Technologies
E a64 a64 - video for Commodore 64
D aac raw ADTS AAC (Advanced Audio Coding)
DE ac3 raw AC-3
D act ACT Voice file format
D adf Artworx Data Format
E adts ADTS AAC (Advanced Audio Coding)
DE adx CRI ADX
D aea MD STUDIO audio
DE aiff Audio IFF
DE alaw PCM A-law
DE alsa ALSA audio output
DE amr 3GPP AMR
D anm Deluxe Paint Animation
D apc CRYO APC
D ape Monkey's Audio
DE asf ASF (Advanced / Active Streaming Format)
E asf_stream ASF (Advanced / Active Streaming Format)
DE ass SSA (SubStation Alpha) subtitle
DE au Sun AU
DE avi AVI (Audio Video Interleaved)
E avm2 SWF (ShockWave Flash) (AVM2)
D avs AVS
D bethsoftvid Bethesda Softworks VID
D bfi Brute Force & Ignorance
D bin Binary text
D bink Bink
DE bit G.729 BIT file format
D bmv Discworld II BMV
D c93 Interplay C93
DE caf Apple Core Audio Format
DE cavsvideo raw Chinese AVS (Audio Video Standard) video
D cdg CD Graphics
D cdxl Commodore CDXL video
E crc CRC testing
DE daud D-Cinema audio
D dfa Chronomaster DFA
DE dirac raw Dirac
DE dnxhd raw DNxHD (SMPTE VC-3)
D dsicin Delphine Software International CIN
DE dts raw DTS
DE dv DV (Digital Video)
D dv1394 DV1394 A/V grab
E dvd MPEG-2 PS (DVD VOB)
D dxa DXA
D ea Electronic Arts Multimedia
D ea_cdata Electronic Arts cdata
DE eac3 raw E-AC-3
DE f32be PCM 32-bit floating-point big-endian
DE f32le PCM 32-bit floating-point little-endian
E f4v F4V Adobe Flash Video
DE f64be PCM 64-bit floating-point big-endian
DE f64le PCM 64-bit floating-point little-endian
D fbdev Linux framebuffer
DE ffm FFM (FFserver live feed)
DE ffmetadata FFmpeg metadata in text
D film_cpk Sega FILM / CPK
DE filmstrip Adobe Filmstrip
DE flac raw FLAC
D flic FLI/FLC/FLX animation
DE flv FLV (Flash Video)
E framecrc framecrc testing
E framemd5 Per-frame MD5 testing
DE g722 raw G.722
DE g723_1 raw G.723.1
D g729 G.729 raw format demuxer
E gif GIF Animation
D gsm raw GSM
DE gxf GXF (General eXchange Format)
DE h261 raw H.261
DE h263 raw H.263
DE h264 raw H.264 video
D hls,applehttp Apple HTTP Live Streaming
DE ico Microsoft Windows ICO
D idcin id Cinematic
D idf iCE Draw File
D iff IFF (Interchange File Format)
DE ilbc iLBC storage
DE image2 image2 sequence
DE image2pipe piped image2 sequence
D ingenient raw Ingenient MJPEG
D ipmovie Interplay MVE
E ipod iPod H.264 MP4 (MPEG-4 Part 14)
E ismv ISMV/ISMA (Smooth Streaming)
D iss Funcom ISS
D iv8 IndigoVision 8000 video
DE ivf On2 IVF
DE jacosub JACOsub subtitle format
D jv Bitmap Brothers JV
DE latm LOAS/LATM
D lavfi Libavfilter virtual input device
D lmlm4 raw lmlm4
D loas LOAS AudioSyncStream
D lxf VR native stream (LXF)
DE m4v raw MPEG-4 video
E matroska Matroska
D matroska,webm Matroska / WebM
E md5 MD5 testing
D mgsts Metal Gear Solid: The Twin Snakes
DE microdvd MicroDVD subtitle format
DE mjpeg raw MJPEG video
E mkvtimestamp_v2 extract pts as timecode v2 format, as defined by mkvtoolnix
DE mlp raw MLP
D mm American Laser Games MM
DE mmf Yamaha SMAF
E mov QuickTime / MOV
D mov,mp4,m4a,3gp,3g2,mj2 QuickTime / MOV
E mp2 MP2 (MPEG audio layer 2)
DE mp3 MP3 (MPEG audio layer 3)
E mp4 MP4 (MPEG-4 Part 14)
D mpc Musepack
D mpc8 Musepack SV8
DE mpeg MPEG-1 Systems / MPEG program stream
E mpeg1video raw MPEG-1 video
E mpeg2video raw MPEG-2 video
DE mpegts MPEG-TS (MPEG-2 Transport Stream)
D mpegtsraw raw MPEG-TS (MPEG-2 Transport Stream)
D mpegvideo raw MPEG video
E mpjpeg MIME multipart JPEG
D msnwctcp MSN TCP Webcam stream
D mtv MTV
DE mulaw PCM mu-law
D mvi Motion Pixels MVI
DE mxf MXF (Material eXchange Format)
E mxf_d10 MXF (Material eXchange Format) D-10 Mapping
D mxg MxPEG clip
D nc NC camera feed
D nsv Nullsoft Streaming Video
E null raw null video
DE nut NUT
D nuv NuppelVideo
DE ogg Ogg
DE oma Sony OpenMG audio
D paf Amazing Studio Packed Animation File
D pmp Playstation Portable PMP
E psp PSP MP4 (MPEG-4 Part 14)
D psxstr Sony Playstation STR
D pva TechnoTrend PVA
D qcp QCP
D r3d REDCODE R3D
DE rawvideo raw video
E rcv VC-1 test bitstream
D realtext RealText subtitle format
D rl2 RL2
DE rm RealMedia
DE roq raw id RoQ
D rpl RPL / ARMovie
DE rso Lego Mindstorms RSO
DE rtp RTP output
DE rtsp RTSP output
DE s16be PCM signed 16-bit big-endian
DE s16le PCM signed 16-bit little-endian
DE s24be PCM signed 24-bit big-endian
DE s24le PCM signed 24-bit little-endian
DE s32be PCM signed 32-bit big-endian
DE s32le PCM signed 32-bit little-endian
DE s8 PCM signed 8-bit
D sami SAMI subtitle format
DE sap SAP output
D sbg SBaGen binaural beats script
E sdl SDL output device
D sdp SDP
E segment segment
D shn raw Shorten
D siff Beam Software SIFF
DE smjpeg Loki SDL MJPEG
D smk Smacker
E smoothstreaming Smooth Streaming Muxer
D smush LucasArts Smush
D sol Sierra SOL
DE sox SoX native
DE spdif IEC 61937 (used on S/PDIF - IEC958)
DE srt SubRip subtitle
E stream_segment,ssegment streaming segment muxer
D subviewer SubViewer subtitle format
E svcd MPEG-2 PS (SVCD)
DE swf SWF (ShockWave Flash)
D thp THP
D tiertexseq Tiertex Limited SEQ
D tmv 8088flex TMV
DE truehd raw TrueHD
D tta TTA (True Audio)
D tty Tele-typewriter
D txd Renderware TeXture Dictionary
DE u16be PCM unsigned 16-bit big-endian
DE u16le PCM unsigned 16-bit little-endian
DE u24be PCM unsigned 24-bit big-endian
DE u24le PCM unsigned 24-bit little-endian
DE u32be PCM unsigned 32-bit big-endian
DE u32le PCM unsigned 32-bit little-endian
DE u8 PCM unsigned 8-bit
D vc1 raw VC-1
D vc1test VC-1 test bitstream
E vcd MPEG-1 Systems / MPEG program stream (VCD)
D video4linux2,v4l2 Video4Linux2 device grab
D vmd Sierra VMD
E vob MPEG-2 PS (VOB)
DE voc Creative Voice
D vqf Nippon Telegraph and Telephone Corporation (NTT) TwinVQ
D w64 Sony Wave64
DE wav WAV / WAVE (Waveform Audio)
D wc3movie Wing Commander III movie
E webm WebM
D webvtt WebVTT subtitle
D wsaud Westwood Studios audio
D wsvqa Westwood Studios VQA
DE wtv Windows Television (WTV)
DE wv WavPack
D x11grab X11grab
D xa Maxis XA
D xbin eXtended BINary text (XBIN)
D xmv Microsoft XMV
D xwma Microsoft xWMA
D yop Psygnosis YOP
DE yuv4mpegpipe YUV4MPEG pipe |
Does someone know which USE flag is missing?
Regards |
|
Back to top |
|
|
Maitreya Guru
Joined: 11 Jan 2006 Posts: 441
|
Posted: Mon Feb 10, 2014 1:58 pm Post subject: |
|
|
I can't see from here what is in that transport stream.
File extensions say nothing.
You can try looking at the file with mediainfo or ffplay's debug options. |
|
Back to top |
|
|
samo Guru
Joined: 13 Mar 2004 Posts: 489
|
Posted: Mon Feb 10, 2014 9:47 pm Post subject: |
|
|
mediainfo gives the following output: Code: | $ mediainfo -f Downloads/00000002.m2ts
General
Count : 284
Count of stream of this kind : 1
Kind of stream : General
Kind of stream : General
Stream identifier : 0
Complete name : Downloads/00000002.m2ts
Folder name : Downloads
File name : 00000002
File extension : m2ts
File size : 3836817408
File size : 3.57 GiB
File size : 4 GiB
File size : 3.6 GiB
File size : 3.57 GiB
File size : 3.573 GiB
Stream size : 3836817408
Stream size : 3.57 GiB (100%)
Stream size : 4 GiB
Stream size : 3.6 GiB
Stream size : 3.57 GiB
Stream size : 3.573 GiB
Stream size : 3.57 GiB (100%)
Proportion of this stream : 1.00000
File last modification date : UTC 2014-02-08 11:03:00
File last modification date (local) : 2014-02-08 12:03:00 |
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|