Opened 14 years ago

Closed 14 years ago

#248 closed defect (fixed)

Transcoding with mediatomb no longer working after "ffmpeg: simplify managing input files and streams"

Reported by: Kyle Owned by: Michael Niedermayer
Priority: normal Component: ffmpeg
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

The revision "ffmpeg: simplify managing input files and streams" breaks the transcoding function I use for Mediatomb with DirecTV's Media Share

This is the command line I uses:
ffmpe -i %inputfile -b 4096k -maxrate 4096k -minrate 4096k -bufsize 2458k -bt 380k -threads 2 -ar 48000 -ab 160k -acodec mp2 -f dvd %outputfile

After that revision the command executes, but the actual transcoding doesn't commence.

Change History (12)

comment:1 by Carl Eugen Hoyos, 14 years ago

Status: newopen

Please provide complete, uncut output for the command you use (after setting the variables).

comment:2 by Kyle, 14 years ago

If you aren't familiar with MediaTomb, basically this is called by a subprocess within MediaTomb, %in is replaced with the input, and %out goes to a temp file that the client accesses.

Output of a working build:
-i %in -b 4096k -maxrate 4096k -minrate 4096k -bufsize 2458k -bt 380k -threads 2 -ar 48000 -ab 160k -acodec mp2 -f dvd -y %out
ffmpeg version git-N-30210-g034fc7b, Copyright (c) 2000-2011 the FFmpeg developers

built on May 27 2011 03:12:54 with gcc 4.5.2
configuration: --prefix=/usr --enable-gpl --enable-version3 --enable-nonfree --enable-shared --enable-postproc --enable-libx264 --enable-frei0r --enable-librtmp --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libdc1394 --enable-libmp3lame --enable-libtheora --enable-libopenjpeg --enable-libdirac --enable-libvpx --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libvorbis --enable-libxvid --enable-libfaac --cpu=amdfam10 --arch=x86_64 --enable-x11grab --enable-libxavs --enable-libnut --enable-libfreetype --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libcelt
libavutil 51. 2. 1 / 51. 2. 1
libavcodec 53. 6. 0 / 53. 6. 0
libavformat 53. 2. 0 / 53. 2. 0
libavdevice 53. 0. 0 / 53. 0. 0
libavfilter 2. 10. 0 / 2. 10. 0
libswscale 0. 14. 0 / 0. 14. 0
libpostproc 51. 2. 0 / 51. 2. 0

Metadata:

width 480.00
height 270.00
framerate 30.00
videodatarate 700.00
videocodecid avc1
audiodatarate 128.00
audiocodecid mp3

[flv @ 0x67ed60] Estimating duration from bitrate, this may be inaccurate
Input #0, flv, from 'rtmp://cp39414.live.edgefcs.net/live/tvahd@9750 live=1':

Duration: N/A, start: 0.000000, bitrate: 128 kb/s

Stream #0.0: Video: h264 (Main), yuv420p, 480x270 [PAR 1:1 DAR 16:9], 29.97 tbr, 1k tbn, 59.94 tbc
Stream #0.1: Audio: mp3, 44100 Hz, stereo, s16, 128 kb/s

[buffer @ 0x69fa60] w:480 h:270 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param:
Output #0, dvd, to '/tmp/mt_transcode_330ZVV':

Metadata:

encoder : Lavf53.2.0
Stream #0.0: Video: mpeg2video, yuv420p, 480x270 [PAR 1:1 DAR 16:9], q=2-31, 4096 kb/s, 90k tbn, 29.97 tbc
Stream #0.1: Audio: mp2, 48000 Hz, stereo, s16, 160 kb/s

Stream mapping:

Stream #0.0 -> #0.0
Stream #0.1 -> #0.1

