Skip to content
This repository has been archived by the owner on Jan 31, 2019. It is now read-only.

two pass encoding #50

Open
pletiplot opened this issue Jan 17, 2017 · 21 comments
Open

two pass encoding #50

pletiplot opened this issue Jan 17, 2017 · 21 comments

Comments

@pletiplot
Copy link

Hello,
I have installed devede version 4.8.6 and tried two pass encoding, but it allways failed (even preview). I have tried 4.7.0 and it worked. Can you have a look at it?
Thanks, Marek

@rastersoft
Copy link
Owner

I tried it and works fine. Can you copy&paste the error?

@pletiplot
Copy link
Author

I have installed 4.8.6 back and tried it, but there is no error except "There was an error while creating the disk" and debug data: Static data:
In console only: Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged. (which is I think not relevant).
Nothing more.
Can I start devede-ng with some more debug?
Can some package version help:
ii ffmpeg 10:2.6.9-dmo1 amd64 audio/video encoder, streaming server & audio/video file converter
ii ffmpeg-svn 1:0.git20160505-itonis3 amd64 FFmpeg multimedia framework

@rastersoft
Copy link
Owner

When DEVEDE shows a window with that error there is an expander just below the text. Clicking on it shows a text entry with all the error text, and a button that allows to copy all the text, in order to paste it in a bug report.

@pletiplot
Copy link
Author

pletiplot commented Jan 23, 2017

Oops. The box was too small and it seemed empty, but now I see:
Static data:

FFProbe JSON data: {
"streams": [
{
"index": 0,
"codec_type": "data",
"codec_time_base": "1/90000",
"codec_tag_string": "[0][0][0][0]",
"codec_tag": "0x0000",
"id": "0x1bf",
"r_frame_rate": "0/0",
"avg_frame_rate": "0/0",
"time_base": "1/90000",
"start_pts": 3120,
"start_time": "0.034667",
"duration_ts": 134402880,
"duration": "1493.365333",
"disposition": {
"default": 0,
"dub": 0,
"original": 0,
"comment": 0,
"lyrics": 0,
"karaoke": 0,
"forced": 0,
"hearing_impaired": 0,
"visual_impaired": 0,
"clean_effects": 0,
"attached_pic": 0
}
},
{
"index": 1,
"codec_name": "mpeg2video",
"codec_long_name": "MPEG-2 video",
"profile": "Main",
"codec_type": "video",
"codec_time_base": "1/50",
"codec_tag_string": "[0][0][0][0]",
"codec_tag": "0x0000",
"width": 720,
"height": 576,
"has_b_frames": 1,
"sample_aspect_ratio": "64:45",
"display_aspect_ratio": "16:9",
"pix_fmt": "yuv420p",
"level": 8,
"color_range": "tv",
"color_space": "bt470bg",
"color_transfer": "smpte170m",
"chroma_location": "left",
"timecode": "00:00:00:00",
"refs": 1,
"id": "0x1e0",
"r_frame_rate": "25/1",
"avg_frame_rate": "25/1",
"time_base": "1/90000",
"start_pts": 3600,
"start_time": "0.040000",
"duration_ts": 134402400,
"duration": "1493.360000",
"max_bit_rate": "9000000",
"disposition": {
"default": 0,
"dub": 0,
"original": 0,
"comment": 0,
"lyrics": 0,
"karaoke": 0,
"forced": 0,
"hearing_impaired": 0,
"visual_impaired": 0,
"clean_effects": 0,
"attached_pic": 0
}
},
{
"index": 2,
"codec_name": "ac3",
"codec_long_name": "ATSC A/52A (AC-3)",
"codec_type": "audio",
"codec_time_base": "1/48000",
"codec_tag_string": "[0][0][0][0]",
"codec_tag": "0x0000",
"sample_fmt": "fltp",
"sample_rate": "48000",
"channels": 2,
"channel_layout": "stereo",
"bits_per_sample": 0,
"dmix_mode": "-1",
"ltrt_cmixlev": "-1.000000",
"ltrt_surmixlev": "-1.000000",
"loro_cmixlev": "-1.000000",
"loro_surmixlev": "-1.000000",
"id": "0x80",
"r_frame_rate": "0/0",
"avg_frame_rate": "0/0",
"time_base": "1/90000",
"start_pts": 3120,
"start_time": "0.034667",
"duration_ts": 134400960,
"duration": "1493.344000",
"bit_rate": "256000",
"disposition": {
"default": 0,
"dub": 0,
"original": 0,
"comment": 0,
"lyrics": 0,
"karaoke": 0,
"forced": 0,
"hearing_impaired": 0,
"visual_impaired": 0,
"clean_effects": 0,
"attached_pic": 0
}
}
]
}

