[FFmpeg-user] Big Endian Format

JD jd1008 at gmail.com
Wed May 23 20:09:52 EEST 2018


output of ffplay. it plays but no image to see. Just the movie rectangle 
empty window.

$ ffplay /dev/sr0
ffplay version 2.1.8 Copyright (c) 2003-2015 the FFmpeg developers
   built on May  1 2015 14:58:04 with gcc 4.8.3 (GCC) 20140911 (Red Hat 
4.8.3-7)
   configuration: --prefix=/usr --bindir=/usr/bin 
--datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg 
--libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 
--optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions 
-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches 
-m64 -mtune=generic' --enable-bzlib --disable-crystalhd --enable-frei0r 
--enable-gnutls --enable-libass --enable-libcdio --enable-libcelt 
--enable-libdc1394 --disable-indev=jack --enable-libfreetype 
--enable-libgsm --enable-libmp3lame --enable-openal --enable-libopencv 
--enable-libopenjpeg --enable-libopus --enable-libpulse 
--enable-libschroedinger --enable-libsoxr --enable-libspeex 
--enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvpx 
--enable-libx264 --enable-libxvid --enable-x11grab --enable-avfilter 
--enable-avresample --enable-postproc --enable-pthreads --disable-static 
--enable-shared --enable-gpl --disable-debug --disable-stripping 
--shlibdir=/usr/lib64 --enable-runtime-cpudetect
   libavutil      52. 48.101 / 52. 48.101
   libavcodec     55. 39.101 / 55. 39.101
   libavformat    55. 19.104 / 55. 19.104
   libavdevice    55.  5.100 / 55.  5.100
   libavfilter     3. 90.100 /  3. 90.100
   libavresample   1.  1.  0 /  1.  1.  0
   libswscale      2.  5.101 /  2.  5.101
   libswresample   0. 17.104 /  0. 17.104
   libpostproc    52.  3.100 / 52.  3.100
[mpeg @ 0x7f66f40008c0] pes_ext E0 is invalid 0KB sq=    0B f=0/0
[mp1 @ 0x7f66f4004a00] Header missingB vq=    0KB sq=    0B f=0/0
     Last message repeated 22 times
[mpeg @ 0x7f66f40008c0] decoding for stream 0 failed=    0B f=0/0
[mpeg @ 0x7f66f40008c0] Could not find codec parameters for stream 0 
(Audio: mp1, 0 channels, s16p): unspecified frame size
Consider increasing the value for the 'analyzeduration' and 'probesize' 
options
Input #0, mpeg, from '/dev/sr0':
   Duration: N/A, start: 0.280633, bitrate: N/A
     Stream #0:0[0x1cb]: Audio: mp1, 0 channels, s16p
     Stream #0:1[0x1bf]: Data: dvd_nav_packet
     Stream #0:2[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, bt470bg), 
720x480 [SAR 32:27 DAR 16:9], max. 8000 kb/s, 29.97 fps, 29.97 tbr, 90k 
tbn, 59.94 tbc
     Stream #0:3[0x20]: Subtitle: dvd_subtitle
     Stream #0:4[0x21]: Subtitle: dvd_subtitle
[abuffer @ 0x7f66f4010960] Value inf for parameter 'time_base' out of 
range [0 - 2.14748e+09]
     Last message repeated 1 times
[abuffer @ 0x7f66f4010960] Error setting option time_base to value 1/0.
[ffplay_abuffer @ 0x7f66f4038720] Error applying options to the filter.



Scroll to bottom of the output of mplayer to see msg about big endian....
$ mplayer /dev/sr0
MPlayer SVN-r37150-4.8.3 (C) 2000-2014 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote 
control.

Playing /dev/sr0.
libavformat version 55.19.104 (external)
MPEG-PS file format detected.
VIDEO:  MPEG2  720x480  (aspect 2)  29.970 fps  8000.0 kbps (1000.0 kbyte/s)
Load subtitles in /dev/
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 55.39.101 (external)
Selected video codec: [ffmpeg2] vfm: ffmpeg (FFmpeg MPEG-2)
==========================================================================
==========================================================================
Opening audio decoder: [mpg123] MPEG 1.0/2.0/2.5 layers I, II, III
mpg123 failed to reopen stream: Error reading the stream. (code 18)
mpg123 init error: Error reading the stream. (code 18)
ADecoder init failed :(
ADecoder init failed :(
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
Unknown/missing audio format -> no sound
ADecoder init failed :(
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
Unknown/missing audio format -> no sound
ADecoder init failed :(
Requested audio codec family [mad] (afm=libmad) not available.
Enable it at compilation.
Opening audio decoder: [hwmpa] MPEG audio pass-through (fake decoder)
Cannot sync MPA frame: 0
ADecoder init failed :(
ADecoder init failed :(
Opening audio decoder: [spdif] libavformat/spdifenc audio pass-through 
decoder.
AUDIO: 48000 Hz, 2 ch, mpeg2, 768.0 kbit/50.00% (ratio: 96000->192000)
Selected audio codec: [spdifmpa] afm: spdif (libavformat/spdifenc MPEG 
AUDIO BC pass-through decoder)
==========================================================================
[format] Sample format big-endian MPEG-2 not yet supported
Error at audio filter chain pre-init!

Exiting... (Fatal error)


On 05/23/2018 08:10 AM, Dan Shamir wrote:
> ס
>
> On Wed, May 23, 2018, 3:40 PM Carl Eugen Hoyos <ceffmpeg at gmail.com> wrote:
>
>> 2018-05-22 19:51 GMT+02:00, JD <jd1008 at gmail.com>:
>>
>>> Have a dvd which turns out to be coded in big endian.
>>> I copied it to hard drive for backup (using dd), but
>>> it turns out that of all the *nux players, only VLC
>>> can play big endian format iso's.
>>> So, is there a way to convert the iso file to little endian format?
>> FFmpeg does not read iso files, only program streams
>> as for example made with mplayer -dumpstream dvd://
>>
>> I don't understand what a "big endian dvd" could be:
>> Could you provide a sample?
>>
>> Carl Eugen
>> _______________________________________________
>> ffmpeg-user mailing list
>> ffmpeg-user at ffmpeg.org
>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>
>> To unsubscribe, visit link above, or email
>> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".



More information about the ffmpeg-user mailing list