Press [q] to stop, ? for help
frame= 54 fps= 0 q=2.0 size= 0kB time=1.77 bitrate= 0.0kbits/s dup=0 frame= 100 fps= 92 q=2.0 size= 0kB time=3.30 bitrate= 0.0kbits/s dup=0 frame= 115 fps= 71 q=2.0 size= 0kB time=3.79 bitrate= 0.0kbits/s dup=0 2011-05-27 04:06:58 INFO: Arguments: -i %in -b 4096k -maxrate 4096k -minrate 4096k -bufsize 2458k -bt 380k -threads 2 -ar 48000 -ab 160k -acodec mp2 -f dvd -y %out
frame= 134 fps= 63 q=2.0 size= 0kB time=4.44 bitrate= 0.0kbits/s dup=0 ffmpeg version git-N-30210-g034fc7b, Copyright (c) 2000-2011 the FFmpeg developers

built on May 27 2011 03:12:54 with gcc 4.5.2
configuration: --prefix=/usr --enable-gpl --enable-version3 --enable-nonfree --enable-shared --enable-postproc --enable-libx264 --enable-frei0r --enable-librtmp --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libdc1394 --enable-libmp3lame --enable-libtheora --enable-libopenjpeg --enable-libdirac --enable-libvpx --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libvorbis --enable-libxvid --enable-libfaac --cpu=amdfam10 --arch=x86_64 --enable-x11grab --enable-libxavs --enable-libnut --enable-libfreetype --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libcelt
libavutil 51. 2. 1 / 51. 2. 1
libavcodec 53. 6. 0 / 53. 6. 0
libavformat 53. 2. 0 / 53. 2. 0
libavdevice 53. 0. 0 / 53. 0. 0
libavfilter 2. 10. 0 / 2. 10. 0
libswscale 0. 14. 0 / 0. 14. 0
libpostproc 51. 2. 0 / 51. 2. 0

Metadata:

width 480.00
height 270.00
framerate 30.00
videodatarate 700.00
videocodecid avc1
audiodatarate 128.00
audiocodecid mp3

frame= 146 fps= 57 q=2.0 Lsize= 0kB time=4.84 bitrate= 0.0kbits/s dup=0 drop=65
video:2383kB audio:95kB global headers:0kB muxing overhead -100.000000%
Received signal 15: terminating.
[flv @ 0x1f39d60] Estimating duration from bitrate, this may be inaccurate
Input #0, flv, from 'rtmp://cp39414.live.edgefcs.net/live/tvahd@9750 live=1':

Duration: N/A, start: 0.000000, bitrate: 128 kb/s

Stream #0.0: Video: h264 (Main), yuv420p, 480x270 [PAR 1:1 DAR 16:9], 29.97 tbr, 1k tbn, 59.94 tbc
Stream #0.1: Audio: mp3, 44100 Hz, stereo, s16, 128 kb/s

[buffer @ 0x1f5a9e0] w:480 h:270 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param:
Output #0, dvd, to '/tmp/mt_transcode_0T3XVV':

Metadata:

encoder : Lavf53.2.0
Stream #0.0: Video: mpeg2video, yuv420p, 480x270 [PAR 1:1 DAR 16:9], q=2-31, 4096 kb/s, 90k tbn, 29.97 tbc
Stream #0.1: Audio: mp2, 48000 Hz, stereo, s16, 160 kb/s

Stream mapping:

Stream #0.0 -> #0.0
Stream #0.1 -> #0.1

Press [q] to stop, ? for help
frame= 44 fps= 0 q=2.0 size= 0kB time=1.42 bitrate= 0.0kbits/s dup=0

Version 0, edited 14 years ago by Kyle (next)

comment:3 by Kyle, 14 years ago

Following will be the output of the latest git that doesn't work after I finish compiling and installing it.

comment:4 by Kyle, 14 years ago

Output of the latest git, which doesn't work:

-i %in -b 4096k -maxrate 4096k -minrate 4096k -bufsize 2458k -bt 380k -threads 2 -ar 48000 -ab 160k -acodec mp2 -f dvd -y %out
ffmpeg version git-N-30303-g5e0dafe, Copyright (c) 2000-2011 the FFmpeg developers