Getting data for /opt/data/nakole/nakole1.dvd with ffprobe
Estimated length: 1493; Resolution: 720x576

Dynamic data:

Converting nakole1 (pass 1)

Launching: avconv -i /opt/data/nakole/nakole1.dvd -i /opt/data/nakole/nakole1.dvd -map 1:1 -map 0:2 -y -c:v mpeg2video -c:a ac3 -f dvd -r 25 -pix_fmt yuv420p -maxrate:v 7500000 -minrate:v 3333300 -bufsize 1835008 -packetsize 2048 -muxrate 10080000 -ar 48000 -sn -g 12 -bf 2 -strict 1 -t 10 -ac 2 -aspect 1.7777777777777777 -trellis 0 -mbd 0 -b:a 224k -b:v 5000k -passlogfile /var/data/movie_preview.mpg -pass 1 /var/data/movie_preview.mpg

ffmpeg version 2.6.9 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.9.2 (Debian 4.9.2-10)
configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector-strong -Wformat -Werror=format-security ' --extra-ldflags='-Wl,-z,relro' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-nonfree --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-libvpx --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-librtmp --enable-avfilter --enable-libfreetype --enable-libvo-aacenc --disable-decoder=amrnb --enable-libvo-amrwbenc --enable-libaacplus --libdir=/usr/lib/x86_64-linux-gnu --disable-vda --enable-libbluray --enable-libcdio --enable-gnutls --enable-frei0r --enable-openssl --enable-libass --enable-libopus --enable-fontconfig --enable-libpulse --disable-mips32r2 --disable-mipsdspr1 --disable-mipsdspr2 --enable-libvidstab --enable-libzvbi --enable-avresample --disable-htmlpages --disable-podpages --enable-libutvideo --enable-libfdk-aac --enable-libx265 --enable-libiec61883 --enable-vaapi --enable-libdc1394 --disable-altivec --shlibdir=/usr/lib/x86_64-linux-gnu
libavutil 54. 20.100 / 54. 20.100
libavcodec 56. 26.100 / 56. 26.100
libavformat 56. 25.101 / 56. 25.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 11.102 / 5. 11.102
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
[NULL @ 0x2556ee0] start time for stream 0 is not set in estimate_timings_from_pts
Input #0, mpeg, from '/opt/data/nakole/nakole1.dvd':
Duration: 00:24:53.37, start: 0.034667, bitrate: 5305 kb/s
Stream #0:0[0x1bf]: Data: dvd_nav_packet
Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, bt470bg/unknown/smpte170m), 720x576 [SAR 64:45 DAR 16:9], max. 9000 kb/s, Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, bt470bg/unknown/smpte170m), 720x576 [SAR 64:45 DAR 16:9], max. 9000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0:2[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
[NULL @ 0x255d3a0] start time for stream 0 is not set in estimate_timings_from_pts
Input #1, mpeg, from '/opt/data/nakole/nakole1.dvd':
Duration: 00:24:53.37, start: 0.034667, bitrate: 5305 kb/s
Stream #1:0[0x1bf]: Data: dvd_nav_packet
Stream #1:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, bt470bg/unknown/smpte170m), 720x576 [SAR 64:45 DAR 16:9], max. 9000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #1:2[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
[mpeg2video @ 0x29506a0] Warning min_rate > 0 but min_rate != max_rate isn't recommended!
Output #0, dvd, to '/var/data/movie_preview.mpg':
Metadata:
encoder : Lavf56.25.101
Stream #0:0: Video: mpeg2video, yuv420p, 720x576 [SAR 64:45 DAR 16:9], q=2-31, pass 1, 5000 kb/s, 25 fps, 90k tbn, 25 tbc
Metadata:
encoder : Lavc56.26.100 mpeg2video
Stream #0:1: Audio: ac3, 48000 Hz, stereo, fltp, 224 kb/s
Metadata:
encoder : Lavc56.26.100 ac3
Stream mapping:
Stream #1:1 -> #0:0 (mpeg2video (native) -> mpeg2video (native))
Stream #0:2 -> #0:1 (ac3 (native) -> ac3 (native))
Press [q] to stop, [?] for help
frame= 123 fps=0.0 q=0.0 size= 4060kB time=00:00:04.80 bitrate=6929.1kbits/s
frame= 250 fps=0.0 q=0.0 Lsize= 7670kB time=00:00:10.01 bitrate=6276.6kbits/s
video:7236kB audio:274kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 2.127558%

Converting nakole1 (pass 2)

Launching: avconv -i /opt/data/nakole/nakole1.dvd -i /opt/data/nakole/nakole1.dvd -map 1:1 -map 0:2 -y -c:v mpeg2video -c:a ac3 -f dvd -r 25 -pix_fmt yuv420p -maxrate:v 7500000 -minrate:v 3333300 -bufsize 1835008 -packetsize 2048 -muxrate 10080000 -ar 48000 -sn -g 12 -bf 2 -strict 1 -t 10 -ac 2 -aspect 1.7777777777777777 -s 720x576 -trellis 1 -mbd 2 -b:a 224k -b:v 5000k -passlogfile /var/data/movie_preview.mpg -pass 2 /var/data/movie_preview.mpg

ffmpeg version 2.6.9 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.9.2 (Debian 4.9.2-10)
configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector-strong -Wformat -Werror=format-security ' --extra-ldflags='-Wl,-z,relro' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-nonfree --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-libvpx --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-librtmp --enable-avfilter --enable-libfreetype --enable-libvo-aacenc --disable-decoder=amrnb --enable-libvo-amrwbenc --enable-libaacplus --libdir=/usr/lib/x86_64-linux-gnu --disable-vda --enable-libbluray --enable-libcdio --enable-gnutls --enable-frei0r --enable-openssl --enable-libass --enable-libopus --enable-fontconfig --enable-libpulse --disable-mips32r2 --disable-mipsdspr1 --disable-mipsdspr2 --enable-libvidstab --enable-libzvbi --enable-avresample --disable-htmlpages --disable-podpages --enable-libutvideo --enable-libfdk-aac --enable-libx265 --enable-libiec61883 --enable-vaapi --enable-libdc1394 --disable-altivec --shlibdir=/usr/lib/x86_64-linux-gnu
libavutil 54. 20.100 / 54. 20.100
libavcodec 56. 26.100 / 56. 26.100
libavformat 56. 25.101 / 56. 25.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 11.102 / 5. 11.102
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
[NULL @ 0x1d5fd00] start time for stream 0 is not set in estimate_timings_from_pts
Input #0, mpeg, from '/opt/data/nakole/nakole1.dvd':
Duration: 00:24:53.37, start: 0.034667, bitrate: 5305 kb/s
Stream #0:0[0x1bf]: Data: dvd_nav_packet
Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, bt470bg/unknown/smpte170m), 720x576 [SAR 64:45 DAR 16:9], max. 9000 kb/s Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, bt470bg/unknown/smpte170m), 720x576 [SAR 64:45 DAR 16:9], max. 9000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0:2[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
[NULL @ 0x1d664c0] start time for stream 0 is not set in estimate_timings_from_pts
Input #1, mpeg, from '/opt/data/nakole/nakole1.dvd':
Duration: 00:24:53.37, start: 0.034667, bitrate: 5305 kb/s
Stream #1:0[0x1bf]: Data: dvd_nav_packet
Stream #1:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, bt470bg/unknown/smpte170m), 720x576 [SAR 64:45 DAR 16:9], max. 9000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #1:2[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
[mpeg2video @ 0x21596c0] Warning min_rate > 0 but min_rate != max_rate isn't recommended!
[mpeg2video @ 0x21596c0] [lavc rc] Error: bitrate too low for this video with these parameters.
Output #0, dvd, to '/var/data/movie_preview.mpg':
Stream #0:0: Video: mpeg2video, none, q=2-31, 128 kb/s Stream #0:0: Video: mpeg2video, none, q=2-31, 128 kb/s, SAR 64:45 DAR 0:0, 25 fps
Metadata:
encoder : Lavc56.26.100 mpeg2video
Stream #0:1: Audio: ac3, 0 channels, 128 kb/s
Metadata:
encoder : Lavc56.26.100 ac3
Stream mapping:
Stream #1:1 -> #0:0 (mpeg2video (native) -> mpeg2video (native))
Stream #0:2 -> #0:1 (ac3 (native) -> ac3 (native))
Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height

@rastersoft
Copy link
Owner

rastersoft commented Jan 23, 2017 via email

@pletiplot
Copy link
Author

I have Debian jessie 8.6, python3-devedeng-sid_4.8.6-debian1_all.deb
I should notice I have czech localization.
When I switch to FFMPEG, but the result is the same:
Static data:

FFProbe JSON data: {
"streams": [
{
"index": 0,
"codec_type": "data",
"codec_time_base": "1/90000",
"codec_tag_string": "[0][0][0][0]",
"codec_tag": "0x0000",
"id": "0x1bf",
"r_frame_rate": "0/0",
"avg_frame_rate": "0/0",
"time_base": "1/90000",
"start_pts": 3120,
"start_time": "0.034667",
"duration_ts": 134402880,
"duration": "1493.365333",
"disposition": {
"default": 0,
"dub": 0,
"original": 0,
"comment": 0,
"lyrics": 0,
"karaoke": 0,
"forced": 0,
"hearing_impaired": 0,
"visual_impaired": 0,
"clean_effects": 0,
"attached_pic": 0
}
},
{
"index": 1,
"codec_name": "mpeg2video",
"codec_long_name": "MPEG-2 video",
"profile": "Main",
"codec_type": "video",
"codec_time_base": "1/50",
"codec_tag_string": "[0][0][0][0]",
"codec_tag": "0x0000",
"width": 720,
"height": 576,
"has_b_frames": 1,
"sample_aspect_ratio": "64:45",
"display_aspect_ratio": "16:9",
"pix_fmt": "yuv420p",
"level": 8,
"color_range": "tv",
"color_space": "bt470bg",
"color_transfer": "smpte170m",
"chroma_location": "left",
"timecode": "00:00:00:00",
"refs": 1,
"id": "0x1e0",
"r_frame_rate": "25/1",
"avg_frame_rate": "25/1",
"time_base": "1/90000",
"start_pts": 3600,
"start_time": "0.040000",
"duration_ts": 134402400,
"duration": "1493.360000",
"max_bit_rate": "9000000",
"disposition": {
"default": 0,
"dub": 0,
"original": 0,
"comment": 0,
"lyrics": 0,
"karaoke": 0,
"forced": 0,
"hearing_impaired": 0,
"visual_impaired": 0,
"clean_effects": 0,
"attached_pic": 0
}
},
{
"index": 2,
"codec_name": "ac3",
"codec_long_name": "ATSC A/52A (AC-3)",
"codec_type": "audio",
"codec_time_base": "1/48000",
"codec_tag_string": "[0][0][0][0]",
"codec_tag": "0x0000",
"sample_fmt": "fltp",
"sample_rate": "48000",
"channels": 2,
"channel_layout": "stereo",
"bits_per_sample": 0,
"dmix_mode": "-1",
"ltrt_cmixlev": "-1.000000",
"ltrt_surmixlev": "-1.000000",
"loro_cmixlev": "-1.000000",
"loro_surmixlev": "-1.000000",
"id": "0x80",
"r_frame_rate": "0/0",
"avg_frame_rate": "0/0",
"time_base": "1/90000",
"start_pts": 3120,
"start_time": "0.034667",
"duration_ts": 134400960,
"duration": "1493.344000",
"bit_rate": "256000",
"disposition": {
"default": 0,
"dub": 0,
"original": 0,
"comment": 0,
"lyrics": 0,
"karaoke": 0,
"forced": 0,
"hearing_impaired": 0,
"visual_impaired": 0,
"clean_effects": 0,
"attached_pic": 0
}
}
]
}

Getting data for /opt/data/nakole/nakole1.dvd with ffprobe
Estimated length: 1493; Resolution: 720x576

Dynamic data:

Converting nakole1 (pass 1)

Launching: ffmpeg -i /opt/data/nakole/nakole1.dvd -i /opt/data/nakole/nakole1.dvd -map 1:1 -map 0:2 -y -c:v mpeg2video -c:a ac3 -f dvd -r 25 -pix_fmt yuv420p -maxrate:v 7500000 -minrate:v 3333300 -bufsize 1835008 -packetsize 2048 -muxrate 10080000 -ar 48000 -sn -g 12 -bf 2 -strict 1 -t 10 -ac 2 -aspect 1.7777777777777777 -trellis 0 -mbd 0 -b:a 224k -b:v 5000k -passlogfile /var/data/movie_preview.mpg -pass 1 /var/data/movie_preview.mpg

ffmpeg version 2.6.9 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.9.2 (Debian 4.9.2-10)
configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector-strong -Wformat -Werror=format-security ' --extra-ldflags='-Wl,-z,relro' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-nonfree --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-libvpx --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-librtmp --enable-avfilter --enable-libfreetype --enable-libvo-aacenc --disable-decoder=amrnb --enable-libvo-amrwbenc --enable-libaacplus --libdir=/usr/lib/x86_64-linux-gnu --disable-vda --enable-libbluray --enable-libcdio --enable-gnutls --enable-frei0r --enable-openssl --enable-libass --enable-libopus --enable-fontconfig --enable-libpulse --disable-mips32r2 --disable-mipsdspr1 --disable-mipsdspr2 --enable-libvidstab --enable-libzvbi --enable-avresample --disable-htmlpages --disable-podpages --enable-libutvideo --enable-libfdk-aac --enable-libx265 --enable-libiec61883 --enable-vaapi --enable-libdc1394 --disable-altivec --shlibdir=/usr/lib/x86_64-linux-gnu
libavutil 54. 20.100 / 54. 20.100
libavcodec 56. 26.100 / 56. 26.100
libavformat 56. 25.101 / 56. 25.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 11.102 / 5. 11.102
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
[NULL @ 0x25a6ee0] start time for stream 0 is not set in estimate_timings_from_pts
Input #0, mpeg, from '/opt/data/nakole/nakole1.dvd':
Duration: 00:24:53.37, start: 0.034667, bitrate: 5305 kb/s
Stream #0:0 Stream #0:0[0x1bf]: Data: dvd_nav_packet
Stream #0:1 Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, bt470bg/unknown/smpte170m), 720x576 [SAR 64:45 DAR 16:9], max. 9000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0:2[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
[NULL @ 0x25ad3a0] [NULL @ 0x25ad3a0] start time for stream 0 is not set in estimate_timings_from_pts
Input #1, mpeg, from '/opt/data/nakole/nakole1.dvd':
Duration: 00:24:53.37, start: 0.034667, bitrate: 5305 kb/s
Stream #1:0[0x1bf]: Data: dvd_nav_packet
Stream #1:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, bt470bg/unknown/smpte170m), 720x576 [SAR 64:45 DAR 16:9], max. 9000 kb/s, Stream #1:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, bt470bg/unknown/smpte170m), 720x576 [SAR 64:45 DAR 16:9], max. 9000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #1:2[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
[mpeg2video @ 0x29a06a0] Warning min_rate > 0 but min_rate != max_rate isn't recommended!
Output #0, dvd, to '/var/data/movie_preview.mpg':
Metadata:
encoder : Lavf56.25.101
Stream #0:0: Video: mpeg2video, yuv420p, 720x576 [SAR 64:45 DAR 16:9], q=2-31, pass 1, 5000 kb/s, 25 fps, 90k tbn, 25 tbc
Metadata:
encoder : Lavc56.26.100 mpeg2video
Stream #0:1: Audio: ac3, 48000 Hz, stereo, fltp, 224 kb/s
Metadata:
encoder : Lavc56.26.100 ac3
Stream mapping:
Stream #1:1 -> #0:0 (mpeg2video (native) -> mpeg2video (native))
Stream #0:2 -> #0:1 (ac3 (native) -> ac3 (native))
Press [q] to stop, [?] for help
frame= 122 fps=0.0 q=0.0 size= 4010kB time=00:00:04.76 bitrate=6897.4kbits/s
frame= 250 fps=0.0 q=0.0 Lsize= 7670kB time=00:00:10.01 bitrate=6276.6kbits/s
video:7236kB audio:274kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 2.127558%

Converting nakole1 (pass 2)

Launching: ffmpeg -i /opt/data/nakole/nakole1.dvd -i /opt/data/nakole/nakole1.dvd -map 1:1 -map 0:2 -y -c:v mpeg2video -c:a ac3 -f dvd -r 25 -pix_fmt yuv420p -maxrate:v 7500000 -minrate:v 3333300 -bufsize 1835008 -packetsize 2048 -muxrate 10080000 -ar 48000 -sn -g 12 -bf 2 -strict 1 -t 10 -ac 2 -aspect 1.7777777777777777 -s 720x576 -trellis 1 -mbd 2 -b:a 224k -b:v 5000k -passlogfile /var/data/movie_preview.mpg -pass 2 /var/data/movie_preview.mpg

ffmpeg version 2.6.9 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.9.2 (Debian 4.9.2-10)
configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector-strong -Wformat -Werror=format-security ' --extra-ldflags='-Wl,-z,relro' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-nonfree --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-libvpx --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-librtmp --enable-avfilter --enable-libfreetype --enable-libvo-aacenc --disable-decoder=amrnb --enable-libvo-amrwbenc --enable-libaacplus --libdir=/usr/lib/x86_64-linux-gnu --disable-vda --enable-libbluray --enable-libcdio --enable-gnutls --enable-frei0r --enable-openssl --enable-libass --enable-libopus --enable-fontconfig --enable-libpulse --disable-mips32r2 --disable-mipsdspr1 --disable-mipsdspr2 --enable-libvidstab --enable-libzvbi --enable-avresample --disable-htmlpages --disable-podpages --enable-libutvideo --enable-libfdk-aac --enable-libx265 --enable-libiec61883 --enable-vaapi --enable-libdc1394 --disable-altivec --shlibdir=/usr/lib/x86_64-linux-gnu
libavutil 54. 20.100 / 54. 20.100
libavcodec 56. 26.100 / 56. 26.100
libavformat 56. 25.101 / 56. 25.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 11.102 / 5. 11.102
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
[NULL @ 0x1641d00] start time for stream 0 is not set in estimate_timings_from_pts
Input #0, mpeg, from '/opt/data/nakole/nakole1.dvd':
Duration: 00:24:53.37, start: 0.034667, bitrate: 5305 kb/s
Stream #0:0[0x1bf]: Data: dvd_nav_packet
Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, bt470bg/unknown/smpte170m), 720x576 [SAR 64:45 DAR 16:9], max. 9000 kb/s, Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, bt470bg/unknown/smpte170m), 720x576 [SAR 64:45 DAR 16:9], max. 9000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0:2[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
[NULL @ 0x16484c0] start time for stream 0 is not set in estimate_timings_from_pts
Input #1, mpeg, from '/opt/data/nakole/nakole1.dvd':
Duration: 00:24:53.37, start: 0.034667, bitrate: 5305 kb/s
Stream #1:0[0x1bf] Stream #1:0[0x1bf]: Data: dvd_nav_packet
Stream #1:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, bt470bg/unknown/smpte170m), 720x576 [SAR 64:45 DAR 16:9], max. 9000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #1:2[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 256 kb/s
[mpeg2video @ 0x1a3b6c0] Warning min_rate > 0 but min_rate != max_rate isn't recommended!
[mpeg2video @ 0x1a3b6c0] [lavc rc] Error: bitrate too low for this video with these parameters.
Output #0, dvd, to '/var/data/movie_preview.mpg':
Stream #0:0: Video: mpeg2video, none, q=2-31, 128 kb/s, SAR 64:45 DAR 0:0 Stream #0:0: Video: mpeg2video, none, q=2-31, 128 kb/s, SAR 64:45 DAR 0:0, 25 fps
Metadata:
encoder : Lavc56.26.100 mpeg2video
Stream #0:1: Audio: ac3, 0 channels, 128 kb/s
Metadata:
encoder : Lavc56.26.100 ac3
Stream mapping:
Stream #1:1 -> #0:0 Stream #1:1 -> #0:0 (mpeg2video (native) -> mpeg2video (native))
Stream #0:2 -> #0:1 (ac3 (native) -> ac3 (native))
Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height

@rastersoft
Copy link
Owner

I'm unable to reproduce this bug. Can you send me a video file that triggers it? (rastersoft@gmail.com)

@pletiplot
Copy link
Author

Yes, I can, but the video is a bit large (about 1 GB). I can try to cut 10 seconds using Openshot.

@rastersoft
Copy link
Owner

Ok

@pletiplot
Copy link
Author

I have sent you reference to the file, I tried to double-encode, but failed. It works with 3.7.0.

@rastersoft
Copy link
Owner

I'll check it ASAP. Thanks.

@pletiplot
Copy link
Author

pletiplot commented Mar 7, 2017 via email

@pletiplot
Copy link
Author

I tried to install devedeng from the source (not from deb package) and it seems it works.

@rastersoft
Copy link
Owner

From GIT, or from the DEBs available in my home page?

@pletiplot
Copy link
Author

The DEB from your page.

@pletiplot
Copy link
Author

pletiplot commented Mar 13, 2017

I have found that when I use two step encoding and non Automatic bitrate, the program crashes. When I use Automatic bitrate, the program works. It seems there is some problem transfering the bitrate to the second step.

@pletiplot
Copy link
Author

Another test - if I keep 5000 kbit/s, it works, both Auto or non-auto. If I put there 3500, or when I put 6 parts and leave auto, it don't work.

@pletiplot
Copy link
Author

The last version it works OK is 4.8.2 In higher versions it works sometimes.

@ticalc-travis
Copy link

ticalc-travis commented May 20, 2017

I'm experiencing this issue with 4.8.8. This is with the 64-bit Ubuntu package on http://www.rastersoft.com/programas/devede.html on Ubuntu 16.04 LTS. I get the same messages with ffmpeg on the failed pass 2 as listed in the debug output above. Whether it happens seems to depend on exactly how much video I'm trying to fit on a disc.

It seems that ffmpeg doesn't like the -minrate:v parameter devedeeng is using. If I take the devede-generated pass 2 encoding command for ffmpeg and launch it manually in a terminal, I get the same error, but if I remove just the -minrate:v parameter, or set it to 0, the encoding succeeds. Perhaps some adjustment is needed to ensure devedeeng stays within the range that ffmpeg wants, or maybe the minrate shouldn't be used (as the “Warning min_rate > 0 but min_rate != max_rate isn't recommended!” warning from ffmpeg seems to imply).

@andy5995
Copy link
Contributor

I tried to install devedeng from the source (not from deb package) and it seems it works.

(On Debian 9) Same here; I just installed devede 4.9 from the GItHub releases section and no longer have this problem when choosing 2-pass encoding (partial debugging output from using "preview"):

Stream mapping:
  Stream #1:0 -> #0:0 (h264 (native) -> mpeg2video (native))
  Stream #0:1 -> #0:1 (aac (native) -> mp2 (native))
Press [q] to stop, [?] for help
[mpeg2video @ 0x555d7a1bd4a0] Warning min_rate > 0 but min_rate != max_rate isn't recommended!
[mpeg2video @ 0x555d7a1bd4a0] [lavc rc] Error: bitrate too low for this video with these parameters.
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
Conversion failed!

The deb package I had installed was 1:4:8.8-dmo1

The ffmpeg version I have installed is 10:3.3.6-dmo1+deb9u1

@rastersoft
Copy link
Owner

rastersoft commented Apr 10, 2018 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants