I recently purchased a Region 2 DVD and am trying to extract audio/video.
My drive was set for Region 1 but I have changed it to Region 2. When I try
to play in VLC it is choppy. Handbrake fails to convert. The choppiness
also occurs when I try to convert using ffmpeg. It gives a lot of errors
about invalid data (see attachment). I don't really know enough to even
know where to begin investigating what might be wrong but I assume ffmpeg
gives me the best chance of fixing the problem. Can anyone offer some
suggestions for things I should try to get to the bottom of this? I'm on
Ubuntu 16.04.

---------------------------
Output of regionset:
regionset version 0.1 -- reads/sets region code on DVD drives
Current Region Code settings:
RPC Phase: II
type: SET
vendor resets available: 4
user controlled changes resets available: 3
drive plays discs from region(s): 2, mask=0xFD
ffprobe started on 2016-06-20 at 20:28:39
Report written to "ffprobe-20160620-202839.log"
Command line:
ffprobe /dev/sr0 -report
ffprobe version 2.7.6-0ubuntu0.15.10.1 Copyright (c) 2007-2016 the FFmpeg developers
  built with gcc 5.2.1 (Ubuntu 5.2.1-22ubuntu2) 20151010
  configuration: --prefix=/usr --extra-version=0ubuntu0.15.10.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --enable-shared --disable-stripping --enable-avresample --enable-avisynth --enable-frei0r --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-openal --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libxvid --enable-libzvbi --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-libssh --enable-libsoxr --enable-libx264 --enable-libopencv --enable-libx  WARNING: library configuration mismatch
  avcodec     configuration: --prefix=/usr --extra-version=0ubuntu0.15.10.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --enable-shared --disable-stripping --enable-avresample --enable-avisynth --enable-frei0r --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-openal --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libxvid --enable-libzvbi --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-libssh --enable-libsoxr --enable-libx264 --enable-libopencv -  libavutil      54. 27.100 / 54. 27.100
  libavcodec     56. 41.100 / 56. 41.100
  libavformat    56. 36.100 / 56. 36.100
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 16.101 /  5. 16.101
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.100 /  1.  2.100
  libpostproc    53.  3.100 / 53.  3.100
[mpeg @ 0xff7960] Format mpeg probed with size=1048576 and score=52
[mpeg @ 0xff7960] Before avformat_find_stream_info() pos: 0 bytes read:1048576 seeks:0
[mpeg @ 0xff7960] probing stream 1 pp:2500
[mpeg @ 0xff7960] Probe with size=2012, packets=1 detected mpegvideo with score=25
[mpeg @ 0xff7960] probed stream 1
[mpeg @ 0xff7960] Probe buffer size limit of 5000000 bytes reached
[mpeg @ 0xff7960] After avformat_find_stream_info() pos: 5787648 bytes read:5799936 seeks:0 frames:207
Input #0, mpeg, from '/dev/sr0':
  Duration: N/A, start: 0.287267, bitrate: 9192 kb/s
    Stream #0:0[0x1bf], 9, 1/90000: Data: dvd_nav_packet
    Stream #0:1[0x1e0], 88, 1/90000: Video: mpeg2video (Main), yuv420p(tv), 720x576 [SAR 64:45 DAR 16:9], 9000 kb/s, 25 fps, 50 tbr, 90k tbn, 50 tbc
    Stream #0:2[0x80], 110, 1/90000: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
Unsupported codec with id 1145979222 for input stream 0
detected 4 logical cores
[AVIOContext @ 0xff3fc0] Statistics: 5799936 bytes read, 0 seeks
ffmpeg started on 2016-06-20 at 20:30:39
Report written to "ffmpeg-20160620-203039.log"
Command line:
ffmpeg -i /dev/sr0 -report test.wav
ffmpeg version 2.7.6-0ubuntu0.15.10.1 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.2.1 (Ubuntu 5.2.1-22ubuntu2) 20151010
  configuration: --prefix=/usr --extra-version=0ubuntu0.15.10.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --enable-shared --disable-stripping --enable-avresample --enable-avisynth --enable-frei0r --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-openal --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libxvid --enable-libzvbi --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-libssh --enable-libsoxr --enable-libx264 --enable-libopencv --enable-libx  WARNING: library configuration mismatch
  avcodec     configuration: --prefix=/usr --extra-version=0ubuntu0.15.10.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --enable-shared --disable-stripping --enable-avresample --enable-avisynth --enable-frei0r --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-openal --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libxvid --enable-libzvbi --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-libssh --enable-libsoxr --enable-libx264 --enable-libopencv -  libavutil      54. 27.100 / 54. 27.100
  libavcodec     56. 41.100 / 56. 41.100
  libavformat    56. 36.100 / 56. 36.100
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 16.101 /  5. 16.101
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.100 /  1.  2.100
  libpostproc    53.  3.100 / 53.  3.100