built on May 27 2011 04:20:56 with gcc 4.5.2
configuration: --prefix=/usr --enable-gpl --enable-version3 --enable-nonfree --enable-shared --enable-postproc --enable-libx264 --enable-frei0r --enable-librtmp --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libdc1394 --enable-libmp3lame --enable-libtheora --enable-libopenjpeg --enable-libdirac --enable-libvpx --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libvorbis --enable-libxvid --enable-libfaac --cpu=amdfam10 --arch=x86_64 --enable-x11grab --enable-libxavs --enable-libnut --enable-libfreetype --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libcelt
libavutil 51. 2. 2 / 51. 2. 2
libavcodec 53. 6. 0 / 53. 6. 0
libavformat 53. 2. 0 / 53. 2. 0
libavdevice 53. 0. 0 / 53. 0. 0
libavfilter 2. 11. 0 / 2. 11. 0
libswscale 0. 14. 0 / 0. 14. 0
libpostproc 51. 2. 0 / 51. 2. 0

Metadata:

width 480.00
height 270.00
framerate 30.00
videodatarate 700.00
videocodecid avc1
audiodatarate 128.00
audiocodecid mp3

[flv @ 0x1741dc0] Estimating duration from bitrate, this may be inaccurate
Input #0, flv, from 'rtmp://hidden live=1':

Duration: N/A, start: 0.000000, bitrate: 128 kb/s

Stream #0.0: Video: h264 (Main), yuv420p, 480x270 [PAR 1:1 DAR 16:9], 29.97 tbr, 1k tbn, 59.94 tbc
Stream #0.1: Audio: mp3, 44100 Hz, stereo, s16, 128 kb/s

comment:5 by Carl Eugen Hoyos, 14 years ago

Does re-encoding the stream work if you call ffmpeg with the correct rtmp string replacing %in (and out.vob replacing %out)?

comment:6 by Kyle, 14 years ago

I get a segmentation fault, I'm recompiling with the debug enabled and will post the results of a gdb soon.

comment:7 by Kyle, 14 years ago

Output of gdb:

(gdb) run -i "rtmp://hidden live=1" -b 4096k -maxrate 4096k -minrate 4096k -bufsize 2458k -bt 380k -threads 2 -ar 48000 -ab 160k -acodec mp2 -f dvd out.vob
Starting program: /usr/bin/ffmpeg -i "rtmp://cp39414.live.edgefcs.net/live/tvahd@9750 live=1" -b 4096k -maxrate 4096k -minrate 4096k -bufsize 2458k -bt 380k -threads 2 -ar 48000 -ab 160k -acodec mp2 -f dvd out.vob
[Thread debugging using libthread_db enabled]
ffmpeg version git-N-30303-g5e0dafe, Copyright (c) 2000-2011 the FFmpeg developers

built on May 27 2011 12:35:02 with gcc 4.5.2
configuration: --prefix=/usr --enable-gpl --enable-version3 --enable-nonfree --enable-shared --enable-postproc --enable-libx264 --enable-frei0r --enable-librtmp --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libdc1394 --enable-libmp3lame --enable-libtheora --enable-libopenjpeg --enable-libdirac --enable-libvpx --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libvorbis --enable-libxvid --enable-libfaac --cpu=amdfam10 --arch=x86_64 --enable-x11grab --enable-libxavs --enable-libnut --enable-libfreetype --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libcelt --enable-debug
libavutil 51. 2. 2 / 51. 2. 2
libavcodec 53. 6. 0 / 53. 6. 0
libavformat 53. 2. 0 / 53. 2. 0
libavdevice 53. 0. 0 / 53. 0. 0
libavfilter 2. 11. 0 / 2. 11. 0
libswscale 0. 14. 0 / 0. 14. 0
libpostproc 51. 2. 0 / 51. 2. 0

Metadata:

