News:

--

Main Menu

Mux can't open

Started by kirby, September 30, 2016, 10:50:55 PM

Previous topic - Next topic

kirby

I am using avidemux 2.6.13-1 on fc24. When I try to save a image using x264, mp3(lame), and mp4v2 i get an error that says that Muxer cannot open. the console looks like
[admSaver]  [Save] Encoder index=9
  [save]  Audio starting time 00:00:00,000
  [save]  [A_Save] Saving..
  [muxerMp4v2]  [Mp4v2Muxer] Creating
[VideoFilterBridge] Creating bridge from 0 s to 1043 s
[convertLinearTimeToSeg]  Frame time=0, taking first segment
  [seektoTime]  First frame of the new segment is a keyframe at 0ms
  [DecodePictureUpToIntra]   DecodeUpToInta 0 ref:0
[edCache] Flush
[lookup]  No Matching Hw accel
  [ADM_FFgetFormat]  No Hw Accel for that
  [goToTimeVideo]  Seek done, in reference, gone to 0 with segment start at 0
  [x264Encoder]  [x264] Creating with globalHeader=1
  [setup]  =============x264, setting up==============
  [usSecondsToFrac]  33333 us -> 2183 / 65491 (old)
cpu :1173503
i_threads :0
b_sliced_threads :0
b_deterministic :1
i_sync_lookahead :-1
i_width :1280
i_height :720
i_width :1280
i_level_idc :-1
i_frame_total :0
i_sar_height :1
i_sar_width :1
i_overscan :0
i_vidformat :5
b_fullrange :-1
i_colorprim :2
i_transfer :2
i_colmatrix :-1
i_chroma_loc :0
i_fps_num :65491
i_fps_den :2183
i_timebase_num :0
i_timebase_den :0
i_frame_reference :3
i_keyint_max :250
i_keyint_min :25
i_scenecut_threshold :40
b_intra_refresh :0
i_bframe :3
i_bframe_adaptive :1
i_bframe_bias :0
i_bframe_pyramid :2
b_deblocking_filter :1
i_deblocking_filter_alphac0 :0
i_deblocking_filter_beta :0
b_cabac :1
i_cabac_init_idc :0
b_interlaced :0
b_tff :1
b_fake_interlaced :0
b_bluray_compat :0
b_constrained_intra :0
*************************************
*********     Analyse       *********
*************************************
intra :3
inter :307
b_transform_8x8 :1
i_weighted_pred :2
b_weighted_bipred :1
i_chroma_qp_offset :0
i_me_method :1
i_me_range :16
i_mv_range :-1
i_mv_range_thread :-1
i_subpel_refine :7
b_chroma_me :1
b_mixed_references :1
i_trellis :1
b_fast_pskip :1
b_dct_decimate :1
i_noise_reduction :0
f_psy_rd :1.000000
f_psy_trellis :0.000000
b_psy :1
b_aud :0
b_repeat_headers :0
b_annexb :1
b_vfr_input :0
i_luma_deadzone[0] :21
i_luma_deadzone[1] :11
i_sps_id :0
i_slice_max_size :0
i_slice_max_mbs :0
i_slice_count :0
*************************************
*********     RC            *********
*************************************
i_rc_method :1
i_qp_constant :35
f_rf_constant :20.000000
i_qp_min :10
i_qp_max :51
i_qp_step :4
i_bitrate :0
i_qp_constant :35
f_rate_tolerance :1.000000
i_vbv_max_bitrate :0
i_vbv_buffer_size :0
f_vbv_buffer_init :0.010000
f_ip_factor :1.400000
f_pb_factor :1.300000
i_aq_mode :1
f_aq_strength :1.000000
b_mb_tree :1
i_lookahead :40
[setup]  Creating x264 encoder
  [setup]  x264, setup ok
  [setup]  Creating global header
  [ADM_videoStreamProcess]  [StreamProcess] Stream 1280x720, codec : H264
[StreamProcess] Average FPS1000=30000
[StreamProcess] Video Encoder Delay=133ms
[goToTime]   go to time 0.00 secs
  [convertLinearTimeToSeg]  Frame time=0, taking first segment
  [goToTime]  => seg 0, rel time 0.00 secs
  [resetAfterSeek]  Resetting faad
  [initFaad]  [FAAD] using 2 bytes of extradata
  [initFaad]  12   [initFaad]  08   [initFaad] 
  [initFaad]  [FAAD]Found :44100 rate 2 channels
  [initFaad]  [FAAD]channel mismatch!!! 1 to 2
  [initFaad]  Workaround Faad mono stream handling...
[MP4] Go to time succeeded chunk :0 time ask:0 time get:0
[setupAudio]  Setting up 1 audio track(s)
  [setupAudio]  [audioTrack 0] Creating audio encoding stream, starttime 00:00:00,000(encoding with encoder=6)
[AccessFilter] Creating access filter, startime 00:00:00,000, globalHeader 1
[createEncodingFilter]  Creating audio encoding filter with start time 00:00:00,000
  [rewind]  [AudioBridge] Going to time 00:00:00,000
  [goToTime]   go to time 0.00 secs
  [convertLinearTimeToSeg]  Frame time=0, taking first segment
  [goToTime]  => seg 0, rel time 0.00 secs
  [resetAfterSeek]  Resetting faad
  [initFaad]  [FAAD] using 2 bytes of extradata
  [initFaad]  12   [initFaad]  08   [initFaad] 
  [initFaad]  [FAAD]Found :44100 rate 2 channels
  [initFaad]  [FAAD]channel mismatch!!! 1 to 2
  [initFaad]  Workaround Faad mono stream handling...
