PDA

View Full Version : Transcoding .flv video to h.264/ac3 for Sammy C-series



Signify
02-11-2014, 07:48 AM
Hi!
It's been a long while since I had any problems with ffmpeg and Mezzmo but here we go. I have a large .flv file from a car race that my PC can't transcode on the fly for some reason so I tried to pre-transcode it for my Samsun C-series TV. Here is the result:

D:\Program Files (x86)\Conceiva\Mezzmo\ffmpeg.exe -y -fflags +genpts -i "Z:\Motorsport\Sports Car\Bathurst 12h\2014\Liqui-Moly Bathurst 12 Hour Saturday.flv" -map 0:v:0 -map 0:a:0 -c:v:0 copy -level 41 -bsf:v h264_mp4toannexb -filter:v "yadif" -pix_fmt yuv420p -copyinkf -coder 1 -flags +loop -fflags +genpts -subq 7 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -b_strategy 1 -x264opts direct-pred=auto:b-pyramid=normal:mixed-refs=1:weightb=1:8x8dct=1:fast-pskip=1:crf=22:ref=2:bframes=3:aud=1:me=hex -partitions -parti8x8-parti4x4-partp8x8-partp4x4-partb8x8 -bidir_refine 1 -c:a:0 ac3_fixed -ac 1 -ab 448000 -ar 44100 -sn -threads 0 -async 0 -f matroska "D:\Users\Steven\AppData\Local\Conceiva\Mezzmo\Tran scodingFiles\DAE6F66B-745D-46b5-930A-A570F45B8E3E\Video\47417-matroska_webm-libx264-ac3-sn.mzt"

ffmpeg version N-50460-g393dcbf Copyright (c) 2000-2013 the FFmpeg developers
built on Mar 4 2013 17:38:17 with gcc 4.6.2 (GCC)
configuration: --enable-memalign-hack --arch=x86 --target-os=mingw32 --cross-prefix=i686-w64-mingw32- --enable-static --disable-shared --enable-zlib --disable-postproc --prefix=/home/peter/ffmpeg/build/gpl --enable-libmp3lame --enable-libx264 --enable-gpl --extra-libs='-lx264 -lpthread' --enable-runtime-cpudetect --extra-cflags=-I/home/peter/cc/include --extra-ldflags=-L/home/peter/cc/lib --pkg-config=pkg-config --disable-w32threads --enable-zlib
libavutil 52. 17.103 / 52. 17.103
libavcodec 54. 92.100 / 54. 92.100
libavformat 54. 63.102 / 54. 63.102
libavdevice 54. 3.103 / 54. 3.103
libavfilter 3. 41.100 / 3. 41.100
libswscale 2. 2.100 / 2. 2.100
libswresample 0. 17.102 / 0. 17.102
Input #0, flv, from 'Z:\Motorsport\Sports Car\Bathurst 12h\2014\Liqui-Moly Bathurst 12 Hour Saturday.flv':
Duration: 11:05:42.21, start: 0.033000, bitrate: 430 kb/s
Stream #0:0: Video: h264 (Main), yuv420p, 768x432, 533 kb/s, 25 tbr, 1k tbn, 50 tbc
Stream #0:1: Audio: aac, 44100 Hz, mono, fltp, 65 kb/s
Output #0, matroska, to 'D:\Users\Steven\AppData\Local\Conceiva\Mezzmo\Tra nscodingFiles\DAE6F66B-745D-46b5-930A-A570F45B8E3E\Video\47417-matroska_webm-libx264-ac3-sn.mzt':
Metadata:
encoder : Lavf54.63.102
Stream #0:0: Video: h264 (H264 / 0x34363248), yuv420p, 768x432, q=2-31, 533 kb/s, 1k tbn, 1k tbc
Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 44100 Hz, mono, s16p, 448 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (aac -> ac3_fixed)
Press [q] to stop, [?] for help
[flv @ 01a1db80] Stream discovered after head already parsed
[flv @ 01a1db80] New data stream 0:2 at pos:364920 and DTS:4.865s
frame= 2038 fps=0.0 q=-1.0 size= 9949kB time=00:01:21.48 bitrate=1000.2kbits/s
frame= 4072 fps=0.0 q=-1.0 size= 19887kB time=00:02:42.84 bitrate=1000.5kbits/s
frame= 6143 fps=4095 q=-1.0 size= 30022kB time=00:04:05.68 bitrate=1001.0kbits/s
...
# lines omitted #
...
frame=689667 fps=4033 q=-1.0 size= 3362963kB time=07:39:46.61 bitrate= 998.7kbits/s
Truncating packet of size 18812 to 12785
Failed to open bitstream filter h264_mp4toannexb for stream 0 with codec copy: Invalid argument

<MEZZMO>: Child process ended with code: 109, ExitCode=-1073741819

Any ideas? Could I have upgraded ffmpeg? What is the version that comes stock with version 3.4.4.0?

Paul
02-11-2014, 09:23 AM
Thanks for the information. Try pre-transcoding the file again but this time select the "Force full transcode of all channels" checkbox in the Pre-transcoding Formats dialog. It will transcode a little slower but it should fix the transcoding error you are getting.

Signify
02-11-2014, 09:59 AM
28fps vs 1000fps is a "little" slower yes... I'll let it run and see where it is tomorrow afternoon. It's 11 hours worth of video....

Signify
02-12-2014, 08:23 AM
"Force full transcode of all channels" worked! Thanks!

Paul
02-12-2014, 08:55 AM
Glad that worked :) Thanks for posting back.