width 480.00
height 270.00
framerate 30.00
videodatarate 700.00
videocodecid avc1
audiodatarate 128.00
audiocodecid mp3

[flv @ 0x63edc0] Estimating duration from bitrate, this may be inaccurate
Input #0, flv, from 'rtmp://hidden live=1':

Duration: N/A, start: 0.001000, bitrate: 128 kb/s

Stream #0.0: Video: h264 (Main), yuv420p, 480x270 [PAR 1:1 DAR 16:9], 29.97 tbr, 1k tbn, 59.94 tbc
Stream #0.1: Audio: mp3, 44100 Hz, stereo, s16, 128 kb/s

Program received signal SIGSEGV, Segmentation fault.
strcmp_sse2 () at ../sysdeps/x86_64/multiarch/../strcmp.S:213
213 ../sysdeps/x86_64/multiarch/../strcmp.S: No such file or directory.

in ../sysdeps/x86_64/multiarch/../strcmp.S

(gdb) bt
#0 strcmp_sse2 () at ../sysdeps/x86_64/multiarch/../strcmp.S:213
#1 0x00007ffff62af75e in av_find_opt () from /usr/lib/libavutil.so.51
#2 0x0000000000412136 in ?? ()
#3 0x000000000040500e in ?? ()
#4 0x0000000000411ef2 in ?? ()
#5 0x0000000000410c89 in ?? ()
#6 0x00007ffff5a89eff in
libc_start_main (main=0x410c00, argc=24,

ubp_av=0x7fffffffe168, init=<value optimized out>,
fini=<value optimized out>, rtld_fini=<value optimized out>,
stack_end=0x7fffffffe158) at libc-start.c:226

#7 0x00000000004049e9 in ?? ()
#8 0x00007fffffffe158 in ?? ()
#9 0x000000000000001c in ?? ()
#10 0x0000000000000018 in ?? ()
#11 0x00007fffffffe4d7 in ?? ()
#12 0x00007fffffffe4e7 in ?? ()
#13 0x00007fffffffe4ea in ?? ()
#14 0x00007fffffffe521 in ?? ()
#15 0x00007fffffffe524 in ?? ()
#16 0x00007fffffffe52a in ?? ()
#17 0x00007fffffffe533 in ?? ()
#18 0x00007fffffffe539 in ?? ()
#19 0x00007fffffffe542 in ?? ()
#20 0x00007fffffffe548 in ?? ()
#21 0x00007fffffffe551 in ?? ()
#22 0x00007fffffffe557 in ?? ()
#23 0x00007fffffffe55b in ?? ()
#24 0x00007fffffffe560 in ?? ()
#25 0x00007fffffffe569 in ?? ()
#26 0x00007fffffffe56b in ?? ()
#27 0x00007fffffffe56f in ?? ()
#28 0x00007fffffffe575 in ?? ()
#29 0x00007fffffffe579 in ?? ()
#30 0x00007fffffffe57e in ?? ()
#31 0x00007fffffffe586 in ?? ()
#32 0x00007fffffffe58a in ?? ()
#33 0x00007fffffffe58d in ?? ()
#34 0x00007fffffffe591 in ?? ()
#35 0x0000000000000000 in ?? ()

comment:8 by Kyle, 14 years ago

Looking at the backtrace it might be another issue that was fixed a few hours ago, I'm compiling with that version now and will report back.

comment:9 by Kyle, 14 years ago

The segfault is no longer occuring after "avopt: fix segfault"

comment:10 by Michael Niedermayer, 14 years ago

I cannot reproduce this bug, is latest git still affected?

comment:11 by Kyle, 14 years ago

Yeah, it was actually caused by something else and ended up being fixed the same day with the commit that was labeled "avopt: fix segfault""

comment:12 by Michael Niedermayer, 14 years ago

Resolution: fixed
Status: openclosed

Sounds like this has been fixed then

Note: See TracTickets for help on using tickets.