[MP4] Go to time succeeded chunk :0 time ask:0 time get:0
[AUDMAudioFilter_Bridge]  [Bridge] Starting with time 00:00:00,000 , shift 0 ms
  [AUDMAudioFilter_Bridge]  [Bridge] Ending with time 00:00:00,000, sample 0
  [rewind]  [AudioBridge] Going to time 00:00:00,000
  [goToTime]   go to time 0.00 secs
  [convertLinearTimeToSeg]  Frame time=0, taking first segment
  [goToTime]  => seg 0, rel time 0.00 secs
  [resetAfterSeek]  Resetting faad
  [initFaad]  [FAAD] using 2 bytes of extradata
  [initFaad]  12   [initFaad]  08   [initFaad] 
  [initFaad]  [FAAD]Found :44100 rate 2 channels
  [initFaad]  [FAAD]channel mismatch!!! 1 to 2
  [initFaad]  Workaround Faad mono stream handling...
[MP4] Go to time succeeded chunk :0 time ask:0 time get:0
[Lame] Creating lame
[Lame] output frequency : 44100
[Lame] mono audio mp3[Lame]Using quality of 2
[initialize]  Lame : CBR Mode
LAME 3.99.5 64bits (http://lame.sf.net)
Using polyphase lowpass filter, transition band: 20094 Hz - 20627 Hz

misc:

scaling: 0.95
ch0 (left) scaling: 1
ch1 (right) scaling: 1
huffman search: best (outside loop)
experimental Y=0
...

stream format:

MPEG-1 Layer 3
1 channel - mono
padding: off
constant bitrate - CBR
using LAME Tag
...

psychoacoustic:

using short blocks: allowed
subblock gain: 1
adjust masking: 0 dB
adjust masking short: 0 dB
quantization comparison: 9
^ comparison short blocks: 9
noise shaping: 2
^ amplification: 1
^ stopping: 1
ATH: using
^ type: 4
^ shape: 4 (only for type 4)
^ level adjustement: -3 dB
^ adjust type: 3
^ adjust sensitivity power: 1.000000
experimental psy tunings by Naoki Shibata
   adjust masking bass=-0.5 dB, alto=-0.25 dB, treble=-0.025 dB, sfb21=0.5 dB
using temporal masking effect: yes
interchannel masking ratio: 0.0002
...

[FilterAccess] Created, starting at 0 ms
[ADM_audioAccess_thread]  Swallowing audio access into a thread
  [open]  Created file /home/kirby/20160925.mp4 mode wb
  [initVideo]  Setting video..

0000 : ....gn. �͔..[�.  00 00 00 01 67 6e 00 20 a6 cd 94 05 00 5b b0 11
0010 : ...�..���.1�....  00 00 08 87 00 01 ff a6 8f 18 31 96 00 00 00 01
0020 : h���Ȱ  68 eb e1 b2 c8 b0 [initH264] 
  [ADM_getH264SpsPpsFromExtraData]  Startcoded PPS/SPS
  [startThread]  Starting thread...
  [convertLinearTimeToSeg]  Frame time=0, taking first segment
  [startThread]  Thread created and started
  [encode]  [x264] Error encoding -1
  [initH264]  Cannot read 1st video frame
  [initVideo]  Cannot add h264 track
  [open]  Cannot init video

Jan Gruuthuse

Save image? Can you enlighten this? Workflow?
Avidemux has issues opening your source (loading video or image). Normally mp4 container with mp3 audio should work.

eumagga0x2a

#2
The initial error

  [encode]  [x264] Error encoding -1

comes presumably from libx264 in your Fedora 24 installation, not from Avidemux. The MP4v2 muxer not receiving any video data to mux is merely a victim.

Quote from: kirby on September 30, 2016, 10:50:55 PM
I am using avidemux 2.6.13-1 on fc24.

Plain and simple: don't use 2.6.13. Please use the current git. If this is not possible, use the latest release 2.6.14 (build it yourself; once 2.6.15 is out I'll beseech rpmfusion maintainers to update the currently distributed 2.6.12 to 2.6.15 ASAP).

Apart from this, please describe your goal, not your steps.

kirby

I want to trim and put fades at the beginning and in of a recording made on a Flip in preparation for upload to YouTube. I assumed, possibly erroneously, that since I was able to view and edit the video that avidemux was passing stuff to the output just fine. I chose those codecs and mux because that was working for me before I changed machines. Looking at the backup from the old machine, the executable was named avidemux3_qt4.

eumagga0x2a

This means, you want to reencode a video with a few filters applied (no images). The Avidemux 2.6.12 Qt4 build distributed by rpmfusion.org may be a better choice than 2.6.13 anyway, but I would still recommend the current git or the latest release.

kirby

#5
Well said! 2.6.14 does a fine job with the video although I am now just getting a buzzin when I play back the original. I am in the process of encoding and will know if things work shortly. Kudos to the author of bootStrap.bash. Would that everything I try to build went that easily.

Followup: Video worked perfectly. Audio is nothing but a buzz. I will install try to see if I can get it to build with different codecs and if the rabbit hole gets too deep, I will install the 2.6.12 version from rpmfusion.

Thanks!

eumagga0x2a

Quote from: kirby on October 03, 2016, 08:18:28 PM
Followup: Video worked perfectly. Audio is nothing but a buzz.

Please post the output of

ffprobe /path/to/your/source/video