Splitting the commandline.
Reading option '-i' ... matched as input file with argument '/dev/sr0'.
Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'.
Reading option 'test.wav' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option report (generate a report) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input file /dev/sr0.
Successfully parsed a group of options.
Opening an input file: /dev/sr0.
[mpeg @ 0x1ff9740] Format mpeg probed with size=1048576 and score=52
[mpeg @ 0x1ff9740] Before avformat_find_stream_info() pos: 0 bytes read:1048576 seeks:0
[mpeg @ 0x1ff9740] probing stream 1 pp:2500
[mpeg @ 0x1ff9740] Probe with size=2012, packets=1 detected mpegvideo with score=25
[mpeg @ 0x1ff9740] probed stream 1
[mpeg @ 0x1ff9740] Probe buffer size limit of 5000000 bytes reached
[mpeg @ 0x1ff9740] After avformat_find_stream_info() pos: 5787648 bytes read:5799936 seeks:0 frames:207
Input #0, mpeg, from '/dev/sr0':
  Duration: N/A, start: 0.287267, bitrate: 9192 kb/s
    Stream #0:0[0x1bf], 9, 1/90000: Data: dvd_nav_packet
    Stream #0:1[0x1e0], 88, 1/90000: Video: mpeg2video (Main), yuv420p(tv), 720x576 [SAR 64:45 DAR 16:9], 9000 kb/s, 25 fps, 50 tbr, 90k tbn, 50 tbc
    Stream #0:2[0x80], 110, 1/90000: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
Successfully opened the file.
Parsing a group of options: output file test.wav.
Successfully parsed a group of options.
Opening an output file: test.wav.
Successfully opened the file.
detected 4 logical cores
[graph 0 input from stream 0:2 @ 0x1fde440] Setting 'time_base' to value '1/48000'
[graph 0 input from stream 0:2 @ 0x1fde440] Setting 'sample_rate' to value '48000'
[graph 0 input from stream 0:2 @ 0x1fde440] Setting 'sample_fmt' to value 'fltp'
[graph 0 input from stream 0:2 @ 0x1fde440] Setting 'channel_layout' to value '0x3'
[graph 0 input from stream 0:2 @ 0x1fde440] tb:1/48000 samplefmt:fltp samplerate:48000 chlayout:0x3
[audio format for output stream 0:0 @ 0x1fde520] Setting 'sample_fmts' to value 's16'
[audio format for output stream 0:0 @ 0x1fde520] auto-inserting filter 'auto-inserted resampler 0' between the filter 'Parsed_anull_0' and the filter 'audio format for output stream 0:0'
[AVFilterGraph @ 0x220d980] query_formats: 4 queried, 6 merged, 3 already done, 0 delayed
[auto-inserted resampler 0 @ 0x1fd1d80] ch:2 chl:stereo fmt:fltp r:48000Hz -> ch:2 chl:stereo fmt:s16 r:48000Hz
Output #0, wav, to 'test.wav':
  Metadata:
    ISFT            : Lavf56.36.100
    Stream #0:0, 0, 1/48000: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, stereo, s16, 1536 kb/s
    Metadata:
      encoder         : Lavc56.41.100 pcm_s16le
Stream mapping:
  Stream #0:2 -> #0:0 (ac3 (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
[ac3 @ 0x268e680] frame sync error
Error while decoding stream #0:2: Invalid data found when processing input
[ac3 @ 0x268e680] delta bit allocation strategy reserved
[ac3 @ 0x268e680] error decoding the audio block
[ac3 @ 0x268e680] frame sync error
Error while decoding stream #0:2: Invalid data found when processing input
[ac3 @ 0x268e680] exponent out-of-range
[ac3 @ 0x268e680] error decoding the audio block
[ac3 @ 0x268e680] frame sync error
Error while decoding stream #0:2: Invalid data found when processing input
[ac3 @ 0x268e680] frame sync error
Error while decoding stream #0:2: Invalid data found when processing input
[ac3 @ 0x268e680] frame sync error
Error while decoding stream #0:2: Invalid data found when processing input
[ac3 @ 0x268e680] exponent out-of-range
[ac3 @ 0x268e680] error decoding the audio block
[ac3 @ 0x268e680] frame sync error
Error while decoding stream #0:2: Invalid data found when processing input
[ac3 @ 0x268e680] exponent out-of-range
[ac3 @ 0x268e680] error decoding the audio block
[ac3 @ 0x268e680] frame sync error
Error while decoding stream #0:2: Invalid data found when processing input
[ac3 @ 0x268e680] exponent out-of-range
[ac3 @ 0x268e680] error decoding the audio block
[ac3 @ 0x268e680] frame sync error
Error while decoding stream #0:2: Invalid data found when processing input
[ac3 @ 0x268e680] exponent out-of-range
[ac3 @ 0x268e680] error decoding the audio block
[ac3 @ 0x268e680] frame sync error
Error while decoding stream #0:2: Invalid data found when processing input
size=     792kB time=00:00:05.34 bitrate=1214.2kbits/s    
[ac3 @ 0x268e680] exponent out-of-range
[ac3 @ 0x268e680] error decoding the audio block
size=     882kB time=00:00:05.82 bitrate=1240.7kbits/s    
video:0kB audio:882kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.008636%
Input file #0 (/dev/sr0):
  Input stream #0:0 (data): 9 packets read (17982 bytes); 
  Input stream #0:1 (video): 88 packets read (4888736 bytes); 
  Input stream #0:2 (audio): 156 packets read (139776 bytes); 147 frames decoded (225792 samples); 
  Total: 253 packets (5046494 bytes) demuxed
Output file #0 (test.wav):
  Output stream #0:0 (audio): 147 frames encoded (225792 samples); 147 packets muxed (903168 bytes); 
  Total: 147 packets (903168 bytes) muxed
147 frames successfully decoded, 9 decoding errors
[AVIOContext @ 0x25abe20] Statistics: 4 seeks, 150 writeouts
[AVIOContext @ 0x2001f20] Statistics: 7667712 bytes read, 0 seeks
_______________________________________________
ffmpeg-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to