Open mihaipop10 opened 7 years ago
Same issue. Any Updates?
Hi, I don't know exactly why but in my setup I've switched from .mp4 to .mov format and this fixed my issue.
Got same issue, tried ffmpeg -i input.mp4 -c:v libx264 output.mp4
even tried ffmpeg -i input.mp4 output.mp4
stuck.
Hi,
I'm trying to save a rtsp stream to device. Nexus 4 Android 5.1.1 or Sony xperia Z4 Android 7.0 After around 10-15 mins of grabbing ffmpeg is hanging, details:
Command: String[] ffmpegCommand = { "-y", "-rtsp_transport", "tcp", "-i", "rtsp://192.168.43.1:8555/stream0", "-s", "640x480", "-acodec", "copy", "-vcodec", "copy", "/test2.mp4"};
Ouput:
Running publishing updates method ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers built with gcc 4.8 (GCC) configuration: --target-os=linux --cross-prefix=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi- --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --sysroot=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-fontconfig --enable-pthreads --disable-debug --disable-ffserver --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-ffprobe --enable-gpl --enable-yasm --disable-doc --disable-shared --enable-static --pkg-config=/home/vagrant/SourceCode/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/vagrant/SourceCode/ffmpeg-android/build/armeabi-v7a --extra-cflags='-I/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all' --extra-ldflags='-L/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags= libavutil 55. 17.103 / 55. 17.103 libavcodec 57. 24.102 / 57. 24.102 libavformat 57. 25.100 / 57. 25.100 libavdevice 57. 0.101 / 57. 0.101 libavfilter 6. 31.100 / 6. 31.100 libswscale 4. 0.100 / 4. 0.100 libswresample 2. 0.101 / 2. 0.101 libpostproc 54. 0.100 / 54. 0.100 Input #0, rtsp, from 'rtsp://192.168.43.1:8555/stream0': Metadata: title : Session streamed by XXXXX comment : stream0 Duration: N/A, start: 0.033333, bitrate: N/A Stream #0:0: Video: h264 (Baseline), yuv420p, 640x480, 30 fps, 30 tbr, 90k tbn, 180k tbc Output #0, mp4, to 'Test2.mp4': Metadata: title : Session streamed by SNYU_UCAM comment : stream0 encoder : Lavf57.25.100 Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 640x480, q=2-31, 30 fps, 30 tbr, 90k tbn, 90k tbc Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help frame= 40 fps=0.0 q=-1.0 size= 176kB time=00:00:01.79 bitrate= 802.7kbits/s speed=3.47x
frame= 65 fps= 63 q=-1.0 size= 282kB time=00:00:02.63 bitrate= 878.0kbits/s speed=2.55x
After a period of time the output stops and there is no error, no message. I have to restart the app.
This is the last ouput frame=17982 fps= 30 q=-1.0 size= 73140kB time=00:10:00.02 bitrate= 998.6kbits/s speed= 1x
frame=17985 fps= 30 q=-1.0 size= 73151kB time=00:10:00.12 bitrate= 998.5kbits/s speed=0.992x
Any ideas? Thanks